gp-designer 1.0.38 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- (function(We,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(We=typeof globalThis<"u"?globalThis:We||self,o(We.GpWebModule={},We.Vue))})(this,function(We,o){"use strict";var X;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(X||(X={}));function Is(e){return e.type===X.Tag||e.type===X.Script||e.type===X.Style}const Ss=X.Root,Os=X.Text,xs=X.Directive,Ds=X.Comment,Ls=X.Script,ys=X.Style,Rs=X.Tag,ks=X.CDATA,Ms=X.Doctype;let Qn=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Rt(this,t)}};class va extends Qn{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class yt extends va{constructor(){super(...arguments),this.type=X.Text}get nodeType(){return 3}}class Ua extends va{constructor(){super(...arguments),this.type=X.Comment}get nodeType(){return 8}}class Fa extends va{constructor(t,a){super(a),this.name=t,this.type=X.Directive}get nodeType(){return 1}}class Ha extends Qn{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class jn extends Ha{constructor(){super(...arguments),this.type=X.CDATA}get nodeType(){return 4}}class tt extends Ha{constructor(){super(...arguments),this.type=X.Root}get nodeType(){return 9}}class Va extends Ha{constructor(t,a,n=[],i=t==="script"?X.Script:t==="style"?X.Style:X.Tag){super(n),this.name=t,this.attribs=a,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var a,n;return{name:t,value:this.attribs[t],namespace:(a=this["x-attribsNamespace"])===null||a===void 0?void 0:a[t],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[t]}})}}function B(e){return Is(e)}function ia(e){return e.type===X.CDATA}function Me(e){return e.type===X.Text}function ra(e){return e.type===X.Comment}function Ya(e){return e.type===X.Directive}function $e(e){return e.type===X.Root}function se(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Rt(e,t=!1){let a;if(Me(e))a=new yt(e.data);else if(ra(e))a=new Ua(e.data);else if(B(e)){const n=t?qa(e.children):[],i=new Va(e.name,{...e.attribs},n);n.forEach(s=>s.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),a=i}else if(ia(e)){const n=t?qa(e.children):[],i=new jn(n);n.forEach(s=>s.parent=i),a=i}else if($e(e)){const n=t?qa(e.children):[],i=new tt(n);n.forEach(s=>s.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),a=i}else if(Ya(e)){const n=new Fa(e.name,e.data);e["x-name"]!=null&&(n["x-name"]=e["x-name"],n["x-publicId"]=e["x-publicId"],n["x-systemId"]=e["x-systemId"]),a=n}else throw new Error(`Not implemented yet: ${e.type}`);return a.startIndex=e.startIndex,a.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(a.sourceCodeLocation=e.sourceCodeLocation),a}function qa(e){const t=e.map(a=>Rt(a,!0));for(let a=1;a<t.length;a++)t[a].prev=t[a-1],t[a-1].next=t[a];return t}const zn={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class ws{constructor(t,a,n){this.dom=[],this.root=new tt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof a=="function"&&(n=a,a=zn),typeof t=="object"&&(a=t,t=void 0),this.callback=t??null,this.options=a??zn,this.elementCB=n??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new tt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,a){const n=this.options.xmlMode?X.Tag:void 0,i=new Va(t,a,void 0,n);this.addNode(i),this.tagStack.push(i)}ontext(t){const{lastNode:a}=this;if(a&&a.type===X.Text)a.data+=t,this.options.withEndIndices&&(a.endIndex=this.parser.endIndex);else{const n=new yt(t);this.addNode(n),this.lastNode=n}}oncomment(t){if(this.lastNode&&this.lastNode.type===X.Comment){this.lastNode.data+=t;return}const a=new Ua(t);this.addNode(a),this.lastNode=a}oncommentend(){this.lastNode=null}oncdatastart(){const t=new yt(""),a=new jn([t]);this.addNode(a),t.parent=a,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,a){const n=new Fa(t,a);this.addNode(n)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const a=this.tagStack[this.tagStack.length-1],n=a.children[a.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),a.children.push(t),n&&(t.prev=n,n.next=t),t.parent=a,this.lastNode=null}}const Wa=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Kn=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var $a;const Ps=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ga=($a=String.fromCodePoint)!==null&&$a!==void 0?$a:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Bs(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Ps.get(e))!==null&&t!==void 0?t:e}var ue;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ue||(ue={}));const vs=32;var Ge;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ge||(Ge={}));function Xa(e){return e>=ue.ZERO&&e<=ue.NINE}function Us(e){return e>=ue.UPPER_A&&e<=ue.UPPER_F||e>=ue.LOWER_A&&e<=ue.LOWER_F}function Fs(e){return e>=ue.UPPER_A&&e<=ue.UPPER_Z||e>=ue.LOWER_A&&e<=ue.LOWER_Z||Xa(e)}function Hs(e){return e===ue.EQUALS||Fs(e)}var oe;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(oe||(oe={}));var Se;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Se||(Se={}));class Qa{constructor(t,a,n){this.decodeTree=t,this.emitCodePoint=a,this.errors=n,this.state=oe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Se.Strict}startEntity(t){this.decodeMode=t,this.state=oe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,a){switch(this.state){case oe.EntityStart:return t.charCodeAt(a)===ue.NUM?(this.state=oe.NumericStart,this.consumed+=1,this.stateNumericStart(t,a+1)):(this.state=oe.NamedEntity,this.stateNamedEntity(t,a));case oe.NumericStart:return this.stateNumericStart(t,a);case oe.NumericDecimal:return this.stateNumericDecimal(t,a);case oe.NumericHex:return this.stateNumericHex(t,a);case oe.NamedEntity:return this.stateNamedEntity(t,a)}}stateNumericStart(t,a){return a>=t.length?-1:(t.charCodeAt(a)|vs)===ue.LOWER_X?(this.state=oe.NumericHex,this.consumed+=1,this.stateNumericHex(t,a+1)):(this.state=oe.NumericDecimal,this.stateNumericDecimal(t,a))}addToNumericResult(t,a,n,i){if(a!==n){const s=n-a;this.result=this.result*Math.pow(i,s)+parseInt(t.substr(a,s),i),this.consumed+=s}}stateNumericHex(t,a){const n=a;for(;a<t.length;){const i=t.charCodeAt(a);if(Xa(i)||Us(i))a+=1;else return this.addToNumericResult(t,n,a,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,a,16),-1}stateNumericDecimal(t,a){const n=a;for(;a<t.length;){const i=t.charCodeAt(a);if(Xa(i))a+=1;else return this.addToNumericResult(t,n,a,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,a,10),-1}emitNumericEntity(t,a){var n;if(this.consumed<=a)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ue.SEMI)this.consumed+=1;else if(this.decodeMode===Se.Strict)return 0;return this.emitCodePoint(Bs(this.result),this.consumed),this.errors&&(t!==ue.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,a){const{decodeTree:n}=this;let i=n[this.treeIndex],s=(i&Ge.VALUE_LENGTH)>>14;for(;a<t.length;a++,this.excess++){const u=t.charCodeAt(a);if(this.treeIndex=Vs(n,i,this.treeIndex+Math.max(1,s),u),this.treeIndex<0)return this.result===0||this.decodeMode===Se.Attribute&&(s===0||Hs(u))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],s=(i&Ge.VALUE_LENGTH)>>14,s!==0){if(u===ue.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Se.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:a,decodeTree:n}=this,i=(n[a]&Ge.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,a,n){const{decodeTree:i}=this;return this.emitCodePoint(a===1?i[t]&~Ge.VALUE_LENGTH:i[t+1],n),a===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case oe.NamedEntity:return this.result!==0&&(this.decodeMode!==Se.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case oe.NumericDecimal:return this.emitNumericEntity(0,2);case oe.NumericHex:return this.emitNumericEntity(0,3);case oe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case oe.EntityStart:return 0}}}function Zn(e){let t="";const a=new Qa(e,n=>t+=Ga(n));return function(i,s){let u=0,c=0;for(;(c=i.indexOf("&",c))>=0;){t+=i.slice(u,c),a.startEntity(s);const h=a.write(i,c+1);if(h<0){u=c+a.end();break}u=c+h,c=h===0?u+1:u}const l=t+i.slice(u);return t="",l}}function Vs(e,t,a,n){const i=(t&Ge.BRANCH_LENGTH)>>7,s=t&Ge.JUMP_TABLE;if(i===0)return s!==0&&n===s?a:-1;if(s){const l=n-s;return l<0||l>=i?-1:e[a+l]-1}let u=a,c=u+i-1;for(;u<=c;){const l=u+c>>>1,h=e[l];if(h<n)u=l+1;else if(h>n)c=l-1;else return e[l+i]}return-1}Zn(Wa),Zn(Kn);const Jn=/["&'<>$\x80-\uFFFF]/g,Ys=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),qs=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function ei(e){let t="",a=0,n;for(;(n=Jn.exec(e))!==null;){const i=n.index,s=e.charCodeAt(i),u=Ys.get(s);u!==void 0?(t+=e.substring(a,i)+u,a=i+1):(t+=`${e.substring(a,i)}&#x${qs(e,i).toString(16)};`,a=Jn.lastIndex+=+((s&64512)===55296))}return t+e.substr(a)}function ti(e,t){return function(n){let i,s=0,u="";for(;i=e.exec(n);)s!==i.index&&(u+=n.substring(s,i.index)),u+=t.get(i[0].charCodeAt(0)),s=i.index+1;return u+n.substring(s)}}const ai=ti(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),ni=ti(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),Ws=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),$s=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Gs=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Xs(e){return e.replace(/"/g,"&quot;")}function Qs(e,t){var a;if(!e)return;const n=((a=t.encodeEntities)!==null&&a!==void 0?a:t.decodeEntities)===!1?Xs:t.xmlMode||t.encodeEntities!=="utf8"?ei:ai;return Object.keys(e).map(i=>{var s,u;const c=(s=e[i])!==null&&s!==void 0?s:"";return t.xmlMode==="foreign"&&(i=(u=$s.get(i))!==null&&u!==void 0?u:i),!t.emptyAttrs&&!t.xmlMode&&c===""?i:`${i}="${n(c)}"`}).join(" ")}const ii=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function sa(e,t={}){const a="length"in e?e:[e];let n="";for(let i=0;i<a.length;i++)n+=js(a[i],t);return n}function js(e,t){switch(e.type){case Ss:return sa(e.children,t);case Ms:case xs:return Js(e);case Ds:return au(e);case ks:return tu(e);case Ls:case ys:case Rs:return Zs(e,t);case Os:return eu(e,t)}}const zs=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Ks=new Set(["svg","math"]);function Zs(e,t){var a;t.xmlMode==="foreign"&&(e.name=(a=Ws.get(e.name))!==null&&a!==void 0?a:e.name,e.parent&&zs.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&Ks.has(e.name)&&(t={...t,xmlMode:"foreign"});let n=`<${e.name}`;const i=Qs(e.attribs,t);return i&&(n+=` ${i}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&ii.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=sa(e.children,t)),(t.xmlMode||!ii.has(e.name))&&(n+=`</${e.name}>`)),n}function Js(e){return`<${e.data}>`}function eu(e,t){var a;let n=e.data||"";return((a=t.encodeEntities)!==null&&a!==void 0?a:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&Gs.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!=="utf8"?ei(n):ni(n)),n}function tu(e){return`<![CDATA[${e.children[0].data}]]>`}function au(e){return`<!--${e.data}-->`}function ri(e,t){return sa(e,t)}function nu(e,t){return se(e)?e.children.map(a=>ri(a,t)).join(""):""}function ua(e){return Array.isArray(e)?e.map(ua).join(""):B(e)?e.name==="br"?`
2
- `:ua(e.children):ia(e)?ua(e.children):Me(e)?e.data:""}function Tt(e){return Array.isArray(e)?e.map(Tt).join(""):se(e)&&!ra(e)?Tt(e.children):Me(e)?e.data:""}function oa(e){return Array.isArray(e)?e.map(oa).join(""):se(e)&&(e.type===X.Tag||ia(e))?oa(e.children):Me(e)?e.data:""}function ca(e){return se(e)?e.children:[]}function si(e){return e.parent||null}function ui(e){const t=si(e);if(t!=null)return ca(t);const a=[e];let{prev:n,next:i}=e;for(;n!=null;)a.unshift(n),{prev:n}=n;for(;i!=null;)a.push(i),{next:i}=i;return a}function iu(e,t){var a;return(a=e.attribs)===null||a===void 0?void 0:a[t]}function ru(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function su(e){return e.name}function ja(e){let{next:t}=e;for(;t!==null&&!B(t);)({next:t}=t);return t}function za(e){let{prev:t}=e;for(;t!==null&&!B(t);)({prev:t}=t);return t}function at(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,a=t.lastIndexOf(e);a>=0&&t.splice(a,1)}e.next=null,e.prev=null,e.parent=null}function uu(e,t){const a=t.prev=e.prev;a&&(a.next=t);const n=t.next=e.next;n&&(n.prev=t);const i=t.parent=e.parent;if(i){const s=i.children;s[s.lastIndexOf(e)]=t,e.parent=null}}function ou(e,t){if(at(t),t.next=null,t.parent=e,e.children.push(t)>1){const a=e.children[e.children.length-2];a.next=t,t.prev=a}else t.prev=null}function cu(e,t){at(t);const{parent:a}=e,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=a,n){if(n.prev=t,a){const i=a.children;i.splice(i.lastIndexOf(n),0,t)}}else a&&a.children.push(t)}function lu(e,t){if(at(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const a=e.children[1];a.prev=t,t.next=a}else t.next=null}function du(e,t){at(t);const{parent:a}=e;if(a){const n=a.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=a,t.prev=e.prev,t.next=e,e.prev=t}function la(e,t,a=!0,n=1/0){return Ka(e,Array.isArray(t)?t:[t],a,n)}function Ka(e,t,a,n){const i=[],s=[t],u=[0];for(;;){if(u[0]>=s[0].length){if(u.length===1)return i;s.shift(),u.shift();continue}const c=s[0][u[0]++];if(e(c)&&(i.push(c),--n<=0))return i;a&&se(c)&&c.children.length>0&&(u.unshift(0),s.unshift(c.children))}}function hu(e,t){return t.find(e)}function Za(e,t,a=!0){let n=null;for(let i=0;i<t.length&&!n;i++){const s=t[i];if(B(s))e(s)?n=s:a&&s.children.length>0&&(n=Za(e,s.children,!0));else continue}return n}function oi(e,t){return t.some(a=>B(a)&&(e(a)||oi(e,a.children)))}function fu(e,t){const a=[],n=[t],i=[0];for(;;){if(i[0]>=n[0].length){if(n.length===1)return a;n.shift(),i.shift();continue}const s=n[0][i[0]++];B(s)&&(e(s)&&a.push(s),s.children.length>0&&(i.unshift(0),n.unshift(s.children)))}}const da={tag_name(e){return typeof e=="function"?t=>B(t)&&e(t.name):e==="*"?B:t=>B(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>Me(t)&&e(t.data):t=>Me(t)&&t.data===e}};function ci(e,t){return typeof t=="function"?a=>B(a)&&t(a.attribs[e]):a=>B(a)&&a.attribs[e]===t}function mu(e,t){return a=>e(a)||t(a)}function li(e){const t=Object.keys(e).map(a=>{const n=e[a];return Object.prototype.hasOwnProperty.call(da,a)?da[a](n):ci(a,n)});return t.length===0?null:t.reduce(mu)}function Eu(e,t){const a=li(e);return a?a(t):!0}function pu(e,t,a,n=1/0){const i=li(e);return i?la(i,t,a,n):[]}function Tu(e,t,a=!0){return Array.isArray(t)||(t=[t]),Za(ci("id",e),t,a)}function bt(e,t,a=!0,n=1/0){return la(da.tag_name(e),t,a,n)}function bu(e,t,a=!0,n=1/0){return la(da.tag_type(e),t,a,n)}function gu(e){let t=e.length;for(;--t>=0;){const a=e[t];if(t>0&&e.lastIndexOf(a,t-1)>=0){e.splice(t,1);continue}for(let n=a.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}var Oe;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(Oe||(Oe={}));function di(e,t){const a=[],n=[];if(e===t)return 0;let i=se(e)?e:e.parent;for(;i;)a.unshift(i),i=i.parent;for(i=se(t)?t:t.parent;i;)n.unshift(i),i=i.parent;const s=Math.min(a.length,n.length);let u=0;for(;u<s&&a[u]===n[u];)u++;if(u===0)return Oe.DISCONNECTED;const c=a[u-1],l=c.children,h=a[u],m=n[u];return l.indexOf(h)>l.indexOf(m)?c===t?Oe.FOLLOWING|Oe.CONTAINED_BY:Oe.FOLLOWING:c===e?Oe.PRECEDING|Oe.CONTAINS:Oe.PRECEDING}function gt(e){return e=e.filter((t,a,n)=>!n.includes(t,a+1)),e.sort((t,a)=>{const n=di(t,a);return n&Oe.PRECEDING?-1:n&Oe.FOLLOWING?1:0}),e}function _u(e){const t=ha(Su,e);return t?t.name==="feed"?Au(t):Nu(t):null}function Au(e){var t;const a=e.children,n={type:"atom",items:bt("entry",a).map(u=>{var c;const{children:l}=u,h={media:hi(l)};Ee(h,"id","id",l),Ee(h,"title","title",l);const m=(c=ha("link",l))===null||c===void 0?void 0:c.attribs.href;m&&(h.link=m);const p=Xe("summary",l)||Xe("content",l);p&&(h.description=p);const T=Xe("updated",l);return T&&(h.pubDate=new Date(T)),h})};Ee(n,"id","id",a),Ee(n,"title","title",a);const i=(t=ha("link",a))===null||t===void 0?void 0:t.attribs.href;i&&(n.link=i),Ee(n,"description","subtitle",a);const s=Xe("updated",a);return s&&(n.updated=new Date(s)),Ee(n,"author","email",a,!0),n}function Nu(e){var t,a;const n=(a=(t=ha("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&a!==void 0?a:[],i={type:e.name.substr(0,3),id:"",items:bt("item",e.children).map(u=>{const{children:c}=u,l={media:hi(c)};Ee(l,"id","guid",c),Ee(l,"title","title",c),Ee(l,"link","link",c),Ee(l,"description","description",c);const h=Xe("pubDate",c)||Xe("dc:date",c);return h&&(l.pubDate=new Date(h)),l})};Ee(i,"title","title",n),Ee(i,"link","link",n),Ee(i,"description","description",n);const s=Xe("lastBuildDate",n);return s&&(i.updated=new Date(s)),Ee(i,"author","managingEditor",n,!0),i}const Cu=["url","type","lang"],Iu=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function hi(e){return bt("media:content",e).map(t=>{const{attribs:a}=t,n={medium:a.medium,isDefault:!!a.isDefault};for(const i of Cu)a[i]&&(n[i]=a[i]);for(const i of Iu)a[i]&&(n[i]=parseInt(a[i],10));return a.expression&&(n.expression=a.expression),n})}function ha(e,t){return bt(e,t,!0,1)[0]}function Xe(e,t,a=!1){return Tt(bt(e,t,a,1)).trim()}function Ee(e,t,a,n,i=!1){const s=Xe(a,n,i);s&&(e[t]=s)}function Su(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const fa=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return Oe},append:cu,appendChild:ou,compareDocumentPosition:di,existsOne:oi,filter:la,find:Ka,findAll:fu,findOne:Za,findOneChild:hu,getAttributeValue:iu,getChildren:ca,getElementById:Tu,getElements:pu,getElementsByTagName:bt,getElementsByTagType:bu,getFeed:_u,getInnerHTML:nu,getName:su,getOuterHTML:ri,getParent:si,getSiblings:ui,getText:ua,hasAttrib:ru,hasChildren:se,innerText:oa,isCDATA:ia,isComment:ra,isDocument:$e,isTag:B,isText:Me,nextElementSibling:ja,prepend:du,prependChild:lu,prevElementSibling:za,removeElement:at,removeSubsets:gu,replaceElement:uu,testElement:Eu,textContent:Tt,uniqueSort:gt},Symbol.toStringTag,{value:"Module"})),Ou={_useHtmlParser2:!1};function Ja(e,t){if(!e)return t??Ou;const a={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(a._useHtmlParser2=!0,a.xmlMode=!0,e.xml!==!0&&Object.assign(a,e.xml)):e.xmlMode&&(a._useHtmlParser2=!0),a}function fi(e,t,a){return e?e(t??e._root.children,null,void 0,a).toString():""}function xu(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function Du(e,t){const a=xu(e)?(t=e,void 0):e,n={...this===null||this===void 0?void 0:this._options,...Ja(t)};return fi(this,a,n)}function Lu(e){const t={...this._options,xmlMode:!0};return fi(this,e,t)}function kt(e){const t=e??(this?this.root():[]);let a="";for(let n=0;n<t.length;n++)a+=Tt(t[n]);return a}function yu(e,t,a=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(a=t);const n=this.load(e,this._options,!1);return a||n("script").remove(),[...n.root()[0].children]}function Ru(){return this(this._root)}function mi(e,t){if(t===e)return!1;let a=t;for(;a&&a!==a.parent;)if(a=a.parent,a===e)return!0;return!1}function ku(e){return this.root().extract(e)}function Mu(e,t){if(!Ei(e)||!Ei(t))return;let a=e.length;const n=+t.length;for(let i=0;i<n;i++)e[a++]=t[i];return e.length=a,e}function Ei(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}const wu=Object.freeze(Object.defineProperty({__proto__:null,contains:mi,extract:ku,html:Du,merge:Mu,parseHTML:yu,root:Ru,text:kt,xml:Lu},Symbol.toStringTag,{value:"Module"}));function He(e){return e.cheerio!=null}function Pu(e){return e.replace(/[._-](\w|$)/g,(t,a)=>a.toUpperCase())}function Bu(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function ae(e,t){const a=e.length;for(let n=0;n<a;n++)t(e[n],n);return e}var nt;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(nt||(nt={}));function en(e){const t=e.indexOf("<");if(t<0||t>e.length-3)return!1;const a=e.charCodeAt(t+1);return(a>=nt.LowerA&&a<=nt.LowerZ||a>=nt.UpperA&&a<=nt.UpperZ||a===nt.Exclamation)&&e.includes(">",t+2)}const Mt=Object.prototype.hasOwnProperty,wt=/\s+/,tn="data-",an=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,vu=/^{[^]*}$|^\[[^]*]$/;function ma(e,t,a){var n;if(!(!e||!B(e))){if((n=e.attribs)!==null&&n!==void 0||(e.attribs={}),!t)return e.attribs;if(Mt.call(e.attribs,t))return!a&&an.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return kt(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function _t(e,t,a){a===null?gi(e,t):e.attribs[t]=`${a}`}function Uu(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return ae(this,(a,n)=>{B(a)&&_t(a,e,t.call(a,n,a.attribs[e]))})}return ae(this,a=>{if(B(a))if(typeof e=="object")for(const n of Object.keys(e)){const i=e[n];_t(a,n,i)}else _t(a,e,t)})}return arguments.length>1?this:ma(this[0],e,this.options.xmlMode)}function pi(e,t,a){return t in e?e[t]:!a&&an.test(t)?ma(e,t,!1)!==void 0:ma(e,t,a)}function nn(e,t,a,n){t in e?e[t]=a:_t(e,t,!n&&an.test(t)?a?"":null:`${a}`)}function Fu(e,t){var a;if(typeof e=="string"&&t===void 0){const n=this[0];if(!n||!B(n))return;switch(e){case"style":{const i=this.css(),s=Object.keys(i);for(let u=0;u<s.length;u++)i[u]=s[u];return i.length=s.length,i}case"tagName":case"nodeName":return n.name.toUpperCase();case"href":case"src":{const i=(a=n.attribs)===null||a===void 0?void 0:a[e];return typeof URL<"u"&&(e==="href"&&(n.tagName==="a"||n.tagName==="link")||e==="src"&&(n.tagName==="img"||n.tagName==="iframe"||n.tagName==="audio"||n.tagName==="video"||n.tagName==="source"))&&i!==void 0&&this.options.baseURI?new URL(i,this.options.baseURI).href:i}case"innerText":return oa(n);case"textContent":return Tt(n);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return pi(n,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return ae(this,(n,i)=>{B(n)&&nn(n,e,t.call(n,i,pi(n,e,this.options.xmlMode)),this.options.xmlMode)})}return ae(this,n=>{if(B(n))if(typeof e=="object")for(const i of Object.keys(e)){const s=e[i];nn(n,i,s,this.options.xmlMode)}else nn(n,e,t,this.options.xmlMode)})}}function Ti(e,t,a){var n;(n=e.data)!==null&&n!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&a!==void 0&&(e.data[t]=a)}function Hu(e){for(const t of Object.keys(e.attribs)){if(!t.startsWith(tn))continue;const a=Pu(t.slice(tn.length));Mt.call(e.data,a)||(e.data[a]=bi(e.attribs[t]))}return e.data}function Vu(e,t){const a=tn+Bu(t),n=e.data;if(Mt.call(n,t))return n[t];if(Mt.call(e.attribs,a))return n[t]=bi(e.attribs[a])}function bi(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);if(e===String(t))return t;if(vu.test(e))try{return JSON.parse(e)}catch{}return e}function Yu(e,t){var a;const n=this[0];if(!n||!B(n))return;const i=n;return(a=i.data)!==null&&a!==void 0||(i.data={}),e==null?Hu(i):typeof e=="object"||t!==void 0?(ae(this,s=>{B(s)&&(typeof e=="object"?Ti(s,e):Ti(s,e,t))}),this):Vu(i,e)}function qu(e){const t=arguments.length===0,a=this[0];if(!a||!B(a))return t?void 0:this;switch(a.name){case"textarea":return this.text(e);case"select":{const n=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");const i=typeof e=="object"?e:[e];for(const s of i)this.find(`option[value="${s}"]`).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(i=>kt(i.children)):n.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function gi(e,t){!e.attribs||!Mt.call(e.attribs,t)||delete e.attribs[t]}function Ea(e){return e?e.trim().split(wt):[]}function Wu(e){const t=Ea(e);for(const a of t)ae(this,n=>{B(n)&&gi(n,a)});return this}function $u(e){return this.toArray().some(t=>{const a=B(t)&&t.attribs.class;let n=-1;if(a&&e.length>0)for(;(n=a.indexOf(e,n+1))>-1;){const i=n+e.length;if((n===0||wt.test(a[n-1]))&&(i===a.length||wt.test(a[i])))return!0}return!1})}function _i(e){if(typeof e=="function")return ae(this,(n,i)=>{if(B(n)){const s=n.attribs.class||"";_i.call([n],e.call(n,i,s))}});if(!e||typeof e!="string")return this;const t=e.split(wt),a=this.length;for(let n=0;n<a;n++){const i=this[n];if(!B(i))continue;const s=ma(i,"class",!1);if(s){let u=` ${s} `;for(const c of t){const l=`${c} `;u.includes(` ${l}`)||(u+=l)}_t(i,"class",u.trim())}else _t(i,"class",t.join(" ").trim())}return this}function Ai(e){if(typeof e=="function")return ae(this,(i,s)=>{B(i)&&Ai.call([i],e.call(i,s,i.attribs.class||""))});const t=Ea(e),a=t.length,n=arguments.length===0;return ae(this,i=>{if(B(i))if(n)i.attribs.class="";else{const s=Ea(i.attribs.class);let u=!1;for(let c=0;c<a;c++){const l=s.indexOf(t[c]);l>=0&&(s.splice(l,1),u=!0,c--)}u&&(i.attribs.class=s.join(" "))}})}function Ni(e,t){if(typeof e=="function")return ae(this,(u,c)=>{B(u)&&Ni.call([u],e.call(u,c,u.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const a=e.split(wt),n=a.length,i=typeof t=="boolean"?t?1:-1:0,s=this.length;for(let u=0;u<s;u++){const c=this[u];if(!B(c))continue;const l=Ea(c.attribs.class);for(let h=0;h<n;h++){const m=l.indexOf(a[h]);i>=0&&m<0?l.push(a[h]):i<=0&&m>=0&&l.splice(m,1)}c.attribs.class=l.join(" ")}return this}const Gu=Object.freeze(Object.defineProperty({__proto__:null,addClass:_i,attr:Uu,data:Yu,hasClass:$u,prop:Fu,removeAttr:Wu,removeClass:Ai,toggleClass:Ni,val:qu},Symbol.toStringTag,{value:"Module"}));var k;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(k||(k={}));var re;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(re||(re={}));const Ci=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Xu=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,Qu=new Map([[126,re.Element],[94,re.Start],[36,re.End],[42,re.Any],[33,re.Not],[124,re.Hyphen]]),ju=new Set(["has","not","matches","is","where","host","host-context"]);function Pt(e){switch(e.type){case k.Adjacent:case k.Child:case k.Descendant:case k.Parent:case k.Sibling:case k.ColumnCombinator:return!0;default:return!1}}const zu=new Set(["contains","icontains"]);function Ku(e,t,a){const n=parseInt(t,16)-65536;return n!==n||a?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}function Bt(e){return e.replace(Xu,Ku)}function rn(e){return e===39||e===34}function Ii(e){return e===32||e===9||e===10||e===12||e===13}function pa(e){const t=[],a=Si(t,`${e}`,0);if(a<e.length)throw new Error(`Unmatched selector: ${e.slice(a)}`);return t}function Si(e,t,a){let n=[];function i(T){const _=t.slice(a+T).match(Ci);if(!_)throw new Error(`Expected name, found ${t.slice(a)}`);const[C]=_;return a+=T+C.length,Bt(C)}function s(T){for(a+=T;a<t.length&&Ii(t.charCodeAt(a));)a++}function u(){a+=1;const T=a;let _=1;for(;_>0&&a<t.length;a++)t.charCodeAt(a)===40&&!c(a)?_++:t.charCodeAt(a)===41&&!c(a)&&_--;if(_)throw new Error("Parenthesis not matched");return Bt(t.slice(T,a-1))}function c(T){let _=0;for(;t.charCodeAt(--T)===92;)_++;return(_&1)===1}function l(){if(n.length>0&&Pt(n[n.length-1]))throw new Error("Did not expect successive traversals.")}function h(T){if(n.length>0&&n[n.length-1].type===k.Descendant){n[n.length-1].type=T;return}l(),n.push({type:T})}function m(T,_){n.push({type:k.Attribute,name:T,action:_,value:i(1),namespace:null,ignoreCase:"quirks"})}function p(){if(n.length&&n[n.length-1].type===k.Descendant&&n.pop(),n.length===0)throw new Error("Empty sub-selector");e.push(n)}if(s(0),t.length===a)return a;e:for(;a<t.length;){const T=t.charCodeAt(a);switch(T){case 32:case 9:case 10:case 12:case 13:{(n.length===0||n[0].type!==k.Descendant)&&(l(),n.push({type:k.Descendant})),s(1);break}case 62:{h(k.Child),s(1);break}case 60:{h(k.Parent),s(1);break}case 126:{h(k.Sibling),s(1);break}case 43:{h(k.Adjacent),s(1);break}case 46:{m("class",re.Element);break}case 35:{m("id",re.Equals);break}case 91:{s(1);let _,C=null;t.charCodeAt(a)===124?_=i(1):t.startsWith("*|",a)?(C="*",_=i(2)):(_=i(0),t.charCodeAt(a)===124&&t.charCodeAt(a+1)!==61&&(C=_,_=i(1))),s(0);let L=re.Exists;const R=Qu.get(t.charCodeAt(a));if(R){if(L=R,t.charCodeAt(a+1)!==61)throw new Error("Expected `=`");s(2)}else t.charCodeAt(a)===61&&(L=re.Equals,s(1));let V="",v=null;if(L!=="exists"){if(rn(t.charCodeAt(a))){const H=t.charCodeAt(a);let A=a+1;for(;A<t.length&&(t.charCodeAt(A)!==H||c(A));)A+=1;if(t.charCodeAt(A)!==H)throw new Error("Attribute value didn't end");V=Bt(t.slice(a+1,A)),a=A+1}else{const H=a;for(;a<t.length&&(!Ii(t.charCodeAt(a))&&t.charCodeAt(a)!==93||c(a));)a+=1;V=Bt(t.slice(H,a))}s(0);const z=t.charCodeAt(a)|32;z===115?(v=!1,s(1)):z===105&&(v=!0,s(1))}if(t.charCodeAt(a)!==93)throw new Error("Attribute selector didn't terminate");a+=1;const F={type:k.Attribute,name:_,action:L,value:V,namespace:C,ignoreCase:v};n.push(F);break}case 58:{if(t.charCodeAt(a+1)===58){n.push({type:k.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(a)===40?u():null});continue}const _=i(1).toLowerCase();let C=null;if(t.charCodeAt(a)===40)if(ju.has(_)){if(rn(t.charCodeAt(a+1)))throw new Error(`Pseudo-selector ${_} cannot be quoted`);if(C=[],a=Si(C,t,a+1),t.charCodeAt(a)!==41)throw new Error(`Missing closing parenthesis in :${_} (${t})`);a+=1}else{if(C=u(),zu.has(_)){const L=C.charCodeAt(0);L===C.charCodeAt(C.length-1)&&rn(L)&&(C=C.slice(1,-1))}C=Bt(C)}n.push({type:k.Pseudo,name:_,data:C});break}case 44:{p(),n=[],s(1);break}default:{if(t.startsWith("/*",a)){const L=t.indexOf("*/",a+2);if(L<0)throw new Error("Comment was not terminated");a=L+2,n.length===0&&s(0);break}let _=null,C;if(T===42)a+=1,C="*";else if(T===124){if(C="",t.charCodeAt(a+1)===124){h(k.ColumnCombinator),s(2);break}}else if(Ci.test(t.slice(a)))C=i(0);else break e;t.charCodeAt(a)===124&&t.charCodeAt(a+1)!==124&&(_=C,t.charCodeAt(a+1)===42?(C="*",a+=2):C=i(1)),n.push(C==="*"?{type:k.Universal,namespace:_}:{type:k.Tag,name:C,namespace:_})}}}return p(),a}function Zu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ta={trueFunc:function(){return!0},falseFunc:function(){return!1}};const Y=Zu(Ta),Oi=new Map([[k.Universal,50],[k.Tag,30],[k.Attribute,1],[k.Pseudo,0]]);function sn(e){return!Oi.has(e.type)}const Ju=new Map([[re.Exists,10],[re.Equals,8],[re.Not,7],[re.Start,6],[re.End,6],[re.Any,5]]);function eo(e){const t=e.map(xi);for(let a=1;a<e.length;a++){const n=t[a];if(!(n<0))for(let i=a-1;i>=0&&n<t[i];i--){const s=e[i+1];e[i+1]=e[i],e[i]=s,t[i+1]=t[i],t[i]=n}}}function xi(e){var t,a;let n=(t=Oi.get(e.type))!==null&&t!==void 0?t:-1;return e.type===k.Attribute?(n=(a=Ju.get(e.action))!==null&&a!==void 0?a:4,e.action===re.Equals&&e.name==="id"&&(n=9),e.ignoreCase&&(n>>=1)):e.type===k.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?n=0:Array.isArray(e.data)?(n=Math.min(...e.data.map(i=>Math.min(...i.map(xi)))),n<0&&(n=0)):n=2:n=3),n}const to=/[-[\]{}()*+?.,\\^$|#\s]/g;function Di(e){return e.replace(to,"\\$&")}const ao=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function it(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&ao.has(e.name)}const no={equals(e,t,a){const{adapter:n}=a,{name:i}=t;let{value:s}=t;return it(t,a)?(s=s.toLowerCase(),u=>{const c=n.getAttributeValue(u,i);return c!=null&&c.length===s.length&&c.toLowerCase()===s&&e(u)}):u=>n.getAttributeValue(u,i)===s&&e(u)},hyphen(e,t,a){const{adapter:n}=a,{name:i}=t;let{value:s}=t;const u=s.length;return it(t,a)?(s=s.toLowerCase(),function(l){const h=n.getAttributeValue(l,i);return h!=null&&(h.length===u||h.charAt(u)==="-")&&h.substr(0,u).toLowerCase()===s&&e(l)}):function(l){const h=n.getAttributeValue(l,i);return h!=null&&(h.length===u||h.charAt(u)==="-")&&h.substr(0,u)===s&&e(l)}},element(e,t,a){const{adapter:n}=a,{name:i,value:s}=t;if(/\s/.test(s))return Y.falseFunc;const u=new RegExp(`(?:^|\\s)${Di(s)}(?:$|\\s)`,it(t,a)?"i":"");return function(l){const h=n.getAttributeValue(l,i);return h!=null&&h.length>=s.length&&u.test(h)&&e(l)}},exists(e,{name:t},{adapter:a}){return n=>a.hasAttrib(n,t)&&e(n)},start(e,t,a){const{adapter:n}=a,{name:i}=t;let{value:s}=t;const u=s.length;return u===0?Y.falseFunc:it(t,a)?(s=s.toLowerCase(),c=>{const l=n.getAttributeValue(c,i);return l!=null&&l.length>=u&&l.substr(0,u).toLowerCase()===s&&e(c)}):c=>{var l;return!!(!((l=n.getAttributeValue(c,i))===null||l===void 0)&&l.startsWith(s))&&e(c)}},end(e,t,a){const{adapter:n}=a,{name:i}=t;let{value:s}=t;const u=-s.length;return u===0?Y.falseFunc:it(t,a)?(s=s.toLowerCase(),c=>{var l;return((l=n.getAttributeValue(c,i))===null||l===void 0?void 0:l.substr(u).toLowerCase())===s&&e(c)}):c=>{var l;return!!(!((l=n.getAttributeValue(c,i))===null||l===void 0)&&l.endsWith(s))&&e(c)}},any(e,t,a){const{adapter:n}=a,{name:i,value:s}=t;if(s==="")return Y.falseFunc;if(it(t,a)){const u=new RegExp(Di(s),"i");return function(l){const h=n.getAttributeValue(l,i);return h!=null&&h.length>=s.length&&u.test(h)&&e(l)}}return u=>{var c;return!!(!((c=n.getAttributeValue(u,i))===null||c===void 0)&&c.includes(s))&&e(u)}},not(e,t,a){const{adapter:n}=a,{name:i}=t;let{value:s}=t;return s===""?u=>!!n.getAttributeValue(u,i)&&e(u):it(t,a)?(s=s.toLowerCase(),u=>{const c=n.getAttributeValue(u,i);return(c==null||c.length!==s.length||c.toLowerCase()!==s)&&e(u)}):u=>n.getAttributeValue(u,i)!==s&&e(u)}},io=new Set([9,10,12,13,32]),Li=48,ro=57;function so(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,a=0,n=s(),i=u();if(t<e.length&&e.charAt(t)==="n"&&(t++,a=n*(i??1),c(),t<e.length?(n=s(),c(),i=u()):n=i=0),i===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[a,n*i];function s(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function u(){const l=t;let h=0;for(;t<e.length&&e.charCodeAt(t)>=Li&&e.charCodeAt(t)<=ro;)h=h*10+(e.charCodeAt(t)-Li),t++;return t===l?null:h}function c(){for(;t<e.length&&io.has(e.charCodeAt(t));)t++}}function uo(e){const t=e[0],a=e[1]-1;if(a<0&&t<=0)return Y.falseFunc;if(t===-1)return s=>s<=a;if(t===0)return s=>s===a;if(t===1)return a<0?Y.trueFunc:s=>s>=a;const n=Math.abs(t),i=(a%n+n)%n;return t>1?s=>s>=a&&s%n===i:s=>s<=a&&s%n===i}function ba(e){return uo(so(e))}function ga(e,t){return a=>{const n=t.getParent(a);return n!=null&&t.isTag(n)&&e(a)}}const un={contains(e,t,{adapter:a}){return function(i){return e(i)&&a.getText(i).includes(t)}},icontains(e,t,{adapter:a}){const n=t.toLowerCase();return function(s){return e(s)&&a.getText(s).toLowerCase().includes(n)}},"nth-child"(e,t,{adapter:a,equals:n}){const i=ba(t);return i===Y.falseFunc?Y.falseFunc:i===Y.trueFunc?ga(e,a):function(u){const c=a.getSiblings(u);let l=0;for(let h=0;h<c.length&&!n(u,c[h]);h++)a.isTag(c[h])&&l++;return i(l)&&e(u)}},"nth-last-child"(e,t,{adapter:a,equals:n}){const i=ba(t);return i===Y.falseFunc?Y.falseFunc:i===Y.trueFunc?ga(e,a):function(u){const c=a.getSiblings(u);let l=0;for(let h=c.length-1;h>=0&&!n(u,c[h]);h--)a.isTag(c[h])&&l++;return i(l)&&e(u)}},"nth-of-type"(e,t,{adapter:a,equals:n}){const i=ba(t);return i===Y.falseFunc?Y.falseFunc:i===Y.trueFunc?ga(e,a):function(u){const c=a.getSiblings(u);let l=0;for(let h=0;h<c.length;h++){const m=c[h];if(n(u,m))break;a.isTag(m)&&a.getName(m)===a.getName(u)&&l++}return i(l)&&e(u)}},"nth-last-of-type"(e,t,{adapter:a,equals:n}){const i=ba(t);return i===Y.falseFunc?Y.falseFunc:i===Y.trueFunc?ga(e,a):function(u){const c=a.getSiblings(u);let l=0;for(let h=c.length-1;h>=0;h--){const m=c[h];if(n(u,m))break;a.isTag(m)&&a.getName(m)===a.getName(u)&&l++}return i(l)&&e(u)}},root(e,t,{adapter:a}){return n=>{const i=a.getParent(n);return(i==null||!a.isTag(i))&&e(n)}},scope(e,t,a,n){const{equals:i}=a;return!n||n.length===0?un.root(e,t,a):n.length===1?s=>i(n[0],s)&&e(s):s=>n.includes(s)&&e(s)},hover:on("isHovered"),visited:on("isVisited"),active:on("isActive")};function on(e){return function(a,n,{adapter:i}){const s=i[e];return typeof s!="function"?Y.falseFunc:function(c){return s(c)&&a(c)}}}const yi={empty(e,{adapter:t}){return!t.getChildren(e).some(a=>t.isTag(a)||t.getText(a)!=="")},"first-child"(e,{adapter:t,equals:a}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;const n=t.getSiblings(e).find(i=>t.isTag(i));return n!=null&&a(e,n)},"last-child"(e,{adapter:t,equals:a}){const n=t.getSiblings(e);for(let i=n.length-1;i>=0;i--){if(a(e,n[i]))return!0;if(t.isTag(n[i]))break}return!1},"first-of-type"(e,{adapter:t,equals:a}){const n=t.getSiblings(e),i=t.getName(e);for(let s=0;s<n.length;s++){const u=n[s];if(a(e,u))return!0;if(t.isTag(u)&&t.getName(u)===i)break}return!1},"last-of-type"(e,{adapter:t,equals:a}){const n=t.getSiblings(e),i=t.getName(e);for(let s=n.length-1;s>=0;s--){const u=n[s];if(a(e,u))return!0;if(t.isTag(u)&&t.getName(u)===i)break}return!1},"only-of-type"(e,{adapter:t,equals:a}){const n=t.getName(e);return t.getSiblings(e).every(i=>a(e,i)||!t.isTag(i)||t.getName(i)!==n)},"only-child"(e,{adapter:t,equals:a}){return t.getSiblings(e).every(n=>a(e,n)||!t.isTag(n))}};function Ri(e,t,a,n){if(a===null){if(e.length>n)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===n)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const oo={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
1
+ (function(Ie,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(Ie=typeof globalThis<"u"?globalThis:Ie||self,l(Ie.GpWebModule={},Ie.Vue))})(this,function(Ie,l){"use strict";var nA;(function(A){A.Root="root",A.Text="text",A.Directive="directive",A.Comment="comment",A.Script="script",A.Style="style",A.Tag="tag",A.CDATA="cdata",A.Doctype="doctype"})(nA||(nA={}));function Yl(A){return A.type===nA.Tag||A.type===nA.Script||A.type===nA.Style}const Xl=nA.Root,Wl=nA.Text,Jl=nA.Directive,ql=nA.Comment,Zl=nA.Script,$l=nA.Style,jl=nA.Tag,zl=nA.CDATA,A0=nA.Doctype;let li=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Ot(this,e)}};class na extends li{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class Dt extends na{constructor(){super(...arguments),this.type=nA.Text}get nodeType(){return 3}}class aa extends na{constructor(){super(...arguments),this.type=nA.Comment}get nodeType(){return 8}}class sa extends na{constructor(e,t){super(t),this.name=e,this.type=nA.Directive}get nodeType(){return 1}}class ia extends li{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class fi extends ia{constructor(){super(...arguments),this.type=nA.CDATA}get nodeType(){return 4}}class We extends ia{constructor(){super(...arguments),this.type=nA.Root}get nodeType(){return 9}}class ua extends ia{constructor(e,t,r=[],n=e==="script"?nA.Script:e==="style"?nA.Style:nA.Tag){super(r),this.name=e,this.attribs=t,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var t,r;return{name:e,value:this.attribs[e],namespace:(t=this["x-attribsNamespace"])===null||t===void 0?void 0:t[e],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[e]}})}}function X(A){return Yl(A)}function Sr(A){return A.type===nA.CDATA}function le(A){return A.type===nA.Text}function vr(A){return A.type===nA.Comment}function oa(A){return A.type===nA.Directive}function _e(A){return A.type===nA.Root}function FA(A){return Object.prototype.hasOwnProperty.call(A,"children")}function Ot(A,e=!1){let t;if(le(A))t=new Dt(A.data);else if(vr(A))t=new aa(A.data);else if(X(A)){const r=e?ca(A.children):[],n=new ua(A.name,{...A.attribs},r);r.forEach(a=>a.parent=n),A.namespace!=null&&(n.namespace=A.namespace),A["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...A["x-attribsNamespace"]}),A["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...A["x-attribsPrefix"]}),t=n}else if(Sr(A)){const r=e?ca(A.children):[],n=new fi(r);r.forEach(a=>a.parent=n),t=n}else if(_e(A)){const r=e?ca(A.children):[],n=new We(r);r.forEach(a=>a.parent=n),A["x-mode"]&&(n["x-mode"]=A["x-mode"]),t=n}else if(oa(A)){const r=new sa(A.name,A.data);A["x-name"]!=null&&(r["x-name"]=A["x-name"],r["x-publicId"]=A["x-publicId"],r["x-systemId"]=A["x-systemId"]),t=r}else throw new Error(`Not implemented yet: ${A.type}`);return t.startIndex=A.startIndex,t.endIndex=A.endIndex,A.sourceCodeLocation!=null&&(t.sourceCodeLocation=A.sourceCodeLocation),t}function ca(A){const e=A.map(t=>Ot(t,!0));for(let t=1;t<e.length;t++)e[t].prev=e[t-1],e[t-1].next=e[t];return e}const hi={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class e0{constructor(e,t,r){this.dom=[],this.root=new We(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof t=="function"&&(r=t,t=hi),typeof e=="object"&&(t=e,e=void 0),this.callback=e??null,this.options=t??hi,this.elementCB=r??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new We(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const r=this.options.xmlMode?nA.Tag:void 0,n=new ua(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)}ontext(e){const{lastNode:t}=this;if(t&&t.type===nA.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const r=new Dt(e);this.addNode(r),this.lastNode=r}}oncomment(e){if(this.lastNode&&this.lastNode.type===nA.Comment){this.lastNode.data+=e;return}const t=new aa(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new Dt(""),t=new fi([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const r=new sa(e,t);this.addNode(r)}handleCallback(e){if(typeof this.callback=="function")this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null}}const la=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(A=>A.charCodeAt(0))),di=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(A=>A.charCodeAt(0)));var fa;const t0=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ha=(fa=String.fromCodePoint)!==null&&fa!==void 0?fa:function(A){let e="";return A>65535&&(A-=65536,e+=String.fromCharCode(A>>>10&1023|55296),A=56320|A&1023),e+=String.fromCharCode(A),e};function r0(A){var e;return A>=55296&&A<=57343||A>1114111?65533:(e=t0.get(A))!==null&&e!==void 0?e:A}var IA;(function(A){A[A.NUM=35]="NUM",A[A.SEMI=59]="SEMI",A[A.EQUALS=61]="EQUALS",A[A.ZERO=48]="ZERO",A[A.NINE=57]="NINE",A[A.LOWER_A=97]="LOWER_A",A[A.LOWER_F=102]="LOWER_F",A[A.LOWER_X=120]="LOWER_X",A[A.LOWER_Z=122]="LOWER_Z",A[A.UPPER_A=65]="UPPER_A",A[A.UPPER_F=70]="UPPER_F",A[A.UPPER_Z=90]="UPPER_Z"})(IA||(IA={}));const n0=32;var ye;(function(A){A[A.VALUE_LENGTH=49152]="VALUE_LENGTH",A[A.BRANCH_LENGTH=16256]="BRANCH_LENGTH",A[A.JUMP_TABLE=127]="JUMP_TABLE"})(ye||(ye={}));function da(A){return A>=IA.ZERO&&A<=IA.NINE}function a0(A){return A>=IA.UPPER_A&&A<=IA.UPPER_F||A>=IA.LOWER_A&&A<=IA.LOWER_F}function s0(A){return A>=IA.UPPER_A&&A<=IA.UPPER_Z||A>=IA.LOWER_A&&A<=IA.LOWER_Z||da(A)}function i0(A){return A===IA.EQUALS||s0(A)}var _A;(function(A){A[A.EntityStart=0]="EntityStart",A[A.NumericStart=1]="NumericStart",A[A.NumericDecimal=2]="NumericDecimal",A[A.NumericHex=3]="NumericHex",A[A.NamedEntity=4]="NamedEntity"})(_A||(_A={}));var jA;(function(A){A[A.Legacy=0]="Legacy",A[A.Strict=1]="Strict",A[A.Attribute=2]="Attribute"})(jA||(jA={}));class Ba{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=_A.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=jA.Strict}startEntity(e){this.decodeMode=e,this.state=_A.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case _A.EntityStart:return e.charCodeAt(t)===IA.NUM?(this.state=_A.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=_A.NamedEntity,this.stateNamedEntity(e,t));case _A.NumericStart:return this.stateNumericStart(e,t);case _A.NumericDecimal:return this.stateNumericDecimal(e,t);case _A.NumericHex:return this.stateNumericHex(e,t);case _A.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|n0)===IA.LOWER_X?(this.state=_A.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=_A.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){const a=r-t;this.result=this.result*Math.pow(n,a)+parseInt(e.substr(t,a),n),this.consumed+=a}}stateNumericHex(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(da(n)||a0(n))t+=1;else return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(da(n))t+=1;else return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===IA.SEMI)this.consumed+=1;else if(this.decodeMode===jA.Strict)return 0;return this.emitCodePoint(r0(this.result),this.consumed),this.errors&&(e!==IA.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:r}=this;let n=r[this.treeIndex],a=(n&ye.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);if(this.treeIndex=u0(r,n,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===jA.Attribute&&(a===0||i0(s))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],a=(n&ye.VALUE_LENGTH)>>14,a!==0){if(s===IA.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==jA.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,n=(r[t]&ye.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:n}=this;return this.emitCodePoint(t===1?n[e]&~ye.VALUE_LENGTH:n[e+1],r),t===3&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case _A.NamedEntity:return this.result!==0&&(this.decodeMode!==jA.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _A.NumericDecimal:return this.emitNumericEntity(0,2);case _A.NumericHex:return this.emitNumericEntity(0,3);case _A.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _A.EntityStart:return 0}}}function Bi(A){let e="";const t=new Ba(A,r=>e+=ha(r));return function(n,a){let s=0,u=0;for(;(u=n.indexOf("&",u))>=0;){e+=n.slice(s,u),t.startEntity(a);const c=t.write(n,u+1);if(c<0){s=u+t.end();break}s=u+c,u=c===0?s+1:s}const o=e+n.slice(s);return e="",o}}function u0(A,e,t,r){const n=(e&ye.BRANCH_LENGTH)>>7,a=e&ye.JUMP_TABLE;if(n===0)return a!==0&&r===a?t:-1;if(a){const o=r-a;return o<0||o>=n?-1:A[t+o]-1}let s=t,u=s+n-1;for(;s<=u;){const o=s+u>>>1,c=A[o];if(c<r)s=o+1;else if(c>r)u=o-1;else return A[o+n]}return-1}Bi(la),Bi(di);const gi=/["&'<>$\x80-\uFFFF]/g,o0=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),c0=String.prototype.codePointAt!=null?(A,e)=>A.codePointAt(e):(A,e)=>(A.charCodeAt(e)&64512)===55296?(A.charCodeAt(e)-55296)*1024+A.charCodeAt(e+1)-56320+65536:A.charCodeAt(e);function Ei(A){let e="",t=0,r;for(;(r=gi.exec(A))!==null;){const n=r.index,a=A.charCodeAt(n),s=o0.get(a);s!==void 0?(e+=A.substring(t,n)+s,t=n+1):(e+=`${A.substring(t,n)}&#x${c0(A,n).toString(16)};`,t=gi.lastIndex+=+((a&64512)===55296))}return e+A.substr(t)}function pi(A,e){return function(r){let n,a=0,s="";for(;n=A.exec(r);)a!==n.index&&(s+=r.substring(a,n.index)),s+=e.get(n[0].charCodeAt(0)),a=n.index+1;return s+r.substring(a)}}const Ci=pi(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),mi=pi(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),l0=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(A=>[A.toLowerCase(),A])),f0=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(A=>[A.toLowerCase(),A])),h0=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function d0(A){return A.replace(/"/g,"&quot;")}function B0(A,e){var t;if(!A)return;const r=((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)===!1?d0:e.xmlMode||e.encodeEntities!=="utf8"?Ei:Ci;return Object.keys(A).map(n=>{var a,s;const u=(a=A[n])!==null&&a!==void 0?a:"";return e.xmlMode==="foreign"&&(n=(s=f0.get(n))!==null&&s!==void 0?s:n),!e.emptyAttrs&&!e.xmlMode&&u===""?n:`${n}="${r(u)}"`}).join(" ")}const wi=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Lr(A,e={}){const t="length"in A?A:[A];let r="";for(let n=0;n<t.length;n++)r+=g0(t[n],e);return r}function g0(A,e){switch(A.type){case Xl:return Lr(A.children,e);case A0:case Jl:return m0(A);case ql:return b0(A);case zl:return T0(A);case Zl:case $l:case jl:return C0(A,e);case Wl:return w0(A,e)}}const E0=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),p0=new Set(["svg","math"]);function C0(A,e){var t;e.xmlMode==="foreign"&&(A.name=(t=l0.get(A.name))!==null&&t!==void 0?t:A.name,A.parent&&E0.has(A.parent.name)&&(e={...e,xmlMode:!1})),!e.xmlMode&&p0.has(A.name)&&(e={...e,xmlMode:"foreign"});let r=`<${A.name}`;const n=B0(A.attribs,e);return n&&(r+=` ${n}`),A.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&wi.has(A.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",A.children.length>0&&(r+=Lr(A.children,e)),(e.xmlMode||!wi.has(A.name))&&(r+=`</${A.name}>`)),r}function m0(A){return`<${A.data}>`}function w0(A,e){var t;let r=A.data||"";return((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)!==!1&&!(!e.xmlMode&&A.parent&&h0.has(A.parent.name))&&(r=e.xmlMode||e.encodeEntities!=="utf8"?Ei(r):mi(r)),r}function T0(A){return`<![CDATA[${A.children[0].data}]]>`}function b0(A){return`<!--${A.data}-->`}function Ti(A,e){return Lr(A,e)}function U0(A,e){return FA(A)?A.children.map(t=>Ti(t,e)).join(""):""}function Hr(A){return Array.isArray(A)?A.map(Hr).join(""):X(A)?A.name==="br"?`
2
+ `:Hr(A.children):Sr(A)?Hr(A.children):le(A)?A.data:""}function lt(A){return Array.isArray(A)?A.map(lt).join(""):FA(A)&&!vr(A)?lt(A.children):le(A)?A.data:""}function xr(A){return Array.isArray(A)?A.map(xr).join(""):FA(A)&&(A.type===nA.Tag||Sr(A))?xr(A.children):le(A)?A.data:""}function Dr(A){return FA(A)?A.children:[]}function bi(A){return A.parent||null}function Ui(A){const e=bi(A);if(e!=null)return Dr(e);const t=[A];let{prev:r,next:n}=A;for(;r!=null;)t.unshift(r),{prev:r}=r;for(;n!=null;)t.push(n),{next:n}=n;return t}function Q0(A,e){var t;return(t=A.attribs)===null||t===void 0?void 0:t[e]}function F0(A,e){return A.attribs!=null&&Object.prototype.hasOwnProperty.call(A.attribs,e)&&A.attribs[e]!=null}function I0(A){return A.name}function ga(A){let{next:e}=A;for(;e!==null&&!X(e);)({next:e}=e);return e}function Ea(A){let{prev:e}=A;for(;e!==null&&!X(e);)({prev:e}=e);return e}function Je(A){if(A.prev&&(A.prev.next=A.next),A.next&&(A.next.prev=A.prev),A.parent){const e=A.parent.children,t=e.lastIndexOf(A);t>=0&&e.splice(t,1)}A.next=null,A.prev=null,A.parent=null}function _0(A,e){const t=e.prev=A.prev;t&&(t.next=e);const r=e.next=A.next;r&&(r.prev=e);const n=e.parent=A.parent;if(n){const a=n.children;a[a.lastIndexOf(A)]=e,A.parent=null}}function y0(A,e){if(Je(e),e.next=null,e.parent=A,A.children.push(e)>1){const t=A.children[A.children.length-2];t.next=e,e.prev=t}else e.prev=null}function N0(A,e){Je(e);const{parent:t}=A,r=A.next;if(e.next=r,e.prev=A,A.next=e,e.parent=t,r){if(r.prev=e,t){const n=t.children;n.splice(n.lastIndexOf(r),0,e)}}else t&&t.children.push(e)}function S0(A,e){if(Je(e),e.parent=A,e.prev=null,A.children.unshift(e)!==1){const t=A.children[1];t.prev=e,e.next=t}else e.next=null}function v0(A,e){Je(e);const{parent:t}=A;if(t){const r=t.children;r.splice(r.indexOf(A),0,e)}A.prev&&(A.prev.next=e),e.parent=t,e.prev=A.prev,e.next=A,A.prev=e}function Or(A,e,t=!0,r=1/0){return pa(A,Array.isArray(e)?e:[e],t,r)}function pa(A,e,t,r){const n=[],a=[e],s=[0];for(;;){if(s[0]>=a[0].length){if(s.length===1)return n;a.shift(),s.shift();continue}const u=a[0][s[0]++];if(A(u)&&(n.push(u),--r<=0))return n;t&&FA(u)&&u.children.length>0&&(s.unshift(0),a.unshift(u.children))}}function L0(A,e){return e.find(A)}function Ca(A,e,t=!0){let r=null;for(let n=0;n<e.length&&!r;n++){const a=e[n];if(X(a))A(a)?r=a:t&&a.children.length>0&&(r=Ca(A,a.children,!0));else continue}return r}function Qi(A,e){return e.some(t=>X(t)&&(A(t)||Qi(A,t.children)))}function H0(A,e){const t=[],r=[e],n=[0];for(;;){if(n[0]>=r[0].length){if(r.length===1)return t;r.shift(),n.shift();continue}const a=r[0][n[0]++];X(a)&&(A(a)&&t.push(a),a.children.length>0&&(n.unshift(0),r.unshift(a.children)))}}const Rr={tag_name(A){return typeof A=="function"?e=>X(e)&&A(e.name):A==="*"?X:e=>X(e)&&e.name===A},tag_type(A){return typeof A=="function"?e=>A(e.type):e=>e.type===A},tag_contains(A){return typeof A=="function"?e=>le(e)&&A(e.data):e=>le(e)&&e.data===A}};function Fi(A,e){return typeof e=="function"?t=>X(t)&&e(t.attribs[A]):t=>X(t)&&t.attribs[A]===e}function x0(A,e){return t=>A(t)||e(t)}function Ii(A){const e=Object.keys(A).map(t=>{const r=A[t];return Object.prototype.hasOwnProperty.call(Rr,t)?Rr[t](r):Fi(t,r)});return e.length===0?null:e.reduce(x0)}function D0(A,e){const t=Ii(A);return t?t(e):!0}function O0(A,e,t,r=1/0){const n=Ii(A);return n?Or(n,e,t,r):[]}function R0(A,e,t=!0){return Array.isArray(e)||(e=[e]),Ca(Fi("id",A),e,t)}function ft(A,e,t=!0,r=1/0){return Or(Rr.tag_name(A),e,t,r)}function M0(A,e,t=!0,r=1/0){return Or(Rr.tag_type(A),e,t,r)}function k0(A){let e=A.length;for(;--e>=0;){const t=A[e];if(e>0&&A.lastIndexOf(t,e-1)>=0){A.splice(e,1);continue}for(let r=t.parent;r;r=r.parent)if(A.includes(r)){A.splice(e,1);break}}return A}var zA;(function(A){A[A.DISCONNECTED=1]="DISCONNECTED",A[A.PRECEDING=2]="PRECEDING",A[A.FOLLOWING=4]="FOLLOWING",A[A.CONTAINS=8]="CONTAINS",A[A.CONTAINED_BY=16]="CONTAINED_BY"})(zA||(zA={}));function _i(A,e){const t=[],r=[];if(A===e)return 0;let n=FA(A)?A:A.parent;for(;n;)t.unshift(n),n=n.parent;for(n=FA(e)?e:e.parent;n;)r.unshift(n),n=n.parent;const a=Math.min(t.length,r.length);let s=0;for(;s<a&&t[s]===r[s];)s++;if(s===0)return zA.DISCONNECTED;const u=t[s-1],o=u.children,c=t[s],f=r[s];return o.indexOf(c)>o.indexOf(f)?u===e?zA.FOLLOWING|zA.CONTAINED_BY:zA.FOLLOWING:u===A?zA.PRECEDING|zA.CONTAINS:zA.PRECEDING}function ht(A){return A=A.filter((e,t,r)=>!r.includes(e,t+1)),A.sort((e,t)=>{const r=_i(e,t);return r&zA.PRECEDING?-1:r&zA.FOLLOWING?1:0}),A}function P0(A){const e=Mr(X0,A);return e?e.name==="feed"?K0(e):V0(e):null}function K0(A){var e;const t=A.children,r={type:"atom",items:ft("entry",t).map(s=>{var u;const{children:o}=s,c={media:yi(o)};KA(c,"id","id",o),KA(c,"title","title",o);const f=(u=Mr("link",o))===null||u===void 0?void 0:u.attribs.href;f&&(c.link=f);const h=Ne("summary",o)||Ne("content",o);h&&(c.description=h);const d=Ne("updated",o);return d&&(c.pubDate=new Date(d)),c})};KA(r,"id","id",t),KA(r,"title","title",t);const n=(e=Mr("link",t))===null||e===void 0?void 0:e.attribs.href;n&&(r.link=n),KA(r,"description","subtitle",t);const a=Ne("updated",t);return a&&(r.updated=new Date(a)),KA(r,"author","email",t,!0),r}function V0(A){var e,t;const r=(t=(e=Mr("channel",A.children))===null||e===void 0?void 0:e.children)!==null&&t!==void 0?t:[],n={type:A.name.substr(0,3),id:"",items:ft("item",A.children).map(s=>{const{children:u}=s,o={media:yi(u)};KA(o,"id","guid",u),KA(o,"title","title",u),KA(o,"link","link",u),KA(o,"description","description",u);const c=Ne("pubDate",u)||Ne("dc:date",u);return c&&(o.pubDate=new Date(c)),o})};KA(n,"title","title",r),KA(n,"link","link",r),KA(n,"description","description",r);const a=Ne("lastBuildDate",r);return a&&(n.updated=new Date(a)),KA(n,"author","managingEditor",r,!0),n}const G0=["url","type","lang"],Y0=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function yi(A){return ft("media:content",A).map(e=>{const{attribs:t}=e,r={medium:t.medium,isDefault:!!t.isDefault};for(const n of G0)t[n]&&(r[n]=t[n]);for(const n of Y0)t[n]&&(r[n]=parseInt(t[n],10));return t.expression&&(r.expression=t.expression),r})}function Mr(A,e){return ft(A,e,!0,1)[0]}function Ne(A,e,t=!1){return lt(ft(A,e,t,1)).trim()}function KA(A,e,t,r,n=!1){const a=Ne(t,r,n);a&&(A[e]=a)}function X0(A){return A==="rss"||A==="feed"||A==="rdf:RDF"}const kr=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return zA},append:N0,appendChild:y0,compareDocumentPosition:_i,existsOne:Qi,filter:Or,find:pa,findAll:H0,findOne:Ca,findOneChild:L0,getAttributeValue:Q0,getChildren:Dr,getElementById:R0,getElements:O0,getElementsByTagName:ft,getElementsByTagType:M0,getFeed:P0,getInnerHTML:U0,getName:I0,getOuterHTML:Ti,getParent:bi,getSiblings:Ui,getText:Hr,hasAttrib:F0,hasChildren:FA,innerText:xr,isCDATA:Sr,isComment:vr,isDocument:_e,isTag:X,isText:le,nextElementSibling:ga,prepend:v0,prependChild:S0,prevElementSibling:Ea,removeElement:Je,removeSubsets:k0,replaceElement:_0,testElement:D0,textContent:lt,uniqueSort:ht},Symbol.toStringTag,{value:"Module"})),W0={_useHtmlParser2:!1};function ma(A,e){if(!A)return e??W0;const t={_useHtmlParser2:!!A.xmlMode,...e,...A};return A.xml?(t._useHtmlParser2=!0,t.xmlMode=!0,A.xml!==!0&&Object.assign(t,A.xml)):A.xmlMode&&(t._useHtmlParser2=!0),t}function Ni(A,e,t){return A?A(e??A._root.children,null,void 0,t).toString():""}function J0(A,e){return typeof A=="object"&&A!=null&&!("length"in A)&&!("type"in A)}function q0(A,e){const t=J0(A)?(e=A,void 0):A,r={...this===null||this===void 0?void 0:this._options,...ma(e)};return Ni(this,t,r)}function Z0(A){const e={...this._options,xmlMode:!0};return Ni(this,A,e)}function Rt(A){const e=A??(this?this.root():[]);let t="";for(let r=0;r<e.length;r++)t+=lt(e[r]);return t}function $0(A,e,t=typeof e=="boolean"?e:!1){if(!A||typeof A!="string")return null;typeof e=="boolean"&&(t=e);const r=this.load(A,this._options,!1);return t||r("script").remove(),[...r.root()[0].children]}function j0(){return this(this._root)}function Si(A,e){if(e===A)return!1;let t=e;for(;t&&t!==t.parent;)if(t=t.parent,t===A)return!0;return!1}function z0(A){return this.root().extract(A)}function Af(A,e){if(!vi(A)||!vi(e))return;let t=A.length;const r=+e.length;for(let n=0;n<r;n++)A[t++]=e[n];return A.length=t,A}function vi(A){if(Array.isArray(A))return!0;if(typeof A!="object"||A===null||!("length"in A)||typeof A.length!="number"||A.length<0)return!1;for(let e=0;e<A.length;e++)if(!(e in A))return!1;return!0}const ef=Object.freeze(Object.defineProperty({__proto__:null,contains:Si,extract:z0,html:q0,merge:Af,parseHTML:$0,root:j0,text:Rt,xml:Z0},Symbol.toStringTag,{value:"Module"}));function me(A){return A.cheerio!=null}function tf(A){return A.replace(/[._-](\w|$)/g,(e,t)=>t.toUpperCase())}function rf(A){return A.replace(/[A-Z]/g,"-$&").toLowerCase()}function gA(A,e){const t=A.length;for(let r=0;r<t;r++)e(A[r],r);return A}var qe;(function(A){A[A.LowerA=97]="LowerA",A[A.LowerZ=122]="LowerZ",A[A.UpperA=65]="UpperA",A[A.UpperZ=90]="UpperZ",A[A.Exclamation=33]="Exclamation"})(qe||(qe={}));function wa(A){const e=A.indexOf("<");if(e<0||e>A.length-3)return!1;const t=A.charCodeAt(e+1);return(t>=qe.LowerA&&t<=qe.LowerZ||t>=qe.UpperA&&t<=qe.UpperZ||t===qe.Exclamation)&&A.includes(">",e+2)}const Mt=Object.prototype.hasOwnProperty,kt=/\s+/,Ta="data-",ba=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,nf=/^{[^]*}$|^\[[^]*]$/;function Pr(A,e,t){var r;if(!(!A||!X(A))){if((r=A.attribs)!==null&&r!==void 0||(A.attribs={}),!e)return A.attribs;if(Mt.call(A.attribs,e))return!t&&ba.test(e)?e:A.attribs[e];if(A.name==="option"&&e==="value")return Rt(A.children);if(A.name==="input"&&(A.attribs.type==="radio"||A.attribs.type==="checkbox")&&e==="value")return"on"}}function dt(A,e,t){t===null?Di(A,e):A.attribs[e]=`${t}`}function af(A,e){if(typeof A=="object"||e!==void 0){if(typeof e=="function"){if(typeof A!="string")throw new Error("Bad combination of arguments.");return gA(this,(t,r)=>{X(t)&&dt(t,A,e.call(t,r,t.attribs[A]))})}return gA(this,t=>{if(X(t))if(typeof A=="object")for(const r of Object.keys(A)){const n=A[r];dt(t,r,n)}else dt(t,A,e)})}return arguments.length>1?this:Pr(this[0],A,this.options.xmlMode)}function Li(A,e,t){return e in A?A[e]:!t&&ba.test(e)?Pr(A,e,!1)!==void 0:Pr(A,e,t)}function Ua(A,e,t,r){e in A?A[e]=t:dt(A,e,!r&&ba.test(e)?t?"":null:`${t}`)}function sf(A,e){var t;if(typeof A=="string"&&e===void 0){const r=this[0];if(!r||!X(r))return;switch(A){case"style":{const n=this.css(),a=Object.keys(n);for(let s=0;s<a.length;s++)n[s]=a[s];return n.length=a.length,n}case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":{const n=(t=r.attribs)===null||t===void 0?void 0:t[A];return typeof URL<"u"&&(A==="href"&&(r.tagName==="a"||r.tagName==="link")||A==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&n!==void 0&&this.options.baseURI?new URL(n,this.options.baseURI).href:n}case"innerText":return xr(r);case"textContent":return lt(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return Li(r,A,this.options.xmlMode)}}if(typeof A=="object"||e!==void 0){if(typeof e=="function"){if(typeof A=="object")throw new TypeError("Bad combination of arguments.");return gA(this,(r,n)=>{X(r)&&Ua(r,A,e.call(r,n,Li(r,A,this.options.xmlMode)),this.options.xmlMode)})}return gA(this,r=>{if(X(r))if(typeof A=="object")for(const n of Object.keys(A)){const a=A[n];Ua(r,n,a,this.options.xmlMode)}else Ua(r,A,e,this.options.xmlMode)})}}function Hi(A,e,t){var r;(r=A.data)!==null&&r!==void 0||(A.data={}),typeof e=="object"?Object.assign(A.data,e):typeof e=="string"&&t!==void 0&&(A.data[e]=t)}function uf(A){for(const e of Object.keys(A.attribs)){if(!e.startsWith(Ta))continue;const t=tf(e.slice(Ta.length));Mt.call(A.data,t)||(A.data[t]=xi(A.attribs[e]))}return A.data}function of(A,e){const t=Ta+rf(e),r=A.data;if(Mt.call(r,e))return r[e];if(Mt.call(A.attribs,t))return r[e]=xi(A.attribs[t])}function xi(A){if(A==="null")return null;if(A==="true")return!0;if(A==="false")return!1;const e=Number(A);if(A===String(e))return e;if(nf.test(A))try{return JSON.parse(A)}catch{}return A}function cf(A,e){var t;const r=this[0];if(!r||!X(r))return;const n=r;return(t=n.data)!==null&&t!==void 0||(n.data={}),A==null?uf(n):typeof A=="object"||e!==void 0?(gA(this,a=>{X(a)&&(typeof A=="object"?Hi(a,A):Hi(a,A,e))}),this):of(n,A)}function lf(A){const e=arguments.length===0,t=this[0];if(!t||!X(t))return e?void 0:this;switch(t.name){case"textarea":return this.text(A);case"select":{const r=this.find("option:selected");if(!e){if(this.attr("multiple")==null&&typeof A=="object")return this;this.find("option").removeAttr("selected");const n=typeof A=="object"?A:[A];for(const a of n)this.find(`option[value="${a}"]`).attr("selected","");return this}return this.attr("multiple")?r.toArray().map(n=>Rt(n.children)):r.attr("value")}case"input":case"option":return e?this.attr("value"):this.attr("value",A)}}function Di(A,e){!A.attribs||!Mt.call(A.attribs,e)||delete A.attribs[e]}function Kr(A){return A?A.trim().split(kt):[]}function ff(A){const e=Kr(A);for(const t of e)gA(this,r=>{X(r)&&Di(r,t)});return this}function hf(A){return this.toArray().some(e=>{const t=X(e)&&e.attribs.class;let r=-1;if(t&&A.length>0)for(;(r=t.indexOf(A,r+1))>-1;){const n=r+A.length;if((r===0||kt.test(t[r-1]))&&(n===t.length||kt.test(t[n])))return!0}return!1})}function Oi(A){if(typeof A=="function")return gA(this,(r,n)=>{if(X(r)){const a=r.attribs.class||"";Oi.call([r],A.call(r,n,a))}});if(!A||typeof A!="string")return this;const e=A.split(kt),t=this.length;for(let r=0;r<t;r++){const n=this[r];if(!X(n))continue;const a=Pr(n,"class",!1);if(a){let s=` ${a} `;for(const u of e){const o=`${u} `;s.includes(` ${o}`)||(s+=o)}dt(n,"class",s.trim())}else dt(n,"class",e.join(" ").trim())}return this}function Ri(A){if(typeof A=="function")return gA(this,(n,a)=>{X(n)&&Ri.call([n],A.call(n,a,n.attribs.class||""))});const e=Kr(A),t=e.length,r=arguments.length===0;return gA(this,n=>{if(X(n))if(r)n.attribs.class="";else{const a=Kr(n.attribs.class);let s=!1;for(let u=0;u<t;u++){const o=a.indexOf(e[u]);o>=0&&(a.splice(o,1),s=!0,u--)}s&&(n.attribs.class=a.join(" "))}})}function Mi(A,e){if(typeof A=="function")return gA(this,(s,u)=>{X(s)&&Mi.call([s],A.call(s,u,s.attribs.class||"",e),e)});if(!A||typeof A!="string")return this;const t=A.split(kt),r=t.length,n=typeof e=="boolean"?e?1:-1:0,a=this.length;for(let s=0;s<a;s++){const u=this[s];if(!X(u))continue;const o=Kr(u.attribs.class);for(let c=0;c<r;c++){const f=o.indexOf(t[c]);n>=0&&f<0?o.push(t[c]):n<=0&&f>=0&&o.splice(f,1)}u.attribs.class=o.join(" ")}return this}const df=Object.freeze(Object.defineProperty({__proto__:null,addClass:Oi,attr:af,data:cf,hasClass:hf,prop:sf,removeAttr:ff,removeClass:Ri,toggleClass:Mi,val:lf},Symbol.toStringTag,{value:"Module"}));var V;(function(A){A.Attribute="attribute",A.Pseudo="pseudo",A.PseudoElement="pseudo-element",A.Tag="tag",A.Universal="universal",A.Adjacent="adjacent",A.Child="child",A.Descendant="descendant",A.Parent="parent",A.Sibling="sibling",A.ColumnCombinator="column-combinator"})(V||(V={}));var TA;(function(A){A.Any="any",A.Element="element",A.End="end",A.Equals="equals",A.Exists="exists",A.Hyphen="hyphen",A.Not="not",A.Start="start"})(TA||(TA={}));const ki=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Bf=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,gf=new Map([[126,TA.Element],[94,TA.Start],[36,TA.End],[42,TA.Any],[33,TA.Not],[124,TA.Hyphen]]),Ef=new Set(["has","not","matches","is","where","host","host-context"]);function Pt(A){switch(A.type){case V.Adjacent:case V.Child:case V.Descendant:case V.Parent:case V.Sibling:case V.ColumnCombinator:return!0;default:return!1}}const pf=new Set(["contains","icontains"]);function Cf(A,e,t){const r=parseInt(e,16)-65536;return r!==r||t?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Kt(A){return A.replace(Bf,Cf)}function Qa(A){return A===39||A===34}function Pi(A){return A===32||A===9||A===10||A===12||A===13}function Vr(A){const e=[],t=Ki(e,`${A}`,0);if(t<A.length)throw new Error(`Unmatched selector: ${A.slice(t)}`);return e}function Ki(A,e,t){let r=[];function n(d){const m=e.slice(t+d).match(ki);if(!m)throw new Error(`Expected name, found ${e.slice(t)}`);const[C]=m;return t+=d+C.length,Kt(C)}function a(d){for(t+=d;t<e.length&&Pi(e.charCodeAt(t));)t++}function s(){t+=1;const d=t;let m=1;for(;m>0&&t<e.length;t++)e.charCodeAt(t)===40&&!u(t)?m++:e.charCodeAt(t)===41&&!u(t)&&m--;if(m)throw new Error("Parenthesis not matched");return Kt(e.slice(d,t-1))}function u(d){let m=0;for(;e.charCodeAt(--d)===92;)m++;return(m&1)===1}function o(){if(r.length>0&&Pt(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function c(d){if(r.length>0&&r[r.length-1].type===V.Descendant){r[r.length-1].type=d;return}o(),r.push({type:d})}function f(d,m){r.push({type:V.Attribute,name:d,action:m,value:n(1),namespace:null,ignoreCase:"quirks"})}function h(){if(r.length&&r[r.length-1].type===V.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");A.push(r)}if(a(0),e.length===t)return t;A:for(;t<e.length;){const d=e.charCodeAt(t);switch(d){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==V.Descendant)&&(o(),r.push({type:V.Descendant})),a(1);break}case 62:{c(V.Child),a(1);break}case 60:{c(V.Parent),a(1);break}case 126:{c(V.Sibling),a(1);break}case 43:{c(V.Adjacent),a(1);break}case 46:{f("class",TA.Element);break}case 35:{f("id",TA.Equals);break}case 91:{a(1);let m,C=null;e.charCodeAt(t)===124?m=n(1):e.startsWith("*|",t)?(C="*",m=n(2)):(m=n(0),e.charCodeAt(t)===124&&e.charCodeAt(t+1)!==61&&(C=m,m=n(1))),a(0);let T=TA.Exists;const F=gf.get(e.charCodeAt(t));if(F){if(T=F,e.charCodeAt(t+1)!==61)throw new Error("Expected `=`");a(2)}else e.charCodeAt(t)===61&&(T=TA.Equals,a(1));let Q="",I=null;if(T!=="exists"){if(Qa(e.charCodeAt(t))){const y=e.charCodeAt(t);let p=t+1;for(;p<e.length&&(e.charCodeAt(p)!==y||u(p));)p+=1;if(e.charCodeAt(p)!==y)throw new Error("Attribute value didn't end");Q=Kt(e.slice(t+1,p)),t=p+1}else{const y=t;for(;t<e.length&&(!Pi(e.charCodeAt(t))&&e.charCodeAt(t)!==93||u(t));)t+=1;Q=Kt(e.slice(y,t))}a(0);const M=e.charCodeAt(t)|32;M===115?(I=!1,a(1)):M===105&&(I=!0,a(1))}if(e.charCodeAt(t)!==93)throw new Error("Attribute selector didn't terminate");t+=1;const H={type:V.Attribute,name:m,action:T,value:Q,namespace:C,ignoreCase:I};r.push(H);break}case 58:{if(e.charCodeAt(t+1)===58){r.push({type:V.PseudoElement,name:n(2).toLowerCase(),data:e.charCodeAt(t)===40?s():null});continue}const m=n(1).toLowerCase();let C=null;if(e.charCodeAt(t)===40)if(Ef.has(m)){if(Qa(e.charCodeAt(t+1)))throw new Error(`Pseudo-selector ${m} cannot be quoted`);if(C=[],t=Ki(C,e,t+1),e.charCodeAt(t)!==41)throw new Error(`Missing closing parenthesis in :${m} (${e})`);t+=1}else{if(C=s(),pf.has(m)){const T=C.charCodeAt(0);T===C.charCodeAt(C.length-1)&&Qa(T)&&(C=C.slice(1,-1))}C=Kt(C)}r.push({type:V.Pseudo,name:m,data:C});break}case 44:{h(),r=[],a(1);break}default:{if(e.startsWith("/*",t)){const T=e.indexOf("*/",t+2);if(T<0)throw new Error("Comment was not terminated");t=T+2,r.length===0&&a(0);break}let m=null,C;if(d===42)t+=1,C="*";else if(d===124){if(C="",e.charCodeAt(t+1)===124){c(V.ColumnCombinator),a(2);break}}else if(ki.test(e.slice(t)))C=n(0);else break A;e.charCodeAt(t)===124&&e.charCodeAt(t+1)!==124&&(m=C,e.charCodeAt(t+1)===42?(C="*",t+=2):C=n(1)),r.push(C==="*"?{type:V.Universal,namespace:m}:{type:V.Tag,name:C,namespace:m})}}}return h(),t}function mf(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Gr={trueFunc:function(){return!0},falseFunc:function(){return!1}};const J=mf(Gr),Vi=new Map([[V.Universal,50],[V.Tag,30],[V.Attribute,1],[V.Pseudo,0]]);function Fa(A){return!Vi.has(A.type)}const wf=new Map([[TA.Exists,10],[TA.Equals,8],[TA.Not,7],[TA.Start,6],[TA.End,6],[TA.Any,5]]);function Tf(A){const e=A.map(Gi);for(let t=1;t<A.length;t++){const r=e[t];if(!(r<0))for(let n=t-1;n>=0&&r<e[n];n--){const a=A[n+1];A[n+1]=A[n],A[n]=a,e[n+1]=e[n],e[n]=r}}}function Gi(A){var e,t;let r=(e=Vi.get(A.type))!==null&&e!==void 0?e:-1;return A.type===V.Attribute?(r=(t=wf.get(A.action))!==null&&t!==void 0?t:4,A.action===TA.Equals&&A.name==="id"&&(r=9),A.ignoreCase&&(r>>=1)):A.type===V.Pseudo&&(A.data?A.name==="has"||A.name==="contains"?r=0:Array.isArray(A.data)?(r=Math.min(...A.data.map(n=>Math.min(...n.map(Gi)))),r<0&&(r=0)):r=2:r=3),r}const bf=/[-[\]{}()*+?.,\\^$|#\s]/g;function Yi(A){return A.replace(bf,"\\$&")}const Uf=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Ze(A,e){return typeof A.ignoreCase=="boolean"?A.ignoreCase:A.ignoreCase==="quirks"?!!e.quirksMode:!e.xmlMode&&Uf.has(A.name)}const Qf={equals(A,e,t){const{adapter:r}=t,{name:n}=e;let{value:a}=e;return Ze(e,t)?(a=a.toLowerCase(),s=>{const u=r.getAttributeValue(s,n);return u!=null&&u.length===a.length&&u.toLowerCase()===a&&A(s)}):s=>r.getAttributeValue(s,n)===a&&A(s)},hyphen(A,e,t){const{adapter:r}=t,{name:n}=e;let{value:a}=e;const s=a.length;return Ze(e,t)?(a=a.toLowerCase(),function(o){const c=r.getAttributeValue(o,n);return c!=null&&(c.length===s||c.charAt(s)==="-")&&c.substr(0,s).toLowerCase()===a&&A(o)}):function(o){const c=r.getAttributeValue(o,n);return c!=null&&(c.length===s||c.charAt(s)==="-")&&c.substr(0,s)===a&&A(o)}},element(A,e,t){const{adapter:r}=t,{name:n,value:a}=e;if(/\s/.test(a))return J.falseFunc;const s=new RegExp(`(?:^|\\s)${Yi(a)}(?:$|\\s)`,Ze(e,t)?"i":"");return function(o){const c=r.getAttributeValue(o,n);return c!=null&&c.length>=a.length&&s.test(c)&&A(o)}},exists(A,{name:e},{adapter:t}){return r=>t.hasAttrib(r,e)&&A(r)},start(A,e,t){const{adapter:r}=t,{name:n}=e;let{value:a}=e;const s=a.length;return s===0?J.falseFunc:Ze(e,t)?(a=a.toLowerCase(),u=>{const o=r.getAttributeValue(u,n);return o!=null&&o.length>=s&&o.substr(0,s).toLowerCase()===a&&A(u)}):u=>{var o;return!!(!((o=r.getAttributeValue(u,n))===null||o===void 0)&&o.startsWith(a))&&A(u)}},end(A,e,t){const{adapter:r}=t,{name:n}=e;let{value:a}=e;const s=-a.length;return s===0?J.falseFunc:Ze(e,t)?(a=a.toLowerCase(),u=>{var o;return((o=r.getAttributeValue(u,n))===null||o===void 0?void 0:o.substr(s).toLowerCase())===a&&A(u)}):u=>{var o;return!!(!((o=r.getAttributeValue(u,n))===null||o===void 0)&&o.endsWith(a))&&A(u)}},any(A,e,t){const{adapter:r}=t,{name:n,value:a}=e;if(a==="")return J.falseFunc;if(Ze(e,t)){const s=new RegExp(Yi(a),"i");return function(o){const c=r.getAttributeValue(o,n);return c!=null&&c.length>=a.length&&s.test(c)&&A(o)}}return s=>{var u;return!!(!((u=r.getAttributeValue(s,n))===null||u===void 0)&&u.includes(a))&&A(s)}},not(A,e,t){const{adapter:r}=t,{name:n}=e;let{value:a}=e;return a===""?s=>!!r.getAttributeValue(s,n)&&A(s):Ze(e,t)?(a=a.toLowerCase(),s=>{const u=r.getAttributeValue(s,n);return(u==null||u.length!==a.length||u.toLowerCase()!==a)&&A(s)}):s=>r.getAttributeValue(s,n)!==a&&A(s)}},Ff=new Set([9,10,12,13,32]),Xi=48,If=57;function _f(A){if(A=A.trim().toLowerCase(),A==="even")return[2,0];if(A==="odd")return[2,1];let e=0,t=0,r=a(),n=s();if(e<A.length&&A.charAt(e)==="n"&&(e++,t=r*(n??1),u(),e<A.length?(r=a(),u(),n=s()):r=n=0),n===null||e<A.length)throw new Error(`n-th rule couldn't be parsed ('${A}')`);return[t,r*n];function a(){return A.charAt(e)==="-"?(e++,-1):(A.charAt(e)==="+"&&e++,1)}function s(){const o=e;let c=0;for(;e<A.length&&A.charCodeAt(e)>=Xi&&A.charCodeAt(e)<=If;)c=c*10+(A.charCodeAt(e)-Xi),e++;return e===o?null:c}function u(){for(;e<A.length&&Ff.has(A.charCodeAt(e));)e++}}function yf(A){const e=A[0],t=A[1]-1;if(t<0&&e<=0)return J.falseFunc;if(e===-1)return a=>a<=t;if(e===0)return a=>a===t;if(e===1)return t<0?J.trueFunc:a=>a>=t;const r=Math.abs(e),n=(t%r+r)%r;return e>1?a=>a>=t&&a%r===n:a=>a<=t&&a%r===n}function Yr(A){return yf(_f(A))}function Xr(A,e){return t=>{const r=e.getParent(t);return r!=null&&e.isTag(r)&&A(t)}}const Ia={contains(A,e,{adapter:t}){return function(n){return A(n)&&t.getText(n).includes(e)}},icontains(A,e,{adapter:t}){const r=e.toLowerCase();return function(a){return A(a)&&t.getText(a).toLowerCase().includes(r)}},"nth-child"(A,e,{adapter:t,equals:r}){const n=Yr(e);return n===J.falseFunc?J.falseFunc:n===J.trueFunc?Xr(A,t):function(s){const u=t.getSiblings(s);let o=0;for(let c=0;c<u.length&&!r(s,u[c]);c++)t.isTag(u[c])&&o++;return n(o)&&A(s)}},"nth-last-child"(A,e,{adapter:t,equals:r}){const n=Yr(e);return n===J.falseFunc?J.falseFunc:n===J.trueFunc?Xr(A,t):function(s){const u=t.getSiblings(s);let o=0;for(let c=u.length-1;c>=0&&!r(s,u[c]);c--)t.isTag(u[c])&&o++;return n(o)&&A(s)}},"nth-of-type"(A,e,{adapter:t,equals:r}){const n=Yr(e);return n===J.falseFunc?J.falseFunc:n===J.trueFunc?Xr(A,t):function(s){const u=t.getSiblings(s);let o=0;for(let c=0;c<u.length;c++){const f=u[c];if(r(s,f))break;t.isTag(f)&&t.getName(f)===t.getName(s)&&o++}return n(o)&&A(s)}},"nth-last-of-type"(A,e,{adapter:t,equals:r}){const n=Yr(e);return n===J.falseFunc?J.falseFunc:n===J.trueFunc?Xr(A,t):function(s){const u=t.getSiblings(s);let o=0;for(let c=u.length-1;c>=0;c--){const f=u[c];if(r(s,f))break;t.isTag(f)&&t.getName(f)===t.getName(s)&&o++}return n(o)&&A(s)}},root(A,e,{adapter:t}){return r=>{const n=t.getParent(r);return(n==null||!t.isTag(n))&&A(r)}},scope(A,e,t,r){const{equals:n}=t;return!r||r.length===0?Ia.root(A,e,t):r.length===1?a=>n(r[0],a)&&A(a):a=>r.includes(a)&&A(a)},hover:_a("isHovered"),visited:_a("isVisited"),active:_a("isActive")};function _a(A){return function(t,r,{adapter:n}){const a=n[A];return typeof a!="function"?J.falseFunc:function(u){return a(u)&&t(u)}}}const Wi={empty(A,{adapter:e}){return!e.getChildren(A).some(t=>e.isTag(t)||e.getText(t)!=="")},"first-child"(A,{adapter:e,equals:t}){if(e.prevElementSibling)return e.prevElementSibling(A)==null;const r=e.getSiblings(A).find(n=>e.isTag(n));return r!=null&&t(A,r)},"last-child"(A,{adapter:e,equals:t}){const r=e.getSiblings(A);for(let n=r.length-1;n>=0;n--){if(t(A,r[n]))return!0;if(e.isTag(r[n]))break}return!1},"first-of-type"(A,{adapter:e,equals:t}){const r=e.getSiblings(A),n=e.getName(A);for(let a=0;a<r.length;a++){const s=r[a];if(t(A,s))return!0;if(e.isTag(s)&&e.getName(s)===n)break}return!1},"last-of-type"(A,{adapter:e,equals:t}){const r=e.getSiblings(A),n=e.getName(A);for(let a=r.length-1;a>=0;a--){const s=r[a];if(t(A,s))return!0;if(e.isTag(s)&&e.getName(s)===n)break}return!1},"only-of-type"(A,{adapter:e,equals:t}){const r=e.getName(A);return e.getSiblings(A).every(n=>t(A,n)||!e.isTag(n)||e.getName(n)!==r)},"only-child"(A,{adapter:e,equals:t}){return e.getSiblings(A).every(r=>t(A,r)||!e.isTag(r))}};function Ji(A,e,t,r){if(t===null){if(A.length>r)throw new Error(`Pseudo-class :${e} requires an argument`)}else if(A.length===r)throw new Error(`Pseudo-class :${e} doesn't have any arguments`)}const Nf={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
3
3
  :is(button, input, select, textarea, optgroup, option)[disabled],
4
4
  optgroup[disabled] > option,
5
5
  fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
6
- )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},ki={};function co(e,t){return e===Y.falseFunc?Y.falseFunc:a=>t.isTag(a)&&e(a)}function Mi(e,t){const a=t.getSiblings(e);if(a.length<=1)return[];const n=a.indexOf(e);return n<0||n===a.length-1?[]:a.slice(n+1).filter(t.isTag)}function cn(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const ln=(e,t,a,n,i)=>{const s=i(t,cn(a),n);return s===Y.trueFunc?e:s===Y.falseFunc?Y.falseFunc:u=>s(u)&&e(u)},dn={is:ln,matches:ln,where:ln,not(e,t,a,n,i){const s=i(t,cn(a),n);return s===Y.falseFunc?e:s===Y.trueFunc?Y.falseFunc:u=>!s(u)&&e(u)},has(e,t,a,n,i){const{adapter:s}=a,u=cn(a);u.relativeSelector=!0;const c=t.some(m=>m.some(sn))?[ki]:void 0,l=i(t,u,c);if(l===Y.falseFunc)return Y.falseFunc;const h=co(l,s);if(c&&l!==Y.trueFunc){const{shouldTestNextSiblings:m=!1}=l;return p=>{if(!e(p))return!1;c[0]=p;const T=s.getChildren(p),_=m?[...T,...Mi(p,s)]:T;return s.existsOne(h,_)}}return m=>e(m)&&s.existsOne(h,s.getChildren(m))}};function lo(e,t,a,n,i){var s;const{name:u,data:c}=t;if(Array.isArray(c)){if(!(u in dn))throw new Error(`Unknown pseudo-class :${u}(${c})`);return dn[u](e,c,a,n,i)}const l=(s=a.pseudos)===null||s===void 0?void 0:s[u],h=typeof l=="string"?l:oo[u];if(typeof h=="string"){if(c!=null)throw new Error(`Pseudo ${u} doesn't have any arguments`);const m=pa(h);return dn.is(e,m,a,n,i)}if(typeof l=="function")return Ri(l,u,c,1),m=>l(m,c)&&e(m);if(u in un)return un[u](e,c,a,n);if(u in yi){const m=yi[u];return Ri(m,u,c,2),p=>m(p,a,c)&&e(p)}throw new Error(`Unknown pseudo-class :${u}`)}function hn(e,t){const a=t.getParent(e);return a&&t.isTag(a)?a:null}function ho(e,t,a,n,i){const{adapter:s,equals:u}=a;switch(t.type){case k.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case k.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case k.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!a.xmlMode||a.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),no[t.action](e,t,a)}case k.Pseudo:return lo(e,t,a,n,i);case k.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:c}=t;return(!a.xmlMode||a.lowerCaseTags)&&(c=c.toLowerCase()),function(h){return s.getName(h)===c&&e(h)}}case k.Descendant:{if(a.cacheResults===!1||typeof WeakSet>"u")return function(h){let m=h;for(;m=hn(m,s);)if(e(m))return!0;return!1};const c=new WeakSet;return function(h){let m=h;for(;m=hn(m,s);)if(!c.has(m)){if(s.isTag(m)&&e(m))return!0;c.add(m)}return!1}}case"_flexibleDescendant":return function(l){let h=l;do if(e(h))return!0;while(h=hn(h,s));return!1};case k.Parent:return function(l){return s.getChildren(l).some(h=>s.isTag(h)&&e(h))};case k.Child:return function(l){const h=s.getParent(l);return h!=null&&s.isTag(h)&&e(h)};case k.Sibling:return function(l){const h=s.getSiblings(l);for(let m=0;m<h.length;m++){const p=h[m];if(u(l,p))break;if(s.isTag(p)&&e(p))return!0}return!1};case k.Adjacent:return s.prevElementSibling?function(l){const h=s.prevElementSibling(l);return h!=null&&e(h)}:function(l){const h=s.getSiblings(l);let m;for(let p=0;p<h.length;p++){const T=h[p];if(u(l,T))break;s.isTag(T)&&(m=T)}return!!m&&e(m)};case k.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function wi(e){return e.type===k.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(wi)))}const fo={type:k.Descendant},mo={type:"_flexibleDescendant"},Eo={type:k.Pseudo,name:"scope",data:null};function po(e,{adapter:t},a){const n=!!(a!=null&&a.every(i=>{const s=t.isTag(i)&&t.getParent(i);return i===ki||s&&t.isTag(s)}));for(const i of e){if(!(i.length>0&&sn(i[0])&&i[0].type!==k.Descendant))if(n&&!i.some(wi))i.unshift(fo);else continue;i.unshift(Eo)}}function Pi(e,t,a){var n;e.forEach(eo),a=(n=t.context)!==null&&n!==void 0?n:a;const i=Array.isArray(a),s=a&&(Array.isArray(a)?a:[a]);if(t.relativeSelector!==!1)po(e,t,s);else if(e.some(l=>l.length>0&&sn(l[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let u=!1;const c=e.map(l=>{if(l.length>=2){const[h,m]=l;h.type!==k.Pseudo||h.name!=="scope"||(i&&m.type===k.Descendant?l[1]=mo:(m.type===k.Adjacent||m.type===k.Sibling)&&(u=!0))}return To(l,t,s)}).reduce(bo,Y.falseFunc);return c.shouldTestNextSiblings=u,c}function To(e,t,a){var n;return e.reduce((i,s)=>i===Y.falseFunc?Y.falseFunc:ho(i,s,t,a,Pi),(n=t.rootFunc)!==null&&n!==void 0?n:Y.trueFunc)}function bo(e,t){return t===Y.falseFunc||e===Y.trueFunc?e:e===Y.falseFunc||t===Y.trueFunc?t:function(n){return e(n)||t(n)}}const Bi=(e,t)=>e===t,go={adapter:fa,equals:Bi};function _o(e){var t,a,n,i;const s=e??go;return(t=s.adapter)!==null&&t!==void 0||(s.adapter=fa),(a=s.equals)!==null&&a!==void 0||(s.equals=(i=(n=s.adapter)===null||n===void 0?void 0:n.equals)!==null&&i!==void 0?i:Bi),s}function Ao(e){return function(a,n,i){const s=_o(n);return e(a,s,i)}}const fn=Ao(Pi);function vi(e,t,a=!1){return a&&(e=No(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function No(e,t){const a=Array.isArray(e)?e.slice(0):[e],n=a.length;for(let i=0;i<n;i++){const s=Mi(a[i],t);a.push(...s)}return a}const Co=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function _a(e){return e.type!=="pseudo"?!1:Co.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(_a)):!1}function Io(e,t,a){const n=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(n)?n>=0?n+1:1/0:0;case"lt":return isFinite(n)?n>=0?Math.min(n,a):1/0:0;case"gt":return isFinite(n)?1/0:0;case"odd":return 2*a;case"even":return 2*a-1;case"last":case"not":return 1/0}}function So(e){for(;e.parent;)e=e.parent;return e}function mn(e){const t=[],a=[];for(const n of e)n.some(_a)?t.push(n):a.push(n);return[a,t]}const Oo={type:k.Universal,namespace:null},xo={type:k.Pseudo,name:"scope",data:null};function Ui(e,t,a={}){return Fi([e],t,a)}function Fi(e,t,a={}){if(typeof t=="function")return e.some(t);const[n,i]=mn(pa(t));return n.length>0&&e.some(fn(n,a))||i.some(s=>Yi(s,e,a).length>0)}function Do(e,t,a,n){const i=typeof a=="string"?parseInt(a,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(i)&&Math.abs(i)<t.length?[i<0?t[t.length+i]:t[i]]:[];case"gt":return isFinite(i)?t.slice(i+1):[];case"even":return t.filter((s,u)=>u%2===0);case"odd":return t.filter((s,u)=>u%2===1);case"not":{const s=new Set(Vi(a,t,n));return t.filter(u=>!s.has(u))}}}function Hi(e,t,a={}){return Vi(pa(e),t,a)}function Vi(e,t,a){if(t.length===0)return[];const[n,i]=mn(e);let s;if(n.length){const u=pn(t,n,a);if(i.length===0)return u;u.length&&(s=new Set(u))}for(let u=0;u<i.length&&(s==null?void 0:s.size)!==t.length;u++){const c=i[u];if((s?t.filter(m=>B(m)&&!s.has(m)):t).length===0)break;const h=Yi(c,t,a);if(h.length)if(s)h.forEach(m=>s.add(m));else{if(u===i.length-1)return h;s=new Set(h)}}return typeof s<"u"?s.size===t.length?t:t.filter(u=>s.has(u)):[]}function Yi(e,t,a){var n;if(e.some(Pt)){const i=(n=a.root)!==null&&n!==void 0?n:So(t[0]),s={...a,context:t,relativeSelector:!1};return e.push(xo),Aa(i,e,s,!0,t.length)}return Aa(t,e,a,!1,t.length)}function Lo(e,t,a={},n=1/0){if(typeof e=="function")return qi(t,e);const[i,s]=mn(pa(e)),u=s.map(c=>Aa(t,c,a,!0,n));return i.length&&u.push(En(t,i,a,n)),u.length===0?[]:u.length===1?u[0]:gt(u.reduce((c,l)=>[...c,...l]))}function Aa(e,t,a,n,i){const s=t.findIndex(_a),u=t.slice(0,s),c=t[s],l=t.length-1===s?i:1/0,h=Io(c.name,c.data,l);if(h===0)return[];const p=(u.length===0&&!Array.isArray(e)?ca(e).filter(B):u.length===0?(Array.isArray(e)?e:[e]).filter(B):n||u.some(Pt)?En(e,[u],a,h):pn(e,[u],a)).slice(0,h);let T=Do(c.name,p,c.data,a);if(T.length===0||t.length===s+1)return T;const _=t.slice(s+1),C=_.some(Pt);if(C){if(Pt(_[0])){const{type:L}=_[0];(L===k.Sibling||L===k.Adjacent)&&(T=vi(T,fa,!0)),_.unshift(Oo)}a={...a,relativeSelector:!1,rootFunc:L=>T.includes(L)}}else a.rootFunc&&a.rootFunc!==Ta.trueFunc&&(a={...a,rootFunc:Ta.trueFunc});return _.some(_a)?Aa(T,_,a,!1,i):C?En(T,[_],a,i):pn(T,[_],a)}function En(e,t,a,n){const i=fn(t,a,e);return qi(e,i,n)}function qi(e,t,a=1/0){const n=vi(e,fa,t.shouldTestNextSiblings);return Ka(i=>B(i)&&t(i),n,!0,a)}function pn(e,t,a){const n=(Array.isArray(e)?e:[e]).filter(B);if(n.length===0)return n;const i=fn(t,a);return i===Ta.trueFunc?n:n.filter(i)}const yo=/^\s*[+~]/;function Ro(e){if(!e)return this._make([]);if(typeof e!="string"){const t=He(e)?e.toArray():[e],a=this.toArray();return this._make(t.filter(n=>a.some(i=>mi(i,n))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function ko(e,t){var a;const n=this.toArray(),i=yo.test(e)?n:this.children().toArray(),s={context:n,root:(a=this._root)===null||a===void 0?void 0:a[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Lo(e,i,s,t))}function Tn(e){return function(t,...a){return function(n){var i;let s=e(t,this);return n&&(s=_n(s,n,this.options.xmlMode,(i=this._root)===null||i===void 0?void 0:i[0])),this._make(this.length>1&&s.length>1?a.reduce((u,c)=>c(u),s):s)}}}const vt=Tn((e,t)=>{let a=[];for(let n=0;n<t.length;n++){const i=e(t[n]);i.length>0&&(a=a.concat(i))}return a}),bn=Tn((e,t)=>{const a=[];for(let n=0;n<t.length;n++){const i=e(t[n]);i!==null&&a.push(i)}return a});function gn(e,...t){let a=null;const n=Tn((i,s)=>{const u=[];return ae(s,c=>{for(let l;(l=i(c))&&!(a!=null&&a(l,u.length));c=l)u.push(l)}),u})(e,...t);return function(i,s){a=typeof i=="string"?c=>Ui(c,i,this.options):i?Ut(i):null;const u=n.call(this,s);return a=null,u}}function At(e){return e.length>1?Array.from(new Set(e)):e}const Mo=bn(({parent:e})=>e&&!$e(e)?e:null,At),wo=vt(e=>{const t=[];for(;e.parent&&!$e(e.parent);)t.push(e.parent),e=e.parent;return t},gt,e=>e.reverse()),Po=gn(({parent:e})=>e&&!$e(e)?e:null,gt,e=>e.reverse());function Bo(e){var t;const a=[];if(!e)return this._make(a);const n={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},i=typeof e=="string"?s=>Ui(s,e,n):Ut(e);return ae(this,s=>{for(s&&!$e(s)&&!B(s)&&(s=s.parent);s&&B(s);){if(i(s,0)){a.includes(s)||a.push(s);break}s=s.parent}}),this._make(a)}const vo=bn(e=>ja(e)),Uo=vt(e=>{const t=[];for(;e.next;)e=e.next,B(e)&&t.push(e);return t},At),Fo=gn(e=>ja(e),At),Ho=bn(e=>za(e)),Vo=vt(e=>{const t=[];for(;e.prev;)e=e.prev,B(e)&&t.push(e);return t},At),Yo=gn(e=>za(e),At),qo=vt(e=>ui(e).filter(t=>B(t)&&t!==e),gt),Wo=vt(e=>ca(e).filter(B),At);function $o(){const e=this.toArray().reduce((t,a)=>se(a)?t.concat(a.children):t,[]);return this._make(e)}function Go(e){let t=0;const a=this.length;for(;t<a&&e.call(this[t],t,this[t])!==!1;)++t;return this}function Xo(e){let t=[];for(let a=0;a<this.length;a++){const n=this[a],i=e.call(n,a,n);i!=null&&(t=t.concat(i))}return this._make(t)}function Ut(e){return typeof e=="function"?(t,a)=>e.call(t,a,t):He(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function Qo(e){var t;return this._make(_n(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function _n(e,t,a,n){return typeof t=="string"?Hi(t,e,{xmlMode:a,root:n}):e.filter(Ut(t))}function jo(e){const t=this.toArray();return typeof e=="string"?Fi(t.filter(B),e,this.options):e?t.some(Ut(e)):!1}function zo(e){let t=this.toArray();if(typeof e=="string"){const a=new Set(Hi(e,t,this.options));t=t.filter(n=>!a.has(n))}else{const a=Ut(e);t=t.filter((n,i)=>!a(n,i))}return this._make(t)}function Ko(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,a)=>this._make(a).find(e).length>0)}function Zo(){return this.length>1?this._make(this[0]):this}function Jo(){return this.length>0?this._make(this[this.length-1]):this}function ec(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function tc(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function ac(){return Array.prototype.slice.call(this)}function nc(e){let t,a;return e==null?(t=this.parent().children(),a=this[0]):typeof e=="string"?(t=this._make(e),a=this[0]):(t=this,a=He(e)?e[0]:e),Array.prototype.indexOf.call(t,a)}function ic(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function rc(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function sc(e,t){const a=this._make(e,t),n=gt([...this.get(),...a.get()]);return this._make(n)}function uc(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const oc=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector:ko,add:sc,addBack:uc,children:Wo,closest:Bo,contents:$o,each:Go,end:rc,eq:ec,filter:Qo,filterArray:_n,find:Ro,first:Zo,get:tc,has:Ko,index:nc,is:jo,last:Jo,map:Xo,next:vo,nextAll:Uo,nextUntil:Fo,not:zo,parent:Mo,parents:wo,parentsUntil:Po,prev:Ho,prevAll:Vo,prevUntil:Yo,siblings:qo,slice:ic,toArray:ac},Symbol.toStringTag,{value:"Module"}));function cc(e){return function(a,n,i,s){if(typeof Buffer<"u"&&Buffer.isBuffer(a)&&(a=a.toString()),typeof a=="string")return e(a,n,i,s);const u=a;if(!Array.isArray(u)&&$e(u))return u;const c=new tt([]);return rt(u,c),c}}function rt(e,t){const a=Array.isArray(e)?e:[e];t?t.children=a:t=null;for(let n=0;n<a.length;n++){const i=a[n];i.parent&&i.parent.children!==a&&at(i),t?(i.prev=a[n-1]||null,i.next=a[n+1]||null):i.prev=i.next=null,i.parent=t}return t}function lc(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);const a=[];for(let n=0;n<e.length;n++){const i=e[n];if(typeof i=="object"){if(i==null)continue;if(!("length"in i)){a.push(t?Rt(i,!0):i);continue}}a.push(...this._makeDomArray(i,t))}return a}return[t?Rt(e,!0):e]}function Wi(e){return function(...t){const a=this.length-1;return ae(this,(n,i)=>{if(!se(n))return;const s=typeof t[0]=="function"?t[0].call(n,i,this._render(n.children)):t,u=this._makeDomArray(s,i<a);e(u,n.children,n)})}}function Qe(e,t,a,n,i){var s,u;const c=[t,a,...n],l=t===0?null:e[t-1],h=t+a>=e.length?null:e[t+a];for(let m=0;m<n.length;++m){const p=n[m],T=p.parent;if(T){const C=T.children.indexOf(p);C>-1&&(T.children.splice(C,1),i===T&&t>C&&c[0]--)}p.parent=i,p.prev&&(p.prev.next=(s=p.next)!==null&&s!==void 0?s:null),p.next&&(p.next.prev=(u=p.prev)!==null&&u!==void 0?u:null),p.prev=m===0?l:n[m-1],p.next=m===n.length-1?h:n[m+1]}return l&&(l.next=n[0]),h&&(h.prev=n[n.length-1]),e.splice(...c)}function dc(e){return(He(e)?e:this._make(e)).append(this),this}function hc(e){return(He(e)?e:this._make(e)).prepend(this),this}const fc=Wi((e,t,a)=>{Qe(t,t.length,0,e,a)}),mc=Wi((e,t,a)=>{Qe(t,0,0,e,a)});function $i(e){return function(t){const a=this.length-1,n=this.parents().last();for(let i=0;i<this.length;i++){const s=this[i],u=typeof t=="function"?t.call(s,i,s):typeof t=="string"&&!en(t)?n.find(t).clone():t,[c]=this._makeDomArray(u,i<a);if(!c||!se(c))continue;let l=c,h=0;for(;h<l.children.length;){const m=l.children[h];B(m)?(l=m,h=0):h++}e(s,l,[c])}return this}}const Ec=$i((e,t,a)=>{const{parent:n}=e;if(!n)return;const i=n.children,s=i.indexOf(e);rt([e],t),Qe(i,s,0,a,n)}),pc=$i((e,t,a)=>{se(e)&&(rt(e.children,t),rt(a,e))});function Tc(e){return this.parent(e).not("body").each((t,a)=>{this._make(a).replaceWith(a.children)}),this}function bc(e){const t=this[0];if(t){const a=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t);let n;for(let s=0;s<a.length;s++)a[s].type==="tag"&&(n=a[s]);let i=0;for(;n&&i<n.children.length;){const s=n.children[i];s.type==="tag"?(n=s,i=0):i++}n&&this._make(n).append(this)}return this}function gc(...e){const t=this.length-1;return ae(this,(a,n)=>{if(!se(a)||!a.parent)return;const i=a.parent.children,s=i.indexOf(a);if(s<0)return;const u=typeof e[0]=="function"?e[0].call(a,n,this._render(a.children)):e,c=this._makeDomArray(u,n<t);Qe(i,s+1,0,c,a.parent)})}function _c(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];for(const a of this._makeDomArray(e)){const n=this.clone().toArray(),{parent:i}=a;if(!i)continue;const s=i.children,u=s.indexOf(a);u<0||(Qe(s,u+1,0,n,i),t.push(...n))}return this._make(t)}function Ac(...e){const t=this.length-1;return ae(this,(a,n)=>{if(!se(a)||!a.parent)return;const i=a.parent.children,s=i.indexOf(a);if(s<0)return;const u=typeof e[0]=="function"?e[0].call(a,n,this._render(a.children)):e,c=this._makeDomArray(u,n<t);Qe(i,s,0,c,a.parent)})}function Nc(e){const t=this._make(e);this.remove();const a=[];return ae(t,n=>{const i=this.clone().toArray(),{parent:s}=n;if(!s)return;const u=s.children,c=u.indexOf(n);c<0||(Qe(u,c,0,i,s),a.push(...i))}),this._make(a)}function Cc(e){const t=e?this.filter(e):this;return ae(t,a=>{at(a),a.prev=a.next=a.parent=null}),this}function Ic(e){return ae(this,(t,a)=>{const{parent:n}=t;if(!n)return;const i=n.children,s=typeof e=="function"?e.call(t,a,t):e,u=this._makeDomArray(s);rt(u,null);const c=i.indexOf(t);Qe(i,c,1,u,n),u.includes(t)||(t.parent=t.prev=t.next=null)})}function Sc(){return ae(this,e=>{if(se(e)){for(const t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function Oc(e){if(e===void 0){const t=this[0];return!t||!se(t)?null:this._render(t.children)}return ae(this,t=>{if(!se(t))return;for(const n of t.children)n.next=n.prev=n.parent=null;const a=He(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;rt(a,t)})}function xc(){return this._render(this)}function Dc(e){return e===void 0?kt(this):typeof e=="function"?ae(this,(t,a)=>this._make(t).text(e.call(t,a,kt([t])))):ae(this,t=>{if(!se(t))return;for(const n of t.children)n.next=n.prev=n.parent=null;const a=new yt(`${e}`);rt(a,t)})}function Lc(){const e=Array.prototype.map.call(this.get(),a=>Rt(a,!0)),t=new tt(e);for(const a of e)a.parent=t;return this._make(e)}const yc=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:lc,after:gc,append:fc,appendTo:dc,before:Ac,clone:Lc,empty:Sc,html:Oc,insertAfter:_c,insertBefore:Nc,prepend:mc,prependTo:hc,remove:Cc,replaceWith:Ic,text:Dc,toString:xc,unwrap:Tc,wrap:Ec,wrapAll:bc,wrapInner:pc},Symbol.toStringTag,{value:"Module"}));function Rc(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return ae(this,(a,n)=>{B(a)&&Gi(a,e,t,n)});if(this.length!==0)return Xi(this[0],e)}function Gi(e,t,a,n){if(typeof t=="string"){const i=Xi(e),s=typeof a=="function"?a.call(e,n,i[t]):a;s===""?delete i[t]:s!=null&&(i[t]=s),e.attribs.style=kc(i)}else if(typeof t=="object"){const i=Object.keys(t);for(let s=0;s<i.length;s++){const u=i[s];Gi(e,u,t[u],s)}}}function Xi(e,t){if(!e||!B(e))return;const a=Mc(e.attribs.style);if(typeof t=="string")return a[t];if(Array.isArray(t)){const n={};for(const i of t)a[i]!=null&&(n[i]=a[i]);return n}return a}function kc(e){return Object.keys(e).reduce((t,a)=>`${t}${t?" ":""}${a}: ${e[a]};`,"")}function Mc(e){if(e=(e||"").trim(),!e)return{};const t={};let a;for(const n of e.split(";")){const i=n.indexOf(":");if(i<1||i===n.length-1){const s=n.trimEnd();s.length>0&&a!==void 0&&(t[a]+=`;${s}`)}else a=n.slice(0,i).trim(),t[a]=n.slice(i+1).trim()}return t}const wc=Object.freeze(Object.defineProperty({__proto__:null,css:Rc},Symbol.toStringTag,{value:"Module"})),Qi="input,select,textarea,keygen",Pc=/%20/g,ji=/\r?\n/g;function Bc(){return this.serializeArray().map(a=>`${encodeURIComponent(a.name)}=${encodeURIComponent(a.value)}`).join("&").replace(Pc,"+")}function vc(){return this.map((e,t)=>{const a=this._make(t);return B(t)&&t.name==="form"?a.find(Qi).toArray():a.filter(Qi).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var a;const n=this._make(t),i=n.attr("name"),s=(a=n.val())!==null&&a!==void 0?a:"";return Array.isArray(s)?s.map(u=>({name:i,value:u.replace(ji,`\r
7
- `)})):{name:i,value:s.replace(ji,`\r
8
- `)}}).toArray()}const Uc=Object.freeze(Object.defineProperty({__proto__:null,serialize:Bc,serializeArray:vc},Symbol.toStringTag,{value:"Module"}));function Fc(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function Hc(e){const t={};for(const a in e){const n=e[a],i=Array.isArray(n),{selector:s,value:u}=Fc(i?n[0]:n),c=typeof u=="function"?u:typeof u=="string"?l=>this._make(l).prop(u):l=>this._make(l).extract(u);if(i)t[a]=this._findBySelector(s,Number.POSITIVE_INFINITY).map((l,h)=>c(h,a,t)).get();else{const l=this._findBySelector(s,1);t[a]=l.length>0?c(l[0],a,t):void 0}}return t}const Vc=Object.freeze(Object.defineProperty({__proto__:null,extract:Hc},Symbol.toStringTag,{value:"Module"}));class Ft{constructor(t,a,n){if(this.length=0,this.options=n,this._root=a,t){for(let i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}}Ft.prototype.cheerio="[cheerio object]",Ft.prototype.splice=Array.prototype.splice,Ft.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(Ft.prototype,Gu,oc,yc,wc,Uc,Vc);function Yc(e,t){return function a(n,i,s=!0){if(n==null)throw new Error("cheerio.load() expects a string");const u=Ja(i),c=e(n,u,s,null);class l extends Ft{_make(p,T){const _=h(p,T);return _.prevObject=this,_}_parse(p,T,_,C){return e(p,T,_,C)}_render(p){return t(p,this.options)}}function h(m,p,T=c,_){if(m&&He(m))return m;const C=Ja(_,u),L=typeof T=="string"?[e(T,C,!1,null)]:"length"in T?T:[T],R=He(L)?L:new l(L,null,C);if(R._root=R,!m)return new l(void 0,R,C);const V=typeof m=="string"&&en(m)?e(m,C,!1,null).children:qc(m)?[m]:Array.isArray(m)?m:void 0,v=new l(V,R,C);if(V)return v;if(typeof m!="string")throw new TypeError("Unexpected type of selector");let F=m;const z=p?typeof p=="string"?en(p)?new l([e(p,C,!1,null)],R,C):(F=`${p} ${F}`,R):He(p)?p:new l(Array.isArray(p)?p:[p],R,C):R;return z?z.find(F):v}return Object.assign(h,wu,{load:a,_root:c,_options:u,fn:l.prototype,prototype:l.prototype}),h}}function qc(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}const Wc=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),K="�";var d;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(d||(d={}));const pe={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function zi(e){return e>=55296&&e<=57343}function $c(e){return e>=56320&&e<=57343}function Gc(e,t){return(e-55296)*1024+9216+t}function Ki(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Zi(e){return e>=64976&&e<=65007||Wc.has(e)}var g;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(g||(g={}));const Xc=65536;class Qc{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Xc,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,a){const{line:n,col:i,offset:s}=this,u=i+a,c=s+a;return{code:t,startLine:n,endLine:n,startCol:u,endCol:u,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const a=this.html.charCodeAt(this.pos+1);if($c(a))return this.pos++,this._addGap(),Gc(t,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,d.EOF;return this._err(g.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,a){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=a}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,a){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(a)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){const a=this.pos+t;if(a>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,d.EOF;const n=this.html.charCodeAt(a);return n===d.CARRIAGE_RETURN?d.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,d.EOF;let t=this.html.charCodeAt(this.pos);return t===d.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,d.LINE_FEED):t===d.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,zi(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===d.LINE_FEED||t===d.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ki(t)?this._err(g.controlCharacterInInputStream):Zi(t)&&this._err(g.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var G;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(G||(G={}));function Ji(e,t){for(let a=e.attrs.length-1;a>=0;a--)if(e.attrs[a].name===t)return e.attrs[a].value;return null}var N;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(N||(N={}));var st;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(st||(st={}));var Ae;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ae||(Ae={}));var b;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(b||(b={}));var r;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(r||(r={}));const jc=new Map([[b.A,r.A],[b.ADDRESS,r.ADDRESS],[b.ANNOTATION_XML,r.ANNOTATION_XML],[b.APPLET,r.APPLET],[b.AREA,r.AREA],[b.ARTICLE,r.ARTICLE],[b.ASIDE,r.ASIDE],[b.B,r.B],[b.BASE,r.BASE],[b.BASEFONT,r.BASEFONT],[b.BGSOUND,r.BGSOUND],[b.BIG,r.BIG],[b.BLOCKQUOTE,r.BLOCKQUOTE],[b.BODY,r.BODY],[b.BR,r.BR],[b.BUTTON,r.BUTTON],[b.CAPTION,r.CAPTION],[b.CENTER,r.CENTER],[b.CODE,r.CODE],[b.COL,r.COL],[b.COLGROUP,r.COLGROUP],[b.DD,r.DD],[b.DESC,r.DESC],[b.DETAILS,r.DETAILS],[b.DIALOG,r.DIALOG],[b.DIR,r.DIR],[b.DIV,r.DIV],[b.DL,r.DL],[b.DT,r.DT],[b.EM,r.EM],[b.EMBED,r.EMBED],[b.FIELDSET,r.FIELDSET],[b.FIGCAPTION,r.FIGCAPTION],[b.FIGURE,r.FIGURE],[b.FONT,r.FONT],[b.FOOTER,r.FOOTER],[b.FOREIGN_OBJECT,r.FOREIGN_OBJECT],[b.FORM,r.FORM],[b.FRAME,r.FRAME],[b.FRAMESET,r.FRAMESET],[b.H1,r.H1],[b.H2,r.H2],[b.H3,r.H3],[b.H4,r.H4],[b.H5,r.H5],[b.H6,r.H6],[b.HEAD,r.HEAD],[b.HEADER,r.HEADER],[b.HGROUP,r.HGROUP],[b.HR,r.HR],[b.HTML,r.HTML],[b.I,r.I],[b.IMG,r.IMG],[b.IMAGE,r.IMAGE],[b.INPUT,r.INPUT],[b.IFRAME,r.IFRAME],[b.KEYGEN,r.KEYGEN],[b.LABEL,r.LABEL],[b.LI,r.LI],[b.LINK,r.LINK],[b.LISTING,r.LISTING],[b.MAIN,r.MAIN],[b.MALIGNMARK,r.MALIGNMARK],[b.MARQUEE,r.MARQUEE],[b.MATH,r.MATH],[b.MENU,r.MENU],[b.META,r.META],[b.MGLYPH,r.MGLYPH],[b.MI,r.MI],[b.MO,r.MO],[b.MN,r.MN],[b.MS,r.MS],[b.MTEXT,r.MTEXT],[b.NAV,r.NAV],[b.NOBR,r.NOBR],[b.NOFRAMES,r.NOFRAMES],[b.NOEMBED,r.NOEMBED],[b.NOSCRIPT,r.NOSCRIPT],[b.OBJECT,r.OBJECT],[b.OL,r.OL],[b.OPTGROUP,r.OPTGROUP],[b.OPTION,r.OPTION],[b.P,r.P],[b.PARAM,r.PARAM],[b.PLAINTEXT,r.PLAINTEXT],[b.PRE,r.PRE],[b.RB,r.RB],[b.RP,r.RP],[b.RT,r.RT],[b.RTC,r.RTC],[b.RUBY,r.RUBY],[b.S,r.S],[b.SCRIPT,r.SCRIPT],[b.SEARCH,r.SEARCH],[b.SECTION,r.SECTION],[b.SELECT,r.SELECT],[b.SOURCE,r.SOURCE],[b.SMALL,r.SMALL],[b.SPAN,r.SPAN],[b.STRIKE,r.STRIKE],[b.STRONG,r.STRONG],[b.STYLE,r.STYLE],[b.SUB,r.SUB],[b.SUMMARY,r.SUMMARY],[b.SUP,r.SUP],[b.TABLE,r.TABLE],[b.TBODY,r.TBODY],[b.TEMPLATE,r.TEMPLATE],[b.TEXTAREA,r.TEXTAREA],[b.TFOOT,r.TFOOT],[b.TD,r.TD],[b.TH,r.TH],[b.THEAD,r.THEAD],[b.TITLE,r.TITLE],[b.TR,r.TR],[b.TRACK,r.TRACK],[b.TT,r.TT],[b.U,r.U],[b.UL,r.UL],[b.SVG,r.SVG],[b.VAR,r.VAR],[b.WBR,r.WBR],[b.XMP,r.XMP]]);function Na(e){var t;return(t=jc.get(e))!==null&&t!==void 0?t:r.UNKNOWN}const S=r,zc={[N.HTML]:new Set([S.ADDRESS,S.APPLET,S.AREA,S.ARTICLE,S.ASIDE,S.BASE,S.BASEFONT,S.BGSOUND,S.BLOCKQUOTE,S.BODY,S.BR,S.BUTTON,S.CAPTION,S.CENTER,S.COL,S.COLGROUP,S.DD,S.DETAILS,S.DIR,S.DIV,S.DL,S.DT,S.EMBED,S.FIELDSET,S.FIGCAPTION,S.FIGURE,S.FOOTER,S.FORM,S.FRAME,S.FRAMESET,S.H1,S.H2,S.H3,S.H4,S.H5,S.H6,S.HEAD,S.HEADER,S.HGROUP,S.HR,S.HTML,S.IFRAME,S.IMG,S.INPUT,S.LI,S.LINK,S.LISTING,S.MAIN,S.MARQUEE,S.MENU,S.META,S.NAV,S.NOEMBED,S.NOFRAMES,S.NOSCRIPT,S.OBJECT,S.OL,S.P,S.PARAM,S.PLAINTEXT,S.PRE,S.SCRIPT,S.SECTION,S.SELECT,S.SOURCE,S.STYLE,S.SUMMARY,S.TABLE,S.TBODY,S.TD,S.TEMPLATE,S.TEXTAREA,S.TFOOT,S.TH,S.THEAD,S.TITLE,S.TR,S.TRACK,S.UL,S.WBR,S.XMP]),[N.MATHML]:new Set([S.MI,S.MO,S.MN,S.MS,S.MTEXT,S.ANNOTATION_XML]),[N.SVG]:new Set([S.TITLE,S.FOREIGN_OBJECT,S.DESC]),[N.XLINK]:new Set,[N.XML]:new Set,[N.XMLNS]:new Set},An=new Set([S.H1,S.H2,S.H3,S.H4,S.H5,S.H6]),Kc=new Set([b.STYLE,b.SCRIPT,b.XMP,b.IFRAME,b.NOEMBED,b.NOFRAMES,b.PLAINTEXT]);function Zc(e,t){return Kc.has(e)||t&&e===b.NOSCRIPT}var f;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(f||(f={}));const Te={DATA:f.DATA,RCDATA:f.RCDATA,RAWTEXT:f.RAWTEXT,SCRIPT_DATA:f.SCRIPT_DATA,PLAINTEXT:f.PLAINTEXT,CDATA_SECTION:f.CDATA_SECTION};function Jc(e){return e>=d.DIGIT_0&&e<=d.DIGIT_9}function Ht(e){return e>=d.LATIN_CAPITAL_A&&e<=d.LATIN_CAPITAL_Z}function el(e){return e>=d.LATIN_SMALL_A&&e<=d.LATIN_SMALL_Z}function je(e){return el(e)||Ht(e)}function er(e){return je(e)||Jc(e)}function Ca(e){return e+32}function tr(e){return e===d.SPACE||e===d.LINE_FEED||e===d.TABULATION||e===d.FORM_FEED}function ar(e){return tr(e)||e===d.SOLIDUS||e===d.GREATER_THAN_SIGN}function tl(e){return e===d.NULL?g.nullCharacterReference:e>1114111?g.characterReferenceOutsideUnicodeRange:zi(e)?g.surrogateCharacterReference:Zi(e)?g.noncharacterCharacterReference:Ki(e)||e===d.CARRIAGE_RETURN?g.controlCharacterReference:null}let al=class{constructor(t,a){this.options=t,this.handler=a,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=f.DATA,this.returnState=f.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Qc(a),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Qa(Wa,(n,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(n)},a.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(g.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(g.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const i=tl(n);i&&this._err(i,1)}}:void 0)}_err(t,a=0){var n,i;(i=(n=this.handler).onParseError)===null||i===void 0||i.call(n,this.preprocessor.getError(t,a))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,a,n){this.active=!0,this.preprocessor.write(t,a),this._runParsingLoop(),this.paused||n==null||n()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let a=0;a<t;a++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,a){return this.preprocessor.startsWith(t,a)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:G.START_TAG,tagName:"",tagID:r.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:G.END_TAG,tagName:"",tagID:r.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:G.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:G.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,a){this.currentCharacterToken={type:t,chars:a,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,a;const n=this.currentToken;if(Ji(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const i=(t=(a=n.location).attrs)!==null&&t!==void 0?t:a.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(g.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Na(t.tagName),t.type===G.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(g.endTagWithAttributes),t.selfClosing&&this._err(g.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case G.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case G.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case G.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:G.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,a){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=a;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,a)}_emitCodePoint(t){const a=tr(t)?G.WHITESPACE_CHARACTER:t===d.NULL?G.NULL_CHARACTER:G.CHARACTER;this._appendCharToCurrentCharacterToken(a,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(G.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=f.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Se.Attribute:Se.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===f.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===f.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===f.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case f.DATA:{this._stateData(t);break}case f.RCDATA:{this._stateRcdata(t);break}case f.RAWTEXT:{this._stateRawtext(t);break}case f.SCRIPT_DATA:{this._stateScriptData(t);break}case f.PLAINTEXT:{this._statePlaintext(t);break}case f.TAG_OPEN:{this._stateTagOpen(t);break}case f.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case f.TAG_NAME:{this._stateTagName(t);break}case f.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case f.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case f.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case f.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case f.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case f.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case f.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case f.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case f.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case f.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case f.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case f.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case f.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case f.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case f.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case f.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case f.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case f.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case f.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case f.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case f.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case f.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case f.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case f.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case f.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case f.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case f.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case f.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case f.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case f.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case f.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case f.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case f.BOGUS_COMMENT:{this._stateBogusComment(t);break}case f.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case f.COMMENT_START:{this._stateCommentStart(t);break}case f.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case f.COMMENT:{this._stateComment(t);break}case f.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case f.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case f.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case f.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case f.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case f.COMMENT_END:{this._stateCommentEnd(t);break}case f.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case f.DOCTYPE:{this._stateDoctype(t);break}case f.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case f.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case f.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case f.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case f.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case f.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case f.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case f.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case f.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case f.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case f.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case f.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case f.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case f.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case f.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case f.CDATA_SECTION:{this._stateCdataSection(t);break}case f.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case f.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case f.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case f.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case d.LESS_THAN_SIGN:{this.state=f.TAG_OPEN;break}case d.AMPERSAND:{this._startCharacterReference();break}case d.NULL:{this._err(g.unexpectedNullCharacter),this._emitCodePoint(t);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case d.AMPERSAND:{this._startCharacterReference();break}case d.LESS_THAN_SIGN:{this.state=f.RCDATA_LESS_THAN_SIGN;break}case d.NULL:{this._err(g.unexpectedNullCharacter),this._emitChars(K);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case d.LESS_THAN_SIGN:{this.state=f.RAWTEXT_LESS_THAN_SIGN;break}case d.NULL:{this._err(g.unexpectedNullCharacter),this._emitChars(K);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case d.LESS_THAN_SIGN:{this.state=f.SCRIPT_DATA_LESS_THAN_SIGN;break}case d.NULL:{this._err(g.unexpectedNullCharacter),this._emitChars(K);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case d.NULL:{this._err(g.unexpectedNullCharacter),this._emitChars(K);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(je(t))this._createStartTagToken(),this.state=f.TAG_NAME,this._stateTagName(t);else switch(t){case d.EXCLAMATION_MARK:{this.state=f.MARKUP_DECLARATION_OPEN;break}case d.SOLIDUS:{this.state=f.END_TAG_OPEN;break}case d.QUESTION_MARK:{this._err(g.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=f.BOGUS_COMMENT,this._stateBogusComment(t);break}case d.EOF:{this._err(g.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(g.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=f.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(je(t))this._createEndTagToken(),this.state=f.TAG_NAME,this._stateTagName(t);else switch(t){case d.GREATER_THAN_SIGN:{this._err(g.missingEndTagName),this.state=f.DATA;break}case d.EOF:{this._err(g.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(g.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=f.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const a=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=f.BEFORE_ATTRIBUTE_NAME;break}case d.SOLIDUS:{this.state=f.SELF_CLOSING_START_TAG;break}case d.GREATER_THAN_SIGN:{this.state=f.DATA,this.emitCurrentTagToken();break}case d.NULL:{this._err(g.unexpectedNullCharacter),a.tagName+=K;break}case d.EOF:{this._err(g.eofInTag),this._emitEOFToken();break}default:a.tagName+=String.fromCodePoint(Ht(t)?Ca(t):t)}}_stateRcdataLessThanSign(t){t===d.SOLIDUS?this.state=f.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=f.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){je(t)?(this.state=f.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=f.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const a=this.currentToken;switch(a.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=f.BEFORE_ATTRIBUTE_NAME,!1;case d.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=f.SELF_CLOSING_START_TAG,!1;case d.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=f.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=f.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===d.SOLIDUS?this.state=f.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=f.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){je(t)?(this.state=f.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=f.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=f.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case d.SOLIDUS:{this.state=f.SCRIPT_DATA_END_TAG_OPEN;break}case d.EXCLAMATION_MARK:{this.state=f.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=f.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){je(t)?(this.state=f.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=f.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=f.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===d.HYPHEN_MINUS?(this.state=f.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=f.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===d.HYPHEN_MINUS?(this.state=f.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=f.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case d.HYPHEN_MINUS:{this.state=f.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=f.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case d.NULL:{this._err(g.unexpectedNullCharacter),this._emitChars(K);break}case d.EOF:{this._err(g.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case d.HYPHEN_MINUS:{this.state=f.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=f.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case d.NULL:{this._err(g.unexpectedNullCharacter),this.state=f.SCRIPT_DATA_ESCAPED,this._emitChars(K);break}case d.EOF:{this._err(g.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=f.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case d.HYPHEN_MINUS:{this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=f.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case d.GREATER_THAN_SIGN:{this.state=f.SCRIPT_DATA,this._emitChars(">");break}case d.NULL:{this._err(g.unexpectedNullCharacter),this.state=f.SCRIPT_DATA_ESCAPED,this._emitChars(K);break}case d.EOF:{this._err(g.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=f.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===d.SOLIDUS?this.state=f.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:je(t)?(this._emitChars("<"),this.state=f.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=f.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){je(t)?(this.state=f.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=f.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=f.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(pe.SCRIPT,!1)&&ar(this.preprocessor.peek(pe.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<pe.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=f.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case d.HYPHEN_MINUS:{this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case d.NULL:{this._err(g.unexpectedNullCharacter),this._emitChars(K);break}case d.EOF:{this._err(g.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case d.HYPHEN_MINUS:{this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case d.NULL:{this._err(g.unexpectedNullCharacter),this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(K);break}case d.EOF:{this._err(g.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case d.HYPHEN_MINUS:{this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case d.GREATER_THAN_SIGN:{this.state=f.SCRIPT_DATA,this._emitChars(">");break}case d.NULL:{this._err(g.unexpectedNullCharacter),this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(K);break}case d.EOF:{this._err(g.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===d.SOLIDUS?(this.state=f.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(pe.SCRIPT,!1)&&ar(this.preprocessor.peek(pe.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<pe.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=f.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=f.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.SOLIDUS:case d.GREATER_THAN_SIGN:case d.EOF:{this.state=f.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case d.EQUALS_SIGN:{this._err(g.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=f.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=f.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:case d.SOLIDUS:case d.GREATER_THAN_SIGN:case d.EOF:{this._leaveAttrName(),this.state=f.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case d.EQUALS_SIGN:{this._leaveAttrName(),this.state=f.BEFORE_ATTRIBUTE_VALUE;break}case d.QUOTATION_MARK:case d.APOSTROPHE:case d.LESS_THAN_SIGN:{this._err(g.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case d.NULL:{this._err(g.unexpectedNullCharacter),this.currentAttr.name+=K;break}default:this.currentAttr.name+=String.fromCodePoint(Ht(t)?Ca(t):t)}}_stateAfterAttributeName(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.SOLIDUS:{this.state=f.SELF_CLOSING_START_TAG;break}case d.EQUALS_SIGN:{this.state=f.BEFORE_ATTRIBUTE_VALUE;break}case d.GREATER_THAN_SIGN:{this.state=f.DATA,this.emitCurrentTagToken();break}case d.EOF:{this._err(g.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=f.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.QUOTATION_MARK:{this.state=f.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this.state=f.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(g.missingAttributeValue),this.state=f.DATA,this.emitCurrentTagToken();break}default:this.state=f.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case d.QUOTATION_MARK:{this.state=f.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case d.AMPERSAND:{this._startCharacterReference();break}case d.NULL:{this._err(g.unexpectedNullCharacter),this.currentAttr.value+=K;break}case d.EOF:{this._err(g.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case d.APOSTROPHE:{this.state=f.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case d.AMPERSAND:{this._startCharacterReference();break}case d.NULL:{this._err(g.unexpectedNullCharacter),this.currentAttr.value+=K;break}case d.EOF:{this._err(g.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this._leaveAttrValue(),this.state=f.BEFORE_ATTRIBUTE_NAME;break}case d.AMPERSAND:{this._startCharacterReference();break}case d.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=f.DATA,this.emitCurrentTagToken();break}case d.NULL:{this._err(g.unexpectedNullCharacter),this.currentAttr.value+=K;break}case d.QUOTATION_MARK:case d.APOSTROPHE:case d.LESS_THAN_SIGN:case d.EQUALS_SIGN:case d.GRAVE_ACCENT:{this._err(g.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case d.EOF:{this._err(g.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this._leaveAttrValue(),this.state=f.BEFORE_ATTRIBUTE_NAME;break}case d.SOLIDUS:{this._leaveAttrValue(),this.state=f.SELF_CLOSING_START_TAG;break}case d.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=f.DATA,this.emitCurrentTagToken();break}case d.EOF:{this._err(g.eofInTag),this._emitEOFToken();break}default:this._err(g.missingWhitespaceBetweenAttributes),this.state=f.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case d.GREATER_THAN_SIGN:{const a=this.currentToken;a.selfClosing=!0,this.state=f.DATA,this.emitCurrentTagToken();break}case d.EOF:{this._err(g.eofInTag),this._emitEOFToken();break}default:this._err(g.unexpectedSolidusInTag),this.state=f.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const a=this.currentToken;switch(t){case d.GREATER_THAN_SIGN:{this.state=f.DATA,this.emitCurrentComment(a);break}case d.EOF:{this.emitCurrentComment(a),this._emitEOFToken();break}case d.NULL:{this._err(g.unexpectedNullCharacter),a.data+=K;break}default:a.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(pe.DASH_DASH,!0)?(this._createCommentToken(pe.DASH_DASH.length+1),this.state=f.COMMENT_START):this._consumeSequenceIfMatch(pe.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(pe.DOCTYPE.length+1),this.state=f.DOCTYPE):this._consumeSequenceIfMatch(pe.CDATA_START,!0)?this.inForeignNode?this.state=f.CDATA_SECTION:(this._err(g.cdataInHtmlContent),this._createCommentToken(pe.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=f.BOGUS_COMMENT):this._ensureHibernation()||(this._err(g.incorrectlyOpenedComment),this._createCommentToken(2),this.state=f.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case d.HYPHEN_MINUS:{this.state=f.COMMENT_START_DASH;break}case d.GREATER_THAN_SIGN:{this._err(g.abruptClosingOfEmptyComment),this.state=f.DATA;const a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=f.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const a=this.currentToken;switch(t){case d.HYPHEN_MINUS:{this.state=f.COMMENT_END;break}case d.GREATER_THAN_SIGN:{this._err(g.abruptClosingOfEmptyComment),this.state=f.DATA,this.emitCurrentComment(a);break}case d.EOF:{this._err(g.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=f.COMMENT,this._stateComment(t)}}_stateComment(t){const a=this.currentToken;switch(t){case d.HYPHEN_MINUS:{this.state=f.COMMENT_END_DASH;break}case d.LESS_THAN_SIGN:{a.data+="<",this.state=f.COMMENT_LESS_THAN_SIGN;break}case d.NULL:{this._err(g.unexpectedNullCharacter),a.data+=K;break}case d.EOF:{this._err(g.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const a=this.currentToken;switch(t){case d.EXCLAMATION_MARK:{a.data+="!",this.state=f.COMMENT_LESS_THAN_SIGN_BANG;break}case d.LESS_THAN_SIGN:{a.data+="<";break}default:this.state=f.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===d.HYPHEN_MINUS?this.state=f.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=f.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===d.HYPHEN_MINUS?this.state=f.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=f.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==d.GREATER_THAN_SIGN&&t!==d.EOF&&this._err(g.nestedComment),this.state=f.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const a=this.currentToken;switch(t){case d.HYPHEN_MINUS:{this.state=f.COMMENT_END;break}case d.EOF:{this._err(g.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=f.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const a=this.currentToken;switch(t){case d.GREATER_THAN_SIGN:{this.state=f.DATA,this.emitCurrentComment(a);break}case d.EXCLAMATION_MARK:{this.state=f.COMMENT_END_BANG;break}case d.HYPHEN_MINUS:{a.data+="-";break}case d.EOF:{this._err(g.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--",this.state=f.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const a=this.currentToken;switch(t){case d.HYPHEN_MINUS:{a.data+="--!",this.state=f.COMMENT_END_DASH;break}case d.GREATER_THAN_SIGN:{this._err(g.incorrectlyClosedComment),this.state=f.DATA,this.emitCurrentComment(a);break}case d.EOF:{this._err(g.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--!",this.state=f.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=f.BEFORE_DOCTYPE_NAME;break}case d.GREATER_THAN_SIGN:{this.state=f.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case d.EOF:{this._err(g.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(g.missingWhitespaceBeforeDoctypeName),this.state=f.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ht(t))this._createDoctypeToken(String.fromCharCode(Ca(t))),this.state=f.DOCTYPE_NAME;else switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.NULL:{this._err(g.unexpectedNullCharacter),this._createDoctypeToken(K),this.state=f.DOCTYPE_NAME;break}case d.GREATER_THAN_SIGN:{this._err(g.missingDoctypeName),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=f.DATA;break}case d.EOF:{this._err(g.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=f.DOCTYPE_NAME}}_stateDoctypeName(t){const a=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=f.AFTER_DOCTYPE_NAME;break}case d.GREATER_THAN_SIGN:{this.state=f.DATA,this.emitCurrentDoctype(a);break}case d.NULL:{this._err(g.unexpectedNullCharacter),a.name+=K;break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.name+=String.fromCodePoint(Ht(t)?Ca(t):t)}}_stateAfterDoctypeName(t){const a=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.GREATER_THAN_SIGN:{this.state=f.DATA,this.emitCurrentDoctype(a);break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(pe.PUBLIC,!1)?this.state=f.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(pe.SYSTEM,!1)?this.state=f.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(g.invalidCharacterSequenceAfterDoctypeName),a.forceQuirks=!0,this.state=f.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const a=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=f.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case d.QUOTATION_MARK:{this._err(g.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=f.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this._err(g.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=f.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(g.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=f.DATA,this.emitCurrentDoctype(a);break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(g.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=f.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const a=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.QUOTATION_MARK:{a.publicId="",this.state=f.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{a.publicId="",this.state=f.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(g.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=f.DATA,this.emitCurrentDoctype(a);break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(g.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=f.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case d.QUOTATION_MARK:{this.state=f.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case d.NULL:{this._err(g.unexpectedNullCharacter),a.publicId+=K;break}case d.GREATER_THAN_SIGN:{this._err(g.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=f.DATA;break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const a=this.currentToken;switch(t){case d.APOSTROPHE:{this.state=f.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case d.NULL:{this._err(g.unexpectedNullCharacter),a.publicId+=K;break}case d.GREATER_THAN_SIGN:{this._err(g.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=f.DATA;break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const a=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=f.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case d.GREATER_THAN_SIGN:{this.state=f.DATA,this.emitCurrentDoctype(a);break}case d.QUOTATION_MARK:{this._err(g.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=f.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this._err(g.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=f.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(g.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=f.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const a=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=f.DATA;break}case d.QUOTATION_MARK:{a.systemId="",this.state=f.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{a.systemId="",this.state=f.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(g.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=f.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const a=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=f.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case d.QUOTATION_MARK:{this._err(g.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=f.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this._err(g.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=f.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(g.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=f.DATA,this.emitCurrentDoctype(a);break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(g.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=f.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const a=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.QUOTATION_MARK:{a.systemId="",this.state=f.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{a.systemId="",this.state=f.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(g.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=f.DATA,this.emitCurrentDoctype(a);break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(g.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=f.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case d.QUOTATION_MARK:{this.state=f.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case d.NULL:{this._err(g.unexpectedNullCharacter),a.systemId+=K;break}case d.GREATER_THAN_SIGN:{this._err(g.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=f.DATA;break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const a=this.currentToken;switch(t){case d.APOSTROPHE:{this.state=f.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case d.NULL:{this._err(g.unexpectedNullCharacter),a.systemId+=K;break}case d.GREATER_THAN_SIGN:{this._err(g.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=f.DATA;break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const a=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=f.DATA;break}case d.EOF:{this._err(g.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(g.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=f.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const a=this.currentToken;switch(t){case d.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=f.DATA;break}case d.NULL:{this._err(g.unexpectedNullCharacter);break}case d.EOF:{this.emitCurrentDoctype(a),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case d.RIGHT_SQUARE_BRACKET:{this.state=f.CDATA_SECTION_BRACKET;break}case d.EOF:{this._err(g.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===d.RIGHT_SQUARE_BRACKET?this.state=f.CDATA_SECTION_END:(this._emitChars("]"),this.state=f.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case d.GREATER_THAN_SIGN:{this.state=f.DATA;break}case d.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=f.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&er(this.preprocessor.peek(1))?f.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){er(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===d.SEMICOLON&&this._err(g.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const nr=new Set([r.DD,r.DT,r.LI,r.OPTGROUP,r.OPTION,r.P,r.RB,r.RP,r.RT,r.RTC]),ir=new Set([...nr,r.CAPTION,r.COLGROUP,r.TBODY,r.TD,r.TFOOT,r.TH,r.THEAD,r.TR]),Ia=new Set([r.APPLET,r.CAPTION,r.HTML,r.MARQUEE,r.OBJECT,r.TABLE,r.TD,r.TEMPLATE,r.TH]),nl=new Set([...Ia,r.OL,r.UL]),il=new Set([...Ia,r.BUTTON]),rr=new Set([r.ANNOTATION_XML,r.MI,r.MN,r.MO,r.MS,r.MTEXT]),sr=new Set([r.DESC,r.FOREIGN_OBJECT,r.TITLE]),rl=new Set([r.TR,r.TEMPLATE,r.HTML]),sl=new Set([r.TBODY,r.TFOOT,r.THEAD,r.TEMPLATE,r.HTML]),ul=new Set([r.TABLE,r.TEMPLATE,r.HTML]),ol=new Set([r.TD,r.TH]);class cl{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,a,n){this.treeAdapter=a,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=r.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===r.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===N.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,a){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=a,this.currentTagId=a,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,a,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,a){const n=this._indexOf(t);this.items[n]=a,n===this.stackTop&&(this.current=a)}insertAfter(t,a,n){const i=this._indexOf(t)+1;this.items.splice(i,0,a),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let a=this.stackTop+1;do a=this.tagIDs.lastIndexOf(t,a-1);while(a>0&&this.treeAdapter.getNamespaceURI(this.items[a])!==N.HTML);this.shortenToLength(a<0?0:a)}shortenToLength(t){for(;this.stackTop>=t;){const a=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,this.stackTop<t)}}popUntilElementPopped(t){const a=this._indexOf(t);this.shortenToLength(a<0?0:a)}popUntilPopped(t,a){const n=this._indexOfTagNames(t,a);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(An,N.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ol,N.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,a){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===a)return n;return-1}clearBackTo(t,a){const n=this._indexOfTagNames(t,a);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(ul,N.HTML)}clearBackToTableBodyContext(){this.clearBackTo(sl,N.HTML)}clearBackToTableRowContext(){this.clearBackTo(rl,N.HTML)}remove(t){const a=this._indexOf(t);a>=0&&(a===this.stackTop?this.pop():(this.items.splice(a,1),this.tagIDs.splice(a,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===r.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const a=this._indexOf(t)-1;return a>=0?this.items[a]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===r.HTML}hasInDynamicScope(t,a){for(let n=this.stackTop;n>=0;n--){const i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case N.HTML:{if(i===t)return!0;if(a.has(i))return!1;break}case N.SVG:{if(sr.has(i))return!1;break}case N.MATHML:{if(rr.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ia)}hasInListItemScope(t){return this.hasInDynamicScope(t,nl)}hasInButtonScope(t){return this.hasInDynamicScope(t,il)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const a=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case N.HTML:{if(An.has(a))return!0;if(Ia.has(a))return!1;break}case N.SVG:{if(sr.has(a))return!1;break}case N.MATHML:{if(rr.has(a))return!1;break}}}return!0}hasInTableScope(t){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===N.HTML)switch(this.tagIDs[a]){case t:return!0;case r.TABLE:case r.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===N.HTML)switch(this.tagIDs[t]){case r.TBODY:case r.THEAD:case r.TFOOT:return!0;case r.TABLE:case r.HTML:return!1}return!0}hasInSelectScope(t){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===N.HTML)switch(this.tagIDs[a]){case t:return!0;case r.OPTION:case r.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;nr.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ir.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&ir.has(this.currentTagId);)this.pop()}}const Nn=3;var we;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(we||(we={}));const ur={type:we.Marker};class ll{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,a){const n=[],i=a.length,s=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const l=this.entries[c];if(l.type===we.Marker)break;const{element:h}=l;if(this.treeAdapter.getTagName(h)===s&&this.treeAdapter.getNamespaceURI(h)===u){const m=this.treeAdapter.getAttrList(h);m.length===i&&n.push({idx:c,attrs:m})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<Nn)return;const a=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,a);if(n.length<Nn)return;const i=new Map(a.map(u=>[u.name,u.value]));let s=0;for(let u=0;u<n.length;u++){const c=n[u];c.attrs.every(l=>i.get(l.name)===l.value)&&(s+=1,s>=Nn&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(ur)}pushElement(t,a){this._ensureNoahArkCondition(t),this.entries.unshift({type:we.Element,element:t,token:a})}insertElementAfterBookmark(t,a){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:we.Element,element:t,token:a})}removeEntry(t){const a=this.entries.indexOf(t);a>=0&&this.entries.splice(a,1)}clearToLastMarker(){const t=this.entries.indexOf(ur);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const a=this.entries.find(n=>n.type===we.Marker||this.treeAdapter.getTagName(n.element)===t);return a&&a.type===we.Element?a:null}getElementEntry(t){return this.entries.find(a=>a.type===we.Element&&a.element===t)}}const Ve={createDocument(){return{nodeName:"#document",mode:Ae.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,a){return{nodeName:e,tagName:e,attrs:a,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,a){const n=e.childNodes.indexOf(a);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,a,n){const i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=a,i.systemId=n;else{const s={nodeName:"#documentType",name:t,publicId:a,systemId:n,parentNode:null};Ve.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const a=e.childNodes[e.childNodes.length-1];if(Ve.isTextNode(a)){a.value+=t;return}}Ve.appendChild(e,Ve.createTextNode(t))},insertTextBefore(e,t,a){const n=e.childNodes[e.childNodes.indexOf(a)-1];n&&Ve.isTextNode(n)?n.value+=t:Ve.insertBefore(e,Ve.createTextNode(t),a)},adoptAttributes(e,t){const a=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)a.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},or="html",dl="about:legacy-compat",hl="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",cr=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],fl=[...cr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ml=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),lr=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],El=[...lr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function dr(e,t){return t.some(a=>e.startsWith(a))}function pl(e){return e.name===or&&e.publicId===null&&(e.systemId===null||e.systemId===dl)}function Tl(e){if(e.name!==or)return Ae.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===hl)return Ae.QUIRKS;let{publicId:a}=e;if(a!==null){if(a=a.toLowerCase(),ml.has(a))return Ae.QUIRKS;let n=t===null?fl:cr;if(dr(a,n))return Ae.QUIRKS;if(n=t===null?lr:El,dr(a,n))return Ae.LIMITED_QUIRKS}return Ae.NO_QUIRKS}const hr={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},bl="definitionurl",gl="definitionURL",_l=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Al=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:N.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:N.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:N.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:N.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:N.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:N.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:N.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:N.XML}],["xml:space",{prefix:"xml",name:"space",namespace:N.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:N.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:N.XMLNS}]]),Nl=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Cl=new Set([r.B,r.BIG,r.BLOCKQUOTE,r.BODY,r.BR,r.CENTER,r.CODE,r.DD,r.DIV,r.DL,r.DT,r.EM,r.EMBED,r.H1,r.H2,r.H3,r.H4,r.H5,r.H6,r.HEAD,r.HR,r.I,r.IMG,r.LI,r.LISTING,r.MENU,r.META,r.NOBR,r.OL,r.P,r.PRE,r.RUBY,r.S,r.SMALL,r.SPAN,r.STRONG,r.STRIKE,r.SUB,r.SUP,r.TABLE,r.TT,r.U,r.UL,r.VAR]);function Il(e){const t=e.tagID;return t===r.FONT&&e.attrs.some(({name:n})=>n===st.COLOR||n===st.SIZE||n===st.FACE)||Cl.has(t)}function fr(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===bl){e.attrs[t].name=gl;break}}function mr(e){for(let t=0;t<e.attrs.length;t++){const a=_l.get(e.attrs[t].name);a!=null&&(e.attrs[t].name=a)}}function Cn(e){for(let t=0;t<e.attrs.length;t++){const a=Al.get(e.attrs[t].name);a&&(e.attrs[t].prefix=a.prefix,e.attrs[t].name=a.name,e.attrs[t].namespace=a.namespace)}}function Sl(e){const t=Nl.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Na(e.tagName))}function Ol(e,t){return t===N.MATHML&&(e===r.MI||e===r.MO||e===r.MN||e===r.MS||e===r.MTEXT)}function xl(e,t,a){if(t===N.MATHML&&e===r.ANNOTATION_XML){for(let n=0;n<a.length;n++)if(a[n].name===st.ENCODING){const i=a[n].value.toLowerCase();return i===hr.TEXT_HTML||i===hr.APPLICATION_XML}}return t===N.SVG&&(e===r.FOREIGN_OBJECT||e===r.DESC||e===r.TITLE)}function Dl(e,t,a,n){return(!n||n===N.HTML)&&xl(e,t,a)||(!n||n===N.MATHML)&&Ol(e,t)}const Ll="hidden",yl=8,Rl=3;var E;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(E||(E={}));const kl={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Er=new Set([r.TABLE,r.TBODY,r.TFOOT,r.THEAD,r.TR]),pr={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ve,onParseError:null};let Tr=class{constructor(t,a,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=E.INITIAL,this.originalInsertionMode=E.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...pr,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=a??this.treeAdapter.createDocument(),this.tokenizer=new al(this.options,this),this.activeFormattingElements=new ll(this.treeAdapter),this.fragmentContextID=n?Na(this.treeAdapter.getTagName(n)):r.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new cl(this.document,this.treeAdapter,this)}static parse(t,a){const n=new this(a);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,a){const n={...pr,...a};t??(t=n.treeAdapter.createElement(b.TEMPLATE,N.HTML,[]));const i=n.treeAdapter.createElement("documentmock",N.HTML,[]),s=new this(n,i,t);return s.fragmentContextID===r.TEMPLATE&&s.tmplInsertionModeStack.unshift(E.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),a=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,a),a}_err(t,a,n){var i;if(!this.onParseError)return;const s=(i=t.location)!==null&&i!==void 0?i:kl,u={code:a,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:n?s.startLine:s.endLine,endCol:n?s.startCol:s.endCol,endOffset:n?s.startOffset:s.endOffset};this.onParseError(u)}onItemPush(t,a,n){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,a)}onItemPop(t,a){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(n=this.treeAdapter).onItemPop)===null||i===void 0||i.call(n,t,this.openElements.current),a){let s,u;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,u=this.fragmentContextID):{current:s,currentTagId:u}=this.openElements,this._setContextModes(s,u)}}_setContextModes(t,a){const n=t===this.document||this.treeAdapter.getNamespaceURI(t)===N.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(a,t)}_switchToTextParsing(t,a){this._insertElement(t,N.HTML),this.tokenizer.state=a,this.originalInsertionMode=this.insertionMode,this.insertionMode=E.TEXT}switchToPlaintextParsing(){this.insertionMode=E.TEXT,this.originalInsertionMode=E.IN_BODY,this.tokenizer.state=Te.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===b.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==N.HTML))switch(this.fragmentContextID){case r.TITLE:case r.TEXTAREA:{this.tokenizer.state=Te.RCDATA;break}case r.STYLE:case r.XMP:case r.IFRAME:case r.NOEMBED:case r.NOFRAMES:case r.NOSCRIPT:{this.tokenizer.state=Te.RAWTEXT;break}case r.SCRIPT:{this.tokenizer.state=Te.SCRIPT_DATA;break}case r.PLAINTEXT:{this.tokenizer.state=Te.PLAINTEXT;break}}}_setDocumentType(t){const a=t.name||"",n=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,a,n,i),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,a){if(this.options.sourceCodeLocationInfo){const n=a&&{...a,startTag:a};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n,t)}}_appendElement(t,a){const n=this.treeAdapter.createElement(t.tagName,a,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,a){const n=this.treeAdapter.createElement(t.tagName,a,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,a){const n=this.treeAdapter.createElement(t,N.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,a)}_insertTemplate(t){const a=this.treeAdapter.createElement(t.tagName,N.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(a,n),this._attachElementToTree(a,t.location),this.openElements.push(a,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(b.HTML,N.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,r.HTML)}_appendCommentNode(t,a){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(a,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let a,n;if(this._shouldFosterParentOnInsertion()?({parent:a,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(a,t.chars,n):this.treeAdapter.insertText(a,t.chars)):(a=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(a,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(a),s=n?i.lastIndexOf(n):i.length,u=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:l,endCol:h,endOffset:m}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:l,endCol:h,endOffset:m})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,a){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(a,n)}_setEndLocation(t,a){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&a.location){const n=a.location,i=this.treeAdapter.getTagName(t),s=a.type===G.END_TAG&&i===a.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let a,n;return this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,n=this.fragmentContextID):{current:a,currentTagId:n}=this.openElements,t.tagID===r.SVG&&this.treeAdapter.getTagName(a)===b.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(a)===N.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===r.MGLYPH||t.tagID===r.MALIGNMARK)&&!this._isIntegrationPoint(n,a,N.HTML)}_processToken(t){switch(t.type){case G.CHARACTER:{this.onCharacter(t);break}case G.NULL_CHARACTER:{this.onNullCharacter(t);break}case G.COMMENT:{this.onComment(t);break}case G.DOCTYPE:{this.onDoctype(t);break}case G.START_TAG:{this._processStartTag(t);break}case G.END_TAG:{this.onEndTag(t);break}case G.EOF:{this.onEof(t);break}case G.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,a,n){const i=this.treeAdapter.getNamespaceURI(a),s=this.treeAdapter.getAttrList(a);return Dl(t,i,s,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const a=this.activeFormattingElements.entries.findIndex(i=>i.type===we.Marker||this.openElements.contains(i.element)),n=a<0?t-1:a-1;for(let i=n;i>=0;i--){const s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=E.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(r.P),this.openElements.popUntilTagNamePopped(r.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case r.TR:{this.insertionMode=E.IN_ROW;return}case r.TBODY:case r.THEAD:case r.TFOOT:{this.insertionMode=E.IN_TABLE_BODY;return}case r.CAPTION:{this.insertionMode=E.IN_CAPTION;return}case r.COLGROUP:{this.insertionMode=E.IN_COLUMN_GROUP;return}case r.TABLE:{this.insertionMode=E.IN_TABLE;return}case r.BODY:{this.insertionMode=E.IN_BODY;return}case r.FRAMESET:{this.insertionMode=E.IN_FRAMESET;return}case r.SELECT:{this._resetInsertionModeForSelect(t);return}case r.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case r.HTML:{this.insertionMode=this.headElement?E.AFTER_HEAD:E.BEFORE_HEAD;return}case r.TD:case r.TH:{if(t>0){this.insertionMode=E.IN_CELL;return}break}case r.HEAD:{if(t>0){this.insertionMode=E.IN_HEAD;return}break}}this.insertionMode=E.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let a=t-1;a>0;a--){const n=this.openElements.tagIDs[a];if(n===r.TEMPLATE)break;if(n===r.TABLE){this.insertionMode=E.IN_SELECT_IN_TABLE;return}}this.insertionMode=E.IN_SELECT}_isElementCausesFosterParenting(t){return Er.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const a=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case r.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(a)===N.HTML)return{parent:this.treeAdapter.getTemplateContent(a),beforeElement:null};break}case r.TABLE:{const n=this.treeAdapter.getParentNode(a);return n?{parent:n,beforeElement:a}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const a=this._findFosterParentingLocation();a.beforeElement?this.treeAdapter.insertBefore(a.parent,t,a.beforeElement):this.treeAdapter.appendChild(a.parent,t)}_isSpecialElement(t,a){const n=this.treeAdapter.getNamespaceURI(t);return zc[n].has(a)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){od(this,t);return}switch(this.insertionMode){case E.INITIAL:{Vt(this,t);break}case E.BEFORE_HTML:{Yt(this,t);break}case E.BEFORE_HEAD:{qt(this,t);break}case E.IN_HEAD:{Wt(this,t);break}case E.IN_HEAD_NO_SCRIPT:{$t(this,t);break}case E.AFTER_HEAD:{Gt(this,t);break}case E.IN_BODY:case E.IN_CAPTION:case E.IN_CELL:case E.IN_TEMPLATE:{gr(this,t);break}case E.TEXT:case E.IN_SELECT:case E.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case E.IN_TABLE:case E.IN_TABLE_BODY:case E.IN_ROW:{xn(this,t);break}case E.IN_TABLE_TEXT:{xr(this,t);break}case E.IN_COLUMN_GROUP:{xa(this,t);break}case E.AFTER_BODY:{ya(this,t);break}case E.AFTER_AFTER_BODY:{Ra(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ud(this,t);return}switch(this.insertionMode){case E.INITIAL:{Vt(this,t);break}case E.BEFORE_HTML:{Yt(this,t);break}case E.BEFORE_HEAD:{qt(this,t);break}case E.IN_HEAD:{Wt(this,t);break}case E.IN_HEAD_NO_SCRIPT:{$t(this,t);break}case E.AFTER_HEAD:{Gt(this,t);break}case E.TEXT:{this._insertCharacters(t);break}case E.IN_TABLE:case E.IN_TABLE_BODY:case E.IN_ROW:{xn(this,t);break}case E.IN_COLUMN_GROUP:{xa(this,t);break}case E.AFTER_BODY:{ya(this,t);break}case E.AFTER_AFTER_BODY:{Ra(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Sn(this,t);return}switch(this.insertionMode){case E.INITIAL:case E.BEFORE_HTML:case E.BEFORE_HEAD:case E.IN_HEAD:case E.IN_HEAD_NO_SCRIPT:case E.AFTER_HEAD:case E.IN_BODY:case E.IN_TABLE:case E.IN_CAPTION:case E.IN_COLUMN_GROUP:case E.IN_TABLE_BODY:case E.IN_ROW:case E.IN_CELL:case E.IN_SELECT:case E.IN_SELECT_IN_TABLE:case E.IN_TEMPLATE:case E.IN_FRAMESET:case E.AFTER_FRAMESET:{Sn(this,t);break}case E.IN_TABLE_TEXT:{jt(this,t);break}case E.AFTER_BODY:{Fl(this,t);break}case E.AFTER_AFTER_BODY:case E.AFTER_AFTER_FRAMESET:{Hl(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case E.INITIAL:{Vl(this,t);break}case E.BEFORE_HEAD:case E.IN_HEAD:case E.IN_HEAD_NO_SCRIPT:case E.AFTER_HEAD:{this._err(t,g.misplacedDoctype);break}case E.IN_TABLE_TEXT:{jt(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,g.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?cd(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case E.INITIAL:{Vt(this,t);break}case E.BEFORE_HTML:{Yl(this,t);break}case E.BEFORE_HEAD:{Wl(this,t);break}case E.IN_HEAD:{De(this,t);break}case E.IN_HEAD_NO_SCRIPT:{Xl(this,t);break}case E.AFTER_HEAD:{jl(this,t);break}case E.IN_BODY:{de(this,t);break}case E.IN_TABLE:{Nt(this,t);break}case E.IN_TABLE_TEXT:{jt(this,t);break}case E.IN_CAPTION:{$0(this,t);break}case E.IN_COLUMN_GROUP:{Dn(this,t);break}case E.IN_TABLE_BODY:{Da(this,t);break}case E.IN_ROW:{La(this,t);break}case E.IN_CELL:{Q0(this,t);break}case E.IN_SELECT:{yr(this,t);break}case E.IN_SELECT_IN_TABLE:{z0(this,t);break}case E.IN_TEMPLATE:{Z0(this,t);break}case E.AFTER_BODY:{ed(this,t);break}case E.IN_FRAMESET:{td(this,t);break}case E.AFTER_FRAMESET:{nd(this,t);break}case E.AFTER_AFTER_BODY:{rd(this,t);break}case E.AFTER_AFTER_FRAMESET:{sd(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?ld(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case E.INITIAL:{Vt(this,t);break}case E.BEFORE_HTML:{ql(this,t);break}case E.BEFORE_HEAD:{$l(this,t);break}case E.IN_HEAD:{Gl(this,t);break}case E.IN_HEAD_NO_SCRIPT:{Ql(this,t);break}case E.AFTER_HEAD:{zl(this,t);break}case E.IN_BODY:{Oa(this,t);break}case E.TEXT:{P0(this,t);break}case E.IN_TABLE:{Xt(this,t);break}case E.IN_TABLE_TEXT:{jt(this,t);break}case E.IN_CAPTION:{G0(this,t);break}case E.IN_COLUMN_GROUP:{X0(this,t);break}case E.IN_TABLE_BODY:{Ln(this,t);break}case E.IN_ROW:{Lr(this,t);break}case E.IN_CELL:{j0(this,t);break}case E.IN_SELECT:{Rr(this,t);break}case E.IN_SELECT_IN_TABLE:{K0(this,t);break}case E.IN_TEMPLATE:{J0(this,t);break}case E.AFTER_BODY:{Mr(this,t);break}case E.IN_FRAMESET:{ad(this,t);break}case E.AFTER_FRAMESET:{id(this,t);break}case E.AFTER_AFTER_BODY:{Ra(this,t);break}}}onEof(t){switch(this.insertionMode){case E.INITIAL:{Vt(this,t);break}case E.BEFORE_HTML:{Yt(this,t);break}case E.BEFORE_HEAD:{qt(this,t);break}case E.IN_HEAD:{Wt(this,t);break}case E.IN_HEAD_NO_SCRIPT:{$t(this,t);break}case E.AFTER_HEAD:{Gt(this,t);break}case E.IN_BODY:case E.IN_TABLE:case E.IN_CAPTION:case E.IN_COLUMN_GROUP:case E.IN_TABLE_BODY:case E.IN_ROW:case E.IN_CELL:case E.IN_SELECT:case E.IN_SELECT_IN_TABLE:{Sr(this,t);break}case E.TEXT:{B0(this,t);break}case E.IN_TABLE_TEXT:{jt(this,t);break}case E.IN_TEMPLATE:{kr(this,t);break}case E.AFTER_BODY:case E.IN_FRAMESET:case E.AFTER_FRAMESET:case E.AFTER_AFTER_BODY:case E.AFTER_AFTER_FRAMESET:{On(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===d.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case E.IN_HEAD:case E.IN_HEAD_NO_SCRIPT:case E.AFTER_HEAD:case E.TEXT:case E.IN_COLUMN_GROUP:case E.IN_SELECT:case E.IN_SELECT_IN_TABLE:case E.IN_FRAMESET:case E.AFTER_FRAMESET:{this._insertCharacters(t);break}case E.IN_BODY:case E.IN_CAPTION:case E.IN_CELL:case E.IN_TEMPLATE:case E.AFTER_BODY:case E.AFTER_AFTER_BODY:case E.AFTER_AFTER_FRAMESET:{br(this,t);break}case E.IN_TABLE:case E.IN_TABLE_BODY:case E.IN_ROW:{xn(this,t);break}case E.IN_TABLE_TEXT:{Or(this,t);break}}}};function Ml(e,t){let a=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return a?e.openElements.contains(a.element)?e.openElements.hasInScope(t.tagID)||(a=null):(e.activeFormattingElements.removeEntry(a),a=null):Ir(e,t),a}function wl(e,t){let a=null,n=e.openElements.stackTop;for(;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(a=i)}return a||(e.openElements.shortenToLength(n<0?0:n),e.activeFormattingElements.removeEntry(t)),a}function Pl(e,t,a){let n=t,i=e.openElements.getCommonAncestor(t);for(let s=0,u=i;u!==a;s++,u=i){i=e.openElements.getCommonAncestor(u);const c=e.activeFormattingElements.getElementEntry(u),l=c&&s>=Rl;!c||l?(l&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(u)):(u=Bl(e,c),n===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(u,n),n=u)}return n}function Bl(e,t){const a=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,a,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function vl(e,t,a){const n=e.treeAdapter.getTagName(t),i=Na(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(a);else{const s=e.treeAdapter.getNamespaceURI(t);i===r.TEMPLATE&&s===N.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,a)}}function Ul(e,t,a){const n=e.treeAdapter.getNamespaceURI(a.element),{token:i}=a,s=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(a),e.openElements.remove(a.element),e.openElements.insertAfter(t,s,i.tagID)}function In(e,t){for(let a=0;a<yl;a++){const n=Ml(e,t);if(!n)break;const i=wl(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const s=Pl(e,i,n.element),u=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(s),u&&vl(e,u,s),Ul(e,i,n)}}function Sn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Fl(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Hl(e,t){e._appendCommentNode(t,e.document)}function On(e,t){if(e.stopped=!0,t.location){const a=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=a;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(s);u&&!u.endTag&&e._setEndLocation(s,t)}}}}function Vl(e,t){e._setDocumentType(t);const a=t.forceQuirks?Ae.QUIRKS:Tl(t);pl(t)||e._err(t,g.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=E.BEFORE_HTML}function Vt(e,t){e._err(t,g.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ae.QUIRKS),e.insertionMode=E.BEFORE_HTML,e._processToken(t)}function Yl(e,t){t.tagID===r.HTML?(e._insertElement(t,N.HTML),e.insertionMode=E.BEFORE_HEAD):Yt(e,t)}function ql(e,t){const a=t.tagID;(a===r.HTML||a===r.HEAD||a===r.BODY||a===r.BR)&&Yt(e,t)}function Yt(e,t){e._insertFakeRootElement(),e.insertionMode=E.BEFORE_HEAD,e._processToken(t)}function Wl(e,t){switch(t.tagID){case r.HTML:{de(e,t);break}case r.HEAD:{e._insertElement(t,N.HTML),e.headElement=e.openElements.current,e.insertionMode=E.IN_HEAD;break}default:qt(e,t)}}function $l(e,t){const a=t.tagID;a===r.HEAD||a===r.BODY||a===r.HTML||a===r.BR?qt(e,t):e._err(t,g.endTagWithoutMatchingOpenElement)}function qt(e,t){e._insertFakeElement(b.HEAD,r.HEAD),e.headElement=e.openElements.current,e.insertionMode=E.IN_HEAD,e._processToken(t)}function De(e,t){switch(t.tagID){case r.HTML:{de(e,t);break}case r.BASE:case r.BASEFONT:case r.BGSOUND:case r.LINK:case r.META:{e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break}case r.TITLE:{e._switchToTextParsing(t,Te.RCDATA);break}case r.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Te.RAWTEXT):(e._insertElement(t,N.HTML),e.insertionMode=E.IN_HEAD_NO_SCRIPT);break}case r.NOFRAMES:case r.STYLE:{e._switchToTextParsing(t,Te.RAWTEXT);break}case r.SCRIPT:{e._switchToTextParsing(t,Te.SCRIPT_DATA);break}case r.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=E.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(E.IN_TEMPLATE);break}case r.HEAD:{e._err(t,g.misplacedStartTagForHeadElement);break}default:Wt(e,t)}}function Gl(e,t){switch(t.tagID){case r.HEAD:{e.openElements.pop(),e.insertionMode=E.AFTER_HEAD;break}case r.BODY:case r.BR:case r.HTML:{Wt(e,t);break}case r.TEMPLATE:{ut(e,t);break}default:e._err(t,g.endTagWithoutMatchingOpenElement)}}function ut(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==r.TEMPLATE&&e._err(t,g.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(r.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,g.endTagWithoutMatchingOpenElement)}function Wt(e,t){e.openElements.pop(),e.insertionMode=E.AFTER_HEAD,e._processToken(t)}function Xl(e,t){switch(t.tagID){case r.HTML:{de(e,t);break}case r.BASEFONT:case r.BGSOUND:case r.HEAD:case r.LINK:case r.META:case r.NOFRAMES:case r.STYLE:{De(e,t);break}case r.NOSCRIPT:{e._err(t,g.nestedNoscriptInHead);break}default:$t(e,t)}}function Ql(e,t){switch(t.tagID){case r.NOSCRIPT:{e.openElements.pop(),e.insertionMode=E.IN_HEAD;break}case r.BR:{$t(e,t);break}default:e._err(t,g.endTagWithoutMatchingOpenElement)}}function $t(e,t){const a=t.type===G.EOF?g.openElementsLeftAfterEof:g.disallowedContentInNoscriptInHead;e._err(t,a),e.openElements.pop(),e.insertionMode=E.IN_HEAD,e._processToken(t)}function jl(e,t){switch(t.tagID){case r.HTML:{de(e,t);break}case r.BODY:{e._insertElement(t,N.HTML),e.framesetOk=!1,e.insertionMode=E.IN_BODY;break}case r.FRAMESET:{e._insertElement(t,N.HTML),e.insertionMode=E.IN_FRAMESET;break}case r.BASE:case r.BASEFONT:case r.BGSOUND:case r.LINK:case r.META:case r.NOFRAMES:case r.SCRIPT:case r.STYLE:case r.TEMPLATE:case r.TITLE:{e._err(t,g.abandonedHeadElementChild),e.openElements.push(e.headElement,r.HEAD),De(e,t),e.openElements.remove(e.headElement);break}case r.HEAD:{e._err(t,g.misplacedStartTagForHeadElement);break}default:Gt(e,t)}}function zl(e,t){switch(t.tagID){case r.BODY:case r.HTML:case r.BR:{Gt(e,t);break}case r.TEMPLATE:{ut(e,t);break}default:e._err(t,g.endTagWithoutMatchingOpenElement)}}function Gt(e,t){e._insertFakeElement(b.BODY,r.BODY),e.insertionMode=E.IN_BODY,Sa(e,t)}function Sa(e,t){switch(t.type){case G.CHARACTER:{gr(e,t);break}case G.WHITESPACE_CHARACTER:{br(e,t);break}case G.COMMENT:{Sn(e,t);break}case G.START_TAG:{de(e,t);break}case G.END_TAG:{Oa(e,t);break}case G.EOF:{Sr(e,t);break}}}function br(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function gr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Kl(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Zl(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs))}function Jl(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&a&&(e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,N.HTML),e.insertionMode=E.IN_FRAMESET)}function e0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,N.HTML)}function t0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),An.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,N.HTML)}function a0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,N.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function n0(e,t){const a=e.openElements.tmplCount>0;(!e.formElement||a)&&(e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,N.HTML),a||(e.formElement=e.openElements.current))}function i0(e,t){e.framesetOk=!1;const a=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.tagIDs[n];if(a===r.LI&&i===r.LI||(a===r.DD||a===r.DT)&&(i===r.DD||i===r.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==r.ADDRESS&&i!==r.DIV&&i!==r.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,N.HTML)}function r0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,N.HTML),e.tokenizer.state=Te.PLAINTEXT}function s0(e,t){e.openElements.hasInScope(r.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.framesetOk=!1}function u0(e,t){const a=e.activeFormattingElements.getElementEntryInScopeWithTagName(b.A);a&&(In(e,t),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a)),e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function o0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function c0(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(r.NOBR)&&(In(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,N.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function l0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function d0(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ae.QUIRKS&&e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._insertElement(t,N.HTML),e.framesetOk=!1,e.insertionMode=E.IN_TABLE}function _r(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,N.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ar(e){const t=Ji(e,st.TYPE);return t!=null&&t.toLowerCase()===Ll}function h0(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,N.HTML),Ar(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function f0(e,t){e._appendElement(t,N.HTML),t.ackSelfClosing=!0}function m0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._appendElement(t,N.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function E0(e,t){t.tagName=b.IMG,t.tagID=r.IMG,_r(e,t)}function p0(e,t){e._insertElement(t,N.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Te.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=E.TEXT}function T0(e,t){e.openElements.hasInButtonScope(r.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Te.RAWTEXT)}function b0(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Te.RAWTEXT)}function Nr(e,t){e._switchToTextParsing(t,Te.RAWTEXT)}function g0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===E.IN_TABLE||e.insertionMode===E.IN_CAPTION||e.insertionMode===E.IN_TABLE_BODY||e.insertionMode===E.IN_ROW||e.insertionMode===E.IN_CELL?E.IN_SELECT_IN_TABLE:E.IN_SELECT}function _0(e,t){e.openElements.currentTagId===r.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML)}function A0(e,t){e.openElements.hasInScope(r.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,N.HTML)}function N0(e,t){e.openElements.hasInScope(r.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(r.RTC),e._insertElement(t,N.HTML)}function C0(e,t){e._reconstructActiveFormattingElements(),fr(t),Cn(t),t.selfClosing?e._appendElement(t,N.MATHML):e._insertElement(t,N.MATHML),t.ackSelfClosing=!0}function I0(e,t){e._reconstructActiveFormattingElements(),mr(t),Cn(t),t.selfClosing?e._appendElement(t,N.SVG):e._insertElement(t,N.SVG),t.ackSelfClosing=!0}function Cr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML)}function de(e,t){switch(t.tagID){case r.I:case r.S:case r.B:case r.U:case r.EM:case r.TT:case r.BIG:case r.CODE:case r.FONT:case r.SMALL:case r.STRIKE:case r.STRONG:{o0(e,t);break}case r.A:{u0(e,t);break}case r.H1:case r.H2:case r.H3:case r.H4:case r.H5:case r.H6:{t0(e,t);break}case r.P:case r.DL:case r.OL:case r.UL:case r.DIV:case r.DIR:case r.NAV:case r.MAIN:case r.MENU:case r.ASIDE:case r.CENTER:case r.FIGURE:case r.FOOTER:case r.HEADER:case r.HGROUP:case r.DIALOG:case r.DETAILS:case r.ADDRESS:case r.ARTICLE:case r.SEARCH:case r.SECTION:case r.SUMMARY:case r.FIELDSET:case r.BLOCKQUOTE:case r.FIGCAPTION:{e0(e,t);break}case r.LI:case r.DD:case r.DT:{i0(e,t);break}case r.BR:case r.IMG:case r.WBR:case r.AREA:case r.EMBED:case r.KEYGEN:{_r(e,t);break}case r.HR:{m0(e,t);break}case r.RB:case r.RTC:{A0(e,t);break}case r.RT:case r.RP:{N0(e,t);break}case r.PRE:case r.LISTING:{a0(e,t);break}case r.XMP:{T0(e,t);break}case r.SVG:{I0(e,t);break}case r.HTML:{Kl(e,t);break}case r.BASE:case r.LINK:case r.META:case r.STYLE:case r.TITLE:case r.SCRIPT:case r.BGSOUND:case r.BASEFONT:case r.TEMPLATE:{De(e,t);break}case r.BODY:{Zl(e,t);break}case r.FORM:{n0(e,t);break}case r.NOBR:{c0(e,t);break}case r.MATH:{C0(e,t);break}case r.TABLE:{d0(e,t);break}case r.INPUT:{h0(e,t);break}case r.PARAM:case r.TRACK:case r.SOURCE:{f0(e,t);break}case r.IMAGE:{E0(e,t);break}case r.BUTTON:{s0(e,t);break}case r.APPLET:case r.OBJECT:case r.MARQUEE:{l0(e,t);break}case r.IFRAME:{b0(e,t);break}case r.SELECT:{g0(e,t);break}case r.OPTION:case r.OPTGROUP:{_0(e,t);break}case r.NOEMBED:case r.NOFRAMES:{Nr(e,t);break}case r.FRAMESET:{Jl(e,t);break}case r.TEXTAREA:{p0(e,t);break}case r.NOSCRIPT:{e.options.scriptingEnabled?Nr(e,t):Cr(e,t);break}case r.PLAINTEXT:{r0(e,t);break}case r.COL:case r.TH:case r.TD:case r.TR:case r.HEAD:case r.FRAME:case r.TBODY:case r.TFOOT:case r.THEAD:case r.CAPTION:case r.COLGROUP:break;default:Cr(e,t)}}function S0(e,t){if(e.openElements.hasInScope(r.BODY)&&(e.insertionMode=E.AFTER_BODY,e.options.sourceCodeLocationInfo)){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e._setEndLocation(a,t)}}function O0(e,t){e.openElements.hasInScope(r.BODY)&&(e.insertionMode=E.AFTER_BODY,Mr(e,t))}function x0(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a))}function D0(e){const t=e.openElements.tmplCount>0,{formElement:a}=e;t||(e.formElement=null),(a||t)&&e.openElements.hasInScope(r.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(r.FORM):a&&e.openElements.remove(a))}function L0(e){e.openElements.hasInButtonScope(r.P)||e._insertFakeElement(b.P,r.P),e._closePElement()}function y0(e){e.openElements.hasInListItemScope(r.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(r.LI),e.openElements.popUntilTagNamePopped(r.LI))}function R0(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a))}function k0(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function M0(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker())}function w0(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(b.BR,r.BR),e.openElements.pop(),e.framesetOk=!1}function Ir(e,t){const a=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const s=e.openElements.items[i],u=e.openElements.tagIDs[i];if(n===u&&(n!==r.UNKNOWN||e.treeAdapter.getTagName(s)===a)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,u))break}}function Oa(e,t){switch(t.tagID){case r.A:case r.B:case r.I:case r.S:case r.U:case r.EM:case r.TT:case r.BIG:case r.CODE:case r.FONT:case r.NOBR:case r.SMALL:case r.STRIKE:case r.STRONG:{In(e,t);break}case r.P:{L0(e);break}case r.DL:case r.UL:case r.OL:case r.DIR:case r.DIV:case r.NAV:case r.PRE:case r.MAIN:case r.MENU:case r.ASIDE:case r.BUTTON:case r.CENTER:case r.FIGURE:case r.FOOTER:case r.HEADER:case r.HGROUP:case r.DIALOG:case r.ADDRESS:case r.ARTICLE:case r.DETAILS:case r.SEARCH:case r.SECTION:case r.SUMMARY:case r.LISTING:case r.FIELDSET:case r.BLOCKQUOTE:case r.FIGCAPTION:{x0(e,t);break}case r.LI:{y0(e);break}case r.DD:case r.DT:{R0(e,t);break}case r.H1:case r.H2:case r.H3:case r.H4:case r.H5:case r.H6:{k0(e);break}case r.BR:{w0(e);break}case r.BODY:{S0(e,t);break}case r.HTML:{O0(e,t);break}case r.FORM:{D0(e);break}case r.APPLET:case r.OBJECT:case r.MARQUEE:{M0(e,t);break}case r.TEMPLATE:{ut(e,t);break}default:Ir(e,t)}}function Sr(e,t){e.tmplInsertionModeStack.length>0?kr(e,t):On(e,t)}function P0(e,t){var a;t.tagID===r.SCRIPT&&((a=e.scriptHandler)===null||a===void 0||a.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function B0(e,t){e._err(t,g.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function xn(e,t){if(Er.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=E.IN_TABLE_TEXT,t.type){case G.CHARACTER:{xr(e,t);break}case G.WHITESPACE_CHARACTER:{Or(e,t);break}}else Qt(e,t)}function v0(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,N.HTML),e.insertionMode=E.IN_CAPTION}function U0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,N.HTML),e.insertionMode=E.IN_COLUMN_GROUP}function F0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(b.COLGROUP,r.COLGROUP),e.insertionMode=E.IN_COLUMN_GROUP,Dn(e,t)}function H0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,N.HTML),e.insertionMode=E.IN_TABLE_BODY}function V0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(b.TBODY,r.TBODY),e.insertionMode=E.IN_TABLE_BODY,Da(e,t)}function Y0(e,t){e.openElements.hasInTableScope(r.TABLE)&&(e.openElements.popUntilTagNamePopped(r.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function q0(e,t){Ar(t)?e._appendElement(t,N.HTML):Qt(e,t),t.ackSelfClosing=!0}function W0(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,N.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Nt(e,t){switch(t.tagID){case r.TD:case r.TH:case r.TR:{V0(e,t);break}case r.STYLE:case r.SCRIPT:case r.TEMPLATE:{De(e,t);break}case r.COL:{F0(e,t);break}case r.FORM:{W0(e,t);break}case r.TABLE:{Y0(e,t);break}case r.TBODY:case r.TFOOT:case r.THEAD:{H0(e,t);break}case r.INPUT:{q0(e,t);break}case r.CAPTION:{v0(e,t);break}case r.COLGROUP:{U0(e,t);break}default:Qt(e,t)}}function Xt(e,t){switch(t.tagID){case r.TABLE:{e.openElements.hasInTableScope(r.TABLE)&&(e.openElements.popUntilTagNamePopped(r.TABLE),e._resetInsertionMode());break}case r.TEMPLATE:{ut(e,t);break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:case r.TBODY:case r.TD:case r.TFOOT:case r.TH:case r.THEAD:case r.TR:break;default:Qt(e,t)}}function Qt(e,t){const a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Sa(e,t),e.fosterParentingEnabled=a}function Or(e,t){e.pendingCharacterTokens.push(t)}function xr(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function jt(e,t){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a<e.pendingCharacterTokens.length;a++)Qt(e,e.pendingCharacterTokens[a]);else for(;a<e.pendingCharacterTokens.length;a++)e._insertCharacters(e.pendingCharacterTokens[a]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Dr=new Set([r.CAPTION,r.COL,r.COLGROUP,r.TBODY,r.TD,r.TFOOT,r.TH,r.THEAD,r.TR]);function $0(e,t){const a=t.tagID;Dr.has(a)?e.openElements.hasInTableScope(r.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=E.IN_TABLE,Nt(e,t)):de(e,t)}function G0(e,t){const a=t.tagID;switch(a){case r.CAPTION:case r.TABLE:{e.openElements.hasInTableScope(r.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=E.IN_TABLE,a===r.TABLE&&Xt(e,t));break}case r.BODY:case r.COL:case r.COLGROUP:case r.HTML:case r.TBODY:case r.TD:case r.TFOOT:case r.TH:case r.THEAD:case r.TR:break;default:Oa(e,t)}}function Dn(e,t){switch(t.tagID){case r.HTML:{de(e,t);break}case r.COL:{e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break}case r.TEMPLATE:{De(e,t);break}default:xa(e,t)}}function X0(e,t){switch(t.tagID){case r.COLGROUP:{e.openElements.currentTagId===r.COLGROUP&&(e.openElements.pop(),e.insertionMode=E.IN_TABLE);break}case r.TEMPLATE:{ut(e,t);break}case r.COL:break;default:xa(e,t)}}function xa(e,t){e.openElements.currentTagId===r.COLGROUP&&(e.openElements.pop(),e.insertionMode=E.IN_TABLE,e._processToken(t))}function Da(e,t){switch(t.tagID){case r.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,N.HTML),e.insertionMode=E.IN_ROW;break}case r.TH:case r.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(b.TR,r.TR),e.insertionMode=E.IN_ROW,La(e,t);break}case r.CAPTION:case r.COL:case r.COLGROUP:case r.TBODY:case r.TFOOT:case r.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=E.IN_TABLE,Nt(e,t));break}default:Nt(e,t)}}function Ln(e,t){const a=t.tagID;switch(t.tagID){case r.TBODY:case r.TFOOT:case r.THEAD:{e.openElements.hasInTableScope(a)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=E.IN_TABLE);break}case r.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=E.IN_TABLE,Xt(e,t));break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:case r.TD:case r.TH:case r.TR:break;default:Xt(e,t)}}function La(e,t){switch(t.tagID){case r.TH:case r.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,N.HTML),e.insertionMode=E.IN_CELL,e.activeFormattingElements.insertMarker();break}case r.CAPTION:case r.COL:case r.COLGROUP:case r.TBODY:case r.TFOOT:case r.THEAD:case r.TR:{e.openElements.hasInTableScope(r.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=E.IN_TABLE_BODY,Da(e,t));break}default:Nt(e,t)}}function Lr(e,t){switch(t.tagID){case r.TR:{e.openElements.hasInTableScope(r.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=E.IN_TABLE_BODY);break}case r.TABLE:{e.openElements.hasInTableScope(r.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=E.IN_TABLE_BODY,Ln(e,t));break}case r.TBODY:case r.TFOOT:case r.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(r.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=E.IN_TABLE_BODY,Ln(e,t));break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:case r.TD:case r.TH:break;default:Xt(e,t)}}function Q0(e,t){const a=t.tagID;Dr.has(a)?(e.openElements.hasInTableScope(r.TD)||e.openElements.hasInTableScope(r.TH))&&(e._closeTableCell(),La(e,t)):de(e,t)}function j0(e,t){const a=t.tagID;switch(a){case r.TD:case r.TH:{e.openElements.hasInTableScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=E.IN_ROW);break}case r.TABLE:case r.TBODY:case r.TFOOT:case r.THEAD:case r.TR:{e.openElements.hasInTableScope(a)&&(e._closeTableCell(),Lr(e,t));break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:break;default:Oa(e,t)}}function yr(e,t){switch(t.tagID){case r.HTML:{de(e,t);break}case r.OPTION:{e.openElements.currentTagId===r.OPTION&&e.openElements.pop(),e._insertElement(t,N.HTML);break}case r.OPTGROUP:{e.openElements.currentTagId===r.OPTION&&e.openElements.pop(),e.openElements.currentTagId===r.OPTGROUP&&e.openElements.pop(),e._insertElement(t,N.HTML);break}case r.HR:{e.openElements.currentTagId===r.OPTION&&e.openElements.pop(),e.openElements.currentTagId===r.OPTGROUP&&e.openElements.pop(),e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break}case r.INPUT:case r.KEYGEN:case r.TEXTAREA:case r.SELECT:{e.openElements.hasInSelectScope(r.SELECT)&&(e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode(),t.tagID!==r.SELECT&&e._processStartTag(t));break}case r.SCRIPT:case r.TEMPLATE:{De(e,t);break}}}function Rr(e,t){switch(t.tagID){case r.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===r.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===r.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===r.OPTGROUP&&e.openElements.pop();break}case r.OPTION:{e.openElements.currentTagId===r.OPTION&&e.openElements.pop();break}case r.SELECT:{e.openElements.hasInSelectScope(r.SELECT)&&(e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode());break}case r.TEMPLATE:{ut(e,t);break}}}function z0(e,t){const a=t.tagID;a===r.CAPTION||a===r.TABLE||a===r.TBODY||a===r.TFOOT||a===r.THEAD||a===r.TR||a===r.TD||a===r.TH?(e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode(),e._processStartTag(t)):yr(e,t)}function K0(e,t){const a=t.tagID;a===r.CAPTION||a===r.TABLE||a===r.TBODY||a===r.TFOOT||a===r.THEAD||a===r.TR||a===r.TD||a===r.TH?e.openElements.hasInTableScope(a)&&(e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Rr(e,t)}function Z0(e,t){switch(t.tagID){case r.BASE:case r.BASEFONT:case r.BGSOUND:case r.LINK:case r.META:case r.NOFRAMES:case r.SCRIPT:case r.STYLE:case r.TEMPLATE:case r.TITLE:{De(e,t);break}case r.CAPTION:case r.COLGROUP:case r.TBODY:case r.TFOOT:case r.THEAD:{e.tmplInsertionModeStack[0]=E.IN_TABLE,e.insertionMode=E.IN_TABLE,Nt(e,t);break}case r.COL:{e.tmplInsertionModeStack[0]=E.IN_COLUMN_GROUP,e.insertionMode=E.IN_COLUMN_GROUP,Dn(e,t);break}case r.TR:{e.tmplInsertionModeStack[0]=E.IN_TABLE_BODY,e.insertionMode=E.IN_TABLE_BODY,Da(e,t);break}case r.TD:case r.TH:{e.tmplInsertionModeStack[0]=E.IN_ROW,e.insertionMode=E.IN_ROW,La(e,t);break}default:e.tmplInsertionModeStack[0]=E.IN_BODY,e.insertionMode=E.IN_BODY,de(e,t)}}function J0(e,t){t.tagID===r.TEMPLATE&&ut(e,t)}function kr(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(r.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):On(e,t)}function ed(e,t){t.tagID===r.HTML?de(e,t):ya(e,t)}function Mr(e,t){var a;if(t.tagID===r.HTML){if(e.fragmentContext||(e.insertionMode=E.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===r.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((a=e.treeAdapter.getNodeSourceCodeLocation(n))===null||a===void 0)&&a.endTag)&&e._setEndLocation(n,t)}}else ya(e,t)}function ya(e,t){e.insertionMode=E.IN_BODY,Sa(e,t)}function td(e,t){switch(t.tagID){case r.HTML:{de(e,t);break}case r.FRAMESET:{e._insertElement(t,N.HTML);break}case r.FRAME:{e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break}case r.NOFRAMES:{De(e,t);break}}}function ad(e,t){t.tagID===r.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==r.FRAMESET&&(e.insertionMode=E.AFTER_FRAMESET))}function nd(e,t){switch(t.tagID){case r.HTML:{de(e,t);break}case r.NOFRAMES:{De(e,t);break}}}function id(e,t){t.tagID===r.HTML&&(e.insertionMode=E.AFTER_AFTER_FRAMESET)}function rd(e,t){t.tagID===r.HTML?de(e,t):Ra(e,t)}function Ra(e,t){e.insertionMode=E.IN_BODY,Sa(e,t)}function sd(e,t){switch(t.tagID){case r.HTML:{de(e,t);break}case r.NOFRAMES:{De(e,t);break}}}function ud(e,t){t.chars=K,e._insertCharacters(t)}function od(e,t){e._insertCharacters(t),e.framesetOk=!1}function wr(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==N.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function cd(e,t){if(Il(t))wr(e),e._startTagOutsideForeignContent(t);else{const a=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(a);n===N.MATHML?fr(t):n===N.SVG&&(Sl(t),mr(t)),Cn(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function ld(e,t){if(t.tagID===r.P||t.tagID===r.BR){wr(e),e._endTagOutsideForeignContent(t);return}for(let a=e.openElements.stackTop;a>0;a--){const n=e.openElements.items[a];if(e.treeAdapter.getNamespaceURI(n)===N.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(a);break}}}const dd=new Set([b.AREA,b.BASE,b.BASEFONT,b.BGSOUND,b.BR,b.COL,b.EMBED,b.FRAME,b.HR,b.IMG,b.INPUT,b.KEYGEN,b.LINK,b.META,b.PARAM,b.SOURCE,b.TRACK,b.WBR]);function hd(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===N.HTML&&dd.has(t.treeAdapter.getTagName(e))}const fd={treeAdapter:Ve,scriptingEnabled:!0};function md(e,t){const a={...fd,...t};return Pr(e,a)}function Ed(e,t){let a="";const n=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===b.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===N.HTML?t.treeAdapter.getTemplateContent(e):e,i=t.treeAdapter.getChildNodes(n);if(i)for(const s of i)a+=Pr(s,t);return a}function Pr(e,t){return t.treeAdapter.isElementNode(e)?pd(e,t):t.treeAdapter.isTextNode(e)?bd(e,t):t.treeAdapter.isCommentNode(e)?gd(e,t):t.treeAdapter.isDocumentTypeNode(e)?_d(e,t):""}function pd(e,t){const a=t.treeAdapter.getTagName(e);return`<${a}${Td(e,t)}>${hd(e,t)?"":`${Ed(e,t)}</${a}>`}`}function Td(e,{treeAdapter:t}){let a="";for(const n of t.getAttrList(e)){if(a+=" ",n.namespace)switch(n.namespace){case N.XML:{a+=`xml:${n.name}`;break}case N.XMLNS:{n.name!=="xmlns"&&(a+="xmlns:"),a+=n.name;break}case N.XLINK:{a+=`xlink:${n.name}`;break}default:a+=`${n.prefix}:${n.name}`}else a+=n.name;a+=`="${ai(n.value)}"`}return a}function bd(e,t){const{treeAdapter:a}=t,n=a.getTextNodeContent(e),i=a.getParentNode(e),s=i&&a.isElementNode(i)&&a.getTagName(i);return s&&a.getNamespaceURI(i)===N.HTML&&Zc(s,t.scriptingEnabled)?n:ni(n)}function gd(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function _d(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function Ad(e,t){return Tr.parse(e,t)}function Nd(e,t,a){typeof e=="string"&&(a=t,t=e,e=null);const n=Tr.getFragmentParser(e,a);return n.tokenizer.write(t,!0),n.getFragment()}function Br(e){const t=e.includes('"')?"'":'"';return t+e+t}function Cd(e,t,a){let n="!DOCTYPE ";return e&&(n+=e),t?n+=` PUBLIC ${Br(t)}`:a&&(n+=" SYSTEM"),a&&(n+=` ${Br(a)}`),n}const ze={isCommentNode:ra,isElementNode:B,isTextNode:Me,createDocument(){const e=new tt([]);return e["x-mode"]=Ae.NO_QUIRKS,e},createDocumentFragment(){return new tt([])},createElement(e,t,a){const n=Object.create(null),i=Object.create(null),s=Object.create(null);for(let c=0;c<a.length;c++){const l=a[c].name;n[l]=a[c].value,i[l]=a[c].namespace,s[l]=a[c].prefix}const u=new Va(e,n,[]);return u.namespace=t,u["x-attribsNamespace"]=i,u["x-attribsPrefix"]=s,u},createCommentNode(e){return new Ua(e)},createTextNode(e){return new yt(e)},appendChild(e,t){const a=e.children[e.children.length-1];a&&(a.next=t,t.prev=a),e.children.push(t),t.parent=e},insertBefore(e,t,a){const n=e.children.indexOf(a),{prev:i}=a;i&&(i.next=t,t.prev=i),a.prev=t,t.next=a,e.children.splice(n,0,t),t.parent=e},setTemplateContent(e,t){ze.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,a,n){const i=Cd(t,a,n);let s=e.children.find(u=>Ya(u)&&u.name==="!doctype");s?s.data=i??null:(s=new Fa("!doctype",i),ze.appendChild(e,s)),s["x-name"]=t,s["x-publicId"]=a,s["x-systemId"]=n},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){const t=e.parent.children.indexOf(e),{prev:a,next:n}=e;e.prev=null,e.next=null,a&&(a.next=n),n&&(n.prev=a),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){const a=e.children[e.children.length-1];a&&Me(a)?a.data+=t:ze.appendChild(e,ze.createTextNode(t))},insertTextBefore(e,t,a){const n=e.children[e.children.indexOf(a)-1];n&&Me(n)?n.data+=t:ze.insertBefore(e,ze.createTextNode(t),a)},adoptAttributes(e,t){for(let a=0;a<t.length;a++){const n=t[a].name;e.attribs[n]===void 0&&(e.attribs[n]=t[a].value,e["x-attribsNamespace"][n]=t[a].namespace,e["x-attribsPrefix"][n]=t[a].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Ya(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};function Id(e,t,a,n){var i;return(i=t.treeAdapter)!==null&&i!==void 0||(t.treeAdapter=ze),t.scriptingEnabled!==!1&&(t.scriptingEnabled=!0),a?Ad(e,t):Nd(n,e,t)}const Sd={treeAdapter:ze};function Od(e){const t="length"in e?e:[e];for(let n=0;n<t.length;n+=1){const i=t[n];$e(i)&&Array.prototype.splice.call(t,n,1,...i.children)}let a="";for(let n=0;n<t.length;n+=1){const i=t[n];a+=md(i,Sd)}return a}var M;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(M||(M={}));var I;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(I||(I={}));function Ye(e){return e===M.Space||e===M.NewLine||e===M.Tab||e===M.FormFeed||e===M.CarriageReturn}function ka(e){return e===M.Slash||e===M.Gt||Ye(e)}function xd(e){return e>=M.LowerA&&e<=M.LowerZ||e>=M.UpperA&&e<=M.UpperZ}var Pe;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Pe||(Pe={}));const le={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Dd{constructor({xmlMode:t=!1,decodeEntities:a=!0},n){this.cbs=n,this.state=I.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=I.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=a,this.entityDecoder=new Qa(t?Kn:Wa,(i,s)=>this.emitCodePoint(i,s))}reset(){this.state=I.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=I.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===M.Lt||!this.decodeEntities&&this.fastForwardTo(M.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=I.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===M.Amp&&this.startEntity()}stateSpecialStartSequence(t){const a=this.sequenceIndex===this.currentSequence.length;if(!(a?ka(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!a){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=I.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===M.Gt||Ye(t)){const a=this.index-this.currentSequence.length;if(this.sectionStart<a){const n=this.index;this.index=a,this.cbs.ontext(this.sectionStart,a),this.index=n}this.isSpecial=!1,this.sectionStart=a+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===le.TitleEnd?this.decodeEntities&&t===M.Amp&&this.startEntity():this.fastForwardTo(M.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===M.Lt)}stateCDATASequence(t){t===le.Cdata[this.sequenceIndex]?++this.sequenceIndex===le.Cdata.length&&(this.state=I.InCommentLike,this.currentSequence=le.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=I.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===le.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=I.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!ka(t):xd(t)}startSpecial(t,a){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=a,this.state=I.SpecialStartSequence}stateBeforeTagName(t){if(t===M.ExclamationMark)this.state=I.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===M.Questionmark)this.state=I.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const a=t|32;this.sectionStart=this.index,this.xmlMode?this.state=I.InTagName:a===le.ScriptEnd[2]?this.state=I.BeforeSpecialS:a===le.TitleEnd[2]?this.state=I.BeforeSpecialT:this.state=I.InTagName}else t===M.Slash?this.state=I.BeforeClosingTagName:(this.state=I.Text,this.stateText(t))}stateInTagName(t){ka(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=I.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){Ye(t)||(t===M.Gt?this.state=I.Text:(this.state=this.isTagStartChar(t)?I.InClosingTagName:I.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===M.Gt||Ye(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=I.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===M.Gt||this.fastForwardTo(M.Gt))&&(this.state=I.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===M.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=I.InSpecialTag,this.sequenceIndex=0):this.state=I.Text,this.sectionStart=this.index+1):t===M.Slash?this.state=I.InSelfClosingTag:Ye(t)||(this.state=I.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===M.Gt?(this.cbs.onselfclosingtag(this.index),this.state=I.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Ye(t)||(this.state=I.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===M.Eq||ka(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=I.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===M.Eq?this.state=I.BeforeAttributeValue:t===M.Slash||t===M.Gt?(this.cbs.onattribend(Pe.NoValue,this.sectionStart),this.sectionStart=-1,this.state=I.BeforeAttributeName,this.stateBeforeAttributeName(t)):Ye(t)||(this.cbs.onattribend(Pe.NoValue,this.sectionStart),this.state=I.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===M.DoubleQuote?(this.state=I.InAttributeValueDq,this.sectionStart=this.index+1):t===M.SingleQuote?(this.state=I.InAttributeValueSq,this.sectionStart=this.index+1):Ye(t)||(this.sectionStart=this.index,this.state=I.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,a){t===a||!this.decodeEntities&&this.fastForwardTo(a)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(a===M.DoubleQuote?Pe.Double:Pe.Single,this.index+1),this.state=I.BeforeAttributeName):this.decodeEntities&&t===M.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,M.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,M.SingleQuote)}stateInAttributeValueNoQuotes(t){Ye(t)||t===M.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Pe.Unquoted,this.index),this.state=I.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===M.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===M.OpeningSquareBracket?(this.state=I.CDATASequence,this.sequenceIndex=0):this.state=t===M.Dash?I.BeforeComment:I.InDeclaration}stateInDeclaration(t){(t===M.Gt||this.fastForwardTo(M.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=I.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===M.Gt||this.fastForwardTo(M.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=I.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===M.Dash?(this.state=I.InCommentLike,this.currentSequence=le.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=I.InDeclaration}stateInSpecialComment(t){(t===M.Gt||this.fastForwardTo(M.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=I.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const a=t|32;a===le.ScriptEnd[3]?this.startSpecial(le.ScriptEnd,4):a===le.StyleEnd[3]?this.startSpecial(le.StyleEnd,4):(this.state=I.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){const a=t|32;a===le.TitleEnd[3]?this.startSpecial(le.TitleEnd,4):a===le.TextareaEnd[3]?this.startSpecial(le.TextareaEnd,4):(this.state=I.InTagName,this.stateInTagName(t))}startEntity(){this.baseState=this.state,this.state=I.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Se.Strict:this.baseState===I.Text||this.baseState===I.InSpecialTag?Se.Legacy:Se.Attribute)}stateInEntity(){const t=this.entityDecoder.write(this.buffer,this.index-this.offset);t>=0?(this.state=this.baseState,t===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===I.Text||this.state===I.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===I.InAttributeValueDq||this.state===I.InAttributeValueSq||this.state===I.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case I.Text:{this.stateText(t);break}case I.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case I.InSpecialTag:{this.stateInSpecialTag(t);break}case I.CDATASequence:{this.stateCDATASequence(t);break}case I.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case I.InAttributeName:{this.stateInAttributeName(t);break}case I.InCommentLike:{this.stateInCommentLike(t);break}case I.InSpecialComment:{this.stateInSpecialComment(t);break}case I.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case I.InTagName:{this.stateInTagName(t);break}case I.InClosingTagName:{this.stateInClosingTagName(t);break}case I.BeforeTagName:{this.stateBeforeTagName(t);break}case I.AfterAttributeName:{this.stateAfterAttributeName(t);break}case I.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case I.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case I.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case I.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case I.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case I.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case I.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case I.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case I.InDeclaration:{this.stateInDeclaration(t);break}case I.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case I.BeforeComment:{this.stateBeforeComment(t);break}case I.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case I.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===I.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===I.InCommentLike?this.currentSequence===le.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===I.InTagName||this.state===I.BeforeAttributeName||this.state===I.BeforeAttributeValue||this.state===I.AfterAttributeName||this.state===I.InAttributeName||this.state===I.InAttributeValueSq||this.state===I.InAttributeValueDq||this.state===I.InAttributeValueNq||this.state===I.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,a){this.baseState!==I.Text&&this.baseState!==I.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+a,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+a,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}}const Ct=new Set(["input","option","optgroup","select","button","datalist","textarea"]),j=new Set(["p"]),vr=new Set(["thead","tbody"]),Ur=new Set(["dd","dt"]),Fr=new Set(["rt","rp"]),Ld=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",j],["h1",j],["h2",j],["h3",j],["h4",j],["h5",j],["h6",j],["select",Ct],["input",Ct],["output",Ct],["button",Ct],["datalist",Ct],["textarea",Ct],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Ur],["dt",Ur],["address",j],["article",j],["aside",j],["blockquote",j],["details",j],["div",j],["dl",j],["fieldset",j],["figcaption",j],["figure",j],["footer",j],["form",j],["header",j],["hr",j],["main",j],["nav",j],["ol",j],["pre",j],["section",j],["table",j],["ul",j],["rt",Fr],["rp",Fr],["tbody",vr],["tfoot",vr]]),yd=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Hr=new Set(["math","svg"]),Vr=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Rd=/\s|\//;class kd{constructor(t,a={}){var n,i,s,u,c,l;this.options=a,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(n=a.lowerCaseTags)!==null&&n!==void 0?n:this.htmlMode,this.lowerCaseAttributeNames=(i=a.lowerCaseAttributeNames)!==null&&i!==void 0?i:this.htmlMode,this.recognizeSelfClosing=(s=a.recognizeSelfClosing)!==null&&s!==void 0?s:!this.htmlMode,this.tokenizer=new((u=a.Tokenizer)!==null&&u!==void 0?u:Dd)(this.options,this),this.foreignContext=[!this.htmlMode],(l=(c=this.cbs).onparserinit)===null||l===void 0||l.call(c,this)}ontext(t,a){var n,i;const s=this.getSlice(t,a);this.endIndex=a-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,s),this.startIndex=a}ontextentity(t,a){var n,i;this.endIndex=a-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,Ga(t)),this.startIndex=a}isVoidElement(t){return this.htmlMode&&yd.has(t)}onopentagname(t,a){this.endIndex=a;let n=this.getSlice(t,a);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(t){var a,n,i,s;this.openTagStart=this.startIndex,this.tagname=t;const u=this.htmlMode&&Ld.get(t);if(u)for(;this.stack.length>0&&u.has(this.stack[0]);){const c=this.stack.shift();(n=(a=this.cbs).onclosetag)===null||n===void 0||n.call(a,c,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(Hr.has(t)?this.foreignContext.unshift(!0):Vr.has(t)&&this.foreignContext.unshift(!1))),(s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var a,n;this.startIndex=this.openTagStart,this.attribs&&((n=(a=this.cbs).onopentag)===null||n===void 0||n.call(a,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,a){var n,i,s,u,c,l,h,m;this.endIndex=a;let p=this.getSlice(t,a);if(this.lowerCaseTagNames&&(p=p.toLowerCase()),this.htmlMode&&(Hr.has(p)||Vr.has(p))&&this.foreignContext.shift(),this.isVoidElement(p))this.htmlMode&&p==="br"&&((u=(s=this.cbs).onopentagname)===null||u===void 0||u.call(s,"br"),(l=(c=this.cbs).onopentag)===null||l===void 0||l.call(c,"br",{},!0),(m=(h=this.cbs).onclosetag)===null||m===void 0||m.call(h,"br",!1));else{const T=this.stack.indexOf(p);if(T!==-1)for(let _=0;_<=T;_++){const C=this.stack.shift();(i=(n=this.cbs).onclosetag)===null||i===void 0||i.call(n,C,_!==T)}else this.htmlMode&&p==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=a+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var a,n;const i=this.tagname;this.endOpenTag(t),this.stack[0]===i&&((n=(a=this.cbs).onclosetag)===null||n===void 0||n.call(a,i,!t),this.stack.shift())}onattribname(t,a){this.startIndex=t;const n=this.getSlice(t,a);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(t,a){this.attribvalue+=this.getSlice(t,a)}onattribentity(t){this.attribvalue+=Ga(t)}onattribend(t,a){var n,i;this.endIndex=a,(i=(n=this.cbs).onattribute)===null||i===void 0||i.call(n,this.attribname,this.attribvalue,t===Pe.Double?'"':t===Pe.Single?"'":t===Pe.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const a=t.search(Rd);let n=a<0?t:t.substr(0,a);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(t,a){this.endIndex=a;const n=this.getSlice(t,a);if(this.cbs.onprocessinginstruction){const i=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${i}`,`!${n}`)}this.startIndex=a+1}onprocessinginstruction(t,a){this.endIndex=a;const n=this.getSlice(t,a);if(this.cbs.onprocessinginstruction){const i=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${i}`,`?${n}`)}this.startIndex=a+1}oncomment(t,a,n){var i,s,u,c;this.endIndex=a,(s=(i=this.cbs).oncomment)===null||s===void 0||s.call(i,this.getSlice(t,a-n)),(c=(u=this.cbs).oncommentend)===null||c===void 0||c.call(u),this.startIndex=a+1}oncdata(t,a,n){var i,s,u,c,l,h,m,p,T,_;this.endIndex=a;const C=this.getSlice(t,a-n);!this.htmlMode||this.options.recognizeCDATA?((s=(i=this.cbs).oncdatastart)===null||s===void 0||s.call(i),(c=(u=this.cbs).ontext)===null||c===void 0||c.call(u,C),(h=(l=this.cbs).oncdataend)===null||h===void 0||h.call(l)):((p=(m=this.cbs).oncomment)===null||p===void 0||p.call(m,`[CDATA[${C}]]`),(_=(T=this.cbs).oncommentend)===null||_===void 0||_.call(T)),this.startIndex=a+1}onend(){var t,a;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let n=0;n<this.stack.length;n++)this.cbs.onclosetag(this.stack[n],!0)}(a=(t=this.cbs).onend)===null||a===void 0||a.call(t)}reset(){var t,a,n,i;(a=(t=this.cbs).onreset)===null||a===void 0||a.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(n=this.cbs).onparserinit)===null||i===void 0||i.call(n,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,a){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(t-this.bufferOffset,a-this.bufferOffset);for(;a-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,a-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var a,n;if(this.ended){(n=(a=this.cbs).onerror)===null||n===void 0||n.call(a,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var a,n;if(this.ended){(n=(a=this.cbs).onerror)===null||n===void 0||n.call(a,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}}function Md(e,t){const a=new ws(void 0,t);return new kd(a,t).end(e),a.root}const wd=cc((e,t,a,n)=>t._useHtmlParser2?Md(e,t):Id(e,t,a,n)),Yr=Yc(wd,(e,t)=>t._useHtmlParser2?sa(e,t):Od(e));var q=(e=>(e[e.None=0]="None",e[e.Text=1]="Text",e[e.Image=2]="Image",e[e.Video=3]="Video",e[e.Icon=4]="Icon",e[e.Link=5]="Link",e[e.Button=6]="Button",e[e.Block=10]="Block",e))(q||{}),Le;(e=>{e.THEME_TEXT_COLOR_CLASS="gp-designer-theme-text",e.THEME_BUTTON_COLOR_CLASS="gp-designer-theme-button",e.THEME_ICON_COLOR_CLASS="gp-designer-theme-icon",e.THEME_COLOR="#3574e6"})(Le||(Le={}));const Pd={key:0,"date-action":"1",contenteditable:"false",class:"text-red-500 text-xs mt-1"},Bd=o.defineComponent({__name:"ElementRenderer",props:{element:{type:Object,required:!0},selectedElement:Object,hoveredElement:Object,uploadByFile:{type:Function,required:!1},icons:{type:Array,default:()=>[]},mode:{type:String,default:"edit"},cropper:{type:Object,required:!1},icon:{type:Object,required:!1},upload:{type:Object,required:!1},r:{type:String,required:!1}},emits:["selectElement","hoverElement","updateText","contentUpdated","blockAction","addIcon"],setup(e,{emit:t}){const a=e,n=t,i=o.computed(()=>a.selectedElement===a.element),s=o.computed(()=>a.hoveredElement===a.element),u=o.ref(!1),c=o.ref(!1),l=o.ref(""),h=o.computed(()=>a.element.rule.minText||0),m=o.computed(()=>a.element.rule.maxText||1/0);o.watch(()=>a.r,()=>{n("contentUpdated",V())},{immediate:!0});function p(D){D.xpath!="/div[1]"&&a.mode!=="preview"&&(a.mode==="edit"?D.type===q.Text&&n("selectElement",D):n("selectElement",D),!D.rule.isReadOnly&&D.type===q.Text&&(u.value=!0))}function T(D){n("selectElement",D)}function _(D,w){n("hoverElement",D,w)}function C(D){n("hoverElement",D)}function L(D){D.currentTarget.contains(D.relatedTarget)?n("hoverElement",null):a.hoveredElement?n("hoverElement",null,a.hoveredElement.parentxpath):n("hoverElement",null)}function R(){u.value=!1,n("contentUpdated",V())}function V(){function D(ee){var mt;const te=ee,he=te.rule.isThemeColor&&te.type==q.Text?Le.THEME_TEXT_COLOR_CLASS:te.rule.isThemeColor&&te.type==q.Button?Le.THEME_BUTTON_COLOR_CLASS:te.rule.isThemeColor&&te.type==q.Icon?Le.THEME_ICON_COLOR_CLASS:"";he?te.attrs.class=te.attrs.class?te.attrs.class+" "+he:he:te.attrs.class=(mt=te.attrs.class)==null?void 0:mt.replace(new RegExp(`${Le.THEME_TEXT_COLOR_CLASS}|${Le.THEME_BUTTON_COLOR_CLASS}|${Le.THEME_ICON_COLOR_CLASS}`,"g"),"");const Ue=Object.entries(ee.attrs||{}).map(([et,O])=>`${et}="${O}"`).join(" "),ht=`<${ee.tag}${Ue?" "+Ue:""}>`,qe=`</${ee.tag}>`,ft=(ee.children||[]).map(et=>D(et)).join("");return`${ht}${ee.editText||ee.text||""}${ft}${qe}`}return D(a.element)}function v(D){var he;D.stopPropagation();const w=D.target,ee=((he=w.firstChild)==null?void 0:he.nodeType)===Node.TEXT_NODE&&w.firstChild.nodeValue||"";if(ee.length<h.value){c.value=!0,l.value=`最少输入 ${h.value} 个字符`;return}else if(ee.length>m.value){c.value=!0,l.value=`最多输入 ${m.value} 个字符`;return}else c.value=!1,l.value="";n("updateText",{element:a.element,newText:ee}),n("contentUpdated",V());const te=o.toRaw(a.element);te.editText=ee}function F(D){n("updateText",D),n("contentUpdated",V())}function z(){const D={...a.element};n("blockAction",{action:"add",element:a.element,newBlock:D})}function H(){A(a.element),n("blockAction",{action:"moveUp",element:a.element})}function A(D){D.children&&D.children.length>0&&D.children.forEach(w=>{w.type==q.Text&&(w.text!==w.editText&&(w.text=w.editText),A(w))})}function U(){A(a.element),n("blockAction",{action:"moveDown",element:a.element})}function Q(){n("blockAction",{action:"delete",element:a.element})}function ne(D){n("blockAction",D),n("contentUpdated",V())}function Ne(D){Ce.value.openModal(D)}function Re(D){me.value.openModal(D)}function ke(D,w){n("addIcon",D,w),n("contentUpdated",V())}const Ce=o.ref(a.icon);o.watch(()=>a.icon,D=>{Ce.value=D},{immediate:!0});const me=o.ref(a.upload);return o.watch(()=>a.upload,D=>{me.value=D},{immediate:!0}),(D,w)=>{const ee=o.resolveComponent("ElementRenderer",!0);return o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.element.tag),o.mergeProps({class:["relative",e.mode==="design"?"m-2 p-1 border-dashed border-2":"",s.value?"border-dashed border-blue-500":"",i.value?"border-dashed border-green-500 z-10 border-2":"",c.value?"border-dashed border-red-500":"",(!s.value&&!i.value&&!c.value,""),a.element.rule&&a.element.rule.isReadOnly?"cursor-not-allowed":"",a.element.rule.isThemeColor&&a.element.type===o.unref(q).Text?o.unref(Le).THEME_TEXT_COLOR_CLASS:"",a.element.rule.isThemeColor&&a.element.type===o.unref(q).Button?o.unref(Le).THEME_BUTTON_COLOR_CLASS:"",a.element.rule.isThemeColor&&a.element.type===o.unref(q).Icon?o.unref(Le).THEME_ICON_COLOR_CLASS:""]},a.element.attrs,{contenteditable:u.value,onClick:w[2]||(w[2]=o.withModifiers(()=>p(a.element),["stop"])),onMouseenter:w[3]||(w[3]=()=>C(a.element)),onMouseleave:L,onBlur:R,onInput:v}),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(a.element.text),1),a.element.children&&a.element.children.length?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.element.children,(te,he)=>(o.openBlock(),o.createBlock(ee,{key:he,r:e.r,mode:e.mode,icons:e.icons,element:te,selectedElement:a.selectedElement,hoveredElement:a.hoveredElement,cropper:e.cropper,icon:e.icon,upload:e.upload,"upload-by-file":e.uploadByFile,onSelectElement:T,onHoverElement:_,onUpdateText:F,onBlockAction:ne,onAddIcon:ke},null,8,["r","mode","icons","element","selectedElement","hoveredElement","cropper","icon","upload","upload-by-file"]))),128)),a.element.type===o.unref(q).Block?(o.openBlock(),o.createElementBlock("div",{key:0,"date-action":"1",contenteditable:"false",onClick:w[0]||(w[0]=o.withModifiers(()=>{},["stop"])),class:"z-10 flex space-x-1 flex-none flex-nowrap overflow-visible absolute left-2 top-2 text-sm"},[o.createElementVNode("button",{class:"flex-none content-center items-center p-1 bg-green-500/80 text-white rounded",onClick:o.withModifiers(z,["stop"])},w[6]||(w[6]=[o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[o.createElementVNode("rect",{width:"336",height:"336",x:"128",y:"128",fill:"none",stroke:"white","stroke-linejoin":"round","stroke-width":"32",rx:"57",ry:"57"}),o.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"m383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"})],-1)])),o.createElementVNode("button",{class:"flex-none content-center items-center p-1 bg-blue-500/80 text-white rounded",onClick:o.withModifiers(H,["stop"])},w[7]||(w[7]=[o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[o.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"48",d:"m112 244l144-144l144 144M256 120v292"})],-1)])),o.createElementVNode("button",{class:"flex-none content-center items-center p-1 bg-blue-500/80 text-white rounded",onClick:o.withModifiers(U,["stop"])},w[8]||(w[8]=[o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[o.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"48",d:"m112 268l144 144l144-144M256 392V100"})],-1)])),o.createElementVNode("button",{class:"flex-none content-center items-center p-1 bg-red-500/80 text-white rounded",onClick:o.withModifiers(Q,["stop"])},w[9]||(w[9]=[o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[o.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"})],-1)]))])):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),a.element.type===o.unref(q).Icon?(o.openBlock(),o.createElementBlock("div",{key:1,class:"cursor-pointer rounded-sm w-5 h-5 flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80",contenteditable:"false",onClick:w[1]||(w[1]=o.withModifiers(()=>Ne(a.element),["stop"]))},w[10]||(w[10]=[o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[o.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56"}),o.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"m320 255.79l-64-64l-64 64m64 192.42V207.79"})],-1)]))):o.createCommentVNode("",!0)]),_:1},16,["class","contenteditable"])),a.element.type==o.unref(q).Text&&c.value?(o.openBlock(),o.createElementBlock("div",Pd,o.toDisplayString(l.value),1)):o.createCommentVNode("",!0),a.element.type===o.unref(q).Image?(o.openBlock(),o.createElementBlock("div",{key:1,class:"cursor-pointer rounded-sm flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80",onClick:w[5]||(w[5]=o.withModifiers(()=>{},["stop"])),contenteditable:"false"},[o.createElementVNode("div",{class:"p-1",onClick:w[4]||(w[4]=o.withModifiers(()=>Re(a.element),["stop"]))},w[11]||(w[11]=[o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[o.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56"}),o.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"m320 255.79l-64-64l-64 64m64 192.42V207.79"})],-1)]))])):o.createCommentVNode("",!0)],64)}}}),ot=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a},vd=ot(Bd,[["__scopeId","data-v-9d4fc0fb"]]),Ud=o.defineComponent({name:"GpCheckbox",props:{modelValue:{type:Boolean,required:!0},label:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){return{updateValue:n=>{t("update:modelValue",n.target.checked)}}}}),Fd={class:"form-group"},Hd={class:"flex items-center space-x-2 cursor-pointer"},Vd=["checked","aria-checked"],Yd={class:"checkbox-label text-sm text-gray-700"};function qd(e,t,a,n,i,s){return o.openBlock(),o.createElementBlock("div",Fd,[o.createElementVNode("label",Hd,[o.createElementVNode("input",{type:"checkbox",checked:e.modelValue,onChange:t[0]||(t[0]=(...u)=>e.updateValue&&e.updateValue(...u)),class:"custom-checkbox","aria-checked":e.modelValue},null,40,Vd),o.createElementVNode("span",Yd,o.toDisplayString(e.label),1)])])}const zt=ot(Ud,[["render",qd],["__scopeId","data-v-68b8f276"]]),Wd=o.defineComponent({name:"GpMessage",props:{message:{type:String,required:!0},type:{type:String,default:"info"},position:{type:String,default:"top-right"},duration:{type:Number,default:3e3},onClose:{type:Function,required:!0},icon:{type:Boolean,default:!0}},setup(e){const t=o.ref(!1),a=o.computed(()=>({success:"bg-green-100 text-green-800",error:"bg-red-100 text-red-800",info:"bg-blue-100 text-blue-800",warning:"bg-yellow-100 text-yellow-800"})[e.type]),n=()=>{t.value=!1,e.onClose()};return setTimeout(()=>{n()},e.duration),t.value=!0,{visible:t,typeClass:a,closeMessage:n}}}),$d={key:0,class:"gp-message"},Gd={key:0,class:"mr-2"},Xd={key:0,class:"text-green-500"},Qd={key:1,class:"text-red-500"},jd={key:2,class:"text-blue-500"},zd={key:3,class:"text-yellow-500"};function Kd(e,t,a,n,i,s){return o.openBlock(),o.createBlock(o.Transition,{name:"fade"},{default:o.withCtx(()=>[e.visible?(o.openBlock(),o.createElementBlock("div",$d,[o.createElementVNode("div",{class:o.normalizeClass([e.typeClass,"message-content"])},[e.icon?(o.openBlock(),o.createElementBlock("span",Gd,[o.renderSlot(e.$slots,"icon",{},()=>[e.type==="success"?(o.openBlock(),o.createElementBlock("span",Xd,"✔")):o.createCommentVNode("",!0),e.type==="error"?(o.openBlock(),o.createElementBlock("span",Qd,"✖")):o.createCommentVNode("",!0),e.type==="info"?(o.openBlock(),o.createElementBlock("span",jd,"ℹ")):o.createCommentVNode("",!0),e.type==="warning"?(o.openBlock(),o.createElementBlock("span",zd,"⚠")):o.createCommentVNode("",!0)],!0)])):o.createCommentVNode("",!0),o.createElementVNode("span",null,o.toDisplayString(e.message),1),o.createElementVNode("button",{class:"close-btn hover:text-gray-800 font-bold",onClick:t[0]||(t[0]=(...u)=>e.closeMessage&&e.closeMessage(...u))}," × ")],2)])):o.createCommentVNode("",!0)]),_:3})}const Zd=ot(Wd,[["render",Kd],["__scopeId","data-v-12cd136f"]]),It=o.reactive([]);let yn=null;const Jd=()=>{const e=document.createElement("div");return e.id="global-message-container",document.body.appendChild(e),e},eh=()=>{if(yn)return;const e=Jd();yn=o.createApp({setup(){return{messageQueue:It}},render(){const t=o.computed(()=>{var n;return{"top-left":"top-4 left-4","top-right":"top-4 right-4","bottom-left":"bottom-4 left-4","bottom-right":"bottom-4 right-4","top-center":"top-4 left-1/2 transform -translate-x-1/2","bottom-center":"bottom-4 left-1/2 transform -translate-x-1/2"}[((n=It[0])==null?void 0:n.options.position)||"top-right"]});return o.h("div",{class:`fixed flex flex-col gap-2 ${t.value}`},It.map(a=>o.h(Zd,{key:a.id,...a.options,onClose:()=>qr(a.id)})))}}),yn.mount(e)},qr=e=>{const t=It.findIndex(a=>a.id===e);t!==-1&&It.splice(t,1)};let th=0;const W=e=>{eh();const t=th++;It.push({id:t,options:e}),setTimeout(()=>{qr(t)},e.duration||3e3)};W.success=(e,t=3e3,a=!0)=>{W(typeof e=="string"?{message:e,type:"success",duration:t,icon:a}:{...e,type:"success"})},W.error=(e,t=3e3,a=!0)=>{W(typeof e=="string"?{message:e,type:"error",duration:t,icon:a}:{...e,type:"error"})},W.info=(e,t=3e3,a=!0)=>{W(typeof e=="string"?{message:e,type:"info",duration:t,icon:a}:{...e,type:"info"})},W.warning=(e,t=3e3,a=!0)=>{W(typeof e=="string"?{message:e,type:"warning",duration:t,icon:a}:{...e,type:"warning"})};const ah={key:0},nh={key:0},ih={class:"text-gray-500 my-2"},rh={class:"text-gray-500 my-2"},sh={key:1},uh={key:2},oh={key:3},ch={key:4},lh={key:5},dh={key:6},hh={key:7},fh={key:8},mh={key:9},Eh={key:10},ph=ot(o.defineComponent({__name:"EditorPanel",props:{element:Object},emits:["updateElement"],setup(e,{emit:t}){const a=e,n=t,i=o.ref({rule:{},...a.element});o.watch(()=>a.element,u=>{i.value={rule:{},...u}},{immediate:!0});function s(){if(i.value.type===q.Icon&&!i.value.attrs.class.includes("iconfont")){W.error("图标仅支持 iconfont 图标");return}if(i.value.type===q.Image&&i.value.tag!=="img"){W.error("节点类型错误");return}if(i.value.type===q.Video&&i.value.tag!=="video"){W.error("节点类型错误");return}if(i.value.type===q.Link&&i.value.tag!=="a"){W.error("节点类型错误");return}if(i.value.type===q.Text){if(Number(i.value.rule.minText)>Number(i.value.rule.maxText)){W.error("最小文本长度不能大于最大文本长度");return}if(i.value.tag!=="p"&&i.value.tag!=="div"&&i.value.tag!=="span"&&i.value.tag!=="h1"&&i.value.tag!=="h2"&&i.value.tag!=="h3"&&i.value.tag!=="h4"&&i.value.tag!=="h5"&&i.value.tag!=="h6"){W.error("节点类型错误");return}}if(i.value.type===q.Block){if(Number(i.value.rule.minBlock)>Number(i.value.rule.maxBlock)){W.error("最小块数量不能大于最大块数量");return}if(i.value.tag!=="div"&&i.value.tag!=="section"&&i.value.tag!=="article"&&i.value.tag!=="nav"&&i.value.tag!=="header"&&i.value.tag!=="footer"&&i.value.tag!=="span"&&i.value.tag!=="p"&&i.value.tag!=="img"){W.error("节点类型错误");return}if(!i.value.children||i.value.children.length<1){W.error("节点错误,必须包含子元素");return}}n("updateElement",i.value)}return(u,c)=>(o.openBlock(),o.createElementBlock("div",null,[i.value?(o.openBlock(),o.createElementBlock("div",ah,[i.value.text!==void 0?(o.openBlock(),o.createElementBlock("div",nh,[c[13]||(c[13]=o.createElementVNode("label",{class:"block"},"内容",-1)),o.createElementVNode("div",ih,o.toDisplayString(i.value.text||"-"),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[c[14]||(c[14]=o.createElementVNode("label",{class:"block mt-4"},"节点",-1)),o.createElementVNode("div",rh,o.toDisplayString(i.value.xpath),1)]),o.createElementVNode("div",null,[c[16]||(c[16]=o.createElementVNode("label",{class:"block mt-4"},"类型",-1)),o.withDirectives(o.createElementVNode("select",{"onUpdate:modelValue":c[0]||(c[0]=l=>i.value.type=l),class:"border rounded p-1 w-full"},c[15]||(c[15]=[o.createElementVNode("option",{value:0},"无",-1),o.createElementVNode("option",{value:1},"文本",-1),o.createElementVNode("option",{value:2},"图片",-1),o.createElementVNode("option",{value:3},"视频",-1),o.createElementVNode("option",{value:4},"图标",-1),o.createElementVNode("option",{value:5},"链接",-1),o.createElementVNode("option",{value:6},"按钮",-1),o.createElementVNode("option",{value:10},"块",-1)]),512),[[o.vModelSelect,i.value.type]])]),i.value.type==o.unref(q).Text?(o.openBlock(),o.createElementBlock("div",sh,[c[17]||(c[17]=o.createElementVNode("label",{class:"block mt-4"},"最小文本长度",-1)),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=l=>i.value.rule.minText=l),class:"border rounded p-1 w-full"},null,512),[[o.vModelText,i.value.rule.minText]])])):o.createCommentVNode("",!0),i.value.type==o.unref(q).Text?(o.openBlock(),o.createElementBlock("div",uh,[c[18]||(c[18]=o.createElementVNode("label",{class:"block mt-4"},"最大文本长度",-1)),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[2]||(c[2]=l=>i.value.rule.maxText=l),class:"border rounded p-1 w-full"},null,512),[[o.vModelText,i.value.rule.maxText]])])):o.createCommentVNode("",!0),i.value.type==o.unref(q).Image?(o.openBlock(),o.createElementBlock("div",oh,[c[19]||(c[19]=o.createElementVNode("label",{class:"block mt-4"},"是否裁剪",-1)),o.createVNode(zt,{class:"py-2",modelValue:i.value.rule.crop,"onUpdate:modelValue":c[3]||(c[3]=l=>i.value.rule.crop=l),label:"是"},null,8,["modelValue"])])):o.createCommentVNode("",!0),i.value.type==o.unref(q).Image?(o.openBlock(),o.createElementBlock("div",ch,[c[20]||(c[20]=o.createElementVNode("label",{class:"block mt-4"},"图片宽度",-1)),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[4]||(c[4]=l=>i.value.rule.minImageWidth=l),class:"border rounded p-1 w-full"},null,512),[[o.vModelText,i.value.rule.minImageWidth]])])):o.createCommentVNode("",!0),i.value.type==o.unref(q).Image?(o.openBlock(),o.createElementBlock("div",lh,[c[21]||(c[21]=o.createElementVNode("label",{class:"block mt-4"},"图片高度",-1)),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[5]||(c[5]=l=>i.value.rule.maxImageHeight=l),class:"border rounded p-1 w-full"},null,512),[[o.vModelText,i.value.rule.maxImageHeight]])])):o.createCommentVNode("",!0),i.value.type==o.unref(q).Block?(o.openBlock(),o.createElementBlock("div",dh,[c[22]||(c[22]=o.createElementVNode("label",{class:"block mt-4"},"块最小数量",-1)),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[6]||(c[6]=l=>i.value.rule.minBlock=l),class:"border rounded p-1 w-full"},null,512),[[o.vModelText,i.value.rule.minBlock]])])):o.createCommentVNode("",!0),i.value.type==o.unref(q).Block?(o.openBlock(),o.createElementBlock("div",hh,[c[23]||(c[23]=o.createElementVNode("label",{class:"block mt-4"},"块最大数量",-1)),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[7]||(c[7]=l=>i.value.rule.maxBlock=l),class:"border rounded p-1 w-full"},null,512),[[o.vModelText,i.value.rule.maxBlock]])])):o.createCommentVNode("",!0),i.value.type==o.unref(q).Text||i.value.type==o.unref(q).Icon||i.value.type==o.unref(q).Button?(o.openBlock(),o.createElementBlock("div",fh,[c[24]||(c[24]=o.createElementVNode("label",{class:"block mt-4"},"主题色",-1)),o.createVNode(zt,{class:"py-2",modelValue:i.value.rule.isThemeColor,"onUpdate:modelValue":c[8]||(c[8]=l=>i.value.rule.isThemeColor=l),label:"是"},null,8,["modelValue"])])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[c[25]||(c[25]=o.createElementVNode("label",{class:"block mt-4"},"是否必填",-1)),o.createVNode(zt,{class:"py-2",modelValue:i.value.rule.isRequired,"onUpdate:modelValue":c[9]||(c[9]=l=>i.value.rule.isRequired=l),label:"是"},null,8,["modelValue"])]),o.createElementVNode("div",null,[c[26]||(c[26]=o.createElementVNode("label",{class:"block mt-4"},"是否只读",-1)),o.createVNode(zt,{class:"py-2",modelValue:i.value.rule.isReadOnly,"onUpdate:modelValue":c[10]||(c[10]=l=>i.value.rule.isReadOnly=l),label:"是"},null,8,["modelValue"])]),i.value.type==o.unref(q).Link||i.value.type==o.unref(q).Button?(o.openBlock(),o.createElementBlock("div",mh,[c[27]||(c[27]=o.createElementVNode("label",{class:"block mt-4"},"打开美洽",-1)),o.createVNode(zt,{class:"py-2",modelValue:i.value.rule.openMeiqia,"onUpdate:modelValue":c[11]||(c[11]=l=>i.value.rule.openMeiqia=l),label:"是"},null,8,["modelValue"])])):o.createCommentVNode("",!0),i.value.type==o.unref(q).Link||i.value.type==o.unref(q).Button?(o.openBlock(),o.createElementBlock("div",Eh,[c[28]||(c[28]=o.createElementVNode("label",{class:"block mt-4"},"链接",-1)),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[12]||(c[12]=l=>i.value.rule.linkUrl=l),class:"border rounded p-1 w-full"},null,512),[[o.vModelText,i.value.rule.linkUrl]])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("button",{onClick:s,class:"mt-4 p-2 bg-green-500 text-white rounded"}," 保存 ")]))}}),[["__scopeId","data-v-7395db8a"]]);/*!
6
+ )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},qi={};function Sf(A,e){return A===J.falseFunc?J.falseFunc:t=>e.isTag(t)&&A(t)}function Zi(A,e){const t=e.getSiblings(A);if(t.length<=1)return[];const r=t.indexOf(A);return r<0||r===t.length-1?[]:t.slice(r+1).filter(e.isTag)}function ya(A){return{xmlMode:!!A.xmlMode,lowerCaseAttributeNames:!!A.lowerCaseAttributeNames,lowerCaseTags:!!A.lowerCaseTags,quirksMode:!!A.quirksMode,cacheResults:!!A.cacheResults,pseudos:A.pseudos,adapter:A.adapter,equals:A.equals}}const Na=(A,e,t,r,n)=>{const a=n(e,ya(t),r);return a===J.trueFunc?A:a===J.falseFunc?J.falseFunc:s=>a(s)&&A(s)},Sa={is:Na,matches:Na,where:Na,not(A,e,t,r,n){const a=n(e,ya(t),r);return a===J.falseFunc?A:a===J.trueFunc?J.falseFunc:s=>!a(s)&&A(s)},has(A,e,t,r,n){const{adapter:a}=t,s=ya(t);s.relativeSelector=!0;const u=e.some(f=>f.some(Fa))?[qi]:void 0,o=n(e,s,u);if(o===J.falseFunc)return J.falseFunc;const c=Sf(o,a);if(u&&o!==J.trueFunc){const{shouldTestNextSiblings:f=!1}=o;return h=>{if(!A(h))return!1;u[0]=h;const d=a.getChildren(h),m=f?[...d,...Zi(h,a)]:d;return a.existsOne(c,m)}}return f=>A(f)&&a.existsOne(c,a.getChildren(f))}};function vf(A,e,t,r,n){var a;const{name:s,data:u}=e;if(Array.isArray(u)){if(!(s in Sa))throw new Error(`Unknown pseudo-class :${s}(${u})`);return Sa[s](A,u,t,r,n)}const o=(a=t.pseudos)===null||a===void 0?void 0:a[s],c=typeof o=="string"?o:Nf[s];if(typeof c=="string"){if(u!=null)throw new Error(`Pseudo ${s} doesn't have any arguments`);const f=Vr(c);return Sa.is(A,f,t,r,n)}if(typeof o=="function")return Ji(o,s,u,1),f=>o(f,u)&&A(f);if(s in Ia)return Ia[s](A,u,t,r);if(s in Wi){const f=Wi[s];return Ji(f,s,u,2),h=>f(h,t,u)&&A(h)}throw new Error(`Unknown pseudo-class :${s}`)}function va(A,e){const t=e.getParent(A);return t&&e.isTag(t)?t:null}function Lf(A,e,t,r,n){const{adapter:a,equals:s}=t;switch(e.type){case V.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case V.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case V.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!t.xmlMode||t.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),Qf[e.action](A,e,t)}case V.Pseudo:return vf(A,e,t,r,n);case V.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:u}=e;return(!t.xmlMode||t.lowerCaseTags)&&(u=u.toLowerCase()),function(c){return a.getName(c)===u&&A(c)}}case V.Descendant:{if(t.cacheResults===!1||typeof WeakSet>"u")return function(c){let f=c;for(;f=va(f,a);)if(A(f))return!0;return!1};const u=new WeakSet;return function(c){let f=c;for(;f=va(f,a);)if(!u.has(f)){if(a.isTag(f)&&A(f))return!0;u.add(f)}return!1}}case"_flexibleDescendant":return function(o){let c=o;do if(A(c))return!0;while(c=va(c,a));return!1};case V.Parent:return function(o){return a.getChildren(o).some(c=>a.isTag(c)&&A(c))};case V.Child:return function(o){const c=a.getParent(o);return c!=null&&a.isTag(c)&&A(c)};case V.Sibling:return function(o){const c=a.getSiblings(o);for(let f=0;f<c.length;f++){const h=c[f];if(s(o,h))break;if(a.isTag(h)&&A(h))return!0}return!1};case V.Adjacent:return a.prevElementSibling?function(o){const c=a.prevElementSibling(o);return c!=null&&A(c)}:function(o){const c=a.getSiblings(o);let f;for(let h=0;h<c.length;h++){const d=c[h];if(s(o,d))break;a.isTag(d)&&(f=d)}return!!f&&A(f)};case V.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return A}}}function $i(A){return A.type===V.Pseudo&&(A.name==="scope"||Array.isArray(A.data)&&A.data.some(e=>e.some($i)))}const Hf={type:V.Descendant},xf={type:"_flexibleDescendant"},Df={type:V.Pseudo,name:"scope",data:null};function Of(A,{adapter:e},t){const r=!!(t!=null&&t.every(n=>{const a=e.isTag(n)&&e.getParent(n);return n===qi||a&&e.isTag(a)}));for(const n of A){if(!(n.length>0&&Fa(n[0])&&n[0].type!==V.Descendant))if(r&&!n.some($i))n.unshift(Hf);else continue;n.unshift(Df)}}function ji(A,e,t){var r;A.forEach(Tf),t=(r=e.context)!==null&&r!==void 0?r:t;const n=Array.isArray(t),a=t&&(Array.isArray(t)?t:[t]);if(e.relativeSelector!==!1)Of(A,e,a);else if(A.some(o=>o.length>0&&Fa(o[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let s=!1;const u=A.map(o=>{if(o.length>=2){const[c,f]=o;c.type!==V.Pseudo||c.name!=="scope"||(n&&f.type===V.Descendant?o[1]=xf:(f.type===V.Adjacent||f.type===V.Sibling)&&(s=!0))}return Rf(o,e,a)}).reduce(Mf,J.falseFunc);return u.shouldTestNextSiblings=s,u}function Rf(A,e,t){var r;return A.reduce((n,a)=>n===J.falseFunc?J.falseFunc:Lf(n,a,e,t,ji),(r=e.rootFunc)!==null&&r!==void 0?r:J.trueFunc)}function Mf(A,e){return e===J.falseFunc||A===J.trueFunc?A:A===J.falseFunc||e===J.trueFunc?e:function(r){return A(r)||e(r)}}const zi=(A,e)=>A===e,kf={adapter:kr,equals:zi};function Pf(A){var e,t,r,n;const a=A??kf;return(e=a.adapter)!==null&&e!==void 0||(a.adapter=kr),(t=a.equals)!==null&&t!==void 0||(a.equals=(n=(r=a.adapter)===null||r===void 0?void 0:r.equals)!==null&&n!==void 0?n:zi),a}function Kf(A){return function(t,r,n){const a=Pf(r);return A(t,a,n)}}const La=Kf(ji);function Au(A,e,t=!1){return t&&(A=Vf(A,e)),Array.isArray(A)?e.removeSubsets(A):e.getChildren(A)}function Vf(A,e){const t=Array.isArray(A)?A.slice(0):[A],r=t.length;for(let n=0;n<r;n++){const a=Zi(t[n],e);t.push(...a)}return t}const Gf=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function Wr(A){return A.type!=="pseudo"?!1:Gf.has(A.name)?!0:A.name==="not"&&Array.isArray(A.data)?A.data.some(e=>e.some(Wr)):!1}function Yf(A,e,t){const r=e!=null?parseInt(e,10):NaN;switch(A){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,t):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*t;case"even":return 2*t-1;case"last":case"not":return 1/0}}function Xf(A){for(;A.parent;)A=A.parent;return A}function Ha(A){const e=[],t=[];for(const r of A)r.some(Wr)?e.push(r):t.push(r);return[t,e]}const Wf={type:V.Universal,namespace:null},Jf={type:V.Pseudo,name:"scope",data:null};function eu(A,e,t={}){return tu([A],e,t)}function tu(A,e,t={}){if(typeof e=="function")return A.some(e);const[r,n]=Ha(Vr(e));return r.length>0&&A.some(La(r,t))||n.some(a=>au(a,A,t).length>0)}function qf(A,e,t,r){const n=typeof t=="string"?parseInt(t,10):NaN;switch(A){case"first":case"lt":return e;case"last":return e.length>0?[e[e.length-1]]:e;case"nth":case"eq":return isFinite(n)&&Math.abs(n)<e.length?[n<0?e[e.length+n]:e[n]]:[];case"gt":return isFinite(n)?e.slice(n+1):[];case"even":return e.filter((a,s)=>s%2===0);case"odd":return e.filter((a,s)=>s%2===1);case"not":{const a=new Set(nu(t,e,r));return e.filter(s=>!a.has(s))}}}function ru(A,e,t={}){return nu(Vr(A),e,t)}function nu(A,e,t){if(e.length===0)return[];const[r,n]=Ha(A);let a;if(r.length){const s=Da(e,r,t);if(n.length===0)return s;s.length&&(a=new Set(s))}for(let s=0;s<n.length&&(a==null?void 0:a.size)!==e.length;s++){const u=n[s];if((a?e.filter(f=>X(f)&&!a.has(f)):e).length===0)break;const c=au(u,e,t);if(c.length)if(a)c.forEach(f=>a.add(f));else{if(s===n.length-1)return c;a=new Set(c)}}return typeof a<"u"?a.size===e.length?e:e.filter(s=>a.has(s)):[]}function au(A,e,t){var r;if(A.some(Pt)){const n=(r=t.root)!==null&&r!==void 0?r:Xf(e[0]),a={...t,context:e,relativeSelector:!1};return A.push(Jf),Jr(n,A,a,!0,e.length)}return Jr(e,A,t,!1,e.length)}function Zf(A,e,t={},r=1/0){if(typeof A=="function")return su(e,A);const[n,a]=Ha(Vr(A)),s=a.map(u=>Jr(e,u,t,!0,r));return n.length&&s.push(xa(e,n,t,r)),s.length===0?[]:s.length===1?s[0]:ht(s.reduce((u,o)=>[...u,...o]))}function Jr(A,e,t,r,n){const a=e.findIndex(Wr),s=e.slice(0,a),u=e[a],o=e.length-1===a?n:1/0,c=Yf(u.name,u.data,o);if(c===0)return[];const h=(s.length===0&&!Array.isArray(A)?Dr(A).filter(X):s.length===0?(Array.isArray(A)?A:[A]).filter(X):r||s.some(Pt)?xa(A,[s],t,c):Da(A,[s],t)).slice(0,c);let d=qf(u.name,h,u.data,t);if(d.length===0||e.length===a+1)return d;const m=e.slice(a+1),C=m.some(Pt);if(C){if(Pt(m[0])){const{type:T}=m[0];(T===V.Sibling||T===V.Adjacent)&&(d=Au(d,kr,!0)),m.unshift(Wf)}t={...t,relativeSelector:!1,rootFunc:T=>d.includes(T)}}else t.rootFunc&&t.rootFunc!==Gr.trueFunc&&(t={...t,rootFunc:Gr.trueFunc});return m.some(Wr)?Jr(d,m,t,!1,n):C?xa(d,[m],t,n):Da(d,[m],t)}function xa(A,e,t,r){const n=La(e,t,A);return su(A,n,r)}function su(A,e,t=1/0){const r=Au(A,kr,e.shouldTestNextSiblings);return pa(n=>X(n)&&e(n),r,!0,t)}function Da(A,e,t){const r=(Array.isArray(A)?A:[A]).filter(X);if(r.length===0)return r;const n=La(e,t);return n===Gr.trueFunc?r:r.filter(n)}const $f=/^\s*[+~]/;function jf(A){if(!A)return this._make([]);if(typeof A!="string"){const e=me(A)?A.toArray():[A],t=this.toArray();return this._make(e.filter(r=>t.some(n=>Si(n,r))))}return this._findBySelector(A,Number.POSITIVE_INFINITY)}function zf(A,e){var t;const r=this.toArray(),n=$f.test(A)?r:this.children().toArray(),a={context:r,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Zf(A,n,a,e))}function Oa(A){return function(e,...t){return function(r){var n;let a=A(e,this);return r&&(a=ka(a,r,this.options.xmlMode,(n=this._root)===null||n===void 0?void 0:n[0])),this._make(this.length>1&&a.length>1?t.reduce((s,u)=>u(s),a):a)}}}const Vt=Oa((A,e)=>{let t=[];for(let r=0;r<e.length;r++){const n=A(e[r]);n.length>0&&(t=t.concat(n))}return t}),Ra=Oa((A,e)=>{const t=[];for(let r=0;r<e.length;r++){const n=A(e[r]);n!==null&&t.push(n)}return t});function Ma(A,...e){let t=null;const r=Oa((n,a)=>{const s=[];return gA(a,u=>{for(let o;(o=n(u))&&!(t!=null&&t(o,s.length));u=o)s.push(o)}),s})(A,...e);return function(n,a){t=typeof n=="string"?u=>eu(u,n,this.options):n?Gt(n):null;const s=r.call(this,a);return t=null,s}}function Bt(A){return A.length>1?Array.from(new Set(A)):A}const Ah=Ra(({parent:A})=>A&&!_e(A)?A:null,Bt),eh=Vt(A=>{const e=[];for(;A.parent&&!_e(A.parent);)e.push(A.parent),A=A.parent;return e},ht,A=>A.reverse()),th=Ma(({parent:A})=>A&&!_e(A)?A:null,ht,A=>A.reverse());function rh(A){var e;const t=[];if(!A)return this._make(t);const r={xmlMode:this.options.xmlMode,root:(e=this._root)===null||e===void 0?void 0:e[0]},n=typeof A=="string"?a=>eu(a,A,r):Gt(A);return gA(this,a=>{for(a&&!_e(a)&&!X(a)&&(a=a.parent);a&&X(a);){if(n(a,0)){t.includes(a)||t.push(a);break}a=a.parent}}),this._make(t)}const nh=Ra(A=>ga(A)),ah=Vt(A=>{const e=[];for(;A.next;)A=A.next,X(A)&&e.push(A);return e},Bt),sh=Ma(A=>ga(A),Bt),ih=Ra(A=>Ea(A)),uh=Vt(A=>{const e=[];for(;A.prev;)A=A.prev,X(A)&&e.push(A);return e},Bt),oh=Ma(A=>Ea(A),Bt),ch=Vt(A=>Ui(A).filter(e=>X(e)&&e!==A),ht),lh=Vt(A=>Dr(A).filter(X),Bt);function fh(){const A=this.toArray().reduce((e,t)=>FA(t)?e.concat(t.children):e,[]);return this._make(A)}function hh(A){let e=0;const t=this.length;for(;e<t&&A.call(this[e],e,this[e])!==!1;)++e;return this}function dh(A){let e=[];for(let t=0;t<this.length;t++){const r=this[t],n=A.call(r,t,r);n!=null&&(e=e.concat(n))}return this._make(e)}function Gt(A){return typeof A=="function"?(e,t)=>A.call(e,t,e):me(A)?e=>Array.prototype.includes.call(A,e):function(e){return A===e}}function Bh(A){var e;return this._make(ka(this.toArray(),A,this.options.xmlMode,(e=this._root)===null||e===void 0?void 0:e[0]))}function ka(A,e,t,r){return typeof e=="string"?ru(e,A,{xmlMode:t,root:r}):A.filter(Gt(e))}function gh(A){const e=this.toArray();return typeof A=="string"?tu(e.filter(X),A,this.options):A?e.some(Gt(A)):!1}function Eh(A){let e=this.toArray();if(typeof A=="string"){const t=new Set(ru(A,e,this.options));e=e.filter(r=>!t.has(r))}else{const t=Gt(A);e=e.filter((r,n)=>!t(r,n))}return this._make(e)}function ph(A){return this.filter(typeof A=="string"?`:has(${A})`:(e,t)=>this._make(t).find(A).length>0)}function Ch(){return this.length>1?this._make(this[0]):this}function mh(){return this.length>0?this._make(this[this.length-1]):this}function wh(A){var e;return A=+A,A===0&&this.length<=1?this:(A<0&&(A=this.length+A),this._make((e=this[A])!==null&&e!==void 0?e:[]))}function Th(A){return A==null?this.toArray():this[A<0?this.length+A:A]}function bh(){return Array.prototype.slice.call(this)}function Uh(A){let e,t;return A==null?(e=this.parent().children(),t=this[0]):typeof A=="string"?(e=this._make(A),t=this[0]):(e=this,t=me(A)?A[0]:A),Array.prototype.indexOf.call(e,t)}function Qh(A,e){return this._make(Array.prototype.slice.call(this,A,e))}function Fh(){var A;return(A=this.prevObject)!==null&&A!==void 0?A:this._make([])}function Ih(A,e){const t=this._make(A,e),r=ht([...this.get(),...t.get()]);return this._make(r)}function _h(A){return this.prevObject?this.add(A?this.prevObject.filter(A):this.prevObject):this}const yh=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector:zf,add:Ih,addBack:_h,children:lh,closest:rh,contents:fh,each:hh,end:Fh,eq:wh,filter:Bh,filterArray:ka,find:jf,first:Ch,get:Th,has:ph,index:Uh,is:gh,last:mh,map:dh,next:nh,nextAll:ah,nextUntil:sh,not:Eh,parent:Ah,parents:eh,parentsUntil:th,prev:ih,prevAll:uh,prevUntil:oh,siblings:ch,slice:Qh,toArray:bh},Symbol.toStringTag,{value:"Module"}));function Nh(A){return function(t,r,n,a){if(typeof Buffer<"u"&&Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")return A(t,r,n,a);const s=t;if(!Array.isArray(s)&&_e(s))return s;const u=new We([]);return $e(s,u),u}}function $e(A,e){const t=Array.isArray(A)?A:[A];e?e.children=t:e=null;for(let r=0;r<t.length;r++){const n=t[r];n.parent&&n.parent.children!==t&&Je(n),e?(n.prev=t[r-1]||null,n.next=t[r+1]||null):n.prev=n.next=null,n.parent=e}return e}function Sh(A,e){if(A==null)return[];if(typeof A=="string")return this._parse(A,this.options,!1,null).children.slice(0);if("length"in A){if(A.length===1)return this._makeDomArray(A[0],e);const t=[];for(let r=0;r<A.length;r++){const n=A[r];if(typeof n=="object"){if(n==null)continue;if(!("length"in n)){t.push(e?Ot(n,!0):n);continue}}t.push(...this._makeDomArray(n,e))}return t}return[e?Ot(A,!0):A]}function iu(A){return function(...e){const t=this.length-1;return gA(this,(r,n)=>{if(!FA(r))return;const a=typeof e[0]=="function"?e[0].call(r,n,this._render(r.children)):e,s=this._makeDomArray(a,n<t);A(s,r.children,r)})}}function Se(A,e,t,r,n){var a,s;const u=[e,t,...r],o=e===0?null:A[e-1],c=e+t>=A.length?null:A[e+t];for(let f=0;f<r.length;++f){const h=r[f],d=h.parent;if(d){const C=d.children.indexOf(h);C>-1&&(d.children.splice(C,1),n===d&&e>C&&u[0]--)}h.parent=n,h.prev&&(h.prev.next=(a=h.next)!==null&&a!==void 0?a:null),h.next&&(h.next.prev=(s=h.prev)!==null&&s!==void 0?s:null),h.prev=f===0?o:r[f-1],h.next=f===r.length-1?c:r[f+1]}return o&&(o.next=r[0]),c&&(c.prev=r[r.length-1]),A.splice(...u)}function vh(A){return(me(A)?A:this._make(A)).append(this),this}function Lh(A){return(me(A)?A:this._make(A)).prepend(this),this}const Hh=iu((A,e,t)=>{Se(e,e.length,0,A,t)}),xh=iu((A,e,t)=>{Se(e,0,0,A,t)});function uu(A){return function(e){const t=this.length-1,r=this.parents().last();for(let n=0;n<this.length;n++){const a=this[n],s=typeof e=="function"?e.call(a,n,a):typeof e=="string"&&!wa(e)?r.find(e).clone():e,[u]=this._makeDomArray(s,n<t);if(!u||!FA(u))continue;let o=u,c=0;for(;c<o.children.length;){const f=o.children[c];X(f)?(o=f,c=0):c++}A(a,o,[u])}return this}}const Dh=uu((A,e,t)=>{const{parent:r}=A;if(!r)return;const n=r.children,a=n.indexOf(A);$e([A],e),Se(n,a,0,t,r)}),Oh=uu((A,e,t)=>{FA(A)&&($e(A.children,e),$e(t,A))});function Rh(A){return this.parent(A).not("body").each((e,t)=>{this._make(t).replaceWith(t.children)}),this}function Mh(A){const e=this[0];if(e){const t=this._make(typeof A=="function"?A.call(e,0,e):A).insertBefore(e);let r;for(let a=0;a<t.length;a++)t[a].type==="tag"&&(r=t[a]);let n=0;for(;r&&n<r.children.length;){const a=r.children[n];a.type==="tag"?(r=a,n=0):n++}r&&this._make(r).append(this)}return this}function kh(...A){const e=this.length-1;return gA(this,(t,r)=>{if(!FA(t)||!t.parent)return;const n=t.parent.children,a=n.indexOf(t);if(a<0)return;const s=typeof A[0]=="function"?A[0].call(t,r,this._render(t.children)):A,u=this._makeDomArray(s,r<e);Se(n,a+1,0,u,t.parent)})}function Ph(A){typeof A=="string"&&(A=this._make(A)),this.remove();const e=[];for(const t of this._makeDomArray(A)){const r=this.clone().toArray(),{parent:n}=t;if(!n)continue;const a=n.children,s=a.indexOf(t);s<0||(Se(a,s+1,0,r,n),e.push(...r))}return this._make(e)}function Kh(...A){const e=this.length-1;return gA(this,(t,r)=>{if(!FA(t)||!t.parent)return;const n=t.parent.children,a=n.indexOf(t);if(a<0)return;const s=typeof A[0]=="function"?A[0].call(t,r,this._render(t.children)):A,u=this._makeDomArray(s,r<e);Se(n,a,0,u,t.parent)})}function Vh(A){const e=this._make(A);this.remove();const t=[];return gA(e,r=>{const n=this.clone().toArray(),{parent:a}=r;if(!a)return;const s=a.children,u=s.indexOf(r);u<0||(Se(s,u,0,n,a),t.push(...n))}),this._make(t)}function Gh(A){const e=A?this.filter(A):this;return gA(e,t=>{Je(t),t.prev=t.next=t.parent=null}),this}function Yh(A){return gA(this,(e,t)=>{const{parent:r}=e;if(!r)return;const n=r.children,a=typeof A=="function"?A.call(e,t,e):A,s=this._makeDomArray(a);$e(s,null);const u=n.indexOf(e);Se(n,u,1,s,r),s.includes(e)||(e.parent=e.prev=e.next=null)})}function Xh(){return gA(this,A=>{if(FA(A)){for(const e of A.children)e.next=e.prev=e.parent=null;A.children.length=0}})}function Wh(A){if(A===void 0){const e=this[0];return!e||!FA(e)?null:this._render(e.children)}return gA(this,e=>{if(!FA(e))return;for(const r of e.children)r.next=r.prev=r.parent=null;const t=me(A)?A.toArray():this._parse(`${A}`,this.options,!1,e).children;$e(t,e)})}function Jh(){return this._render(this)}function qh(A){return A===void 0?Rt(this):typeof A=="function"?gA(this,(e,t)=>this._make(e).text(A.call(e,t,Rt([e])))):gA(this,e=>{if(!FA(e))return;for(const r of e.children)r.next=r.prev=r.parent=null;const t=new Dt(`${A}`);$e(t,e)})}function Zh(){const A=Array.prototype.map.call(this.get(),t=>Ot(t,!0)),e=new We(A);for(const t of A)t.parent=e;return this._make(A)}const $h=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:Sh,after:kh,append:Hh,appendTo:vh,before:Kh,clone:Zh,empty:Xh,html:Wh,insertAfter:Ph,insertBefore:Vh,prepend:xh,prependTo:Lh,remove:Gh,replaceWith:Yh,text:qh,toString:Jh,unwrap:Rh,wrap:Dh,wrapAll:Mh,wrapInner:Oh},Symbol.toStringTag,{value:"Module"}));function jh(A,e){if(A!=null&&e!=null||typeof A=="object"&&!Array.isArray(A))return gA(this,(t,r)=>{X(t)&&ou(t,A,e,r)});if(this.length!==0)return cu(this[0],A)}function ou(A,e,t,r){if(typeof e=="string"){const n=cu(A),a=typeof t=="function"?t.call(A,r,n[e]):t;a===""?delete n[e]:a!=null&&(n[e]=a),A.attribs.style=zh(n)}else if(typeof e=="object"){const n=Object.keys(e);for(let a=0;a<n.length;a++){const s=n[a];ou(A,s,e[s],a)}}}function cu(A,e){if(!A||!X(A))return;const t=Ad(A.attribs.style);if(typeof e=="string")return t[e];if(Array.isArray(e)){const r={};for(const n of e)t[n]!=null&&(r[n]=t[n]);return r}return t}function zh(A){return Object.keys(A).reduce((e,t)=>`${e}${e?" ":""}${t}: ${A[t]};`,"")}function Ad(A){if(A=(A||"").trim(),!A)return{};const e={};let t;for(const r of A.split(";")){const n=r.indexOf(":");if(n<1||n===r.length-1){const a=r.trimEnd();a.length>0&&t!==void 0&&(e[t]+=`;${a}`)}else t=r.slice(0,n).trim(),e[t]=r.slice(n+1).trim()}return e}const ed=Object.freeze(Object.defineProperty({__proto__:null,css:jh},Symbol.toStringTag,{value:"Module"})),lu="input,select,textarea,keygen",td=/%20/g,fu=/\r?\n/g;function rd(){return this.serializeArray().map(t=>`${encodeURIComponent(t.name)}=${encodeURIComponent(t.value)}`).join("&").replace(td,"+")}function nd(){return this.map((A,e)=>{const t=this._make(e);return X(e)&&e.name==="form"?t.find(lu).toArray():t.filter(lu).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((A,e)=>{var t;const r=this._make(e),n=r.attr("name"),a=(t=r.val())!==null&&t!==void 0?t:"";return Array.isArray(a)?a.map(s=>({name:n,value:s.replace(fu,`\r
7
+ `)})):{name:n,value:a.replace(fu,`\r
8
+ `)}}).toArray()}const ad=Object.freeze(Object.defineProperty({__proto__:null,serialize:rd,serializeArray:nd},Symbol.toStringTag,{value:"Module"}));function sd(A){var e;return typeof A=="string"?{selector:A,value:"textContent"}:{selector:A.selector,value:(e=A.value)!==null&&e!==void 0?e:"textContent"}}function id(A){const e={};for(const t in A){const r=A[t],n=Array.isArray(r),{selector:a,value:s}=sd(n?r[0]:r),u=typeof s=="function"?s:typeof s=="string"?o=>this._make(o).prop(s):o=>this._make(o).extract(s);if(n)e[t]=this._findBySelector(a,Number.POSITIVE_INFINITY).map((o,c)=>u(c,t,e)).get();else{const o=this._findBySelector(a,1);e[t]=o.length>0?u(o[0],t,e):void 0}}return e}const ud=Object.freeze(Object.defineProperty({__proto__:null,extract:id},Symbol.toStringTag,{value:"Module"}));class Yt{constructor(e,t,r){if(this.length=0,this.options=r,this._root=t,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}}Yt.prototype.cheerio="[cheerio object]",Yt.prototype.splice=Array.prototype.splice,Yt.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(Yt.prototype,df,yh,$h,ed,ad,ud);function od(A,e){return function t(r,n,a=!0){if(r==null)throw new Error("cheerio.load() expects a string");const s=ma(n),u=A(r,s,a,null);class o extends Yt{_make(h,d){const m=c(h,d);return m.prevObject=this,m}_parse(h,d,m,C){return A(h,d,m,C)}_render(h){return e(h,this.options)}}function c(f,h,d=u,m){if(f&&me(f))return f;const C=ma(m,s),T=typeof d=="string"?[A(d,C,!1,null)]:"length"in d?d:[d],F=me(T)?T:new o(T,null,C);if(F._root=F,!f)return new o(void 0,F,C);const Q=typeof f=="string"&&wa(f)?A(f,C,!1,null).children:cd(f)?[f]:Array.isArray(f)?f:void 0,I=new o(Q,F,C);if(Q)return I;if(typeof f!="string")throw new TypeError("Unexpected type of selector");let H=f;const M=h?typeof h=="string"?wa(h)?new o([A(h,C,!1,null)],F,C):(H=`${h} ${H}`,F):me(h)?h:new o(Array.isArray(h)?h:[h],F,C):F;return M?M.find(H):I}return Object.assign(c,ef,{load:t,_root:u,_options:s,fn:o.prototype,prototype:o.prototype}),c}}function cd(A){return!!A.name||A.type==="root"||A.type==="text"||A.type==="comment"}const ld=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),fA="�";var B;(function(A){A[A.EOF=-1]="EOF",A[A.NULL=0]="NULL",A[A.TABULATION=9]="TABULATION",A[A.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",A[A.LINE_FEED=10]="LINE_FEED",A[A.FORM_FEED=12]="FORM_FEED",A[A.SPACE=32]="SPACE",A[A.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",A[A.QUOTATION_MARK=34]="QUOTATION_MARK",A[A.AMPERSAND=38]="AMPERSAND",A[A.APOSTROPHE=39]="APOSTROPHE",A[A.HYPHEN_MINUS=45]="HYPHEN_MINUS",A[A.SOLIDUS=47]="SOLIDUS",A[A.DIGIT_0=48]="DIGIT_0",A[A.DIGIT_9=57]="DIGIT_9",A[A.SEMICOLON=59]="SEMICOLON",A[A.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",A[A.EQUALS_SIGN=61]="EQUALS_SIGN",A[A.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",A[A.QUESTION_MARK=63]="QUESTION_MARK",A[A.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",A[A.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",A[A.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",A[A.GRAVE_ACCENT=96]="GRAVE_ACCENT",A[A.LATIN_SMALL_A=97]="LATIN_SMALL_A",A[A.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(B||(B={}));const VA={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function hu(A){return A>=55296&&A<=57343}function fd(A){return A>=56320&&A<=57343}function hd(A,e){return(A-55296)*1024+9216+e}function du(A){return A!==32&&A!==10&&A!==13&&A!==9&&A!==12&&A>=1&&A<=31||A>=127&&A<=159}function Bu(A){return A>=64976&&A<=65007||ld.has(A)}var b;(function(A){A.controlCharacterInInputStream="control-character-in-input-stream",A.noncharacterInInputStream="noncharacter-in-input-stream",A.surrogateInInputStream="surrogate-in-input-stream",A.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",A.endTagWithAttributes="end-tag-with-attributes",A.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",A.unexpectedSolidusInTag="unexpected-solidus-in-tag",A.unexpectedNullCharacter="unexpected-null-character",A.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",A.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",A.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",A.missingEndTagName="missing-end-tag-name",A.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",A.unknownNamedCharacterReference="unknown-named-character-reference",A.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",A.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",A.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",A.eofBeforeTagName="eof-before-tag-name",A.eofInTag="eof-in-tag",A.missingAttributeValue="missing-attribute-value",A.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",A.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",A.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",A.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",A.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",A.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",A.missingDoctypePublicIdentifier="missing-doctype-public-identifier",A.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",A.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",A.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",A.cdataInHtmlContent="cdata-in-html-content",A.incorrectlyOpenedComment="incorrectly-opened-comment",A.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",A.eofInDoctype="eof-in-doctype",A.nestedComment="nested-comment",A.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",A.eofInComment="eof-in-comment",A.incorrectlyClosedComment="incorrectly-closed-comment",A.eofInCdata="eof-in-cdata",A.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",A.nullCharacterReference="null-character-reference",A.surrogateCharacterReference="surrogate-character-reference",A.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",A.controlCharacterReference="control-character-reference",A.noncharacterCharacterReference="noncharacter-character-reference",A.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",A.missingDoctypeName="missing-doctype-name",A.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",A.duplicateAttribute="duplicate-attribute",A.nonConformingDoctype="non-conforming-doctype",A.missingDoctype="missing-doctype",A.misplacedDoctype="misplaced-doctype",A.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",A.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",A.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",A.openElementsLeftAfterEof="open-elements-left-after-eof",A.abandonedHeadElementChild="abandoned-head-element-child",A.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",A.nestedNoscriptInHead="nested-noscript-in-head",A.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(b||(b={}));const dd=65536;class Bd{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=dd,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:r,col:n,offset:a}=this,s=n+t,u=a+t;return{code:e,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:u,endOffset:u}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(fd(t))return this.pos++,this._addGap(),hd(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,B.EOF;return this._err(b.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let r=0;r<e.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==e.charCodeAt(r))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,B.EOF;const r=this.html.charCodeAt(t);return r===B.CARRIAGE_RETURN?B.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,B.EOF;let e=this.html.charCodeAt(this.pos);return e===B.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,B.LINE_FEED):e===B.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,hu(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===B.LINE_FEED||e===B.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){du(e)?this._err(b.controlCharacterInInputStream):Bu(e)&&this._err(b.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var eA;(function(A){A[A.CHARACTER=0]="CHARACTER",A[A.NULL_CHARACTER=1]="NULL_CHARACTER",A[A.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",A[A.START_TAG=3]="START_TAG",A[A.END_TAG=4]="END_TAG",A[A.COMMENT=5]="COMMENT",A[A.DOCTYPE=6]="DOCTYPE",A[A.EOF=7]="EOF",A[A.HIBERNATION=8]="HIBERNATION"})(eA||(eA={}));function gu(A,e){for(let t=A.attrs.length-1;t>=0;t--)if(A.attrs[t].name===e)return A.attrs[t].value;return null}var U;(function(A){A.HTML="http://www.w3.org/1999/xhtml",A.MATHML="http://www.w3.org/1998/Math/MathML",A.SVG="http://www.w3.org/2000/svg",A.XLINK="http://www.w3.org/1999/xlink",A.XML="http://www.w3.org/XML/1998/namespace",A.XMLNS="http://www.w3.org/2000/xmlns/"})(U||(U={}));var je;(function(A){A.TYPE="type",A.ACTION="action",A.ENCODING="encoding",A.PROMPT="prompt",A.NAME="name",A.COLOR="color",A.FACE="face",A.SIZE="size"})(je||(je={}));var qA;(function(A){A.NO_QUIRKS="no-quirks",A.QUIRKS="quirks",A.LIMITED_QUIRKS="limited-quirks"})(qA||(qA={}));var w;(function(A){A.A="a",A.ADDRESS="address",A.ANNOTATION_XML="annotation-xml",A.APPLET="applet",A.AREA="area",A.ARTICLE="article",A.ASIDE="aside",A.B="b",A.BASE="base",A.BASEFONT="basefont",A.BGSOUND="bgsound",A.BIG="big",A.BLOCKQUOTE="blockquote",A.BODY="body",A.BR="br",A.BUTTON="button",A.CAPTION="caption",A.CENTER="center",A.CODE="code",A.COL="col",A.COLGROUP="colgroup",A.DD="dd",A.DESC="desc",A.DETAILS="details",A.DIALOG="dialog",A.DIR="dir",A.DIV="div",A.DL="dl",A.DT="dt",A.EM="em",A.EMBED="embed",A.FIELDSET="fieldset",A.FIGCAPTION="figcaption",A.FIGURE="figure",A.FONT="font",A.FOOTER="footer",A.FOREIGN_OBJECT="foreignObject",A.FORM="form",A.FRAME="frame",A.FRAMESET="frameset",A.H1="h1",A.H2="h2",A.H3="h3",A.H4="h4",A.H5="h5",A.H6="h6",A.HEAD="head",A.HEADER="header",A.HGROUP="hgroup",A.HR="hr",A.HTML="html",A.I="i",A.IMG="img",A.IMAGE="image",A.INPUT="input",A.IFRAME="iframe",A.KEYGEN="keygen",A.LABEL="label",A.LI="li",A.LINK="link",A.LISTING="listing",A.MAIN="main",A.MALIGNMARK="malignmark",A.MARQUEE="marquee",A.MATH="math",A.MENU="menu",A.META="meta",A.MGLYPH="mglyph",A.MI="mi",A.MO="mo",A.MN="mn",A.MS="ms",A.MTEXT="mtext",A.NAV="nav",A.NOBR="nobr",A.NOFRAMES="noframes",A.NOEMBED="noembed",A.NOSCRIPT="noscript",A.OBJECT="object",A.OL="ol",A.OPTGROUP="optgroup",A.OPTION="option",A.P="p",A.PARAM="param",A.PLAINTEXT="plaintext",A.PRE="pre",A.RB="rb",A.RP="rp",A.RT="rt",A.RTC="rtc",A.RUBY="ruby",A.S="s",A.SCRIPT="script",A.SEARCH="search",A.SECTION="section",A.SELECT="select",A.SOURCE="source",A.SMALL="small",A.SPAN="span",A.STRIKE="strike",A.STRONG="strong",A.STYLE="style",A.SUB="sub",A.SUMMARY="summary",A.SUP="sup",A.TABLE="table",A.TBODY="tbody",A.TEMPLATE="template",A.TEXTAREA="textarea",A.TFOOT="tfoot",A.TD="td",A.TH="th",A.THEAD="thead",A.TITLE="title",A.TR="tr",A.TRACK="track",A.TT="tt",A.U="u",A.UL="ul",A.SVG="svg",A.VAR="var",A.WBR="wbr",A.XMP="xmp"})(w||(w={}));var i;(function(A){A[A.UNKNOWN=0]="UNKNOWN",A[A.A=1]="A",A[A.ADDRESS=2]="ADDRESS",A[A.ANNOTATION_XML=3]="ANNOTATION_XML",A[A.APPLET=4]="APPLET",A[A.AREA=5]="AREA",A[A.ARTICLE=6]="ARTICLE",A[A.ASIDE=7]="ASIDE",A[A.B=8]="B",A[A.BASE=9]="BASE",A[A.BASEFONT=10]="BASEFONT",A[A.BGSOUND=11]="BGSOUND",A[A.BIG=12]="BIG",A[A.BLOCKQUOTE=13]="BLOCKQUOTE",A[A.BODY=14]="BODY",A[A.BR=15]="BR",A[A.BUTTON=16]="BUTTON",A[A.CAPTION=17]="CAPTION",A[A.CENTER=18]="CENTER",A[A.CODE=19]="CODE",A[A.COL=20]="COL",A[A.COLGROUP=21]="COLGROUP",A[A.DD=22]="DD",A[A.DESC=23]="DESC",A[A.DETAILS=24]="DETAILS",A[A.DIALOG=25]="DIALOG",A[A.DIR=26]="DIR",A[A.DIV=27]="DIV",A[A.DL=28]="DL",A[A.DT=29]="DT",A[A.EM=30]="EM",A[A.EMBED=31]="EMBED",A[A.FIELDSET=32]="FIELDSET",A[A.FIGCAPTION=33]="FIGCAPTION",A[A.FIGURE=34]="FIGURE",A[A.FONT=35]="FONT",A[A.FOOTER=36]="FOOTER",A[A.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",A[A.FORM=38]="FORM",A[A.FRAME=39]="FRAME",A[A.FRAMESET=40]="FRAMESET",A[A.H1=41]="H1",A[A.H2=42]="H2",A[A.H3=43]="H3",A[A.H4=44]="H4",A[A.H5=45]="H5",A[A.H6=46]="H6",A[A.HEAD=47]="HEAD",A[A.HEADER=48]="HEADER",A[A.HGROUP=49]="HGROUP",A[A.HR=50]="HR",A[A.HTML=51]="HTML",A[A.I=52]="I",A[A.IMG=53]="IMG",A[A.IMAGE=54]="IMAGE",A[A.INPUT=55]="INPUT",A[A.IFRAME=56]="IFRAME",A[A.KEYGEN=57]="KEYGEN",A[A.LABEL=58]="LABEL",A[A.LI=59]="LI",A[A.LINK=60]="LINK",A[A.LISTING=61]="LISTING",A[A.MAIN=62]="MAIN",A[A.MALIGNMARK=63]="MALIGNMARK",A[A.MARQUEE=64]="MARQUEE",A[A.MATH=65]="MATH",A[A.MENU=66]="MENU",A[A.META=67]="META",A[A.MGLYPH=68]="MGLYPH",A[A.MI=69]="MI",A[A.MO=70]="MO",A[A.MN=71]="MN",A[A.MS=72]="MS",A[A.MTEXT=73]="MTEXT",A[A.NAV=74]="NAV",A[A.NOBR=75]="NOBR",A[A.NOFRAMES=76]="NOFRAMES",A[A.NOEMBED=77]="NOEMBED",A[A.NOSCRIPT=78]="NOSCRIPT",A[A.OBJECT=79]="OBJECT",A[A.OL=80]="OL",A[A.OPTGROUP=81]="OPTGROUP",A[A.OPTION=82]="OPTION",A[A.P=83]="P",A[A.PARAM=84]="PARAM",A[A.PLAINTEXT=85]="PLAINTEXT",A[A.PRE=86]="PRE",A[A.RB=87]="RB",A[A.RP=88]="RP",A[A.RT=89]="RT",A[A.RTC=90]="RTC",A[A.RUBY=91]="RUBY",A[A.S=92]="S",A[A.SCRIPT=93]="SCRIPT",A[A.SEARCH=94]="SEARCH",A[A.SECTION=95]="SECTION",A[A.SELECT=96]="SELECT",A[A.SOURCE=97]="SOURCE",A[A.SMALL=98]="SMALL",A[A.SPAN=99]="SPAN",A[A.STRIKE=100]="STRIKE",A[A.STRONG=101]="STRONG",A[A.STYLE=102]="STYLE",A[A.SUB=103]="SUB",A[A.SUMMARY=104]="SUMMARY",A[A.SUP=105]="SUP",A[A.TABLE=106]="TABLE",A[A.TBODY=107]="TBODY",A[A.TEMPLATE=108]="TEMPLATE",A[A.TEXTAREA=109]="TEXTAREA",A[A.TFOOT=110]="TFOOT",A[A.TD=111]="TD",A[A.TH=112]="TH",A[A.THEAD=113]="THEAD",A[A.TITLE=114]="TITLE",A[A.TR=115]="TR",A[A.TRACK=116]="TRACK",A[A.TT=117]="TT",A[A.U=118]="U",A[A.UL=119]="UL",A[A.SVG=120]="SVG",A[A.VAR=121]="VAR",A[A.WBR=122]="WBR",A[A.XMP=123]="XMP"})(i||(i={}));const gd=new Map([[w.A,i.A],[w.ADDRESS,i.ADDRESS],[w.ANNOTATION_XML,i.ANNOTATION_XML],[w.APPLET,i.APPLET],[w.AREA,i.AREA],[w.ARTICLE,i.ARTICLE],[w.ASIDE,i.ASIDE],[w.B,i.B],[w.BASE,i.BASE],[w.BASEFONT,i.BASEFONT],[w.BGSOUND,i.BGSOUND],[w.BIG,i.BIG],[w.BLOCKQUOTE,i.BLOCKQUOTE],[w.BODY,i.BODY],[w.BR,i.BR],[w.BUTTON,i.BUTTON],[w.CAPTION,i.CAPTION],[w.CENTER,i.CENTER],[w.CODE,i.CODE],[w.COL,i.COL],[w.COLGROUP,i.COLGROUP],[w.DD,i.DD],[w.DESC,i.DESC],[w.DETAILS,i.DETAILS],[w.DIALOG,i.DIALOG],[w.DIR,i.DIR],[w.DIV,i.DIV],[w.DL,i.DL],[w.DT,i.DT],[w.EM,i.EM],[w.EMBED,i.EMBED],[w.FIELDSET,i.FIELDSET],[w.FIGCAPTION,i.FIGCAPTION],[w.FIGURE,i.FIGURE],[w.FONT,i.FONT],[w.FOOTER,i.FOOTER],[w.FOREIGN_OBJECT,i.FOREIGN_OBJECT],[w.FORM,i.FORM],[w.FRAME,i.FRAME],[w.FRAMESET,i.FRAMESET],[w.H1,i.H1],[w.H2,i.H2],[w.H3,i.H3],[w.H4,i.H4],[w.H5,i.H5],[w.H6,i.H6],[w.HEAD,i.HEAD],[w.HEADER,i.HEADER],[w.HGROUP,i.HGROUP],[w.HR,i.HR],[w.HTML,i.HTML],[w.I,i.I],[w.IMG,i.IMG],[w.IMAGE,i.IMAGE],[w.INPUT,i.INPUT],[w.IFRAME,i.IFRAME],[w.KEYGEN,i.KEYGEN],[w.LABEL,i.LABEL],[w.LI,i.LI],[w.LINK,i.LINK],[w.LISTING,i.LISTING],[w.MAIN,i.MAIN],[w.MALIGNMARK,i.MALIGNMARK],[w.MARQUEE,i.MARQUEE],[w.MATH,i.MATH],[w.MENU,i.MENU],[w.META,i.META],[w.MGLYPH,i.MGLYPH],[w.MI,i.MI],[w.MO,i.MO],[w.MN,i.MN],[w.MS,i.MS],[w.MTEXT,i.MTEXT],[w.NAV,i.NAV],[w.NOBR,i.NOBR],[w.NOFRAMES,i.NOFRAMES],[w.NOEMBED,i.NOEMBED],[w.NOSCRIPT,i.NOSCRIPT],[w.OBJECT,i.OBJECT],[w.OL,i.OL],[w.OPTGROUP,i.OPTGROUP],[w.OPTION,i.OPTION],[w.P,i.P],[w.PARAM,i.PARAM],[w.PLAINTEXT,i.PLAINTEXT],[w.PRE,i.PRE],[w.RB,i.RB],[w.RP,i.RP],[w.RT,i.RT],[w.RTC,i.RTC],[w.RUBY,i.RUBY],[w.S,i.S],[w.SCRIPT,i.SCRIPT],[w.SEARCH,i.SEARCH],[w.SECTION,i.SECTION],[w.SELECT,i.SELECT],[w.SOURCE,i.SOURCE],[w.SMALL,i.SMALL],[w.SPAN,i.SPAN],[w.STRIKE,i.STRIKE],[w.STRONG,i.STRONG],[w.STYLE,i.STYLE],[w.SUB,i.SUB],[w.SUMMARY,i.SUMMARY],[w.SUP,i.SUP],[w.TABLE,i.TABLE],[w.TBODY,i.TBODY],[w.TEMPLATE,i.TEMPLATE],[w.TEXTAREA,i.TEXTAREA],[w.TFOOT,i.TFOOT],[w.TD,i.TD],[w.TH,i.TH],[w.THEAD,i.THEAD],[w.TITLE,i.TITLE],[w.TR,i.TR],[w.TRACK,i.TRACK],[w.TT,i.TT],[w.U,i.U],[w.UL,i.UL],[w.SVG,i.SVG],[w.VAR,i.VAR],[w.WBR,i.WBR],[w.XMP,i.XMP]]);function qr(A){var e;return(e=gd.get(A))!==null&&e!==void 0?e:i.UNKNOWN}const N=i,Ed={[U.HTML]:new Set([N.ADDRESS,N.APPLET,N.AREA,N.ARTICLE,N.ASIDE,N.BASE,N.BASEFONT,N.BGSOUND,N.BLOCKQUOTE,N.BODY,N.BR,N.BUTTON,N.CAPTION,N.CENTER,N.COL,N.COLGROUP,N.DD,N.DETAILS,N.DIR,N.DIV,N.DL,N.DT,N.EMBED,N.FIELDSET,N.FIGCAPTION,N.FIGURE,N.FOOTER,N.FORM,N.FRAME,N.FRAMESET,N.H1,N.H2,N.H3,N.H4,N.H5,N.H6,N.HEAD,N.HEADER,N.HGROUP,N.HR,N.HTML,N.IFRAME,N.IMG,N.INPUT,N.LI,N.LINK,N.LISTING,N.MAIN,N.MARQUEE,N.MENU,N.META,N.NAV,N.NOEMBED,N.NOFRAMES,N.NOSCRIPT,N.OBJECT,N.OL,N.P,N.PARAM,N.PLAINTEXT,N.PRE,N.SCRIPT,N.SECTION,N.SELECT,N.SOURCE,N.STYLE,N.SUMMARY,N.TABLE,N.TBODY,N.TD,N.TEMPLATE,N.TEXTAREA,N.TFOOT,N.TH,N.THEAD,N.TITLE,N.TR,N.TRACK,N.UL,N.WBR,N.XMP]),[U.MATHML]:new Set([N.MI,N.MO,N.MN,N.MS,N.MTEXT,N.ANNOTATION_XML]),[U.SVG]:new Set([N.TITLE,N.FOREIGN_OBJECT,N.DESC]),[U.XLINK]:new Set,[U.XML]:new Set,[U.XMLNS]:new Set},Pa=new Set([N.H1,N.H2,N.H3,N.H4,N.H5,N.H6]),pd=new Set([w.STYLE,w.SCRIPT,w.XMP,w.IFRAME,w.NOEMBED,w.NOFRAMES,w.PLAINTEXT]);function Cd(A,e){return pd.has(A)||e&&A===w.NOSCRIPT}var g;(function(A){A[A.DATA=0]="DATA",A[A.RCDATA=1]="RCDATA",A[A.RAWTEXT=2]="RAWTEXT",A[A.SCRIPT_DATA=3]="SCRIPT_DATA",A[A.PLAINTEXT=4]="PLAINTEXT",A[A.TAG_OPEN=5]="TAG_OPEN",A[A.END_TAG_OPEN=6]="END_TAG_OPEN",A[A.TAG_NAME=7]="TAG_NAME",A[A.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",A[A.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",A[A.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",A[A.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",A[A.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",A[A.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",A[A.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",A[A.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",A[A.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",A[A.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",A[A.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",A[A.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",A[A.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",A[A.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",A[A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",A[A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",A[A.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",A[A.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",A[A.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",A[A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",A[A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",A[A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",A[A.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",A[A.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",A[A.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",A[A.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",A[A.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",A[A.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",A[A.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",A[A.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",A[A.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",A[A.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",A[A.BOGUS_COMMENT=40]="BOGUS_COMMENT",A[A.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",A[A.COMMENT_START=42]="COMMENT_START",A[A.COMMENT_START_DASH=43]="COMMENT_START_DASH",A[A.COMMENT=44]="COMMENT",A[A.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",A[A.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",A[A.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",A[A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",A[A.COMMENT_END_DASH=49]="COMMENT_END_DASH",A[A.COMMENT_END=50]="COMMENT_END",A[A.COMMENT_END_BANG=51]="COMMENT_END_BANG",A[A.DOCTYPE=52]="DOCTYPE",A[A.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",A[A.DOCTYPE_NAME=54]="DOCTYPE_NAME",A[A.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",A[A.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",A[A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",A[A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",A[A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",A[A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",A[A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",A[A.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",A[A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",A[A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",A[A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",A[A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",A[A.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",A[A.CDATA_SECTION=68]="CDATA_SECTION",A[A.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",A[A.CDATA_SECTION_END=70]="CDATA_SECTION_END",A[A.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",A[A.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(g||(g={}));const GA={DATA:g.DATA,RCDATA:g.RCDATA,RAWTEXT:g.RAWTEXT,SCRIPT_DATA:g.SCRIPT_DATA,PLAINTEXT:g.PLAINTEXT,CDATA_SECTION:g.CDATA_SECTION};function md(A){return A>=B.DIGIT_0&&A<=B.DIGIT_9}function Xt(A){return A>=B.LATIN_CAPITAL_A&&A<=B.LATIN_CAPITAL_Z}function wd(A){return A>=B.LATIN_SMALL_A&&A<=B.LATIN_SMALL_Z}function ve(A){return wd(A)||Xt(A)}function Eu(A){return ve(A)||md(A)}function Zr(A){return A+32}function pu(A){return A===B.SPACE||A===B.LINE_FEED||A===B.TABULATION||A===B.FORM_FEED}function Cu(A){return pu(A)||A===B.SOLIDUS||A===B.GREATER_THAN_SIGN}function Td(A){return A===B.NULL?b.nullCharacterReference:A>1114111?b.characterReferenceOutsideUnicodeRange:hu(A)?b.surrogateCharacterReference:Bu(A)?b.noncharacterCharacterReference:du(A)||A===B.CARRIAGE_RETURN?b.controlCharacterReference:null}let bd=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=g.DATA,this.returnState=g.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Bd(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Ba(la,(r,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(r)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(b.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(b.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const n=Td(r);n&&this._err(n,1)}}:void 0)}_err(e,t=0){var r,n;(n=(r=this.handler).onParseError)===null||n===void 0||n.call(r,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e==null||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:eA.START_TAG,tagName:"",tagID:i.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:eA.END_TAG,tagName:"",tagID:i.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:eA.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:eA.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const r=this.currentToken;if(gu(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const n=(e=(t=r.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(b.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=qr(e.tagName),e.type===eA.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(b.endTagWithAttributes),e.selfClosing&&this._err(b.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case eA.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case eA.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case eA.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:eA.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){const t=pu(e)?eA.WHITESPACE_CHARACTER:e===B.NULL?eA.NULL_CHARACTER:eA.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(eA.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=g.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?jA.Attribute:jA.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===g.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case g.DATA:{this._stateData(e);break}case g.RCDATA:{this._stateRcdata(e);break}case g.RAWTEXT:{this._stateRawtext(e);break}case g.SCRIPT_DATA:{this._stateScriptData(e);break}case g.PLAINTEXT:{this._statePlaintext(e);break}case g.TAG_OPEN:{this._stateTagOpen(e);break}case g.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case g.TAG_NAME:{this._stateTagName(e);break}case g.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case g.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case g.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case g.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case g.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case g.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case g.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case g.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case g.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case g.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case g.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case g.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case g.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case g.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case g.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case g.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case g.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case g.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case g.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case g.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case g.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case g.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case g.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case g.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case g.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case g.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case g.BOGUS_COMMENT:{this._stateBogusComment(e);break}case g.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case g.COMMENT_START:{this._stateCommentStart(e);break}case g.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case g.COMMENT:{this._stateComment(e);break}case g.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case g.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case g.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case g.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case g.COMMENT_END:{this._stateCommentEnd(e);break}case g.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case g.DOCTYPE:{this._stateDoctype(e);break}case g.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case g.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case g.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case g.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case g.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case g.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case g.CDATA_SECTION:{this._stateCdataSection(e);break}case g.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case g.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case g.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case g.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case B.LESS_THAN_SIGN:{this.state=g.TAG_OPEN;break}case B.AMPERSAND:{this._startCharacterReference();break}case B.NULL:{this._err(b.unexpectedNullCharacter),this._emitCodePoint(e);break}case B.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case B.AMPERSAND:{this._startCharacterReference();break}case B.LESS_THAN_SIGN:{this.state=g.RCDATA_LESS_THAN_SIGN;break}case B.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(fA);break}case B.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case B.LESS_THAN_SIGN:{this.state=g.RAWTEXT_LESS_THAN_SIGN;break}case B.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(fA);break}case B.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case B.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_LESS_THAN_SIGN;break}case B.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(fA);break}case B.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case B.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(fA);break}case B.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ve(e))this._createStartTagToken(),this.state=g.TAG_NAME,this._stateTagName(e);else switch(e){case B.EXCLAMATION_MARK:{this.state=g.MARKUP_DECLARATION_OPEN;break}case B.SOLIDUS:{this.state=g.END_TAG_OPEN;break}case B.QUESTION_MARK:{this._err(b.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=g.BOGUS_COMMENT,this._stateBogusComment(e);break}case B.EOF:{this._err(b.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(b.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=g.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ve(e))this._createEndTagToken(),this.state=g.TAG_NAME,this._stateTagName(e);else switch(e){case B.GREATER_THAN_SIGN:{this._err(b.missingEndTagName),this.state=g.DATA;break}case B.EOF:{this._err(b.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(b.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:{this.state=g.BEFORE_ATTRIBUTE_NAME;break}case B.SOLIDUS:{this.state=g.SELF_CLOSING_START_TAG;break}case B.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentTagToken();break}case B.NULL:{this._err(b.unexpectedNullCharacter),t.tagName+=fA;break}case B.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:t.tagName+=String.fromCodePoint(Xt(e)?Zr(e):e)}}_stateRcdataLessThanSign(e){e===B.SOLIDUS?this.state=g.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){ve(e)?(this.state=g.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=g.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=g.BEFORE_ATTRIBUTE_NAME,!1;case B.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=g.SELF_CLOSING_START_TAG,!1;case B.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=g.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===B.SOLIDUS?this.state=g.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){ve(e)?(this.state=g.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=g.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case B.SOLIDUS:{this.state=g.SCRIPT_DATA_END_TAG_OPEN;break}case B.EXCLAMATION_MARK:{this.state=g.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=g.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){ve(e)?(this.state=g.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===B.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===B.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case B.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case B.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case B.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(fA);break}case B.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case B.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case B.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case B.NULL:{this._err(b.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(fA);break}case B.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case B.HYPHEN_MINUS:{this._emitChars("-");break}case B.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case B.GREATER_THAN_SIGN:{this.state=g.SCRIPT_DATA,this._emitChars(">");break}case B.NULL:{this._err(b.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(fA);break}case B.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===B.SOLIDUS?this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ve(e)?(this._emitChars("<"),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ve(e)?(this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(VA.SCRIPT,!1)&&Cu(this.preprocessor.peek(VA.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<VA.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case B.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case B.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case B.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(fA);break}case B.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case B.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case B.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case B.NULL:{this._err(b.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(fA);break}case B.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case B.HYPHEN_MINUS:{this._emitChars("-");break}case B.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case B.GREATER_THAN_SIGN:{this.state=g.SCRIPT_DATA,this._emitChars(">");break}case B.NULL:{this._err(b.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(fA);break}case B.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===B.SOLIDUS?(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(VA.SCRIPT,!1)&&Cu(this.preprocessor.peek(VA.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<VA.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:break;case B.SOLIDUS:case B.GREATER_THAN_SIGN:case B.EOF:{this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case B.EQUALS_SIGN:{this._err(b.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=g.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:case B.SOLIDUS:case B.GREATER_THAN_SIGN:case B.EOF:{this._leaveAttrName(),this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case B.EQUALS_SIGN:{this._leaveAttrName(),this.state=g.BEFORE_ATTRIBUTE_VALUE;break}case B.QUOTATION_MARK:case B.APOSTROPHE:case B.LESS_THAN_SIGN:{this._err(b.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case B.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.name+=fA;break}default:this.currentAttr.name+=String.fromCodePoint(Xt(e)?Zr(e):e)}}_stateAfterAttributeName(e){switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:break;case B.SOLIDUS:{this.state=g.SELF_CLOSING_START_TAG;break}case B.EQUALS_SIGN:{this.state=g.BEFORE_ATTRIBUTE_VALUE;break}case B.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentTagToken();break}case B.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:break;case B.QUOTATION_MARK:{this.state=g.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case B.APOSTROPHE:{this.state=g.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case B.GREATER_THAN_SIGN:{this._err(b.missingAttributeValue),this.state=g.DATA,this.emitCurrentTagToken();break}default:this.state=g.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case B.QUOTATION_MARK:{this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case B.AMPERSAND:{this._startCharacterReference();break}case B.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=fA;break}case B.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case B.APOSTROPHE:{this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case B.AMPERSAND:{this._startCharacterReference();break}case B.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=fA;break}case B.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:{this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break}case B.AMPERSAND:{this._startCharacterReference();break}case B.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break}case B.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=fA;break}case B.QUOTATION_MARK:case B.APOSTROPHE:case B.LESS_THAN_SIGN:case B.EQUALS_SIGN:case B.GRAVE_ACCENT:{this._err(b.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case B.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:{this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break}case B.SOLIDUS:{this._leaveAttrValue(),this.state=g.SELF_CLOSING_START_TAG;break}case B.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break}case B.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBetweenAttributes),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case B.GREATER_THAN_SIGN:{const t=this.currentToken;t.selfClosing=!0,this.state=g.DATA,this.emitCurrentTagToken();break}case B.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._err(b.unexpectedSolidusInTag),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case B.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentComment(t);break}case B.EOF:{this.emitCurrentComment(t),this._emitEOFToken();break}case B.NULL:{this._err(b.unexpectedNullCharacter),t.data+=fA;break}default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(VA.DASH_DASH,!0)?(this._createCommentToken(VA.DASH_DASH.length+1),this.state=g.COMMENT_START):this._consumeSequenceIfMatch(VA.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(VA.DOCTYPE.length+1),this.state=g.DOCTYPE):this._consumeSequenceIfMatch(VA.CDATA_START,!0)?this.inForeignNode?this.state=g.CDATA_SECTION:(this._err(b.cdataInHtmlContent),this._createCommentToken(VA.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=g.BOGUS_COMMENT):this._ensureHibernation()||(this._err(b.incorrectlyOpenedComment),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case B.HYPHEN_MINUS:{this.state=g.COMMENT_START_DASH;break}case B.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=g.DATA;const t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=g.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case B.HYPHEN_MINUS:{this.state=g.COMMENT_END;break}case B.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=g.DATA,this.emitCurrentComment(t);break}case B.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=g.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case B.HYPHEN_MINUS:{this.state=g.COMMENT_END_DASH;break}case B.LESS_THAN_SIGN:{t.data+="<",this.state=g.COMMENT_LESS_THAN_SIGN;break}case B.NULL:{this._err(b.unexpectedNullCharacter),t.data+=fA;break}case B.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case B.EXCLAMATION_MARK:{t.data+="!",this.state=g.COMMENT_LESS_THAN_SIGN_BANG;break}case B.LESS_THAN_SIGN:{t.data+="<";break}default:this.state=g.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===B.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=g.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===B.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=g.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==B.GREATER_THAN_SIGN&&e!==B.EOF&&this._err(b.nestedComment),this.state=g.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case B.HYPHEN_MINUS:{this.state=g.COMMENT_END;break}case B.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=g.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case B.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentComment(t);break}case B.EXCLAMATION_MARK:{this.state=g.COMMENT_END_BANG;break}case B.HYPHEN_MINUS:{t.data+="-";break}case B.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--",this.state=g.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case B.HYPHEN_MINUS:{t.data+="--!",this.state=g.COMMENT_END_DASH;break}case B.GREATER_THAN_SIGN:{this._err(b.incorrectlyClosedComment),this.state=g.DATA,this.emitCurrentComment(t);break}case B.EOF:{this._err(b.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--!",this.state=g.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_NAME;break}case B.GREATER_THAN_SIGN:{this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case B.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBeforeDoctypeName),this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(Xt(e))this._createDoctypeToken(String.fromCharCode(Zr(e))),this.state=g.DOCTYPE_NAME;else switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:break;case B.NULL:{this._err(b.unexpectedNullCharacter),this._createDoctypeToken(fA),this.state=g.DOCTYPE_NAME;break}case B.GREATER_THAN_SIGN:{this._err(b.missingDoctypeName),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break}case B.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=g.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:{this.state=g.AFTER_DOCTYPE_NAME;break}case B.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(t);break}case B.NULL:{this._err(b.unexpectedNullCharacter),t.name+=fA;break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.name+=String.fromCodePoint(Xt(e)?Zr(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:break;case B.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(t);break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(VA.PUBLIC,!1)?this.state=g.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(VA.SYSTEM,!1)?this.state=g.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(b.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case B.QUOTATION_MARK:{this._err(b.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case B.APOSTROPHE:{this._err(b.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case B.GREATER_THAN_SIGN:{this._err(b.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:break;case B.QUOTATION_MARK:{t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case B.APOSTROPHE:{t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case B.GREATER_THAN_SIGN:{this._err(b.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case B.QUOTATION_MARK:{this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case B.NULL:{this._err(b.unexpectedNullCharacter),t.publicId+=fA;break}case B.GREATER_THAN_SIGN:{this._err(b.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case B.APOSTROPHE:{this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case B.NULL:{this._err(b.unexpectedNullCharacter),t.publicId+=fA;break}case B.GREATER_THAN_SIGN:{this._err(b.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:{this.state=g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case B.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(t);break}case B.QUOTATION_MARK:{this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case B.APOSTROPHE:{this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:break;case B.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=g.DATA;break}case B.QUOTATION_MARK:{t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case B.APOSTROPHE:{t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case B.QUOTATION_MARK:{this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case B.APOSTROPHE:{this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case B.GREATER_THAN_SIGN:{this._err(b.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:break;case B.QUOTATION_MARK:{t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case B.APOSTROPHE:{t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case B.GREATER_THAN_SIGN:{this._err(b.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case B.QUOTATION_MARK:{this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case B.NULL:{this._err(b.unexpectedNullCharacter),t.systemId+=fA;break}case B.GREATER_THAN_SIGN:{this._err(b.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case B.APOSTROPHE:{this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case B.NULL:{this._err(b.unexpectedNullCharacter),t.systemId+=fA;break}case B.GREATER_THAN_SIGN:{this._err(b.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case B.SPACE:case B.LINE_FEED:case B.TABULATION:case B.FORM_FEED:break;case B.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=g.DATA;break}case B.EOF:{this._err(b.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(b.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case B.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=g.DATA;break}case B.NULL:{this._err(b.unexpectedNullCharacter);break}case B.EOF:{this.emitCurrentDoctype(t),this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case B.RIGHT_SQUARE_BRACKET:{this.state=g.CDATA_SECTION_BRACKET;break}case B.EOF:{this._err(b.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===B.RIGHT_SQUARE_BRACKET?this.state=g.CDATA_SECTION_END:(this._emitChars("]"),this.state=g.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case B.GREATER_THAN_SIGN:{this.state=g.DATA;break}case B.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=g.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(B.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Eu(this.preprocessor.peek(1))?g.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){Eu(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===B.SEMICOLON&&this._err(b.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}};const mu=new Set([i.DD,i.DT,i.LI,i.OPTGROUP,i.OPTION,i.P,i.RB,i.RP,i.RT,i.RTC]),wu=new Set([...mu,i.CAPTION,i.COLGROUP,i.TBODY,i.TD,i.TFOOT,i.TH,i.THEAD,i.TR]),$r=new Set([i.APPLET,i.CAPTION,i.HTML,i.MARQUEE,i.OBJECT,i.TABLE,i.TD,i.TEMPLATE,i.TH]),Ud=new Set([...$r,i.OL,i.UL]),Qd=new Set([...$r,i.BUTTON]),Tu=new Set([i.ANNOTATION_XML,i.MI,i.MN,i.MO,i.MS,i.MTEXT]),bu=new Set([i.DESC,i.FOREIGN_OBJECT,i.TITLE]),Fd=new Set([i.TR,i.TEMPLATE,i.HTML]),Id=new Set([i.TBODY,i.TFOOT,i.THEAD,i.TEMPLATE,i.HTML]),_d=new Set([i.TABLE,i.TEMPLATE,i.HTML]),yd=new Set([i.TD,i.TH]);class Nd{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=i.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===U.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){const n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==U.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Pa,U.HTML)}popUntilTableCellPopped(){this.popUntilPopped(yd,U.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return-1}clearBackTo(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(_d,U.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Id,U.HTML)}clearBackToTableRowContext(){this.clearBackTo(Fd,U.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===i.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===i.HTML}hasInDynamicScope(e,t){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case U.HTML:{if(n===e)return!0;if(t.has(n))return!1;break}case U.SVG:{if(bu.has(n))return!1;break}case U.MATHML:{if(Tu.has(n))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,$r)}hasInListItemScope(e){return this.hasInDynamicScope(e,Ud)}hasInButtonScope(e){return this.hasInDynamicScope(e,Qd)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case U.HTML:{if(Pa.has(t))return!0;if($r.has(t))return!1;break}case U.SVG:{if(bu.has(t))return!1;break}case U.MATHML:{if(Tu.has(t))return!1;break}}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===U.HTML)switch(this.tagIDs[t]){case e:return!0;case i.TABLE:case i.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===U.HTML)switch(this.tagIDs[e]){case i.TBODY:case i.THEAD:case i.TFOOT:return!0;case i.TABLE:case i.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===U.HTML)switch(this.tagIDs[t]){case e:return!0;case i.OPTION:case i.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;mu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;wu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&wu.has(this.currentTagId);)this.pop()}}const Ka=3;var fe;(function(A){A[A.Marker=0]="Marker",A[A.Element=1]="Element"})(fe||(fe={}));const Uu={type:fe.Marker};class Sd{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const r=[],n=t.length,a=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let u=0;u<this.entries.length;u++){const o=this.entries[u];if(o.type===fe.Marker)break;const{element:c}=o;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===s){const f=this.treeAdapter.getAttrList(c);f.length===n&&r.push({idx:u,attrs:f})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<Ka)return;const t=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,t);if(r.length<Ka)return;const n=new Map(t.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const u=r[s];u.attrs.every(o=>n.get(o.name)===o.value)&&(a+=1,a>=Ka&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(Uu)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:fe.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:fe.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Uu);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find(r=>r.type===fe.Marker||this.treeAdapter.getTagName(r.element)===e);return t&&t.type===fe.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===fe.Element&&t.element===e)}}const we={createDocument(){return{nodeName:"#document",mode:qA.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(A,e,t){return{nodeName:A,tagName:A,attrs:t,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(A){return{nodeName:"#comment",data:A,parentNode:null}},createTextNode(A){return{nodeName:"#text",value:A,parentNode:null}},appendChild(A,e){A.childNodes.push(e),e.parentNode=A},insertBefore(A,e,t){const r=A.childNodes.indexOf(t);A.childNodes.splice(r,0,e),e.parentNode=A},setTemplateContent(A,e){A.content=e},getTemplateContent(A){return A.content},setDocumentType(A,e,t,r){const n=A.childNodes.find(a=>a.nodeName==="#documentType");if(n)n.name=e,n.publicId=t,n.systemId=r;else{const a={nodeName:"#documentType",name:e,publicId:t,systemId:r,parentNode:null};we.appendChild(A,a)}},setDocumentMode(A,e){A.mode=e},getDocumentMode(A){return A.mode},detachNode(A){if(A.parentNode){const e=A.parentNode.childNodes.indexOf(A);A.parentNode.childNodes.splice(e,1),A.parentNode=null}},insertText(A,e){if(A.childNodes.length>0){const t=A.childNodes[A.childNodes.length-1];if(we.isTextNode(t)){t.value+=e;return}}we.appendChild(A,we.createTextNode(e))},insertTextBefore(A,e,t){const r=A.childNodes[A.childNodes.indexOf(t)-1];r&&we.isTextNode(r)?r.value+=e:we.insertBefore(A,we.createTextNode(e),t)},adoptAttributes(A,e){const t=new Set(A.attrs.map(r=>r.name));for(let r=0;r<e.length;r++)t.has(e[r].name)||A.attrs.push(e[r])},getFirstChild(A){return A.childNodes[0]},getChildNodes(A){return A.childNodes},getParentNode(A){return A.parentNode},getAttrList(A){return A.attrs},getTagName(A){return A.tagName},getNamespaceURI(A){return A.namespaceURI},getTextNodeContent(A){return A.value},getCommentNodeContent(A){return A.data},getDocumentTypeNodeName(A){return A.name},getDocumentTypeNodePublicId(A){return A.publicId},getDocumentTypeNodeSystemId(A){return A.systemId},isTextNode(A){return A.nodeName==="#text"},isCommentNode(A){return A.nodeName==="#comment"},isDocumentTypeNode(A){return A.nodeName==="#documentType"},isElementNode(A){return Object.prototype.hasOwnProperty.call(A,"tagName")},setNodeSourceCodeLocation(A,e){A.sourceCodeLocation=e},getNodeSourceCodeLocation(A){return A.sourceCodeLocation},updateNodeSourceCodeLocation(A,e){A.sourceCodeLocation={...A.sourceCodeLocation,...e}}},Qu="html",vd="about:legacy-compat",Ld="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Fu=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Hd=[...Fu,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],xd=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Iu=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Dd=[...Iu,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function _u(A,e){return e.some(t=>A.startsWith(t))}function Od(A){return A.name===Qu&&A.publicId===null&&(A.systemId===null||A.systemId===vd)}function Rd(A){if(A.name!==Qu)return qA.QUIRKS;const{systemId:e}=A;if(e&&e.toLowerCase()===Ld)return qA.QUIRKS;let{publicId:t}=A;if(t!==null){if(t=t.toLowerCase(),xd.has(t))return qA.QUIRKS;let r=e===null?Hd:Fu;if(_u(t,r))return qA.QUIRKS;if(r=e===null?Iu:Dd,_u(t,r))return qA.LIMITED_QUIRKS}return qA.NO_QUIRKS}const yu={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Md="definitionurl",kd="definitionURL",Pd=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(A=>[A.toLowerCase(),A])),Kd=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:U.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:U.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:U.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:U.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:U.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:U.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:U.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:U.XML}],["xml:space",{prefix:"xml",name:"space",namespace:U.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:U.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:U.XMLNS}]]),Vd=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(A=>[A.toLowerCase(),A])),Gd=new Set([i.B,i.BIG,i.BLOCKQUOTE,i.BODY,i.BR,i.CENTER,i.CODE,i.DD,i.DIV,i.DL,i.DT,i.EM,i.EMBED,i.H1,i.H2,i.H3,i.H4,i.H5,i.H6,i.HEAD,i.HR,i.I,i.IMG,i.LI,i.LISTING,i.MENU,i.META,i.NOBR,i.OL,i.P,i.PRE,i.RUBY,i.S,i.SMALL,i.SPAN,i.STRONG,i.STRIKE,i.SUB,i.SUP,i.TABLE,i.TT,i.U,i.UL,i.VAR]);function Yd(A){const e=A.tagID;return e===i.FONT&&A.attrs.some(({name:r})=>r===je.COLOR||r===je.SIZE||r===je.FACE)||Gd.has(e)}function Nu(A){for(let e=0;e<A.attrs.length;e++)if(A.attrs[e].name===Md){A.attrs[e].name=kd;break}}function Su(A){for(let e=0;e<A.attrs.length;e++){const t=Pd.get(A.attrs[e].name);t!=null&&(A.attrs[e].name=t)}}function Va(A){for(let e=0;e<A.attrs.length;e++){const t=Kd.get(A.attrs[e].name);t&&(A.attrs[e].prefix=t.prefix,A.attrs[e].name=t.name,A.attrs[e].namespace=t.namespace)}}function Xd(A){const e=Vd.get(A.tagName);e!=null&&(A.tagName=e,A.tagID=qr(A.tagName))}function Wd(A,e){return e===U.MATHML&&(A===i.MI||A===i.MO||A===i.MN||A===i.MS||A===i.MTEXT)}function Jd(A,e,t){if(e===U.MATHML&&A===i.ANNOTATION_XML){for(let r=0;r<t.length;r++)if(t[r].name===je.ENCODING){const n=t[r].value.toLowerCase();return n===yu.TEXT_HTML||n===yu.APPLICATION_XML}}return e===U.SVG&&(A===i.FOREIGN_OBJECT||A===i.DESC||A===i.TITLE)}function qd(A,e,t,r){return(!r||r===U.HTML)&&Jd(A,e,t)||(!r||r===U.MATHML)&&Wd(A,e)}const Zd="hidden",$d=8,jd=3;var E;(function(A){A[A.INITIAL=0]="INITIAL",A[A.BEFORE_HTML=1]="BEFORE_HTML",A[A.BEFORE_HEAD=2]="BEFORE_HEAD",A[A.IN_HEAD=3]="IN_HEAD",A[A.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",A[A.AFTER_HEAD=5]="AFTER_HEAD",A[A.IN_BODY=6]="IN_BODY",A[A.TEXT=7]="TEXT",A[A.IN_TABLE=8]="IN_TABLE",A[A.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",A[A.IN_CAPTION=10]="IN_CAPTION",A[A.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",A[A.IN_TABLE_BODY=12]="IN_TABLE_BODY",A[A.IN_ROW=13]="IN_ROW",A[A.IN_CELL=14]="IN_CELL",A[A.IN_SELECT=15]="IN_SELECT",A[A.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",A[A.IN_TEMPLATE=17]="IN_TEMPLATE",A[A.AFTER_BODY=18]="AFTER_BODY",A[A.IN_FRAMESET=19]="IN_FRAMESET",A[A.AFTER_FRAMESET=20]="AFTER_FRAMESET",A[A.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",A[A.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(E||(E={}));const zd={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},vu=new Set([i.TABLE,i.TBODY,i.TFOOT,i.THEAD,i.TR]),Lu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:we,onParseError:null};let Hu=class{constructor(e,t,r=null,n=null){this.fragmentContext=r,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=E.INITIAL,this.originalInsertionMode=E.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Lu,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new bd(this.options,this),this.activeFormattingElements=new Sd(this.treeAdapter),this.fragmentContextID=r?qr(this.treeAdapter.getTagName(r)):i.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Nd(this.document,this.treeAdapter,this)}static parse(e,t){const r=new this(t);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,t){const r={...Lu,...t};e??(e=r.treeAdapter.createElement(w.TEMPLATE,U.HTML,[]));const n=r.treeAdapter.createElement("documentmock",U.HTML,[]),a=new this(r,n,e);return a.fragmentContextID===i.TEMPLATE&&a.tmplInsertionModeStack.unshift(E.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var n;if(!this.onParseError)return;const a=(n=e.location)!==null&&n!==void 0?n:zd,s={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(e,t,r){var n,a;(a=(n=this.treeAdapter).onItemPush)===null||a===void 0||a.call(n,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(n=(r=this.treeAdapter).onItemPop)===null||n===void 0||n.call(r,e,this.openElements.current),t){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(e,t){const r=e===this.document||this.treeAdapter.getNamespaceURI(e)===U.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,U.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=E.TEXT}switchToPlaintextParsing(){this.insertionMode=E.TEXT,this.originalInsertionMode=E.IN_BODY,this.tokenizer.state=GA.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===w.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==U.HTML))switch(this.fragmentContextID){case i.TITLE:case i.TEXTAREA:{this.tokenizer.state=GA.RCDATA;break}case i.STYLE:case i.XMP:case i.IFRAME:case i.NOEMBED:case i.NOFRAMES:case i.NOSCRIPT:{this.tokenizer.state=GA.RAWTEXT;break}case i.SCRIPT:{this.tokenizer.state=GA.SCRIPT_DATA;break}case i.PLAINTEXT:{this.tokenizer.state=GA.PLAINTEXT;break}}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),e.location){const s=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));s&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){const r=this.treeAdapter.createElement(e,U.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,U.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(w.HTML,U.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,i.HTML)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const n=this.treeAdapter.getChildNodes(t),a=r?n.lastIndexOf(r):n.length,s=n[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:o,endCol:c,endOffset:f}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:o,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),a=t.type===eA.END_TAG&&n===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,r;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):{current:t,currentTagId:r}=this.openElements,e.tagID===i.SVG&&this.treeAdapter.getTagName(t)===w.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===U.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===i.MGLYPH||e.tagID===i.MALIGNMARK)&&!this._isIntegrationPoint(r,t,U.HTML)}_processToken(e){switch(e.type){case eA.CHARACTER:{this.onCharacter(e);break}case eA.NULL_CHARACTER:{this.onNullCharacter(e);break}case eA.COMMENT:{this.onComment(e);break}case eA.DOCTYPE:{this.onDoctype(e);break}case eA.START_TAG:{this._processStartTag(e);break}case eA.END_TAG:{this.onEndTag(e);break}case eA.EOF:{this.onEof(e);break}case eA.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,r){const n=this.treeAdapter.getNamespaceURI(t),a=this.treeAdapter.getAttrList(t);return qd(e,n,a,r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(n=>n.type===fe.Marker||this.openElements.contains(n.element)),r=t<0?e-1:t-1;for(let n=r;n>=0;n--){const a=this.activeFormattingElements.entries[n];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=E.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(i.P),this.openElements.popUntilTagNamePopped(i.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case i.TR:{this.insertionMode=E.IN_ROW;return}case i.TBODY:case i.THEAD:case i.TFOOT:{this.insertionMode=E.IN_TABLE_BODY;return}case i.CAPTION:{this.insertionMode=E.IN_CAPTION;return}case i.COLGROUP:{this.insertionMode=E.IN_COLUMN_GROUP;return}case i.TABLE:{this.insertionMode=E.IN_TABLE;return}case i.BODY:{this.insertionMode=E.IN_BODY;return}case i.FRAMESET:{this.insertionMode=E.IN_FRAMESET;return}case i.SELECT:{this._resetInsertionModeForSelect(e);return}case i.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case i.HTML:{this.insertionMode=this.headElement?E.AFTER_HEAD:E.BEFORE_HEAD;return}case i.TD:case i.TH:{if(e>0){this.insertionMode=E.IN_CELL;return}break}case i.HEAD:{if(e>0){this.insertionMode=E.IN_HEAD;return}break}}this.insertionMode=E.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const r=this.openElements.tagIDs[t];if(r===i.TEMPLATE)break;if(r===i.TABLE){this.insertionMode=E.IN_SELECT_IN_TABLE;return}}this.insertionMode=E.IN_SELECT}_isElementCausesFosterParenting(e){return vu.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case i.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===U.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break}case i.TABLE:{const r=this.treeAdapter.getParentNode(t);return r?{parent:r,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const r=this.treeAdapter.getNamespaceURI(e);return Ed[r].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){yg(this,e);return}switch(this.insertionMode){case E.INITIAL:{Wt(this,e);break}case E.BEFORE_HTML:{Jt(this,e);break}case E.BEFORE_HEAD:{qt(this,e);break}case E.IN_HEAD:{Zt(this,e);break}case E.IN_HEAD_NO_SCRIPT:{$t(this,e);break}case E.AFTER_HEAD:{jt(this,e);break}case E.IN_BODY:case E.IN_CAPTION:case E.IN_CELL:case E.IN_TEMPLATE:{Du(this,e);break}case E.TEXT:case E.IN_SELECT:case E.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case E.IN_TABLE:case E.IN_TABLE_BODY:case E.IN_ROW:{Wa(this,e);break}case E.IN_TABLE_TEXT:{Gu(this,e);break}case E.IN_COLUMN_GROUP:{An(this,e);break}case E.AFTER_BODY:{rn(this,e);break}case E.AFTER_AFTER_BODY:{nn(this,e);break}}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_g(this,e);return}switch(this.insertionMode){case E.INITIAL:{Wt(this,e);break}case E.BEFORE_HTML:{Jt(this,e);break}case E.BEFORE_HEAD:{qt(this,e);break}case E.IN_HEAD:{Zt(this,e);break}case E.IN_HEAD_NO_SCRIPT:{$t(this,e);break}case E.AFTER_HEAD:{jt(this,e);break}case E.TEXT:{this._insertCharacters(e);break}case E.IN_TABLE:case E.IN_TABLE_BODY:case E.IN_ROW:{Wa(this,e);break}case E.IN_COLUMN_GROUP:{An(this,e);break}case E.AFTER_BODY:{rn(this,e);break}case E.AFTER_AFTER_BODY:{nn(this,e);break}}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ya(this,e);return}switch(this.insertionMode){case E.INITIAL:case E.BEFORE_HTML:case E.BEFORE_HEAD:case E.IN_HEAD:case E.IN_HEAD_NO_SCRIPT:case E.AFTER_HEAD:case E.IN_BODY:case E.IN_TABLE:case E.IN_CAPTION:case E.IN_COLUMN_GROUP:case E.IN_TABLE_BODY:case E.IN_ROW:case E.IN_CELL:case E.IN_SELECT:case E.IN_SELECT_IN_TABLE:case E.IN_TEMPLATE:case E.IN_FRAMESET:case E.AFTER_FRAMESET:{Ya(this,e);break}case E.IN_TABLE_TEXT:{er(this,e);break}case E.AFTER_BODY:{sB(this,e);break}case E.AFTER_AFTER_BODY:case E.AFTER_AFTER_FRAMESET:{iB(this,e);break}}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case E.INITIAL:{uB(this,e);break}case E.BEFORE_HEAD:case E.IN_HEAD:case E.IN_HEAD_NO_SCRIPT:case E.AFTER_HEAD:{this._err(e,b.misplacedDoctype);break}case E.IN_TABLE_TEXT:{er(this,e);break}}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,b.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?Ng(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case E.INITIAL:{Wt(this,e);break}case E.BEFORE_HTML:{oB(this,e);break}case E.BEFORE_HEAD:{lB(this,e);break}case E.IN_HEAD:{ae(this,e);break}case E.IN_HEAD_NO_SCRIPT:{dB(this,e);break}case E.AFTER_HEAD:{gB(this,e);break}case E.IN_BODY:{xA(this,e);break}case E.IN_TABLE:{gt(this,e);break}case E.IN_TABLE_TEXT:{er(this,e);break}case E.IN_CAPTION:{fg(this,e);break}case E.IN_COLUMN_GROUP:{Ja(this,e);break}case E.IN_TABLE_BODY:{en(this,e);break}case E.IN_ROW:{tn(this,e);break}case E.IN_CELL:{Bg(this,e);break}case E.IN_SELECT:{Wu(this,e);break}case E.IN_SELECT_IN_TABLE:{Eg(this,e);break}case E.IN_TEMPLATE:{Cg(this,e);break}case E.AFTER_BODY:{wg(this,e);break}case E.IN_FRAMESET:{Tg(this,e);break}case E.AFTER_FRAMESET:{Ug(this,e);break}case E.AFTER_AFTER_BODY:{Fg(this,e);break}case E.AFTER_AFTER_FRAMESET:{Ig(this,e);break}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?Sg(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case E.INITIAL:{Wt(this,e);break}case E.BEFORE_HTML:{cB(this,e);break}case E.BEFORE_HEAD:{fB(this,e);break}case E.IN_HEAD:{hB(this,e);break}case E.IN_HEAD_NO_SCRIPT:{BB(this,e);break}case E.AFTER_HEAD:{EB(this,e);break}case E.IN_BODY:{zr(this,e);break}case E.TEXT:{tg(this,e);break}case E.IN_TABLE:{zt(this,e);break}case E.IN_TABLE_TEXT:{er(this,e);break}case E.IN_CAPTION:{hg(this,e);break}case E.IN_COLUMN_GROUP:{dg(this,e);break}case E.IN_TABLE_BODY:{qa(this,e);break}case E.IN_ROW:{Xu(this,e);break}case E.IN_CELL:{gg(this,e);break}case E.IN_SELECT:{Ju(this,e);break}case E.IN_SELECT_IN_TABLE:{pg(this,e);break}case E.IN_TEMPLATE:{mg(this,e);break}case E.AFTER_BODY:{Zu(this,e);break}case E.IN_FRAMESET:{bg(this,e);break}case E.AFTER_FRAMESET:{Qg(this,e);break}case E.AFTER_AFTER_BODY:{nn(this,e);break}}}onEof(e){switch(this.insertionMode){case E.INITIAL:{Wt(this,e);break}case E.BEFORE_HTML:{Jt(this,e);break}case E.BEFORE_HEAD:{qt(this,e);break}case E.IN_HEAD:{Zt(this,e);break}case E.IN_HEAD_NO_SCRIPT:{$t(this,e);break}case E.AFTER_HEAD:{jt(this,e);break}case E.IN_BODY:case E.IN_TABLE:case E.IN_CAPTION:case E.IN_COLUMN_GROUP:case E.IN_TABLE_BODY:case E.IN_ROW:case E.IN_CELL:case E.IN_SELECT:case E.IN_SELECT_IN_TABLE:{Ku(this,e);break}case E.TEXT:{rg(this,e);break}case E.IN_TABLE_TEXT:{er(this,e);break}case E.IN_TEMPLATE:{qu(this,e);break}case E.AFTER_BODY:case E.IN_FRAMESET:case E.AFTER_FRAMESET:case E.AFTER_AFTER_BODY:case E.AFTER_AFTER_FRAMESET:{Xa(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===B.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case E.IN_HEAD:case E.IN_HEAD_NO_SCRIPT:case E.AFTER_HEAD:case E.TEXT:case E.IN_COLUMN_GROUP:case E.IN_SELECT:case E.IN_SELECT_IN_TABLE:case E.IN_FRAMESET:case E.AFTER_FRAMESET:{this._insertCharacters(e);break}case E.IN_BODY:case E.IN_CAPTION:case E.IN_CELL:case E.IN_TEMPLATE:case E.AFTER_BODY:case E.AFTER_AFTER_BODY:case E.AFTER_AFTER_FRAMESET:{xu(this,e);break}case E.IN_TABLE:case E.IN_TABLE_BODY:case E.IN_ROW:{Wa(this,e);break}case E.IN_TABLE_TEXT:{Vu(this,e);break}}}};function AB(A,e){let t=A.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return t?A.openElements.contains(t.element)?A.openElements.hasInScope(e.tagID)||(t=null):(A.activeFormattingElements.removeEntry(t),t=null):Pu(A,e),t}function eB(A,e){let t=null,r=A.openElements.stackTop;for(;r>=0;r--){const n=A.openElements.items[r];if(n===e.element)break;A._isSpecialElement(n,A.openElements.tagIDs[r])&&(t=n)}return t||(A.openElements.shortenToLength(r<0?0:r),A.activeFormattingElements.removeEntry(e)),t}function tB(A,e,t){let r=e,n=A.openElements.getCommonAncestor(e);for(let a=0,s=n;s!==t;a++,s=n){n=A.openElements.getCommonAncestor(s);const u=A.activeFormattingElements.getElementEntry(s),o=u&&a>=jd;!u||o?(o&&A.activeFormattingElements.removeEntry(u),A.openElements.remove(s)):(s=rB(A,u),r===e&&(A.activeFormattingElements.bookmark=u),A.treeAdapter.detachNode(r),A.treeAdapter.appendChild(s,r),r=s)}return r}function rB(A,e){const t=A.treeAdapter.getNamespaceURI(e.element),r=A.treeAdapter.createElement(e.token.tagName,t,e.token.attrs);return A.openElements.replace(e.element,r),e.element=r,r}function nB(A,e,t){const r=A.treeAdapter.getTagName(e),n=qr(r);if(A._isElementCausesFosterParenting(n))A._fosterParentElement(t);else{const a=A.treeAdapter.getNamespaceURI(e);n===i.TEMPLATE&&a===U.HTML&&(e=A.treeAdapter.getTemplateContent(e)),A.treeAdapter.appendChild(e,t)}}function aB(A,e,t){const r=A.treeAdapter.getNamespaceURI(t.element),{token:n}=t,a=A.treeAdapter.createElement(n.tagName,r,n.attrs);A._adoptNodes(e,a),A.treeAdapter.appendChild(e,a),A.activeFormattingElements.insertElementAfterBookmark(a,n),A.activeFormattingElements.removeEntry(t),A.openElements.remove(t.element),A.openElements.insertAfter(e,a,n.tagID)}function Ga(A,e){for(let t=0;t<$d;t++){const r=AB(A,e);if(!r)break;const n=eB(A,r);if(!n)break;A.activeFormattingElements.bookmark=r;const a=tB(A,n,r.element),s=A.openElements.getCommonAncestor(r.element);A.treeAdapter.detachNode(a),s&&nB(A,s,a),aB(A,n,r)}}function Ya(A,e){A._appendCommentNode(e,A.openElements.currentTmplContentOrNode)}function sB(A,e){A._appendCommentNode(e,A.openElements.items[0])}function iB(A,e){A._appendCommentNode(e,A.document)}function Xa(A,e){if(A.stopped=!0,e.location){const t=A.fragmentContext?0:2;for(let r=A.openElements.stackTop;r>=t;r--)A._setEndLocation(A.openElements.items[r],e);if(!A.fragmentContext&&A.openElements.stackTop>=0){const r=A.openElements.items[0],n=A.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(A._setEndLocation(r,e),A.openElements.stackTop>=1)){const a=A.openElements.items[1],s=A.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&A._setEndLocation(a,e)}}}}function uB(A,e){A._setDocumentType(e);const t=e.forceQuirks?qA.QUIRKS:Rd(e);Od(e)||A._err(e,b.nonConformingDoctype),A.treeAdapter.setDocumentMode(A.document,t),A.insertionMode=E.BEFORE_HTML}function Wt(A,e){A._err(e,b.missingDoctype,!0),A.treeAdapter.setDocumentMode(A.document,qA.QUIRKS),A.insertionMode=E.BEFORE_HTML,A._processToken(e)}function oB(A,e){e.tagID===i.HTML?(A._insertElement(e,U.HTML),A.insertionMode=E.BEFORE_HEAD):Jt(A,e)}function cB(A,e){const t=e.tagID;(t===i.HTML||t===i.HEAD||t===i.BODY||t===i.BR)&&Jt(A,e)}function Jt(A,e){A._insertFakeRootElement(),A.insertionMode=E.BEFORE_HEAD,A._processToken(e)}function lB(A,e){switch(e.tagID){case i.HTML:{xA(A,e);break}case i.HEAD:{A._insertElement(e,U.HTML),A.headElement=A.openElements.current,A.insertionMode=E.IN_HEAD;break}default:qt(A,e)}}function fB(A,e){const t=e.tagID;t===i.HEAD||t===i.BODY||t===i.HTML||t===i.BR?qt(A,e):A._err(e,b.endTagWithoutMatchingOpenElement)}function qt(A,e){A._insertFakeElement(w.HEAD,i.HEAD),A.headElement=A.openElements.current,A.insertionMode=E.IN_HEAD,A._processToken(e)}function ae(A,e){switch(e.tagID){case i.HTML:{xA(A,e);break}case i.BASE:case i.BASEFONT:case i.BGSOUND:case i.LINK:case i.META:{A._appendElement(e,U.HTML),e.ackSelfClosing=!0;break}case i.TITLE:{A._switchToTextParsing(e,GA.RCDATA);break}case i.NOSCRIPT:{A.options.scriptingEnabled?A._switchToTextParsing(e,GA.RAWTEXT):(A._insertElement(e,U.HTML),A.insertionMode=E.IN_HEAD_NO_SCRIPT);break}case i.NOFRAMES:case i.STYLE:{A._switchToTextParsing(e,GA.RAWTEXT);break}case i.SCRIPT:{A._switchToTextParsing(e,GA.SCRIPT_DATA);break}case i.TEMPLATE:{A._insertTemplate(e),A.activeFormattingElements.insertMarker(),A.framesetOk=!1,A.insertionMode=E.IN_TEMPLATE,A.tmplInsertionModeStack.unshift(E.IN_TEMPLATE);break}case i.HEAD:{A._err(e,b.misplacedStartTagForHeadElement);break}default:Zt(A,e)}}function hB(A,e){switch(e.tagID){case i.HEAD:{A.openElements.pop(),A.insertionMode=E.AFTER_HEAD;break}case i.BODY:case i.BR:case i.HTML:{Zt(A,e);break}case i.TEMPLATE:{ze(A,e);break}default:A._err(e,b.endTagWithoutMatchingOpenElement)}}function ze(A,e){A.openElements.tmplCount>0?(A.openElements.generateImpliedEndTagsThoroughly(),A.openElements.currentTagId!==i.TEMPLATE&&A._err(e,b.closingOfElementWithOpenChildElements),A.openElements.popUntilTagNamePopped(i.TEMPLATE),A.activeFormattingElements.clearToLastMarker(),A.tmplInsertionModeStack.shift(),A._resetInsertionMode()):A._err(e,b.endTagWithoutMatchingOpenElement)}function Zt(A,e){A.openElements.pop(),A.insertionMode=E.AFTER_HEAD,A._processToken(e)}function dB(A,e){switch(e.tagID){case i.HTML:{xA(A,e);break}case i.BASEFONT:case i.BGSOUND:case i.HEAD:case i.LINK:case i.META:case i.NOFRAMES:case i.STYLE:{ae(A,e);break}case i.NOSCRIPT:{A._err(e,b.nestedNoscriptInHead);break}default:$t(A,e)}}function BB(A,e){switch(e.tagID){case i.NOSCRIPT:{A.openElements.pop(),A.insertionMode=E.IN_HEAD;break}case i.BR:{$t(A,e);break}default:A._err(e,b.endTagWithoutMatchingOpenElement)}}function $t(A,e){const t=e.type===eA.EOF?b.openElementsLeftAfterEof:b.disallowedContentInNoscriptInHead;A._err(e,t),A.openElements.pop(),A.insertionMode=E.IN_HEAD,A._processToken(e)}function gB(A,e){switch(e.tagID){case i.HTML:{xA(A,e);break}case i.BODY:{A._insertElement(e,U.HTML),A.framesetOk=!1,A.insertionMode=E.IN_BODY;break}case i.FRAMESET:{A._insertElement(e,U.HTML),A.insertionMode=E.IN_FRAMESET;break}case i.BASE:case i.BASEFONT:case i.BGSOUND:case i.LINK:case i.META:case i.NOFRAMES:case i.SCRIPT:case i.STYLE:case i.TEMPLATE:case i.TITLE:{A._err(e,b.abandonedHeadElementChild),A.openElements.push(A.headElement,i.HEAD),ae(A,e),A.openElements.remove(A.headElement);break}case i.HEAD:{A._err(e,b.misplacedStartTagForHeadElement);break}default:jt(A,e)}}function EB(A,e){switch(e.tagID){case i.BODY:case i.HTML:case i.BR:{jt(A,e);break}case i.TEMPLATE:{ze(A,e);break}default:A._err(e,b.endTagWithoutMatchingOpenElement)}}function jt(A,e){A._insertFakeElement(w.BODY,i.BODY),A.insertionMode=E.IN_BODY,jr(A,e)}function jr(A,e){switch(e.type){case eA.CHARACTER:{Du(A,e);break}case eA.WHITESPACE_CHARACTER:{xu(A,e);break}case eA.COMMENT:{Ya(A,e);break}case eA.START_TAG:{xA(A,e);break}case eA.END_TAG:{zr(A,e);break}case eA.EOF:{Ku(A,e);break}}}function xu(A,e){A._reconstructActiveFormattingElements(),A._insertCharacters(e)}function Du(A,e){A._reconstructActiveFormattingElements(),A._insertCharacters(e),A.framesetOk=!1}function pB(A,e){A.openElements.tmplCount===0&&A.treeAdapter.adoptAttributes(A.openElements.items[0],e.attrs)}function CB(A,e){const t=A.openElements.tryPeekProperlyNestedBodyElement();t&&A.openElements.tmplCount===0&&(A.framesetOk=!1,A.treeAdapter.adoptAttributes(t,e.attrs))}function mB(A,e){const t=A.openElements.tryPeekProperlyNestedBodyElement();A.framesetOk&&t&&(A.treeAdapter.detachNode(t),A.openElements.popAllUpToHtmlElement(),A._insertElement(e,U.HTML),A.insertionMode=E.IN_FRAMESET)}function wB(A,e){A.openElements.hasInButtonScope(i.P)&&A._closePElement(),A._insertElement(e,U.HTML)}function TB(A,e){A.openElements.hasInButtonScope(i.P)&&A._closePElement(),Pa.has(A.openElements.currentTagId)&&A.openElements.pop(),A._insertElement(e,U.HTML)}function bB(A,e){A.openElements.hasInButtonScope(i.P)&&A._closePElement(),A._insertElement(e,U.HTML),A.skipNextNewLine=!0,A.framesetOk=!1}function UB(A,e){const t=A.openElements.tmplCount>0;(!A.formElement||t)&&(A.openElements.hasInButtonScope(i.P)&&A._closePElement(),A._insertElement(e,U.HTML),t||(A.formElement=A.openElements.current))}function QB(A,e){A.framesetOk=!1;const t=e.tagID;for(let r=A.openElements.stackTop;r>=0;r--){const n=A.openElements.tagIDs[r];if(t===i.LI&&n===i.LI||(t===i.DD||t===i.DT)&&(n===i.DD||n===i.DT)){A.openElements.generateImpliedEndTagsWithExclusion(n),A.openElements.popUntilTagNamePopped(n);break}if(n!==i.ADDRESS&&n!==i.DIV&&n!==i.P&&A._isSpecialElement(A.openElements.items[r],n))break}A.openElements.hasInButtonScope(i.P)&&A._closePElement(),A._insertElement(e,U.HTML)}function FB(A,e){A.openElements.hasInButtonScope(i.P)&&A._closePElement(),A._insertElement(e,U.HTML),A.tokenizer.state=GA.PLAINTEXT}function IB(A,e){A.openElements.hasInScope(i.BUTTON)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(i.BUTTON)),A._reconstructActiveFormattingElements(),A._insertElement(e,U.HTML),A.framesetOk=!1}function _B(A,e){const t=A.activeFormattingElements.getElementEntryInScopeWithTagName(w.A);t&&(Ga(A,e),A.openElements.remove(t.element),A.activeFormattingElements.removeEntry(t)),A._reconstructActiveFormattingElements(),A._insertElement(e,U.HTML),A.activeFormattingElements.pushElement(A.openElements.current,e)}function yB(A,e){A._reconstructActiveFormattingElements(),A._insertElement(e,U.HTML),A.activeFormattingElements.pushElement(A.openElements.current,e)}function NB(A,e){A._reconstructActiveFormattingElements(),A.openElements.hasInScope(i.NOBR)&&(Ga(A,e),A._reconstructActiveFormattingElements()),A._insertElement(e,U.HTML),A.activeFormattingElements.pushElement(A.openElements.current,e)}function SB(A,e){A._reconstructActiveFormattingElements(),A._insertElement(e,U.HTML),A.activeFormattingElements.insertMarker(),A.framesetOk=!1}function vB(A,e){A.treeAdapter.getDocumentMode(A.document)!==qA.QUIRKS&&A.openElements.hasInButtonScope(i.P)&&A._closePElement(),A._insertElement(e,U.HTML),A.framesetOk=!1,A.insertionMode=E.IN_TABLE}function Ou(A,e){A._reconstructActiveFormattingElements(),A._appendElement(e,U.HTML),A.framesetOk=!1,e.ackSelfClosing=!0}function Ru(A){const e=gu(A,je.TYPE);return e!=null&&e.toLowerCase()===Zd}function LB(A,e){A._reconstructActiveFormattingElements(),A._appendElement(e,U.HTML),Ru(e)||(A.framesetOk=!1),e.ackSelfClosing=!0}function HB(A,e){A._appendElement(e,U.HTML),e.ackSelfClosing=!0}function xB(A,e){A.openElements.hasInButtonScope(i.P)&&A._closePElement(),A._appendElement(e,U.HTML),A.framesetOk=!1,e.ackSelfClosing=!0}function DB(A,e){e.tagName=w.IMG,e.tagID=i.IMG,Ou(A,e)}function OB(A,e){A._insertElement(e,U.HTML),A.skipNextNewLine=!0,A.tokenizer.state=GA.RCDATA,A.originalInsertionMode=A.insertionMode,A.framesetOk=!1,A.insertionMode=E.TEXT}function RB(A,e){A.openElements.hasInButtonScope(i.P)&&A._closePElement(),A._reconstructActiveFormattingElements(),A.framesetOk=!1,A._switchToTextParsing(e,GA.RAWTEXT)}function MB(A,e){A.framesetOk=!1,A._switchToTextParsing(e,GA.RAWTEXT)}function Mu(A,e){A._switchToTextParsing(e,GA.RAWTEXT)}function kB(A,e){A._reconstructActiveFormattingElements(),A._insertElement(e,U.HTML),A.framesetOk=!1,A.insertionMode=A.insertionMode===E.IN_TABLE||A.insertionMode===E.IN_CAPTION||A.insertionMode===E.IN_TABLE_BODY||A.insertionMode===E.IN_ROW||A.insertionMode===E.IN_CELL?E.IN_SELECT_IN_TABLE:E.IN_SELECT}function PB(A,e){A.openElements.currentTagId===i.OPTION&&A.openElements.pop(),A._reconstructActiveFormattingElements(),A._insertElement(e,U.HTML)}function KB(A,e){A.openElements.hasInScope(i.RUBY)&&A.openElements.generateImpliedEndTags(),A._insertElement(e,U.HTML)}function VB(A,e){A.openElements.hasInScope(i.RUBY)&&A.openElements.generateImpliedEndTagsWithExclusion(i.RTC),A._insertElement(e,U.HTML)}function GB(A,e){A._reconstructActiveFormattingElements(),Nu(e),Va(e),e.selfClosing?A._appendElement(e,U.MATHML):A._insertElement(e,U.MATHML),e.ackSelfClosing=!0}function YB(A,e){A._reconstructActiveFormattingElements(),Su(e),Va(e),e.selfClosing?A._appendElement(e,U.SVG):A._insertElement(e,U.SVG),e.ackSelfClosing=!0}function ku(A,e){A._reconstructActiveFormattingElements(),A._insertElement(e,U.HTML)}function xA(A,e){switch(e.tagID){case i.I:case i.S:case i.B:case i.U:case i.EM:case i.TT:case i.BIG:case i.CODE:case i.FONT:case i.SMALL:case i.STRIKE:case i.STRONG:{yB(A,e);break}case i.A:{_B(A,e);break}case i.H1:case i.H2:case i.H3:case i.H4:case i.H5:case i.H6:{TB(A,e);break}case i.P:case i.DL:case i.OL:case i.UL:case i.DIV:case i.DIR:case i.NAV:case i.MAIN:case i.MENU:case i.ASIDE:case i.CENTER:case i.FIGURE:case i.FOOTER:case i.HEADER:case i.HGROUP:case i.DIALOG:case i.DETAILS:case i.ADDRESS:case i.ARTICLE:case i.SEARCH:case i.SECTION:case i.SUMMARY:case i.FIELDSET:case i.BLOCKQUOTE:case i.FIGCAPTION:{wB(A,e);break}case i.LI:case i.DD:case i.DT:{QB(A,e);break}case i.BR:case i.IMG:case i.WBR:case i.AREA:case i.EMBED:case i.KEYGEN:{Ou(A,e);break}case i.HR:{xB(A,e);break}case i.RB:case i.RTC:{KB(A,e);break}case i.RT:case i.RP:{VB(A,e);break}case i.PRE:case i.LISTING:{bB(A,e);break}case i.XMP:{RB(A,e);break}case i.SVG:{YB(A,e);break}case i.HTML:{pB(A,e);break}case i.BASE:case i.LINK:case i.META:case i.STYLE:case i.TITLE:case i.SCRIPT:case i.BGSOUND:case i.BASEFONT:case i.TEMPLATE:{ae(A,e);break}case i.BODY:{CB(A,e);break}case i.FORM:{UB(A,e);break}case i.NOBR:{NB(A,e);break}case i.MATH:{GB(A,e);break}case i.TABLE:{vB(A,e);break}case i.INPUT:{LB(A,e);break}case i.PARAM:case i.TRACK:case i.SOURCE:{HB(A,e);break}case i.IMAGE:{DB(A,e);break}case i.BUTTON:{IB(A,e);break}case i.APPLET:case i.OBJECT:case i.MARQUEE:{SB(A,e);break}case i.IFRAME:{MB(A,e);break}case i.SELECT:{kB(A,e);break}case i.OPTION:case i.OPTGROUP:{PB(A,e);break}case i.NOEMBED:case i.NOFRAMES:{Mu(A,e);break}case i.FRAMESET:{mB(A,e);break}case i.TEXTAREA:{OB(A,e);break}case i.NOSCRIPT:{A.options.scriptingEnabled?Mu(A,e):ku(A,e);break}case i.PLAINTEXT:{FB(A,e);break}case i.COL:case i.TH:case i.TD:case i.TR:case i.HEAD:case i.FRAME:case i.TBODY:case i.TFOOT:case i.THEAD:case i.CAPTION:case i.COLGROUP:break;default:ku(A,e)}}function XB(A,e){if(A.openElements.hasInScope(i.BODY)&&(A.insertionMode=E.AFTER_BODY,A.options.sourceCodeLocationInfo)){const t=A.openElements.tryPeekProperlyNestedBodyElement();t&&A._setEndLocation(t,e)}}function WB(A,e){A.openElements.hasInScope(i.BODY)&&(A.insertionMode=E.AFTER_BODY,Zu(A,e))}function JB(A,e){const t=e.tagID;A.openElements.hasInScope(t)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(t))}function qB(A){const e=A.openElements.tmplCount>0,{formElement:t}=A;e||(A.formElement=null),(t||e)&&A.openElements.hasInScope(i.FORM)&&(A.openElements.generateImpliedEndTags(),e?A.openElements.popUntilTagNamePopped(i.FORM):t&&A.openElements.remove(t))}function ZB(A){A.openElements.hasInButtonScope(i.P)||A._insertFakeElement(w.P,i.P),A._closePElement()}function $B(A){A.openElements.hasInListItemScope(i.LI)&&(A.openElements.generateImpliedEndTagsWithExclusion(i.LI),A.openElements.popUntilTagNamePopped(i.LI))}function jB(A,e){const t=e.tagID;A.openElements.hasInScope(t)&&(A.openElements.generateImpliedEndTagsWithExclusion(t),A.openElements.popUntilTagNamePopped(t))}function zB(A){A.openElements.hasNumberedHeaderInScope()&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilNumberedHeaderPopped())}function Ag(A,e){const t=e.tagID;A.openElements.hasInScope(t)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(t),A.activeFormattingElements.clearToLastMarker())}function eg(A){A._reconstructActiveFormattingElements(),A._insertFakeElement(w.BR,i.BR),A.openElements.pop(),A.framesetOk=!1}function Pu(A,e){const t=e.tagName,r=e.tagID;for(let n=A.openElements.stackTop;n>0;n--){const a=A.openElements.items[n],s=A.openElements.tagIDs[n];if(r===s&&(r!==i.UNKNOWN||A.treeAdapter.getTagName(a)===t)){A.openElements.generateImpliedEndTagsWithExclusion(r),A.openElements.stackTop>=n&&A.openElements.shortenToLength(n);break}if(A._isSpecialElement(a,s))break}}function zr(A,e){switch(e.tagID){case i.A:case i.B:case i.I:case i.S:case i.U:case i.EM:case i.TT:case i.BIG:case i.CODE:case i.FONT:case i.NOBR:case i.SMALL:case i.STRIKE:case i.STRONG:{Ga(A,e);break}case i.P:{ZB(A);break}case i.DL:case i.UL:case i.OL:case i.DIR:case i.DIV:case i.NAV:case i.PRE:case i.MAIN:case i.MENU:case i.ASIDE:case i.BUTTON:case i.CENTER:case i.FIGURE:case i.FOOTER:case i.HEADER:case i.HGROUP:case i.DIALOG:case i.ADDRESS:case i.ARTICLE:case i.DETAILS:case i.SEARCH:case i.SECTION:case i.SUMMARY:case i.LISTING:case i.FIELDSET:case i.BLOCKQUOTE:case i.FIGCAPTION:{JB(A,e);break}case i.LI:{$B(A);break}case i.DD:case i.DT:{jB(A,e);break}case i.H1:case i.H2:case i.H3:case i.H4:case i.H5:case i.H6:{zB(A);break}case i.BR:{eg(A);break}case i.BODY:{XB(A,e);break}case i.HTML:{WB(A,e);break}case i.FORM:{qB(A);break}case i.APPLET:case i.OBJECT:case i.MARQUEE:{Ag(A,e);break}case i.TEMPLATE:{ze(A,e);break}default:Pu(A,e)}}function Ku(A,e){A.tmplInsertionModeStack.length>0?qu(A,e):Xa(A,e)}function tg(A,e){var t;e.tagID===i.SCRIPT&&((t=A.scriptHandler)===null||t===void 0||t.call(A,A.openElements.current)),A.openElements.pop(),A.insertionMode=A.originalInsertionMode}function rg(A,e){A._err(e,b.eofInElementThatCanContainOnlyText),A.openElements.pop(),A.insertionMode=A.originalInsertionMode,A.onEof(e)}function Wa(A,e){if(vu.has(A.openElements.currentTagId))switch(A.pendingCharacterTokens.length=0,A.hasNonWhitespacePendingCharacterToken=!1,A.originalInsertionMode=A.insertionMode,A.insertionMode=E.IN_TABLE_TEXT,e.type){case eA.CHARACTER:{Gu(A,e);break}case eA.WHITESPACE_CHARACTER:{Vu(A,e);break}}else Ar(A,e)}function ng(A,e){A.openElements.clearBackToTableContext(),A.activeFormattingElements.insertMarker(),A._insertElement(e,U.HTML),A.insertionMode=E.IN_CAPTION}function ag(A,e){A.openElements.clearBackToTableContext(),A._insertElement(e,U.HTML),A.insertionMode=E.IN_COLUMN_GROUP}function sg(A,e){A.openElements.clearBackToTableContext(),A._insertFakeElement(w.COLGROUP,i.COLGROUP),A.insertionMode=E.IN_COLUMN_GROUP,Ja(A,e)}function ig(A,e){A.openElements.clearBackToTableContext(),A._insertElement(e,U.HTML),A.insertionMode=E.IN_TABLE_BODY}function ug(A,e){A.openElements.clearBackToTableContext(),A._insertFakeElement(w.TBODY,i.TBODY),A.insertionMode=E.IN_TABLE_BODY,en(A,e)}function og(A,e){A.openElements.hasInTableScope(i.TABLE)&&(A.openElements.popUntilTagNamePopped(i.TABLE),A._resetInsertionMode(),A._processStartTag(e))}function cg(A,e){Ru(e)?A._appendElement(e,U.HTML):Ar(A,e),e.ackSelfClosing=!0}function lg(A,e){!A.formElement&&A.openElements.tmplCount===0&&(A._insertElement(e,U.HTML),A.formElement=A.openElements.current,A.openElements.pop())}function gt(A,e){switch(e.tagID){case i.TD:case i.TH:case i.TR:{ug(A,e);break}case i.STYLE:case i.SCRIPT:case i.TEMPLATE:{ae(A,e);break}case i.COL:{sg(A,e);break}case i.FORM:{lg(A,e);break}case i.TABLE:{og(A,e);break}case i.TBODY:case i.TFOOT:case i.THEAD:{ig(A,e);break}case i.INPUT:{cg(A,e);break}case i.CAPTION:{ng(A,e);break}case i.COLGROUP:{ag(A,e);break}default:Ar(A,e)}}function zt(A,e){switch(e.tagID){case i.TABLE:{A.openElements.hasInTableScope(i.TABLE)&&(A.openElements.popUntilTagNamePopped(i.TABLE),A._resetInsertionMode());break}case i.TEMPLATE:{ze(A,e);break}case i.BODY:case i.CAPTION:case i.COL:case i.COLGROUP:case i.HTML:case i.TBODY:case i.TD:case i.TFOOT:case i.TH:case i.THEAD:case i.TR:break;default:Ar(A,e)}}function Ar(A,e){const t=A.fosterParentingEnabled;A.fosterParentingEnabled=!0,jr(A,e),A.fosterParentingEnabled=t}function Vu(A,e){A.pendingCharacterTokens.push(e)}function Gu(A,e){A.pendingCharacterTokens.push(e),A.hasNonWhitespacePendingCharacterToken=!0}function er(A,e){let t=0;if(A.hasNonWhitespacePendingCharacterToken)for(;t<A.pendingCharacterTokens.length;t++)Ar(A,A.pendingCharacterTokens[t]);else for(;t<A.pendingCharacterTokens.length;t++)A._insertCharacters(A.pendingCharacterTokens[t]);A.insertionMode=A.originalInsertionMode,A._processToken(e)}const Yu=new Set([i.CAPTION,i.COL,i.COLGROUP,i.TBODY,i.TD,i.TFOOT,i.TH,i.THEAD,i.TR]);function fg(A,e){const t=e.tagID;Yu.has(t)?A.openElements.hasInTableScope(i.CAPTION)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(i.CAPTION),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=E.IN_TABLE,gt(A,e)):xA(A,e)}function hg(A,e){const t=e.tagID;switch(t){case i.CAPTION:case i.TABLE:{A.openElements.hasInTableScope(i.CAPTION)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(i.CAPTION),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=E.IN_TABLE,t===i.TABLE&&zt(A,e));break}case i.BODY:case i.COL:case i.COLGROUP:case i.HTML:case i.TBODY:case i.TD:case i.TFOOT:case i.TH:case i.THEAD:case i.TR:break;default:zr(A,e)}}function Ja(A,e){switch(e.tagID){case i.HTML:{xA(A,e);break}case i.COL:{A._appendElement(e,U.HTML),e.ackSelfClosing=!0;break}case i.TEMPLATE:{ae(A,e);break}default:An(A,e)}}function dg(A,e){switch(e.tagID){case i.COLGROUP:{A.openElements.currentTagId===i.COLGROUP&&(A.openElements.pop(),A.insertionMode=E.IN_TABLE);break}case i.TEMPLATE:{ze(A,e);break}case i.COL:break;default:An(A,e)}}function An(A,e){A.openElements.currentTagId===i.COLGROUP&&(A.openElements.pop(),A.insertionMode=E.IN_TABLE,A._processToken(e))}function en(A,e){switch(e.tagID){case i.TR:{A.openElements.clearBackToTableBodyContext(),A._insertElement(e,U.HTML),A.insertionMode=E.IN_ROW;break}case i.TH:case i.TD:{A.openElements.clearBackToTableBodyContext(),A._insertFakeElement(w.TR,i.TR),A.insertionMode=E.IN_ROW,tn(A,e);break}case i.CAPTION:case i.COL:case i.COLGROUP:case i.TBODY:case i.TFOOT:case i.THEAD:{A.openElements.hasTableBodyContextInTableScope()&&(A.openElements.clearBackToTableBodyContext(),A.openElements.pop(),A.insertionMode=E.IN_TABLE,gt(A,e));break}default:gt(A,e)}}function qa(A,e){const t=e.tagID;switch(e.tagID){case i.TBODY:case i.TFOOT:case i.THEAD:{A.openElements.hasInTableScope(t)&&(A.openElements.clearBackToTableBodyContext(),A.openElements.pop(),A.insertionMode=E.IN_TABLE);break}case i.TABLE:{A.openElements.hasTableBodyContextInTableScope()&&(A.openElements.clearBackToTableBodyContext(),A.openElements.pop(),A.insertionMode=E.IN_TABLE,zt(A,e));break}case i.BODY:case i.CAPTION:case i.COL:case i.COLGROUP:case i.HTML:case i.TD:case i.TH:case i.TR:break;default:zt(A,e)}}function tn(A,e){switch(e.tagID){case i.TH:case i.TD:{A.openElements.clearBackToTableRowContext(),A._insertElement(e,U.HTML),A.insertionMode=E.IN_CELL,A.activeFormattingElements.insertMarker();break}case i.CAPTION:case i.COL:case i.COLGROUP:case i.TBODY:case i.TFOOT:case i.THEAD:case i.TR:{A.openElements.hasInTableScope(i.TR)&&(A.openElements.clearBackToTableRowContext(),A.openElements.pop(),A.insertionMode=E.IN_TABLE_BODY,en(A,e));break}default:gt(A,e)}}function Xu(A,e){switch(e.tagID){case i.TR:{A.openElements.hasInTableScope(i.TR)&&(A.openElements.clearBackToTableRowContext(),A.openElements.pop(),A.insertionMode=E.IN_TABLE_BODY);break}case i.TABLE:{A.openElements.hasInTableScope(i.TR)&&(A.openElements.clearBackToTableRowContext(),A.openElements.pop(),A.insertionMode=E.IN_TABLE_BODY,qa(A,e));break}case i.TBODY:case i.TFOOT:case i.THEAD:{(A.openElements.hasInTableScope(e.tagID)||A.openElements.hasInTableScope(i.TR))&&(A.openElements.clearBackToTableRowContext(),A.openElements.pop(),A.insertionMode=E.IN_TABLE_BODY,qa(A,e));break}case i.BODY:case i.CAPTION:case i.COL:case i.COLGROUP:case i.HTML:case i.TD:case i.TH:break;default:zt(A,e)}}function Bg(A,e){const t=e.tagID;Yu.has(t)?(A.openElements.hasInTableScope(i.TD)||A.openElements.hasInTableScope(i.TH))&&(A._closeTableCell(),tn(A,e)):xA(A,e)}function gg(A,e){const t=e.tagID;switch(t){case i.TD:case i.TH:{A.openElements.hasInTableScope(t)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(t),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=E.IN_ROW);break}case i.TABLE:case i.TBODY:case i.TFOOT:case i.THEAD:case i.TR:{A.openElements.hasInTableScope(t)&&(A._closeTableCell(),Xu(A,e));break}case i.BODY:case i.CAPTION:case i.COL:case i.COLGROUP:case i.HTML:break;default:zr(A,e)}}function Wu(A,e){switch(e.tagID){case i.HTML:{xA(A,e);break}case i.OPTION:{A.openElements.currentTagId===i.OPTION&&A.openElements.pop(),A._insertElement(e,U.HTML);break}case i.OPTGROUP:{A.openElements.currentTagId===i.OPTION&&A.openElements.pop(),A.openElements.currentTagId===i.OPTGROUP&&A.openElements.pop(),A._insertElement(e,U.HTML);break}case i.HR:{A.openElements.currentTagId===i.OPTION&&A.openElements.pop(),A.openElements.currentTagId===i.OPTGROUP&&A.openElements.pop(),A._appendElement(e,U.HTML),e.ackSelfClosing=!0;break}case i.INPUT:case i.KEYGEN:case i.TEXTAREA:case i.SELECT:{A.openElements.hasInSelectScope(i.SELECT)&&(A.openElements.popUntilTagNamePopped(i.SELECT),A._resetInsertionMode(),e.tagID!==i.SELECT&&A._processStartTag(e));break}case i.SCRIPT:case i.TEMPLATE:{ae(A,e);break}}}function Ju(A,e){switch(e.tagID){case i.OPTGROUP:{A.openElements.stackTop>0&&A.openElements.currentTagId===i.OPTION&&A.openElements.tagIDs[A.openElements.stackTop-1]===i.OPTGROUP&&A.openElements.pop(),A.openElements.currentTagId===i.OPTGROUP&&A.openElements.pop();break}case i.OPTION:{A.openElements.currentTagId===i.OPTION&&A.openElements.pop();break}case i.SELECT:{A.openElements.hasInSelectScope(i.SELECT)&&(A.openElements.popUntilTagNamePopped(i.SELECT),A._resetInsertionMode());break}case i.TEMPLATE:{ze(A,e);break}}}function Eg(A,e){const t=e.tagID;t===i.CAPTION||t===i.TABLE||t===i.TBODY||t===i.TFOOT||t===i.THEAD||t===i.TR||t===i.TD||t===i.TH?(A.openElements.popUntilTagNamePopped(i.SELECT),A._resetInsertionMode(),A._processStartTag(e)):Wu(A,e)}function pg(A,e){const t=e.tagID;t===i.CAPTION||t===i.TABLE||t===i.TBODY||t===i.TFOOT||t===i.THEAD||t===i.TR||t===i.TD||t===i.TH?A.openElements.hasInTableScope(t)&&(A.openElements.popUntilTagNamePopped(i.SELECT),A._resetInsertionMode(),A.onEndTag(e)):Ju(A,e)}function Cg(A,e){switch(e.tagID){case i.BASE:case i.BASEFONT:case i.BGSOUND:case i.LINK:case i.META:case i.NOFRAMES:case i.SCRIPT:case i.STYLE:case i.TEMPLATE:case i.TITLE:{ae(A,e);break}case i.CAPTION:case i.COLGROUP:case i.TBODY:case i.TFOOT:case i.THEAD:{A.tmplInsertionModeStack[0]=E.IN_TABLE,A.insertionMode=E.IN_TABLE,gt(A,e);break}case i.COL:{A.tmplInsertionModeStack[0]=E.IN_COLUMN_GROUP,A.insertionMode=E.IN_COLUMN_GROUP,Ja(A,e);break}case i.TR:{A.tmplInsertionModeStack[0]=E.IN_TABLE_BODY,A.insertionMode=E.IN_TABLE_BODY,en(A,e);break}case i.TD:case i.TH:{A.tmplInsertionModeStack[0]=E.IN_ROW,A.insertionMode=E.IN_ROW,tn(A,e);break}default:A.tmplInsertionModeStack[0]=E.IN_BODY,A.insertionMode=E.IN_BODY,xA(A,e)}}function mg(A,e){e.tagID===i.TEMPLATE&&ze(A,e)}function qu(A,e){A.openElements.tmplCount>0?(A.openElements.popUntilTagNamePopped(i.TEMPLATE),A.activeFormattingElements.clearToLastMarker(),A.tmplInsertionModeStack.shift(),A._resetInsertionMode(),A.onEof(e)):Xa(A,e)}function wg(A,e){e.tagID===i.HTML?xA(A,e):rn(A,e)}function Zu(A,e){var t;if(e.tagID===i.HTML){if(A.fragmentContext||(A.insertionMode=E.AFTER_AFTER_BODY),A.options.sourceCodeLocationInfo&&A.openElements.tagIDs[0]===i.HTML){A._setEndLocation(A.openElements.items[0],e);const r=A.openElements.items[1];r&&!(!((t=A.treeAdapter.getNodeSourceCodeLocation(r))===null||t===void 0)&&t.endTag)&&A._setEndLocation(r,e)}}else rn(A,e)}function rn(A,e){A.insertionMode=E.IN_BODY,jr(A,e)}function Tg(A,e){switch(e.tagID){case i.HTML:{xA(A,e);break}case i.FRAMESET:{A._insertElement(e,U.HTML);break}case i.FRAME:{A._appendElement(e,U.HTML),e.ackSelfClosing=!0;break}case i.NOFRAMES:{ae(A,e);break}}}function bg(A,e){e.tagID===i.FRAMESET&&!A.openElements.isRootHtmlElementCurrent()&&(A.openElements.pop(),!A.fragmentContext&&A.openElements.currentTagId!==i.FRAMESET&&(A.insertionMode=E.AFTER_FRAMESET))}function Ug(A,e){switch(e.tagID){case i.HTML:{xA(A,e);break}case i.NOFRAMES:{ae(A,e);break}}}function Qg(A,e){e.tagID===i.HTML&&(A.insertionMode=E.AFTER_AFTER_FRAMESET)}function Fg(A,e){e.tagID===i.HTML?xA(A,e):nn(A,e)}function nn(A,e){A.insertionMode=E.IN_BODY,jr(A,e)}function Ig(A,e){switch(e.tagID){case i.HTML:{xA(A,e);break}case i.NOFRAMES:{ae(A,e);break}}}function _g(A,e){e.chars=fA,A._insertCharacters(e)}function yg(A,e){A._insertCharacters(e),A.framesetOk=!1}function $u(A){for(;A.treeAdapter.getNamespaceURI(A.openElements.current)!==U.HTML&&!A._isIntegrationPoint(A.openElements.currentTagId,A.openElements.current);)A.openElements.pop()}function Ng(A,e){if(Yd(e))$u(A),A._startTagOutsideForeignContent(e);else{const t=A._getAdjustedCurrentElement(),r=A.treeAdapter.getNamespaceURI(t);r===U.MATHML?Nu(e):r===U.SVG&&(Xd(e),Su(e)),Va(e),e.selfClosing?A._appendElement(e,r):A._insertElement(e,r),e.ackSelfClosing=!0}}function Sg(A,e){if(e.tagID===i.P||e.tagID===i.BR){$u(A),A._endTagOutsideForeignContent(e);return}for(let t=A.openElements.stackTop;t>0;t--){const r=A.openElements.items[t];if(A.treeAdapter.getNamespaceURI(r)===U.HTML){A._endTagOutsideForeignContent(e);break}const n=A.treeAdapter.getTagName(r);if(n.toLowerCase()===e.tagName){e.tagName=n,A.openElements.shortenToLength(t);break}}}const vg=new Set([w.AREA,w.BASE,w.BASEFONT,w.BGSOUND,w.BR,w.COL,w.EMBED,w.FRAME,w.HR,w.IMG,w.INPUT,w.KEYGEN,w.LINK,w.META,w.PARAM,w.SOURCE,w.TRACK,w.WBR]);function Lg(A,e){return e.treeAdapter.isElementNode(A)&&e.treeAdapter.getNamespaceURI(A)===U.HTML&&vg.has(e.treeAdapter.getTagName(A))}const Hg={treeAdapter:we,scriptingEnabled:!0};function xg(A,e){const t={...Hg,...e};return ju(A,t)}function Dg(A,e){let t="";const r=e.treeAdapter.isElementNode(A)&&e.treeAdapter.getTagName(A)===w.TEMPLATE&&e.treeAdapter.getNamespaceURI(A)===U.HTML?e.treeAdapter.getTemplateContent(A):A,n=e.treeAdapter.getChildNodes(r);if(n)for(const a of n)t+=ju(a,e);return t}function ju(A,e){return e.treeAdapter.isElementNode(A)?Og(A,e):e.treeAdapter.isTextNode(A)?Mg(A,e):e.treeAdapter.isCommentNode(A)?kg(A,e):e.treeAdapter.isDocumentTypeNode(A)?Pg(A,e):""}function Og(A,e){const t=e.treeAdapter.getTagName(A);return`<${t}${Rg(A,e)}>${Lg(A,e)?"":`${Dg(A,e)}</${t}>`}`}function Rg(A,{treeAdapter:e}){let t="";for(const r of e.getAttrList(A)){if(t+=" ",r.namespace)switch(r.namespace){case U.XML:{t+=`xml:${r.name}`;break}case U.XMLNS:{r.name!=="xmlns"&&(t+="xmlns:"),t+=r.name;break}case U.XLINK:{t+=`xlink:${r.name}`;break}default:t+=`${r.prefix}:${r.name}`}else t+=r.name;t+=`="${Ci(r.value)}"`}return t}function Mg(A,e){const{treeAdapter:t}=e,r=t.getTextNodeContent(A),n=t.getParentNode(A),a=n&&t.isElementNode(n)&&t.getTagName(n);return a&&t.getNamespaceURI(n)===U.HTML&&Cd(a,e.scriptingEnabled)?r:mi(r)}function kg(A,{treeAdapter:e}){return`<!--${e.getCommentNodeContent(A)}-->`}function Pg(A,{treeAdapter:e}){return`<!DOCTYPE ${e.getDocumentTypeNodeName(A)}>`}function Kg(A,e){return Hu.parse(A,e)}function Vg(A,e,t){typeof A=="string"&&(t=e,e=A,A=null);const r=Hu.getFragmentParser(A,t);return r.tokenizer.write(e,!0),r.getFragment()}function zu(A){const e=A.includes('"')?"'":'"';return e+A+e}function Gg(A,e,t){let r="!DOCTYPE ";return A&&(r+=A),e?r+=` PUBLIC ${zu(e)}`:t&&(r+=" SYSTEM"),t&&(r+=` ${zu(t)}`),r}const Le={isCommentNode:vr,isElementNode:X,isTextNode:le,createDocument(){const A=new We([]);return A["x-mode"]=qA.NO_QUIRKS,A},createDocumentFragment(){return new We([])},createElement(A,e,t){const r=Object.create(null),n=Object.create(null),a=Object.create(null);for(let u=0;u<t.length;u++){const o=t[u].name;r[o]=t[u].value,n[o]=t[u].namespace,a[o]=t[u].prefix}const s=new ua(A,r,[]);return s.namespace=e,s["x-attribsNamespace"]=n,s["x-attribsPrefix"]=a,s},createCommentNode(A){return new aa(A)},createTextNode(A){return new Dt(A)},appendChild(A,e){const t=A.children[A.children.length-1];t&&(t.next=e,e.prev=t),A.children.push(e),e.parent=A},insertBefore(A,e,t){const r=A.children.indexOf(t),{prev:n}=t;n&&(n.next=e,e.prev=n),t.prev=e,e.next=t,A.children.splice(r,0,e),e.parent=A},setTemplateContent(A,e){Le.appendChild(A,e)},getTemplateContent(A){return A.children[0]},setDocumentType(A,e,t,r){const n=Gg(e,t,r);let a=A.children.find(s=>oa(s)&&s.name==="!doctype");a?a.data=n??null:(a=new sa("!doctype",n),Le.appendChild(A,a)),a["x-name"]=e,a["x-publicId"]=t,a["x-systemId"]=r},setDocumentMode(A,e){A["x-mode"]=e},getDocumentMode(A){return A["x-mode"]},detachNode(A){if(A.parent){const e=A.parent.children.indexOf(A),{prev:t,next:r}=A;A.prev=null,A.next=null,t&&(t.next=r),r&&(r.prev=t),A.parent.children.splice(e,1),A.parent=null}},insertText(A,e){const t=A.children[A.children.length-1];t&&le(t)?t.data+=e:Le.appendChild(A,Le.createTextNode(e))},insertTextBefore(A,e,t){const r=A.children[A.children.indexOf(t)-1];r&&le(r)?r.data+=e:Le.insertBefore(A,Le.createTextNode(e),t)},adoptAttributes(A,e){for(let t=0;t<e.length;t++){const r=e[t].name;A.attribs[r]===void 0&&(A.attribs[r]=e[t].value,A["x-attribsNamespace"][r]=e[t].namespace,A["x-attribsPrefix"][r]=e[t].prefix)}},getFirstChild(A){return A.children[0]},getChildNodes(A){return A.children},getParentNode(A){return A.parent},getAttrList(A){return A.attributes},getTagName(A){return A.name},getNamespaceURI(A){return A.namespace},getTextNodeContent(A){return A.data},getCommentNodeContent(A){return A.data},getDocumentTypeNodeName(A){var e;return(e=A["x-name"])!==null&&e!==void 0?e:""},getDocumentTypeNodePublicId(A){var e;return(e=A["x-publicId"])!==null&&e!==void 0?e:""},getDocumentTypeNodeSystemId(A){var e;return(e=A["x-systemId"])!==null&&e!==void 0?e:""},isDocumentTypeNode(A){return oa(A)&&A.name==="!doctype"},setNodeSourceCodeLocation(A,e){e&&(A.startIndex=e.startOffset,A.endIndex=e.endOffset),A.sourceCodeLocation=e},getNodeSourceCodeLocation(A){return A.sourceCodeLocation},updateNodeSourceCodeLocation(A,e){e.endOffset!=null&&(A.endIndex=e.endOffset),A.sourceCodeLocation={...A.sourceCodeLocation,...e}}};function Yg(A,e,t,r){var n;return(n=e.treeAdapter)!==null&&n!==void 0||(e.treeAdapter=Le),e.scriptingEnabled!==!1&&(e.scriptingEnabled=!0),t?Kg(A,e):Vg(r,A,e)}const Xg={treeAdapter:Le};function Wg(A){const e="length"in A?A:[A];for(let r=0;r<e.length;r+=1){const n=e[r];_e(n)&&Array.prototype.splice.call(e,r,1,...n.children)}let t="";for(let r=0;r<e.length;r+=1){const n=e[r];t+=xg(n,Xg)}return t}var G;(function(A){A[A.Tab=9]="Tab",A[A.NewLine=10]="NewLine",A[A.FormFeed=12]="FormFeed",A[A.CarriageReturn=13]="CarriageReturn",A[A.Space=32]="Space",A[A.ExclamationMark=33]="ExclamationMark",A[A.Number=35]="Number",A[A.Amp=38]="Amp",A[A.SingleQuote=39]="SingleQuote",A[A.DoubleQuote=34]="DoubleQuote",A[A.Dash=45]="Dash",A[A.Slash=47]="Slash",A[A.Zero=48]="Zero",A[A.Nine=57]="Nine",A[A.Semi=59]="Semi",A[A.Lt=60]="Lt",A[A.Eq=61]="Eq",A[A.Gt=62]="Gt",A[A.Questionmark=63]="Questionmark",A[A.UpperA=65]="UpperA",A[A.LowerA=97]="LowerA",A[A.UpperF=70]="UpperF",A[A.LowerF=102]="LowerF",A[A.UpperZ=90]="UpperZ",A[A.LowerZ=122]="LowerZ",A[A.LowerX=120]="LowerX",A[A.OpeningSquareBracket=91]="OpeningSquareBracket"})(G||(G={}));var _;(function(A){A[A.Text=1]="Text",A[A.BeforeTagName=2]="BeforeTagName",A[A.InTagName=3]="InTagName",A[A.InSelfClosingTag=4]="InSelfClosingTag",A[A.BeforeClosingTagName=5]="BeforeClosingTagName",A[A.InClosingTagName=6]="InClosingTagName",A[A.AfterClosingTagName=7]="AfterClosingTagName",A[A.BeforeAttributeName=8]="BeforeAttributeName",A[A.InAttributeName=9]="InAttributeName",A[A.AfterAttributeName=10]="AfterAttributeName",A[A.BeforeAttributeValue=11]="BeforeAttributeValue",A[A.InAttributeValueDq=12]="InAttributeValueDq",A[A.InAttributeValueSq=13]="InAttributeValueSq",A[A.InAttributeValueNq=14]="InAttributeValueNq",A[A.BeforeDeclaration=15]="BeforeDeclaration",A[A.InDeclaration=16]="InDeclaration",A[A.InProcessingInstruction=17]="InProcessingInstruction",A[A.BeforeComment=18]="BeforeComment",A[A.CDATASequence=19]="CDATASequence",A[A.InSpecialComment=20]="InSpecialComment",A[A.InCommentLike=21]="InCommentLike",A[A.BeforeSpecialS=22]="BeforeSpecialS",A[A.BeforeSpecialT=23]="BeforeSpecialT",A[A.SpecialStartSequence=24]="SpecialStartSequence",A[A.InSpecialTag=25]="InSpecialTag",A[A.InEntity=26]="InEntity"})(_||(_={}));function Te(A){return A===G.Space||A===G.NewLine||A===G.Tab||A===G.FormFeed||A===G.CarriageReturn}function an(A){return A===G.Slash||A===G.Gt||Te(A)}function Jg(A){return A>=G.LowerA&&A<=G.LowerZ||A>=G.UpperA&&A<=G.UpperZ}var he;(function(A){A[A.NoValue=0]="NoValue",A[A.Unquoted=1]="Unquoted",A[A.Single=2]="Single",A[A.Double=3]="Double"})(he||(he={}));const SA={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};let qg=class{constructor({xmlMode:e=!1,decodeEntities:t=!0},r){this.cbs=r,this.state=_.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=_.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=e,this.decodeEntities=t,this.entityDecoder=new Ba(e?di:la,(n,a)=>this.emitCodePoint(n,a))}reset(){this.state=_.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=_.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===G.Lt||!this.decodeEntities&&this.fastForwardTo(G.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=_.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===G.Amp&&this.startEntity()}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(!(t?an(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=_.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===G.Gt||Te(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const r=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=r}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===SA.TitleEnd?this.decodeEntities&&e===G.Amp&&this.startEntity():this.fastForwardTo(G.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===G.Lt)}stateCDATASequence(e){e===SA.Cdata[this.sequenceIndex]?++this.sequenceIndex===SA.Cdata.length&&(this.state=_.InCommentLike,this.currentSequence=SA.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=_.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===SA.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=_.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!an(e):Jg(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=_.SpecialStartSequence}stateBeforeTagName(e){if(e===G.ExclamationMark)this.state=_.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===G.Questionmark)this.state=_.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){const t=e|32;this.sectionStart=this.index,this.xmlMode?this.state=_.InTagName:t===SA.ScriptEnd[2]?this.state=_.BeforeSpecialS:t===SA.TitleEnd[2]?this.state=_.BeforeSpecialT:this.state=_.InTagName}else e===G.Slash?this.state=_.BeforeClosingTagName:(this.state=_.Text,this.stateText(e))}stateInTagName(e){an(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=_.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){Te(e)||(e===G.Gt?this.state=_.Text:(this.state=this.isTagStartChar(e)?_.InClosingTagName:_.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===G.Gt||Te(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=_.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===G.Gt||this.fastForwardTo(G.Gt))&&(this.state=_.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===G.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=_.InSpecialTag,this.sequenceIndex=0):this.state=_.Text,this.sectionStart=this.index+1):e===G.Slash?this.state=_.InSelfClosingTag:Te(e)||(this.state=_.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===G.Gt?(this.cbs.onselfclosingtag(this.index),this.state=_.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Te(e)||(this.state=_.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===G.Eq||an(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=_.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===G.Eq?this.state=_.BeforeAttributeValue:e===G.Slash||e===G.Gt?(this.cbs.onattribend(he.NoValue,this.sectionStart),this.sectionStart=-1,this.state=_.BeforeAttributeName,this.stateBeforeAttributeName(e)):Te(e)||(this.cbs.onattribend(he.NoValue,this.sectionStart),this.state=_.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===G.DoubleQuote?(this.state=_.InAttributeValueDq,this.sectionStart=this.index+1):e===G.SingleQuote?(this.state=_.InAttributeValueSq,this.sectionStart=this.index+1):Te(e)||(this.sectionStart=this.index,this.state=_.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===G.DoubleQuote?he.Double:he.Single,this.index+1),this.state=_.BeforeAttributeName):this.decodeEntities&&e===G.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,G.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,G.SingleQuote)}stateInAttributeValueNoQuotes(e){Te(e)||e===G.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(he.Unquoted,this.index),this.state=_.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===G.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===G.OpeningSquareBracket?(this.state=_.CDATASequence,this.sequenceIndex=0):this.state=e===G.Dash?_.BeforeComment:_.InDeclaration}stateInDeclaration(e){(e===G.Gt||this.fastForwardTo(G.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=_.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===G.Gt||this.fastForwardTo(G.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=_.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===G.Dash?(this.state=_.InCommentLike,this.currentSequence=SA.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=_.InDeclaration}stateInSpecialComment(e){(e===G.Gt||this.fastForwardTo(G.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=_.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=e|32;t===SA.ScriptEnd[3]?this.startSpecial(SA.ScriptEnd,4):t===SA.StyleEnd[3]?this.startSpecial(SA.StyleEnd,4):(this.state=_.InTagName,this.stateInTagName(e))}stateBeforeSpecialT(e){const t=e|32;t===SA.TitleEnd[3]?this.startSpecial(SA.TitleEnd,4):t===SA.TextareaEnd[3]?this.startSpecial(SA.TextareaEnd,4):(this.state=_.InTagName,this.stateInTagName(e))}startEntity(){this.baseState=this.state,this.state=_.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?jA.Strict:this.baseState===_.Text||this.baseState===_.InSpecialTag?jA.Legacy:jA.Attribute)}stateInEntity(){const e=this.entityDecoder.write(this.buffer,this.index-this.offset);e>=0?(this.state=this.baseState,e===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===_.Text||this.state===_.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===_.InAttributeValueDq||this.state===_.InAttributeValueSq||this.state===_.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case _.Text:{this.stateText(e);break}case _.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case _.InSpecialTag:{this.stateInSpecialTag(e);break}case _.CDATASequence:{this.stateCDATASequence(e);break}case _.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case _.InAttributeName:{this.stateInAttributeName(e);break}case _.InCommentLike:{this.stateInCommentLike(e);break}case _.InSpecialComment:{this.stateInSpecialComment(e);break}case _.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case _.InTagName:{this.stateInTagName(e);break}case _.InClosingTagName:{this.stateInClosingTagName(e);break}case _.BeforeTagName:{this.stateBeforeTagName(e);break}case _.AfterAttributeName:{this.stateAfterAttributeName(e);break}case _.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case _.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case _.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case _.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case _.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case _.BeforeSpecialT:{this.stateBeforeSpecialT(e);break}case _.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case _.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case _.InDeclaration:{this.stateInDeclaration(e);break}case _.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case _.BeforeComment:{this.stateBeforeComment(e);break}case _.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case _.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===_.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length+this.offset;this.sectionStart>=e||(this.state===_.InCommentLike?this.currentSequence===SA.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===_.InTagName||this.state===_.BeforeAttributeName||this.state===_.BeforeAttributeValue||this.state===_.AfterAttributeName||this.state===_.InAttributeName||this.state===_.InAttributeValueSq||this.state===_.InAttributeValueDq||this.state===_.InAttributeValueNq||this.state===_.InClosingTagName||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){this.baseState!==_.Text&&this.baseState!==_.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}};const Et=new Set(["input","option","optgroup","select","button","datalist","textarea"]),sA=new Set(["p"]),Ao=new Set(["thead","tbody"]),eo=new Set(["dd","dt"]),to=new Set(["rt","rp"]),Zg=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",sA],["h1",sA],["h2",sA],["h3",sA],["h4",sA],["h5",sA],["h6",sA],["select",Et],["input",Et],["output",Et],["button",Et],["datalist",Et],["textarea",Et],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",eo],["dt",eo],["address",sA],["article",sA],["aside",sA],["blockquote",sA],["details",sA],["div",sA],["dl",sA],["fieldset",sA],["figcaption",sA],["figure",sA],["footer",sA],["form",sA],["header",sA],["hr",sA],["main",sA],["nav",sA],["ol",sA],["pre",sA],["section",sA],["table",sA],["ul",sA],["rt",to],["rp",to],["tbody",Ao],["tfoot",Ao]]),$g=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),ro=new Set(["math","svg"]),no=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),jg=/\s|\//;let zg=class{constructor(e,t={}){var r,n,a,s,u,o;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=t.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(n=t.lowerCaseAttributeNames)!==null&&n!==void 0?n:this.htmlMode,this.recognizeSelfClosing=(a=t.recognizeSelfClosing)!==null&&a!==void 0?a:!this.htmlMode,this.tokenizer=new((s=t.Tokenizer)!==null&&s!==void 0?s:qg)(this.options,this),this.foreignContext=[!this.htmlMode],(o=(u=this.cbs).onparserinit)===null||o===void 0||o.call(u,this)}ontext(e,t){var r,n;const a=this.getSlice(e,t);this.endIndex=t-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,a),this.startIndex=t}ontextentity(e,t){var r,n;this.endIndex=t-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,ha(e)),this.startIndex=t}isVoidElement(e){return this.htmlMode&&$g.has(e)}onopentagname(e,t){this.endIndex=t;let r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(e){var t,r,n,a;this.openTagStart=this.startIndex,this.tagname=e;const s=this.htmlMode&&Zg.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[0]);){const u=this.stack.shift();(r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,u,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(ro.has(e)?this.foreignContext.unshift(!0):no.has(e)&&this.foreignContext.unshift(!1))),(a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&((r=(t=this.cbs).onopentag)===null||r===void 0||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var r,n,a,s,u,o,c,f;this.endIndex=t;let h=this.getSlice(e,t);if(this.lowerCaseTagNames&&(h=h.toLowerCase()),this.htmlMode&&(ro.has(h)||no.has(h))&&this.foreignContext.shift(),this.isVoidElement(h))this.htmlMode&&h==="br"&&((s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,"br"),(o=(u=this.cbs).onopentag)===null||o===void 0||o.call(u,"br",{},!0),(f=(c=this.cbs).onclosetag)===null||f===void 0||f.call(c,"br",!1));else{const d=this.stack.indexOf(h);if(d!==-1)for(let m=0;m<=d;m++){const C=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,C,m!==d)}else this.htmlMode&&h==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,r;const n=this.tagname;this.endOpenTag(e),this.stack[0]===n&&((r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,n,!e),this.stack.shift())}onattribname(e,t){this.startIndex=e;const r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=ha(e)}onattribend(e,t){var r,n;this.endIndex=t,(n=(r=this.cbs).onattribute)===null||n===void 0||n.call(r,this.attribname,this.attribvalue,e===he.Double?'"':e===he.Single?"'":e===he.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const t=e.search(jg);let r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(e,t){this.endIndex=t;const r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${n}`,`!${r}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;const r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${n}`,`?${r}`)}this.startIndex=t+1}oncomment(e,t,r){var n,a,s,u;this.endIndex=t,(a=(n=this.cbs).oncomment)===null||a===void 0||a.call(n,this.getSlice(e,t-r)),(u=(s=this.cbs).oncommentend)===null||u===void 0||u.call(s),this.startIndex=t+1}oncdata(e,t,r){var n,a,s,u,o,c,f,h,d,m;this.endIndex=t;const C=this.getSlice(e,t-r);!this.htmlMode||this.options.recognizeCDATA?((a=(n=this.cbs).oncdatastart)===null||a===void 0||a.call(n),(u=(s=this.cbs).ontext)===null||u===void 0||u.call(s,C),(c=(o=this.cbs).oncdataend)===null||c===void 0||c.call(o)):((h=(f=this.cbs).oncomment)===null||h===void 0||h.call(f,`[CDATA[${C}]]`),(m=(d=this.cbs).oncommentend)===null||m===void 0||m.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(t=(e=this.cbs).onend)===null||t===void 0||t.call(e)}reset(){var e,t,r,n;(t=(e=this.cbs).onreset)===null||t===void 0||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(r=this.cbs).onparserinit)===null||n===void 0||n.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}};function AE(A,e){const t=new e0(void 0,e);return new zg(t,e).end(A),t.root}const eE=Nh((A,e,t,r)=>e._useHtmlParser2?AE(A,e):Yg(A,e,t,r)),ao=od(eE,(A,e)=>e._useHtmlParser2?Lr(A,e):Wg(A));var Z=(A=>(A[A.None=0]="None",A[A.Text=1]="Text",A[A.Image=2]="Image",A[A.Video=3]="Video",A[A.Icon=4]="Icon",A[A.Link=5]="Link",A[A.Button=6]="Button",A[A.Block=10]="Block",A))(Z||{}),se;(A=>{A.THEME_TEXT_COLOR_CLASS="gp-designer-theme-text",A.THEME_BUTTON_COLOR_CLASS="gp-designer-theme-button",A.THEME_ICON_COLOR_CLASS="gp-designer-theme-icon",A.THEME_COLOR="#3574e6"})(se||(se={}));const tE={key:0,"date-action":"1",contenteditable:"false",class:"text-red-500 text-xs mt-1"},rE=l.defineComponent({__name:"ElementRenderer",props:{element:{type:Object,required:!0},selectedElement:Object,hoveredElement:Object,uploadByFile:{type:Function,required:!1},icons:{type:Array,default:()=>[]},mode:{type:String,default:"edit"},cropper:{type:Object,required:!1},icon:{type:Object,required:!1},upload:{type:Object,required:!1},r:{type:String,required:!1}},emits:["selectElement","hoverElement","updateText","contentUpdated","blockAction","addIcon"],setup(A,{emit:e}){const t=A,r=e,n=l.computed(()=>t.selectedElement===t.element),a=l.computed(()=>t.hoveredElement===t.element),s=l.ref(!1),u=l.ref(!1),o=l.ref(""),c=l.computed(()=>t.element.rule.minText||0),f=l.computed(()=>t.element.rule.maxText||1/0);l.watch(()=>t.r,()=>{r("contentUpdated",Q())},{immediate:!0});function h(R){R.xpath!="/div[1]"&&t.mode!=="preview"&&(t.mode==="edit"?R.type===Z.Text&&r("selectElement",R):r("selectElement",R),!R.rule.isReadOnly&&R.type===Z.Text&&(s.value=!0))}function d(R){r("selectElement",R)}function m(R,P){r("hoverElement",R,P)}function C(R){r("hoverElement",R)}function T(R){R.currentTarget.contains(R.relatedTarget)?r("hoverElement",null):t.hoveredElement?r("hoverElement",null,t.hoveredElement.parentxpath):r("hoverElement",null)}function F(){s.value=!1,r("contentUpdated",Q())}function Q(){function R(z){var PA;const rA=z,lA=rA.rule.isThemeColor&&rA.type==Z.Text?se.THEME_TEXT_COLOR_CLASS:rA.rule.isThemeColor&&rA.type==Z.Button?se.THEME_BUTTON_COLOR_CLASS:rA.rule.isThemeColor&&rA.type==Z.Icon?se.THEME_ICON_COLOR_CLASS:"";lA?rA.attrs.class=rA.attrs.class?rA.attrs.class+" "+lA:lA:rA.attrs.class=(PA=rA.attrs.class)==null?void 0:PA.replace(new RegExp(`${se.THEME_TEXT_COLOR_CLASS}|${se.THEME_BUTTON_COLOR_CLASS}|${se.THEME_ICON_COLOR_CLASS}`,"g"),"");const UA=Object.entries(z.attrs||{}).map(([wA,ce])=>`${wA}="${ce}"`).join(" "),HA=`<${z.tag}${UA?" "+UA:""}>`,RA=`</${z.tag}>`,QA=(z.children||[]).map(wA=>R(wA)).join("");return`${HA}${z.editText||z.text||""}${QA}${RA}`}return R(t.element)}function I(R){var lA;R.stopPropagation();const P=R.target,z=((lA=P.firstChild)==null?void 0:lA.nodeType)===Node.TEXT_NODE&&P.firstChild.nodeValue||"";if(z.length<c.value){u.value=!0,o.value=`最少输入 ${c.value} 个字符`;return}else if(z.length>f.value){u.value=!0,o.value=`最多输入 ${f.value} 个字符`;return}else u.value=!1,o.value="";r("updateText",{element:t.element,newText:z}),r("contentUpdated",Q());const rA=l.toRaw(t.element);rA.editText=z}function H(R){r("updateText",R),r("contentUpdated",Q())}function M(){const R={...t.element};r("blockAction",{action:"add",element:t.element,newBlock:R})}function y(){p(t.element),r("blockAction",{action:"moveUp",element:t.element})}function p(R){R.children&&R.children.length>0&&R.children.forEach(P=>{P.type==Z.Text&&(P.text!==P.editText&&(P.text=P.editText),p(P))})}function L(){p(t.element),r("blockAction",{action:"moveDown",element:t.element})}function k(){r("blockAction",{action:"delete",element:t.element})}function O(R){r("blockAction",R),r("contentUpdated",Q())}function AA(R){W.value.openModal(R)}function oA(R){tA.value.openModal(R)}function cA(R,P){r("addIcon",R,P),r("contentUpdated",Q())}const W=l.ref(t.icon);l.watch(()=>t.icon,R=>{W.value=R},{immediate:!0});const tA=l.ref(t.upload);return l.watch(()=>t.upload,R=>{tA.value=R},{immediate:!0}),(R,P)=>{const z=l.resolveComponent("ElementRenderer",!0);return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.element.tag),l.mergeProps({class:["relative",A.mode==="design"?"m-2 p-1 border-dashed border-2":"",a.value?"border-dashed border-blue-500":"",n.value?"border-dashed border-green-500 z-10 border-2":"",u.value?"border-dashed border-red-500":"",(!a.value&&!n.value&&!u.value,""),t.element.rule&&t.element.rule.isReadOnly?"cursor-not-allowed":"",t.element.rule.isThemeColor&&t.element.type===l.unref(Z).Text?l.unref(se).THEME_TEXT_COLOR_CLASS:"",t.element.rule.isThemeColor&&t.element.type===l.unref(Z).Button?l.unref(se).THEME_BUTTON_COLOR_CLASS:"",t.element.rule.isThemeColor&&t.element.type===l.unref(Z).Icon?l.unref(se).THEME_ICON_COLOR_CLASS:""]},t.element.attrs,{contenteditable:s.value,onClick:P[2]||(P[2]=l.withModifiers(()=>h(t.element),["stop"])),onMouseenter:P[3]||(P[3]=()=>C(t.element)),onMouseleave:T,onBlur:F,onInput:I}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.element.text),1),t.element.children&&t.element.children.length?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.element.children,(rA,lA)=>(l.openBlock(),l.createBlock(z,{key:lA,r:A.r,mode:A.mode,icons:A.icons,element:rA,selectedElement:t.selectedElement,hoveredElement:t.hoveredElement,cropper:A.cropper,icon:A.icon,upload:A.upload,"upload-by-file":A.uploadByFile,onSelectElement:d,onHoverElement:m,onUpdateText:H,onBlockAction:O,onAddIcon:cA},null,8,["r","mode","icons","element","selectedElement","hoveredElement","cropper","icon","upload","upload-by-file"]))),128)),t.element.type===l.unref(Z).Block?(l.openBlock(),l.createElementBlock("div",{key:0,"date-action":"1",contenteditable:"false",onClick:P[0]||(P[0]=l.withModifiers(()=>{},["stop"])),class:"z-10 flex space-x-1 flex-none flex-nowrap overflow-visible absolute left-2 top-2 text-sm"},[l.createElementVNode("button",{class:"flex-none content-center items-center p-1 bg-green-500/80 text-white rounded",onClick:l.withModifiers(M,["stop"])},P[6]||(P[6]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[l.createElementVNode("rect",{width:"336",height:"336",x:"128",y:"128",fill:"none",stroke:"white","stroke-linejoin":"round","stroke-width":"32",rx:"57",ry:"57"}),l.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"m383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"})],-1)])),l.createElementVNode("button",{class:"flex-none content-center items-center p-1 bg-blue-500/80 text-white rounded",onClick:l.withModifiers(y,["stop"])},P[7]||(P[7]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[l.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"48",d:"m112 244l144-144l144 144M256 120v292"})],-1)])),l.createElementVNode("button",{class:"flex-none content-center items-center p-1 bg-blue-500/80 text-white rounded",onClick:l.withModifiers(L,["stop"])},P[8]||(P[8]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[l.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"48",d:"m112 268l144 144l144-144M256 392V100"})],-1)])),l.createElementVNode("button",{class:"flex-none content-center items-center p-1 bg-red-500/80 text-white rounded",onClick:l.withModifiers(k,["stop"])},P[9]||(P[9]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[l.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"})],-1)]))])):l.createCommentVNode("",!0)],64)):l.createCommentVNode("",!0),t.element.type===l.unref(Z).Icon?(l.openBlock(),l.createElementBlock("div",{key:1,class:"cursor-pointer rounded-sm w-5 h-5 flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80",contenteditable:"false",onClick:P[1]||(P[1]=l.withModifiers(()=>AA(t.element),["stop"]))},P[10]||(P[10]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[l.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56"}),l.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"m320 255.79l-64-64l-64 64m64 192.42V207.79"})],-1)]))):l.createCommentVNode("",!0)]),_:1},16,["class","contenteditable"])),t.element.type==l.unref(Z).Text&&u.value?(l.openBlock(),l.createElementBlock("div",tE,l.toDisplayString(o.value),1)):l.createCommentVNode("",!0),t.element.type===l.unref(Z).Image?(l.openBlock(),l.createElementBlock("div",{key:1,class:"cursor-pointer rounded-sm flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80",onClick:P[5]||(P[5]=l.withModifiers(()=>{},["stop"])),contenteditable:"false"},[l.createElementVNode("div",{class:"p-1",onClick:P[4]||(P[4]=l.withModifiers(()=>oA(t.element),["stop"]))},P[11]||(P[11]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 512 512"},[l.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56"}),l.createElementVNode("path",{fill:"none",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"m320 255.79l-64-64l-64 64m64 192.42V207.79"})],-1)]))])):l.createCommentVNode("",!0)],64)}}}),At=(A,e)=>{const t=A.__vccOpts||A;for(const[r,n]of e)t[r]=n;return t},nE=At(rE,[["__scopeId","data-v-9d4fc0fb"]]),aE=l.defineComponent({name:"GpCheckbox",props:{modelValue:{type:Boolean,required:!0},label:{type:String,default:""}},emits:["update:modelValue"],setup(A,{emit:e}){return{updateValue:r=>{e("update:modelValue",r.target.checked)}}}}),sE={class:"form-group"},iE={class:"flex items-center space-x-2 cursor-pointer"},uE=["checked","aria-checked"],oE={class:"checkbox-label text-sm text-gray-700"};function cE(A,e,t,r,n,a){return l.openBlock(),l.createElementBlock("div",sE,[l.createElementVNode("label",iE,[l.createElementVNode("input",{type:"checkbox",checked:A.modelValue,onChange:e[0]||(e[0]=(...s)=>A.updateValue&&A.updateValue(...s)),class:"custom-checkbox","aria-checked":A.modelValue},null,40,uE),l.createElementVNode("span",oE,l.toDisplayString(A.label),1)])])}const tr=At(aE,[["render",cE],["__scopeId","data-v-68b8f276"]]),lE=l.defineComponent({name:"GpMessage",props:{message:{type:String,required:!0},type:{type:String,default:"info"},position:{type:String,default:"top-right"},duration:{type:Number,default:3e3},onClose:{type:Function,required:!0},icon:{type:Boolean,default:!0}},setup(A){const e=l.ref(!1),t=l.computed(()=>({success:"bg-green-100 text-green-800",error:"bg-red-100 text-red-800",info:"bg-blue-100 text-blue-800",warning:"bg-yellow-100 text-yellow-800"})[A.type]),r=()=>{e.value=!1,A.onClose()};return setTimeout(()=>{r()},A.duration),e.value=!0,{visible:e,typeClass:t,closeMessage:r}}}),fE={key:0,class:"gp-message"},hE={key:0,class:"mr-2"},dE={key:0,class:"text-green-500"},BE={key:1,class:"text-red-500"},gE={key:2,class:"text-blue-500"},EE={key:3,class:"text-yellow-500"};function pE(A,e,t,r,n,a){return l.openBlock(),l.createBlock(l.Transition,{name:"fade"},{default:l.withCtx(()=>[A.visible?(l.openBlock(),l.createElementBlock("div",fE,[l.createElementVNode("div",{class:l.normalizeClass([A.typeClass,"message-content"])},[A.icon?(l.openBlock(),l.createElementBlock("span",hE,[l.renderSlot(A.$slots,"icon",{},()=>[A.type==="success"?(l.openBlock(),l.createElementBlock("span",dE,"✔")):l.createCommentVNode("",!0),A.type==="error"?(l.openBlock(),l.createElementBlock("span",BE,"✖")):l.createCommentVNode("",!0),A.type==="info"?(l.openBlock(),l.createElementBlock("span",gE,"ℹ")):l.createCommentVNode("",!0),A.type==="warning"?(l.openBlock(),l.createElementBlock("span",EE,"⚠")):l.createCommentVNode("",!0)],!0)])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(A.message),1),l.createElementVNode("button",{class:"close-btn hover:text-gray-800 font-bold",onClick:e[0]||(e[0]=(...s)=>A.closeMessage&&A.closeMessage(...s))}," × ")],2)])):l.createCommentVNode("",!0)]),_:3})}const CE=At(lE,[["render",pE],["__scopeId","data-v-12cd136f"]]),pt=l.reactive([]);let Za=null;const mE=()=>{const A=document.createElement("div");return A.id="global-message-container",document.body.appendChild(A),A},wE=()=>{if(Za)return;const A=mE();Za=l.createApp({setup(){return{messageQueue:pt}},render(){const e=l.computed(()=>{var r;return{"top-left":"top-4 left-4","top-right":"top-4 right-4","bottom-left":"bottom-4 left-4","bottom-right":"bottom-4 right-4","top-center":"top-4 left-1/2 transform -translate-x-1/2","bottom-center":"bottom-4 left-1/2 transform -translate-x-1/2"}[((r=pt[0])==null?void 0:r.options.position)||"top-right"]});return l.h("div",{class:`fixed flex flex-col gap-2 ${e.value}`},pt.map(t=>l.h(CE,{key:t.id,...t.options,onClose:()=>so(t.id)})))}}),Za.mount(A)},so=A=>{const e=pt.findIndex(t=>t.id===A);e!==-1&&pt.splice(e,1)};let TE=0;const q=A=>{wE();const e=TE++;pt.push({id:e,options:A}),setTimeout(()=>{so(e)},A.duration||3e3)};q.success=(A,e=3e3,t=!0)=>{q(typeof A=="string"?{message:A,type:"success",duration:e,icon:t}:{...A,type:"success"})},q.error=(A,e=3e3,t=!0)=>{q(typeof A=="string"?{message:A,type:"error",duration:e,icon:t}:{...A,type:"error"})},q.info=(A,e=3e3,t=!0)=>{q(typeof A=="string"?{message:A,type:"info",duration:e,icon:t}:{...A,type:"info"})},q.warning=(A,e=3e3,t=!0)=>{q(typeof A=="string"?{message:A,type:"warning",duration:e,icon:t}:{...A,type:"warning"})};const bE={key:0},UE={key:0},QE={class:"text-gray-500 my-2"},FE={class:"text-gray-500 my-2"},IE={key:1},_E={key:2},yE={key:3},NE={key:4},SE={key:5},vE={key:6},LE={key:7},HE={key:8},xE={key:9},DE={key:10},OE=At(l.defineComponent({__name:"EditorPanel",props:{element:Object},emits:["updateElement"],setup(A,{emit:e}){const t=A,r=e,n=l.ref({rule:{},...t.element});l.watch(()=>t.element,s=>{n.value={rule:{},...s}},{immediate:!0});function a(){if(n.value.type===Z.Icon&&!n.value.attrs.class.includes("iconfont")){q.error("图标仅支持 iconfont 图标");return}if(n.value.type===Z.Image&&n.value.tag!=="img"){q.error("节点类型错误");return}if(n.value.type===Z.Video&&n.value.tag!=="video"){q.error("节点类型错误");return}if(n.value.type===Z.Link&&n.value.tag!=="a"){q.error("节点类型错误");return}if(n.value.type===Z.Text){if(Number(n.value.rule.minText)>Number(n.value.rule.maxText)){q.error("最小文本长度不能大于最大文本长度");return}if(n.value.tag!=="p"&&n.value.tag!=="div"&&n.value.tag!=="span"&&n.value.tag!=="h1"&&n.value.tag!=="h2"&&n.value.tag!=="h3"&&n.value.tag!=="h4"&&n.value.tag!=="h5"&&n.value.tag!=="h6"){q.error("节点类型错误");return}}if(n.value.type===Z.Block){if(Number(n.value.rule.minBlock)>Number(n.value.rule.maxBlock)){q.error("最小块数量不能大于最大块数量");return}if(n.value.tag!=="div"&&n.value.tag!=="section"&&n.value.tag!=="article"&&n.value.tag!=="nav"&&n.value.tag!=="header"&&n.value.tag!=="footer"&&n.value.tag!=="span"&&n.value.tag!=="p"&&n.value.tag!=="img"){q.error("节点类型错误");return}if(!n.value.children||n.value.children.length<1){q.error("节点错误,必须包含子元素");return}}r("updateElement",n.value)}return(s,u)=>(l.openBlock(),l.createElementBlock("div",null,[n.value?(l.openBlock(),l.createElementBlock("div",bE,[n.value.text!==void 0?(l.openBlock(),l.createElementBlock("div",UE,[u[13]||(u[13]=l.createElementVNode("label",{class:"block"},"内容",-1)),l.createElementVNode("div",QE,l.toDisplayString(n.value.text||"-"),1)])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[u[14]||(u[14]=l.createElementVNode("label",{class:"block mt-4"},"节点",-1)),l.createElementVNode("div",FE,l.toDisplayString(n.value.xpath),1)]),l.createElementVNode("div",null,[u[16]||(u[16]=l.createElementVNode("label",{class:"block mt-4"},"类型",-1)),l.withDirectives(l.createElementVNode("select",{"onUpdate:modelValue":u[0]||(u[0]=o=>n.value.type=o),class:"border rounded p-1 w-full"},u[15]||(u[15]=[l.createElementVNode("option",{value:0},"无",-1),l.createElementVNode("option",{value:1},"文本",-1),l.createElementVNode("option",{value:2},"图片",-1),l.createElementVNode("option",{value:3},"视频",-1),l.createElementVNode("option",{value:4},"图标",-1),l.createElementVNode("option",{value:5},"链接",-1),l.createElementVNode("option",{value:6},"按钮",-1),l.createElementVNode("option",{value:10},"块",-1)]),512),[[l.vModelSelect,n.value.type]])]),n.value.type==l.unref(Z).Text?(l.openBlock(),l.createElementBlock("div",IE,[u[17]||(u[17]=l.createElementVNode("label",{class:"block mt-4"},"最小文本长度",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":u[1]||(u[1]=o=>n.value.rule.minText=o),class:"border rounded p-1 w-full"},null,512),[[l.vModelText,n.value.rule.minText]])])):l.createCommentVNode("",!0),n.value.type==l.unref(Z).Text?(l.openBlock(),l.createElementBlock("div",_E,[u[18]||(u[18]=l.createElementVNode("label",{class:"block mt-4"},"最大文本长度",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":u[2]||(u[2]=o=>n.value.rule.maxText=o),class:"border rounded p-1 w-full"},null,512),[[l.vModelText,n.value.rule.maxText]])])):l.createCommentVNode("",!0),n.value.type==l.unref(Z).Image?(l.openBlock(),l.createElementBlock("div",yE,[u[19]||(u[19]=l.createElementVNode("label",{class:"block mt-4"},"是否裁剪",-1)),l.createVNode(tr,{class:"py-2",modelValue:n.value.rule.crop,"onUpdate:modelValue":u[3]||(u[3]=o=>n.value.rule.crop=o),label:"是"},null,8,["modelValue"])])):l.createCommentVNode("",!0),n.value.type==l.unref(Z).Image?(l.openBlock(),l.createElementBlock("div",NE,[u[20]||(u[20]=l.createElementVNode("label",{class:"block mt-4"},"图片宽度",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":u[4]||(u[4]=o=>n.value.rule.minImageWidth=o),class:"border rounded p-1 w-full"},null,512),[[l.vModelText,n.value.rule.minImageWidth]])])):l.createCommentVNode("",!0),n.value.type==l.unref(Z).Image?(l.openBlock(),l.createElementBlock("div",SE,[u[21]||(u[21]=l.createElementVNode("label",{class:"block mt-4"},"图片高度",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":u[5]||(u[5]=o=>n.value.rule.maxImageHeight=o),class:"border rounded p-1 w-full"},null,512),[[l.vModelText,n.value.rule.maxImageHeight]])])):l.createCommentVNode("",!0),n.value.type==l.unref(Z).Block?(l.openBlock(),l.createElementBlock("div",vE,[u[22]||(u[22]=l.createElementVNode("label",{class:"block mt-4"},"块最小数量",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":u[6]||(u[6]=o=>n.value.rule.minBlock=o),class:"border rounded p-1 w-full"},null,512),[[l.vModelText,n.value.rule.minBlock]])])):l.createCommentVNode("",!0),n.value.type==l.unref(Z).Block?(l.openBlock(),l.createElementBlock("div",LE,[u[23]||(u[23]=l.createElementVNode("label",{class:"block mt-4"},"块最大数量",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":u[7]||(u[7]=o=>n.value.rule.maxBlock=o),class:"border rounded p-1 w-full"},null,512),[[l.vModelText,n.value.rule.maxBlock]])])):l.createCommentVNode("",!0),n.value.type==l.unref(Z).Text||n.value.type==l.unref(Z).Icon||n.value.type==l.unref(Z).Button?(l.openBlock(),l.createElementBlock("div",HE,[u[24]||(u[24]=l.createElementVNode("label",{class:"block mt-4"},"主题色",-1)),l.createVNode(tr,{class:"py-2",modelValue:n.value.rule.isThemeColor,"onUpdate:modelValue":u[8]||(u[8]=o=>n.value.rule.isThemeColor=o),label:"是"},null,8,["modelValue"])])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[u[25]||(u[25]=l.createElementVNode("label",{class:"block mt-4"},"是否必填",-1)),l.createVNode(tr,{class:"py-2",modelValue:n.value.rule.isRequired,"onUpdate:modelValue":u[9]||(u[9]=o=>n.value.rule.isRequired=o),label:"是"},null,8,["modelValue"])]),l.createElementVNode("div",null,[u[26]||(u[26]=l.createElementVNode("label",{class:"block mt-4"},"是否只读",-1)),l.createVNode(tr,{class:"py-2",modelValue:n.value.rule.isReadOnly,"onUpdate:modelValue":u[10]||(u[10]=o=>n.value.rule.isReadOnly=o),label:"是"},null,8,["modelValue"])]),n.value.type==l.unref(Z).Link||n.value.type==l.unref(Z).Button?(l.openBlock(),l.createElementBlock("div",xE,[u[27]||(u[27]=l.createElementVNode("label",{class:"block mt-4"},"打开美洽",-1)),l.createVNode(tr,{class:"py-2",modelValue:n.value.rule.openMeiqia,"onUpdate:modelValue":u[11]||(u[11]=o=>n.value.rule.openMeiqia=o),label:"是"},null,8,["modelValue"])])):l.createCommentVNode("",!0),n.value.type==l.unref(Z).Link||n.value.type==l.unref(Z).Button?(l.openBlock(),l.createElementBlock("div",DE,[u[28]||(u[28]=l.createElementVNode("label",{class:"block mt-4"},"链接",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":u[12]||(u[12]=o=>n.value.rule.linkUrl=o),class:"border rounded p-1 w-full"},null,512),[[l.vModelText,n.value.rule.linkUrl]])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.createElementVNode("button",{onClick:a,class:"mt-4 p-2 bg-green-500 text-white rounded"}," 保存 ")]))}}),[["__scopeId","data-v-7395db8a"]]);/*!
9
9
  * Cropper.js v1.6.2
10
10
  * https://fengyuanchen.github.io/cropperjs
11
11
  *
@@ -13,5 +13,26 @@
13
13
  * Released under the MIT license
14
14
  *
15
15
  * Date: 2024-04-21T07:43:05.335Z
16
- */function Wr(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,n)}return a}function $r(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Wr(Object(a),!0).forEach(function(n){_h(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Wr(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function Th(e,t){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gr(e){var t=Th(e,"string");return typeof t=="symbol"?t:t+""}function Rn(e){"@babel/helpers - typeof";return Rn=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},Rn(e)}function bh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xr(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gr(n.key),n)}}function gh(e,t,a){return t&&Xr(e.prototype,t),a&&Xr(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function _h(e,t,a){return t=Gr(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Qr(e){return Ah(e)||Nh(e)||Ch(e)||Ih()}function Ah(e){if(Array.isArray(e))return kn(e)}function Nh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ch(e,t){if(e){if(typeof e=="string")return kn(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return kn(e,t)}}function kn(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function Ih(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ma=typeof window<"u"&&typeof window.document<"u",Be=Ma?window:{},Mn=Ma&&Be.document.documentElement?"ontouchstart"in Be.document.documentElement:!1,wn=Ma?"PointerEvent"in Be:!1,Z="cropper",Pn="all",jr="crop",zr="move",Kr="zoom",ct="e",lt="w",St="s",Ke="n",Kt="ne",Zt="nw",Jt="se",ea="sw",Bn="".concat(Z,"-crop"),Zr="".concat(Z,"-disabled"),be="".concat(Z,"-hidden"),Jr="".concat(Z,"-hide"),Sh="".concat(Z,"-invisible"),wa="".concat(Z,"-modal"),vn="".concat(Z,"-move"),ta="".concat(Z,"Action"),Pa="".concat(Z,"Preview"),Un="crop",es="move",ts="none",Fn="crop",Hn="cropend",Vn="cropmove",Yn="cropstart",as="dblclick",Oh=Mn?"touchstart":"mousedown",xh=Mn?"touchmove":"mousemove",Dh=Mn?"touchend touchcancel":"mouseup",ns=wn?"pointerdown":Oh,is=wn?"pointermove":xh,rs=wn?"pointerup pointercancel":Dh,ss="ready",us="resize",os="wheel",qn="zoom",cs="image/jpeg",Lh=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,yh=/^data:/,Rh=/^data:image\/jpeg;base64,/,kh=/^img|canvas$/i,ls=200,ds=100,hs={viewMode:0,dragMode:Un,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:ls,minContainerHeight:ds,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Mh='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',wh=Number.isNaN||Be.isNaN;function $(e){return typeof e=="number"&&!wh(e)}var fs=function(t){return t>0&&t<1/0};function Wn(e){return typeof e>"u"}function dt(e){return Rn(e)==="object"&&e!==null}var Ph=Object.prototype.hasOwnProperty;function Ot(e){if(!dt(e))return!1;try{var t=e.constructor,a=t.prototype;return t&&a&&Ph.call(a,"isPrototypeOf")}catch{return!1}}function ge(e){return typeof e=="function"}var Bh=Array.prototype.slice;function ms(e){return Array.from?Array.from(e):Bh.call(e)}function ie(e,t){return e&&ge(t)&&(Array.isArray(e)||$(e.length)?ms(e).forEach(function(a,n){t.call(e,a,n,e)}):dt(e)&&Object.keys(e).forEach(function(a){t.call(e,e[a],a,e)})),e}var J=Object.assign||function(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];return dt(t)&&n.length>0&&n.forEach(function(s){dt(s)&&Object.keys(s).forEach(function(u){t[u]=s[u]})}),t},vh=/\.\d*(?:0|9){12}\d*$/;function xt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return vh.test(e)?Math.round(e*t)/t:e}var Uh=/^width|height|left|top|marginLeft|marginTop$/;function Ze(e,t){var a=e.style;ie(t,function(n,i){Uh.test(i)&&$(n)&&(n="".concat(n,"px")),a[i]=n})}function Fh(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function ce(e,t){if(t){if($(e.length)){ie(e,function(n){ce(n,t)});return}if(e.classList){e.classList.add(t);return}var a=e.className.trim();a?a.indexOf(t)<0&&(e.className="".concat(a," ").concat(t)):e.className=t}}function ve(e,t){if(t){if($(e.length)){ie(e,function(a){ve(a,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function Dt(e,t,a){if(t){if($(e.length)){ie(e,function(n){Dt(n,t,a)});return}a?ce(e,t):ve(e,t)}}var Hh=/([a-z\d])([A-Z])/g;function $n(e){return e.replace(Hh,"$1-$2").toLowerCase()}function Gn(e,t){return dt(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat($n(t)))}function aa(e,t,a){dt(a)?e[t]=a:e.dataset?e.dataset[t]=a:e.setAttribute("data-".concat($n(t)),a)}function Vh(e,t){if(dt(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch{e.dataset[t]=void 0}else e.removeAttribute("data-".concat($n(t)))}var Es=/\s\s*/,ps=function(){var e=!1;if(Ma){var t=!1,a=function(){},n=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(s){t=s}});Be.addEventListener("test",a,n),Be.removeEventListener("test",a,n)}return e}();function ye(e,t,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=a;t.trim().split(Es).forEach(function(s){if(!ps){var u=e.listeners;u&&u[s]&&u[s][a]&&(i=u[s][a],delete u[s][a],Object.keys(u[s]).length===0&&delete u[s],Object.keys(u).length===0&&delete e.listeners)}e.removeEventListener(s,i,n)})}function xe(e,t,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=a;t.trim().split(Es).forEach(function(s){if(n.once&&!ps){var u=e.listeners,c=u===void 0?{}:u;i=function(){delete c[s][a],e.removeEventListener(s,i,n);for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];a.apply(e,m)},c[s]||(c[s]={}),c[s][a]&&e.removeEventListener(s,c[s][a],n),c[s][a]=i,e.listeners=c}e.addEventListener(s,i,n)})}function Lt(e,t,a){var n;return ge(Event)&&ge(CustomEvent)?n=new CustomEvent(t,{detail:a,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent"),n.initCustomEvent(t,!0,!0,a)),e.dispatchEvent(n)}function Ts(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var Xn=Be.location,Yh=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function bs(e){var t=e.match(Yh);return t!==null&&(t[1]!==Xn.protocol||t[2]!==Xn.hostname||t[3]!==Xn.port)}function gs(e){var t="timestamp=".concat(new Date().getTime());return e+(e.indexOf("?")===-1?"?":"&")+t}function na(e){var t=e.rotate,a=e.scaleX,n=e.scaleY,i=e.translateX,s=e.translateY,u=[];$(i)&&i!==0&&u.push("translateX(".concat(i,"px)")),$(s)&&s!==0&&u.push("translateY(".concat(s,"px)")),$(t)&&t!==0&&u.push("rotate(".concat(t,"deg)")),$(a)&&a!==1&&u.push("scaleX(".concat(a,")")),$(n)&&n!==1&&u.push("scaleY(".concat(n,")"));var c=u.length?u.join(" "):"none";return{WebkitTransform:c,msTransform:c,transform:c}}function qh(e){var t=$r({},e),a=0;return ie(e,function(n,i){delete t[i],ie(t,function(s){var u=Math.abs(n.startX-s.startX),c=Math.abs(n.startY-s.startY),l=Math.abs(n.endX-s.endX),h=Math.abs(n.endY-s.endY),m=Math.sqrt(u*u+c*c),p=Math.sqrt(l*l+h*h),T=(p-m)/m;Math.abs(T)>Math.abs(a)&&(a=T)})}),a}function Ba(e,t){var a=e.pageX,n=e.pageY,i={endX:a,endY:n};return t?i:$r({startX:a,startY:n},i)}function Wh(e){var t=0,a=0,n=0;return ie(e,function(i){var s=i.startX,u=i.startY;t+=s,a+=u,n+=1}),t/=n,a/=n,{pageX:t,pageY:a}}function Je(e){var t=e.aspectRatio,a=e.height,n=e.width,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",s=fs(n),u=fs(a);if(s&&u){var c=a*t;i==="contain"&&c>n||i==="cover"&&c<n?a=n/t:n=a*t}else s?a=n/t:u&&(n=a*t);return{width:n,height:a}}function $h(e){var t=e.width,a=e.height,n=e.degree;if(n=Math.abs(n)%180,n===90)return{width:a,height:t};var i=n%90*Math.PI/180,s=Math.sin(i),u=Math.cos(i),c=t*u+a*s,l=t*s+a*u;return n>90?{width:l,height:c}:{width:c,height:l}}function Gh(e,t,a,n){var i=t.aspectRatio,s=t.naturalWidth,u=t.naturalHeight,c=t.rotate,l=c===void 0?0:c,h=t.scaleX,m=h===void 0?1:h,p=t.scaleY,T=p===void 0?1:p,_=a.aspectRatio,C=a.naturalWidth,L=a.naturalHeight,R=n.fillColor,V=R===void 0?"transparent":R,v=n.imageSmoothingEnabled,F=v===void 0?!0:v,z=n.imageSmoothingQuality,H=z===void 0?"low":z,A=n.maxWidth,U=A===void 0?1/0:A,Q=n.maxHeight,ne=Q===void 0?1/0:Q,Ne=n.minWidth,Re=Ne===void 0?0:Ne,ke=n.minHeight,Ce=ke===void 0?0:ke,me=document.createElement("canvas"),D=me.getContext("2d"),w=Je({aspectRatio:_,width:U,height:ne}),ee=Je({aspectRatio:_,width:Re,height:Ce},"cover"),te=Math.min(w.width,Math.max(ee.width,C)),he=Math.min(w.height,Math.max(ee.height,L)),Ue=Je({aspectRatio:i,width:U,height:ne}),ht=Je({aspectRatio:i,width:Re,height:Ce},"cover"),qe=Math.min(Ue.width,Math.max(ht.width,s)),ft=Math.min(Ue.height,Math.max(ht.height,u)),mt=[-qe/2,-ft/2,qe,ft];return me.width=xt(te),me.height=xt(he),D.fillStyle=V,D.fillRect(0,0,te,he),D.save(),D.translate(te/2,he/2),D.rotate(l*Math.PI/180),D.scale(m,T),D.imageSmoothingEnabled=F,D.imageSmoothingQuality=H,D.drawImage.apply(D,[e].concat(Qr(mt.map(function(et){return Math.floor(xt(et))})))),D.restore(),me}var _s=String.fromCharCode;function Xh(e,t,a){var n="";a+=t;for(var i=t;i<a;i+=1)n+=_s(e.getUint8(i));return n}var Qh=/^data:.*,/;function jh(e){var t=e.replace(Qh,""),a=atob(t),n=new ArrayBuffer(a.length),i=new Uint8Array(n);return ie(i,function(s,u){i[u]=a.charCodeAt(u)}),n}function zh(e,t){for(var a=[],n=8192,i=new Uint8Array(e);i.length>0;)a.push(_s.apply(null,ms(i.subarray(0,n)))),i=i.subarray(n);return"data:".concat(t,";base64,").concat(btoa(a.join("")))}function Kh(e){var t=new DataView(e),a;try{var n,i,s;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var u=t.byteLength,c=2;c+1<u;){if(t.getUint8(c)===255&&t.getUint8(c+1)===225){i=c;break}c+=1}if(i){var l=i+4,h=i+10;if(Xh(t,l,4)==="Exif"){var m=t.getUint16(h);if(n=m===18761,(n||m===19789)&&t.getUint16(h+2,n)===42){var p=t.getUint32(h+4,n);p>=8&&(s=h+p)}}}if(s){var T=t.getUint16(s,n),_,C;for(C=0;C<T;C+=1)if(_=s+C*12+2,t.getUint16(_,n)===274){_+=8,a=t.getUint16(_,n),t.setUint16(_,1,n);break}}}catch{a=1}return a}function Zh(e){var t=0,a=1,n=1;switch(e){case 2:a=-1;break;case 3:t=-180;break;case 4:n=-1;break;case 5:t=90,n=-1;break;case 6:t=90;break;case 7:t=90,a=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:a,scaleY:n}}var Jh={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,a=this.options,n=this.container,i=this.cropper,s=Number(a.minContainerWidth),u=Number(a.minContainerHeight);ce(i,be),ve(t,be);var c={width:Math.max(n.offsetWidth,s>=0?s:ls),height:Math.max(n.offsetHeight,u>=0?u:ds)};this.containerData=c,Ze(i,{width:c.width,height:c.height}),ce(t,be),ve(i,be)},initCanvas:function(){var t=this.containerData,a=this.imageData,n=this.options.viewMode,i=Math.abs(a.rotate)%180===90,s=i?a.naturalHeight:a.naturalWidth,u=i?a.naturalWidth:a.naturalHeight,c=s/u,l=t.width,h=t.height;t.height*c>t.width?n===3?l=t.height*c:h=t.width/c:n===3?h=t.width/c:l=t.height*c;var m={aspectRatio:c,naturalWidth:s,naturalHeight:u,width:l,height:h};this.canvasData=m,this.limited=n===1||n===2,this.limitCanvas(!0,!0),m.width=Math.min(Math.max(m.width,m.minWidth),m.maxWidth),m.height=Math.min(Math.max(m.height,m.minHeight),m.maxHeight),m.left=(t.width-m.width)/2,m.top=(t.height-m.height)/2,m.oldLeft=m.left,m.oldTop=m.top,this.initialCanvasData=J({},m)},limitCanvas:function(t,a){var n=this.options,i=this.containerData,s=this.canvasData,u=this.cropBoxData,c=n.viewMode,l=s.aspectRatio,h=this.cropped&&u;if(t){var m=Number(n.minCanvasWidth)||0,p=Number(n.minCanvasHeight)||0;c>1?(m=Math.max(m,i.width),p=Math.max(p,i.height),c===3&&(p*l>m?m=p*l:p=m/l)):c>0&&(m?m=Math.max(m,h?u.width:0):p?p=Math.max(p,h?u.height:0):h&&(m=u.width,p=u.height,p*l>m?m=p*l:p=m/l));var T=Je({aspectRatio:l,width:m,height:p});m=T.width,p=T.height,s.minWidth=m,s.minHeight=p,s.maxWidth=1/0,s.maxHeight=1/0}if(a)if(c>(h?0:1)){var _=i.width-s.width,C=i.height-s.height;s.minLeft=Math.min(0,_),s.minTop=Math.min(0,C),s.maxLeft=Math.max(0,_),s.maxTop=Math.max(0,C),h&&this.limited&&(s.minLeft=Math.min(u.left,u.left+(u.width-s.width)),s.minTop=Math.min(u.top,u.top+(u.height-s.height)),s.maxLeft=u.left,s.maxTop=u.top,c===2&&(s.width>=i.width&&(s.minLeft=Math.min(0,_),s.maxLeft=Math.max(0,_)),s.height>=i.height&&(s.minTop=Math.min(0,C),s.maxTop=Math.max(0,C))))}else s.minLeft=-s.width,s.minTop=-s.height,s.maxLeft=i.width,s.maxTop=i.height},renderCanvas:function(t,a){var n=this.canvasData,i=this.imageData;if(a){var s=$h({width:i.naturalWidth*Math.abs(i.scaleX||1),height:i.naturalHeight*Math.abs(i.scaleY||1),degree:i.rotate||0}),u=s.width,c=s.height,l=n.width*(u/n.naturalWidth),h=n.height*(c/n.naturalHeight);n.left-=(l-n.width)/2,n.top-=(h-n.height)/2,n.width=l,n.height=h,n.aspectRatio=u/c,n.naturalWidth=u,n.naturalHeight=c,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,Ze(this.canvas,J({width:n.width,height:n.height},na({translateX:n.left,translateY:n.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var a=this.canvasData,n=this.imageData,i=n.naturalWidth*(a.width/a.naturalWidth),s=n.naturalHeight*(a.height/a.naturalHeight);J(n,{width:i,height:s,left:(a.width-i)/2,top:(a.height-s)/2}),Ze(this.image,J({width:n.width,height:n.height},na(J({translateX:n.left,translateY:n.top},n)))),t&&this.output()},initCropBox:function(){var t=this.options,a=this.canvasData,n=t.aspectRatio||t.initialAspectRatio,i=Number(t.autoCropArea)||.8,s={width:a.width,height:a.height};n&&(a.height*n>a.width?s.height=s.width/n:s.width=s.height*n),this.cropBoxData=s,this.limitCropBox(!0,!0),s.width=Math.min(Math.max(s.width,s.minWidth),s.maxWidth),s.height=Math.min(Math.max(s.height,s.minHeight),s.maxHeight),s.width=Math.max(s.minWidth,s.width*i),s.height=Math.max(s.minHeight,s.height*i),s.left=a.left+(a.width-s.width)/2,s.top=a.top+(a.height-s.height)/2,s.oldLeft=s.left,s.oldTop=s.top,this.initialCropBoxData=J({},s)},limitCropBox:function(t,a){var n=this.options,i=this.containerData,s=this.canvasData,u=this.cropBoxData,c=this.limited,l=n.aspectRatio;if(t){var h=Number(n.minCropBoxWidth)||0,m=Number(n.minCropBoxHeight)||0,p=c?Math.min(i.width,s.width,s.width+s.left,i.width-s.left):i.width,T=c?Math.min(i.height,s.height,s.height+s.top,i.height-s.top):i.height;h=Math.min(h,i.width),m=Math.min(m,i.height),l&&(h&&m?m*l>h?m=h/l:h=m*l:h?m=h/l:m&&(h=m*l),T*l>p?T=p/l:p=T*l),u.minWidth=Math.min(h,p),u.minHeight=Math.min(m,T),u.maxWidth=p,u.maxHeight=T}a&&(c?(u.minLeft=Math.max(0,s.left),u.minTop=Math.max(0,s.top),u.maxLeft=Math.min(i.width,s.left+s.width)-u.width,u.maxTop=Math.min(i.height,s.top+s.height)-u.height):(u.minLeft=0,u.minTop=0,u.maxLeft=i.width-u.width,u.maxTop=i.height-u.height))},renderCropBox:function(){var t=this.options,a=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,t.movable&&t.cropBoxMovable&&aa(this.face,ta,n.width>=a.width&&n.height>=a.height?zr:Pn),Ze(this.cropBox,J({width:n.width,height:n.height},na({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Lt(this.element,Fn,this.getData())}},ef={initPreview:function(){var t=this.element,a=this.crossOrigin,n=this.options.preview,i=a?this.crossOriginUrl:this.url,s=t.alt||"The image to preview",u=document.createElement("img");if(a&&(u.crossOrigin=a),u.src=i,u.alt=s,this.viewBox.appendChild(u),this.viewBoxImage=u,!!n){var c=n;typeof n=="string"?c=t.ownerDocument.querySelectorAll(n):n.querySelector&&(c=[n]),this.previews=c,ie(c,function(l){var h=document.createElement("img");aa(l,Pa,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),a&&(h.crossOrigin=a),h.src=i,h.alt=s,h.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',l.innerHTML="",l.appendChild(h)})}},resetPreview:function(){ie(this.previews,function(t){var a=Gn(t,Pa);Ze(t,{width:a.width,height:a.height}),t.innerHTML=a.html,Vh(t,Pa)})},preview:function(){var t=this.imageData,a=this.canvasData,n=this.cropBoxData,i=n.width,s=n.height,u=t.width,c=t.height,l=n.left-a.left-t.left,h=n.top-a.top-t.top;!this.cropped||this.disabled||(Ze(this.viewBoxImage,J({width:u,height:c},na(J({translateX:-l,translateY:-h},t)))),ie(this.previews,function(m){var p=Gn(m,Pa),T=p.width,_=p.height,C=T,L=_,R=1;i&&(R=T/i,L=s*R),s&&L>_&&(R=_/s,C=i*R,L=_),Ze(m,{width:C,height:L}),Ze(m.getElementsByTagName("img")[0],J({width:u*R,height:c*R},na(J({translateX:-l*R,translateY:-h*R},t))))}))}},tf={bind:function(){var t=this.element,a=this.options,n=this.cropper;ge(a.cropstart)&&xe(t,Yn,a.cropstart),ge(a.cropmove)&&xe(t,Vn,a.cropmove),ge(a.cropend)&&xe(t,Hn,a.cropend),ge(a.crop)&&xe(t,Fn,a.crop),ge(a.zoom)&&xe(t,qn,a.zoom),xe(n,ns,this.onCropStart=this.cropStart.bind(this)),a.zoomable&&a.zoomOnWheel&&xe(n,os,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),a.toggleDragModeOnDblclick&&xe(n,as,this.onDblclick=this.dblclick.bind(this)),xe(t.ownerDocument,is,this.onCropMove=this.cropMove.bind(this)),xe(t.ownerDocument,rs,this.onCropEnd=this.cropEnd.bind(this)),a.responsive&&xe(window,us,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,a=this.options,n=this.cropper;ge(a.cropstart)&&ye(t,Yn,a.cropstart),ge(a.cropmove)&&ye(t,Vn,a.cropmove),ge(a.cropend)&&ye(t,Hn,a.cropend),ge(a.crop)&&ye(t,Fn,a.crop),ge(a.zoom)&&ye(t,qn,a.zoom),ye(n,ns,this.onCropStart),a.zoomable&&a.zoomOnWheel&&ye(n,os,this.onWheel,{passive:!1,capture:!0}),a.toggleDragModeOnDblclick&&ye(n,as,this.onDblclick),ye(t.ownerDocument,is,this.onCropMove),ye(t.ownerDocument,rs,this.onCropEnd),a.responsive&&ye(window,us,this.onResize)}},af={resize:function(){if(!this.disabled){var t=this.options,a=this.container,n=this.containerData,i=a.offsetWidth/n.width,s=a.offsetHeight/n.height,u=Math.abs(i-1)>Math.abs(s-1)?i:s;if(u!==1){var c,l;t.restore&&(c=this.getCanvasData(),l=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(ie(c,function(h,m){c[m]=h*u})),this.setCropBoxData(ie(l,function(h,m){l[m]=h*u})))}}},dblclick:function(){this.disabled||this.options.dragMode===ts||this.setDragMode(Fh(this.dragBox,Bn)?es:Un)},wheel:function(t){var a=this,n=Number(this.options.wheelZoomRatio)||.1,i=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){a.wheeling=!1},50),t.deltaY?i=t.deltaY>0?1:-1:t.wheelDelta?i=-t.wheelDelta/120:t.detail&&(i=t.detail>0?1:-1),this.zoom(-i*n,t)))},cropStart:function(t){var a=t.buttons,n=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&($(a)&&a!==1||$(n)&&n!==0||t.ctrlKey))){var i=this.options,s=this.pointers,u;t.changedTouches?ie(t.changedTouches,function(c){s[c.identifier]=Ba(c)}):s[t.pointerId||0]=Ba(t),Object.keys(s).length>1&&i.zoomable&&i.zoomOnTouch?u=Kr:u=Gn(t.target,ta),Lh.test(u)&&Lt(this.element,Yn,{originalEvent:t,action:u})!==!1&&(t.preventDefault(),this.action=u,this.cropping=!1,u===jr&&(this.cropping=!0,ce(this.dragBox,wa)))}},cropMove:function(t){var a=this.action;if(!(this.disabled||!a)){var n=this.pointers;t.preventDefault(),Lt(this.element,Vn,{originalEvent:t,action:a})!==!1&&(t.changedTouches?ie(t.changedTouches,function(i){J(n[i.identifier]||{},Ba(i,!0))}):J(n[t.pointerId||0]||{},Ba(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var a=this.action,n=this.pointers;t.changedTouches?ie(t.changedTouches,function(i){delete n[i.identifier]}):delete n[t.pointerId||0],a&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Dt(this.dragBox,wa,this.cropped&&this.options.modal)),Lt(this.element,Hn,{originalEvent:t,action:a}))}}},nf={change:function(t){var a=this.options,n=this.canvasData,i=this.containerData,s=this.cropBoxData,u=this.pointers,c=this.action,l=a.aspectRatio,h=s.left,m=s.top,p=s.width,T=s.height,_=h+p,C=m+T,L=0,R=0,V=i.width,v=i.height,F=!0,z;!l&&t.shiftKey&&(l=p&&T?p/T:1),this.limited&&(L=s.minLeft,R=s.minTop,V=L+Math.min(i.width,n.width,n.left+n.width),v=R+Math.min(i.height,n.height,n.top+n.height));var H=u[Object.keys(u)[0]],A={x:H.endX-H.startX,y:H.endY-H.startY},U=function(ne){switch(ne){case ct:_+A.x>V&&(A.x=V-_);break;case lt:h+A.x<L&&(A.x=L-h);break;case Ke:m+A.y<R&&(A.y=R-m);break;case St:C+A.y>v&&(A.y=v-C);break}};switch(c){case Pn:h+=A.x,m+=A.y;break;case ct:if(A.x>=0&&(_>=V||l&&(m<=R||C>=v))){F=!1;break}U(ct),p+=A.x,p<0&&(c=lt,p=-p,h-=p),l&&(T=p/l,m+=(s.height-T)/2);break;case Ke:if(A.y<=0&&(m<=R||l&&(h<=L||_>=V))){F=!1;break}U(Ke),T-=A.y,m+=A.y,T<0&&(c=St,T=-T,m-=T),l&&(p=T*l,h+=(s.width-p)/2);break;case lt:if(A.x<=0&&(h<=L||l&&(m<=R||C>=v))){F=!1;break}U(lt),p-=A.x,h+=A.x,p<0&&(c=ct,p=-p,h-=p),l&&(T=p/l,m+=(s.height-T)/2);break;case St:if(A.y>=0&&(C>=v||l&&(h<=L||_>=V))){F=!1;break}U(St),T+=A.y,T<0&&(c=Ke,T=-T,m-=T),l&&(p=T*l,h+=(s.width-p)/2);break;case Kt:if(l){if(A.y<=0&&(m<=R||_>=V)){F=!1;break}U(Ke),T-=A.y,m+=A.y,p=T*l}else U(Ke),U(ct),A.x>=0?_<V?p+=A.x:A.y<=0&&m<=R&&(F=!1):p+=A.x,A.y<=0?m>R&&(T-=A.y,m+=A.y):(T-=A.y,m+=A.y);p<0&&T<0?(c=ea,T=-T,p=-p,m-=T,h-=p):p<0?(c=Zt,p=-p,h-=p):T<0&&(c=Jt,T=-T,m-=T);break;case Zt:if(l){if(A.y<=0&&(m<=R||h<=L)){F=!1;break}U(Ke),T-=A.y,m+=A.y,p=T*l,h+=s.width-p}else U(Ke),U(lt),A.x<=0?h>L?(p-=A.x,h+=A.x):A.y<=0&&m<=R&&(F=!1):(p-=A.x,h+=A.x),A.y<=0?m>R&&(T-=A.y,m+=A.y):(T-=A.y,m+=A.y);p<0&&T<0?(c=Jt,T=-T,p=-p,m-=T,h-=p):p<0?(c=Kt,p=-p,h-=p):T<0&&(c=ea,T=-T,m-=T);break;case ea:if(l){if(A.x<=0&&(h<=L||C>=v)){F=!1;break}U(lt),p-=A.x,h+=A.x,T=p/l}else U(St),U(lt),A.x<=0?h>L?(p-=A.x,h+=A.x):A.y>=0&&C>=v&&(F=!1):(p-=A.x,h+=A.x),A.y>=0?C<v&&(T+=A.y):T+=A.y;p<0&&T<0?(c=Kt,T=-T,p=-p,m-=T,h-=p):p<0?(c=Jt,p=-p,h-=p):T<0&&(c=Zt,T=-T,m-=T);break;case Jt:if(l){if(A.x>=0&&(_>=V||C>=v)){F=!1;break}U(ct),p+=A.x,T=p/l}else U(St),U(ct),A.x>=0?_<V?p+=A.x:A.y>=0&&C>=v&&(F=!1):p+=A.x,A.y>=0?C<v&&(T+=A.y):T+=A.y;p<0&&T<0?(c=Zt,T=-T,p=-p,m-=T,h-=p):p<0?(c=ea,p=-p,h-=p):T<0&&(c=Kt,T=-T,m-=T);break;case zr:this.move(A.x,A.y),F=!1;break;case Kr:this.zoom(qh(u),t),F=!1;break;case jr:if(!A.x||!A.y){F=!1;break}z=Ts(this.cropper),h=H.startX-z.left,m=H.startY-z.top,p=s.minWidth,T=s.minHeight,A.x>0?c=A.y>0?Jt:Kt:A.x<0&&(h-=p,c=A.y>0?ea:Zt),A.y<0&&(m-=T),this.cropped||(ve(this.cropBox,be),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}F&&(s.width=p,s.height=T,s.left=h,s.top=m,this.action=c,this.renderCropBox()),ie(u,function(Q){Q.startX=Q.endX,Q.startY=Q.endY})}},rf={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&ce(this.dragBox,wa),ve(this.cropBox,be),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=J({},this.initialImageData),this.canvasData=J({},this.initialCanvasData),this.cropBoxData=J({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(J(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),ve(this.dragBox,wa),ce(this.cropBox,be)),this},replace:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),a?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,ie(this.previews,function(n){n.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,ve(this.cropper,Zr)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,ce(this.cropper,Zr)),this},destroy:function(){var t=this.element;return t[Z]?(t[Z]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,n=this.canvasData,i=n.left,s=n.top;return this.moveTo(Wn(t)?t:i+Number(t),Wn(a)?a:s+Number(a))},moveTo:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,n=this.canvasData,i=!1;return t=Number(t),a=Number(a),this.ready&&!this.disabled&&this.options.movable&&($(t)&&(n.left=t,i=!0),$(a)&&(n.top=a,i=!0),i&&this.renderCanvas(!0)),this},zoom:function(t,a){var n=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(n.width*t/n.naturalWidth,null,a)},zoomTo:function(t,a,n){var i=this.options,s=this.canvasData,u=s.width,c=s.height,l=s.naturalWidth,h=s.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&i.zoomable){var m=l*t,p=h*t;if(Lt(this.element,qn,{ratio:t,oldRatio:u/l,originalEvent:n})===!1)return this;if(n){var T=this.pointers,_=Ts(this.cropper),C=T&&Object.keys(T).length?Wh(T):{pageX:n.pageX,pageY:n.pageY};s.left-=(m-u)*((C.pageX-_.left-s.left)/u),s.top-=(p-c)*((C.pageY-_.top-s.top)/c)}else Ot(a)&&$(a.x)&&$(a.y)?(s.left-=(m-u)*((a.x-s.left)/u),s.top-=(p-c)*((a.y-s.top)/c)):(s.left-=(m-u)/2,s.top-=(p-c)/2);s.width=m,s.height=p,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),$(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var a=this.imageData.scaleY;return this.scale(t,$(a)?a:1)},scaleY:function(t){var a=this.imageData.scaleX;return this.scale($(a)?a:1,t)},scale:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,n=this.imageData,i=!1;return t=Number(t),a=Number(a),this.ready&&!this.disabled&&this.options.scalable&&($(t)&&(n.scaleX=t,i=!0),$(a)&&(n.scaleY=a,i=!0),i&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=this.options,n=this.imageData,i=this.canvasData,s=this.cropBoxData,u;if(this.ready&&this.cropped){u={x:s.left-i.left,y:s.top-i.top,width:s.width,height:s.height};var c=n.width/n.naturalWidth;if(ie(u,function(m,p){u[p]=m/c}),t){var l=Math.round(u.y+u.height),h=Math.round(u.x+u.width);u.x=Math.round(u.x),u.y=Math.round(u.y),u.width=h-u.x,u.height=l-u.y}}else u={x:0,y:0,width:0,height:0};return a.rotatable&&(u.rotate=n.rotate||0),a.scalable&&(u.scaleX=n.scaleX||1,u.scaleY=n.scaleY||1),u},setData:function(t){var a=this.options,n=this.imageData,i=this.canvasData,s={};if(this.ready&&!this.disabled&&Ot(t)){var u=!1;a.rotatable&&$(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,u=!0),a.scalable&&($(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,u=!0),$(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,u=!0)),u&&this.renderCanvas(!0,!0);var c=n.width/n.naturalWidth;$(t.x)&&(s.left=t.x*c+i.left),$(t.y)&&(s.top=t.y*c+i.top),$(t.width)&&(s.width=t.width*c),$(t.height)&&(s.height=t.height*c),this.setCropBoxData(s)}return this},getContainerData:function(){return this.ready?J({},this.containerData):{}},getImageData:function(){return this.sized?J({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,a={};return this.ready&&ie(["left","top","width","height","naturalWidth","naturalHeight"],function(n){a[n]=t[n]}),a},setCanvasData:function(t){var a=this.canvasData,n=a.aspectRatio;return this.ready&&!this.disabled&&Ot(t)&&($(t.left)&&(a.left=t.left),$(t.top)&&(a.top=t.top),$(t.width)?(a.width=t.width,a.height=t.width/n):$(t.height)&&(a.height=t.height,a.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,a;return this.ready&&this.cropped&&(a={left:t.left,top:t.top,width:t.width,height:t.height}),a||{}},setCropBoxData:function(t){var a=this.cropBoxData,n=this.options.aspectRatio,i,s;return this.ready&&this.cropped&&!this.disabled&&Ot(t)&&($(t.left)&&(a.left=t.left),$(t.top)&&(a.top=t.top),$(t.width)&&t.width!==a.width&&(i=!0,a.width=t.width),$(t.height)&&t.height!==a.height&&(s=!0,a.height=t.height),n&&(i?a.height=a.width/n:s&&(a.width=a.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var a=this.canvasData,n=Gh(this.image,this.imageData,a,t);if(!this.cropped)return n;var i=this.getData(t.rounded),s=i.x,u=i.y,c=i.width,l=i.height,h=n.width/Math.floor(a.naturalWidth);h!==1&&(s*=h,u*=h,c*=h,l*=h);var m=c/l,p=Je({aspectRatio:m,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),T=Je({aspectRatio:m,width:t.minWidth||0,height:t.minHeight||0},"cover"),_=Je({aspectRatio:m,width:t.width||(h!==1?n.width:c),height:t.height||(h!==1?n.height:l)}),C=_.width,L=_.height;C=Math.min(p.width,Math.max(T.width,C)),L=Math.min(p.height,Math.max(T.height,L));var R=document.createElement("canvas"),V=R.getContext("2d");R.width=xt(C),R.height=xt(L),V.fillStyle=t.fillColor||"transparent",V.fillRect(0,0,C,L);var v=t.imageSmoothingEnabled,F=v===void 0?!0:v,z=t.imageSmoothingQuality;V.imageSmoothingEnabled=F,z&&(V.imageSmoothingQuality=z);var H=n.width,A=n.height,U=s,Q=u,ne,Ne,Re,ke,Ce,me;U<=-c||U>H?(U=0,ne=0,Re=0,Ce=0):U<=0?(Re=-U,U=0,ne=Math.min(H,c+U),Ce=ne):U<=H&&(Re=0,ne=Math.min(c,H-U),Ce=ne),ne<=0||Q<=-l||Q>A?(Q=0,Ne=0,ke=0,me=0):Q<=0?(ke=-Q,Q=0,Ne=Math.min(A,l+Q),me=Ne):Q<=A&&(ke=0,Ne=Math.min(l,A-Q),me=Ne);var D=[U,Q,ne,Ne];if(Ce>0&&me>0){var w=C/c;D.push(Re*w,ke*w,Ce*w,me*w)}return V.drawImage.apply(V,[n].concat(Qr(D.map(function(ee){return Math.floor(xt(ee))})))),R},setAspectRatio:function(t){var a=this.options;return!this.disabled&&!Wn(t)&&(a.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var a=this.options,n=this.dragBox,i=this.face;if(this.ready&&!this.disabled){var s=t===Un,u=a.movable&&t===es;t=s||u?t:ts,a.dragMode=t,aa(n,ta,t),Dt(n,Bn,s),Dt(n,vn,u),a.cropBoxMovable||(aa(i,ta,t),Dt(i,Bn,s),Dt(i,vn,u))}return this}},sf=Be.Cropper,As=function(){function e(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(bh(this,e),!t||!kh.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=J({},hs,Ot(a)&&a),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return gh(e,[{key:"init",value:function(){var a=this.element,n=a.tagName.toLowerCase(),i;if(!a[Z]){if(a[Z]=this,n==="img"){if(this.isImg=!0,i=a.getAttribute("src")||"",this.originalUrl=i,!i)return;i=a.src}else n==="canvas"&&window.HTMLCanvasElement&&(i=a.toDataURL());this.load(i)}}},{key:"load",value:function(a){var n=this;if(a){this.url=a,this.imageData={};var i=this.element,s=this.options;if(!s.rotatable&&!s.scalable&&(s.checkOrientation=!1),!s.checkOrientation||!window.ArrayBuffer){this.clone();return}if(yh.test(a)){Rh.test(a)?this.read(jh(a)):this.clone();return}var u=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=u,u.onabort=c,u.onerror=c,u.ontimeout=c,u.onprogress=function(){u.getResponseHeader("content-type")!==cs&&u.abort()},u.onload=function(){n.read(u.response)},u.onloadend=function(){n.reloading=!1,n.xhr=null},s.checkCrossOrigin&&bs(a)&&i.crossOrigin&&(a=gs(a)),u.open("GET",a,!0),u.responseType="arraybuffer",u.withCredentials=i.crossOrigin==="use-credentials",u.send()}}},{key:"read",value:function(a){var n=this.options,i=this.imageData,s=Kh(a),u=0,c=1,l=1;if(s>1){this.url=zh(a,cs);var h=Zh(s);u=h.rotate,c=h.scaleX,l=h.scaleY}n.rotatable&&(i.rotate=u),n.scalable&&(i.scaleX=c,i.scaleY=l),this.clone()}},{key:"clone",value:function(){var a=this.element,n=this.url,i=a.crossOrigin,s=n;this.options.checkCrossOrigin&&bs(n)&&(i||(i="anonymous"),s=gs(n)),this.crossOrigin=i,this.crossOriginUrl=s;var u=document.createElement("img");i&&(u.crossOrigin=i),u.src=s||n,u.alt=a.alt||"The image to crop",this.image=u,u.onload=this.start.bind(this),u.onerror=this.stop.bind(this),ce(u,Jr),a.parentNode.insertBefore(u,a.nextSibling)}},{key:"start",value:function(){var a=this,n=this.image;n.onload=null,n.onerror=null,this.sizing=!0;var i=Be.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Be.navigator.userAgent),s=function(h,m){J(a.imageData,{naturalWidth:h,naturalHeight:m,aspectRatio:h/m}),a.initialImageData=J({},a.imageData),a.sizing=!1,a.sized=!0,a.build()};if(n.naturalWidth&&!i){s(n.naturalWidth,n.naturalHeight);return}var u=document.createElement("img"),c=document.body||document.documentElement;this.sizingImage=u,u.onload=function(){s(u.width,u.height),i||c.removeChild(u)},u.src=n.src,i||(u.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",c.appendChild(u))}},{key:"stop",value:function(){var a=this.image;a.onload=null,a.onerror=null,a.parentNode.removeChild(a),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var a=this.element,n=this.options,i=this.image,s=a.parentNode,u=document.createElement("div");u.innerHTML=Mh;var c=u.querySelector(".".concat(Z,"-container")),l=c.querySelector(".".concat(Z,"-canvas")),h=c.querySelector(".".concat(Z,"-drag-box")),m=c.querySelector(".".concat(Z,"-crop-box")),p=m.querySelector(".".concat(Z,"-face"));this.container=s,this.cropper=c,this.canvas=l,this.dragBox=h,this.cropBox=m,this.viewBox=c.querySelector(".".concat(Z,"-view-box")),this.face=p,l.appendChild(i),ce(a,be),s.insertBefore(c,a.nextSibling),ve(i,Jr),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,ce(m,be),n.guides||ce(m.getElementsByClassName("".concat(Z,"-dashed")),be),n.center||ce(m.getElementsByClassName("".concat(Z,"-center")),be),n.background&&ce(c,"".concat(Z,"-bg")),n.highlight||ce(p,Sh),n.cropBoxMovable&&(ce(p,vn),aa(p,ta,Pn)),n.cropBoxResizable||(ce(m.getElementsByClassName("".concat(Z,"-line")),be),ce(m.getElementsByClassName("".concat(Z,"-point")),be)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),ge(n.ready)&&xe(a,ss,n.ready,{once:!0}),Lt(a,ss)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var a=this.cropper.parentNode;a&&a.removeChild(this.cropper),ve(this.element,be)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=sf,e}},{key:"setDefaults",value:function(a){J(hs,Ot(a)&&a)}}])}();J(As.prototype,Jh,ef,tf,af,nf,rf);function uf(e,t){const a=e.split(",")||[],n=a[0].match(/:(.*?);/)[1],i=a[1]&&atob(a[1]);let s=i&&i.length;const u=new Uint8Array(s);for(;s--;)u[s]=i==null?void 0:i.charCodeAt(s);return new File([u],t,{type:n})}const of={key:0,contenteditable:"false",class:"z-10 w-[100vw] h-[100vh] bg-[rgba(0,0,0,0.7)] flex flex-col justify-center items-center fixed top-0 left-0 cursor-auto"},cf={class:"w-[700px] flex flex-col bg-white rounded pb-8"},lf={class:"flex flex-row items-center justify-between px-6 py-4 bg-[#f4f8ff]"},df={class:"flex flex-col h-full"},hf={class:"flex flex-row justify-center items-start flex-1"},ff={class:"flex flex-col items-start flex-1"},mf={class:"flex flex-col w-full px-6 py-4"},Ef={class:"flex flex-col w-full"},pf={class:"flex flex-row items-center"},Tf={class:"relative bg-[#474AFF] text-white rounded p-3"},bf={class:"flex flex-row items-start justify-between mt-3"},gf={class:"flex flex-col"},_f={class:"flex flex-col justify-center items-center border w-[300px] h-[300px]"},Af={key:0,class:"w-full text-center"},Nf=["src"],Cf={class:"flex flex-col items-center",style:{width:"300px",height:"300px"}},If={class:"text-[#999] mt-05 flex justify-center mt-4"},Sf={class:"w-full flex justify-end space-x-5 mt-5 px-6"},Of=["loading"],xf=o.defineComponent({__name:"GpCropper",emits:["cancel","ok"],setup(e,{expose:t,emit:a}){const n=a,i=o.ref({coverUrl:"",inputValue:"",uploadType:2,videoHost:"",videoUrl:""}),s=o.ref(),u=o.ref({autoCrop:!0,autoCropArea:1,background:!0,center:!0,cropBoxResizable:!0,dragMode:"move",preview:".before",toggleDragModeOnDblclick:!0,viewMode:1,zoomOnWheel:!0}),c=o.ref(!1),l=o.ref("image/jpeg"),h=o.ref({afterImg:"",image:null,myCropper:null}),m=H=>{const A=H.target.files[0];A&&(A.name&&(i.value.inputValue=A.name),p(A))};async function p(H){if(!H)return;await z();const A=URL.createObjectURL(H);h.value.image=A,h.value.image&&T(),l.value=H.type}function T(){const H=document.querySelector("#imgId");H&&H.addEventListener("load",()=>{F(),h.value.myCropper=new As(H,u.value)})}const _=o.ref(!1),C=o.ref();function L(H,A,U,Q){C.value=Q,s.value=H,H&&H.aspectRatio&&(u.value.aspectRatio=H.aspectRatio),U&&(i.value.inputValue=U),_.value=!0,A&&p(A)}function R(){_.value=!1}const V=()=>{var Q,ne;if(!h.value.myCropper)return;c.value=!0;var A=h.value.myCropper.getCroppedCanvas({height:(Q=s.value)==null?void 0:Q.height,imageSmoothingQuality:"high",width:(ne=s.value)==null?void 0:ne.width}).toDataURL(l.value);h.value.afterImg=A;const U=uf(h.value.afterImg,i.value.inputValue);n("ok",{file:U,element:C.value}),c.value=!1,z(),F(),R()};function v(){z(),F(),R(),n("cancel")}function F(){h.value.myCropper&&h.value.myCropper.destroy()}function z(){h.value.image=""}return t({handleCloseCropper:R,handleOpenCropper:L}),(H,A)=>{var U,Q,ne;return _.value?(o.openBlock(),o.createElementBlock("div",of,[o.createElementVNode("div",cf,[o.createElementVNode("div",lf,[A[1]||(A[1]=o.createElementVNode("span",{class:"text-base font-semibold text-[#333]"},"图片裁剪",-1)),o.createElementVNode("span",{class:"text-lg cursor-pointer text-[#999] iconfont icon-shanchu2",onClick:o.withModifiers(v,["stop"])})]),o.createElementVNode("div",df,[o.createElementVNode("div",hf,[o.createElementVNode("div",ff,[o.createElementVNode("div",mf,[o.createElementVNode("div",Ef,[o.createElementVNode("div",pf,[o.createElementVNode("div",Tf,[o.createElementVNode("input",{type:"file",accept:"image/*",onClick:A[0]||(A[0]=o.withModifiers(()=>{},["stop"])),contenteditable:"false",ref:"fileInput",onChange:m,class:"absolute top-0 left-0 w-[110px] h-[40px] opacity-0 cursor-pointer"},null,544),A[2]||(A[2]=o.createElementVNode("span",{id:"uploadHandler",class:"cursor-pointer"}," 选择/更换图片 ",-1))]),A[3]||(A[3]=o.createElementVNode("span",{class:"text-sm text-[#999] ml-3"},"滚动鼠标放大或缩小图片",-1))]),o.createElementVNode("div",bf,[o.createElementVNode("div",gf,[o.createElementVNode("div",_f,[h.value.image?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Af," 请上传图片 ")),o.createElementVNode("img",{id:"imgId",src:h.value.image,style:{width:"300px"}},null,8,Nf)])]),o.createElementVNode("div",Cf,[A[4]||(A[4]=o.createElementVNode("div",{class:"before w-[270px] h-[200px] pr-[70px] border"},null,-1)),o.createElementVNode("div",If," 预览画像 "+o.toDisplayString(((U=s.value)==null?void 0:U.width)||"")+" "+o.toDisplayString((Q=s.value)!=null&&Q.width?"x":"")+" "+o.toDisplayString(((ne=s.value)==null?void 0:ne.height)||""),1)])])])])])]),o.createElementVNode("div",Sf,[o.createElementVNode("span",{loading:c.value,class:"!w-22 bg-[#474AFF] text-white rounded py-2 px-6 cursor-pointer",type:"primary",onClick:V}," 确认 ",8,Of),o.createElementVNode("span",{class:"!w-22 border border-[#DEDEDE] text-[#666] rounded py-2 px-6 cursor-pointer",onClick:v},"取消")])])])])):o.createCommentVNode("",!0)}}}),Df=o.defineComponent({name:"GpModal",props:{visible:{type:Boolean,required:!0},title:{type:String,default:""},okText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},showOkButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0}},emits:["update:visible","ok","cancel"],setup(e,{emit:t}){const{visible:a,okText:n,cancelText:i,showCloseButton:s}=o.toRefs(e);return{visible:a,okText:n,cancelText:i,showCloseButton:s,onClose:()=>{t("cancel"),t("update:visible",!1)},onOk:()=>{t("ok"),t("update:visible",!1)},onCancel:()=>{t("cancel"),t("update:visible",!1)}}}}),Lf={class:"bg-white rounded-lg shadow-xl w-ful"},yf={class:"p-4 border-b border-gray-200 relative flex items-center justify-between"},Rf={key:0,class:"text-lg font-semibold"},kf={class:"p-4"},Mf={key:0,class:"p-4 border-t border-gray-200 flex justify-end space-x-2"};function wf(e,t,a,n,i,s){return e.visible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fixed inset-0 z-[99999] flex items-center justify-center bg-gray-900 bg-opacity-50",onClick:t[3]||(t[3]=o.withModifiers((...u)=>e.onClose&&e.onClose(...u),["self"]))},[o.createElementVNode("div",Lf,[o.createElementVNode("div",yf,[e.title?(o.openBlock(),o.createElementBlock("h3",Rf,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"header"),e.showCloseButton?(o.openBlock(),o.createElementBlock("button",{key:1,class:"text-gray-400 hover:text-gray-600",onClick:t[0]||(t[0]=(...u)=>e.onClose&&e.onClose(...u)),"aria-label":"Close"},t[4]||(t[4]=[o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]))):o.createCommentVNode("",!0)]),o.createElementVNode("div",kf,[o.renderSlot(e.$slots,"default")]),e.showCancelButton||e.showOkButton?(o.openBlock(),o.createElementBlock("div",Mf,[o.renderSlot(e.$slots,"footer",{},()=>[e.showCancelButton?(o.openBlock(),o.createElementBlock("button",{key:0,class:"px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded hover:bg-gray-200",onClick:t[1]||(t[1]=(...u)=>e.onCancel&&e.onCancel(...u))},o.toDisplayString(e.cancelText),1)):o.createCommentVNode("",!0),e.showOkButton?(o.openBlock(),o.createElementBlock("button",{key:1,class:"px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded hover:bg-blue-700",onClick:t[2]||(t[2]=(...u)=>e.onOk&&e.onOk(...u))},o.toDisplayString(e.okText),1)):o.createCommentVNode("",!0)])])):o.createCommentVNode("",!0)])])):o.createCommentVNode("",!0)}const Pf=ot(Df,[["render",wf]]),Bf={class:"p-4 flex flex-wrap max-h-[500px] overflow-y-auto w-[640px]"},vf=["onClick"],Uf=o.defineComponent({__name:"GpIcon",props:{icons:{type:Array,default:()=>[]}},emits:["ok"],setup(e,{expose:t,emit:a}){const n=e,i=a,s=o.ref(n.icons||[]);o.watch(()=>n.icons,p=>{s.value=p||[]},{immediate:!0});const u=o.ref(!1),c=o.ref();function l(p){u.value=!0,c.value=p}function h(p){m(),i("ok",{icon:p,element:c.value})}function m(){u.value=!1}return t({openModal:l,closeModal:m}),(p,T)=>(o.openBlock(),o.createBlock(Pf,{visible:u.value,"onUpdate:visible":T[0]||(T[0]=_=>u.value=_),title:"选择图标",onOk:m,onCancel:m,showCancelButton:!1,showOkButton:!1},{default:o.withCtx(()=>[o.createElementVNode("div",Bf,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,_=>(o.openBlock(),o.createElementBlock("span",{key:_,onClick:o.withModifiers(C=>h(_),["stop"]),style:{position:"unset",color:"unset",top:"unset",left:"unset",right:"unset",transform:"unset","font-size":"unset"},class:o.normalizeClass(["w-12 h-12 mx-1 mb-2 border cursor-pointer hover:border-gray-400 hover:bg-gray-200",`iconfont icon-${_} text-4xl overflow-hidden flex justify-center items-center`])},null,10,vf))),128))])]),_:1},8,["visible"]))}}),Ff=o.defineComponent({name:"GpImageUpload",props:{accept:{type:String,default:"image/*"},multiple:{type:Boolean,default:!1},maxCount:{type:Number,default:1/0},beforeUpload:Function,onChange:Function,showList:{type:Boolean,default:!1},show:{type:Boolean,default:!0}},setup(e,{emit:t}){const a=o.ref(null),n=o.ref([]),i=o.ref(),s=o.ref(e.show);o.watch(()=>e.show,m=>{s.value=m},{immediate:!0});const u=()=>{var m;(m=a.value)==null||m.click()},c=async m=>{var C;const T=m.target.files;if(!T)return;const _=[];for(let L=0;L<T.length;L++){const R=T[L];if(e.beforeUpload&&await e.beforeUpload(R)===!1)continue;const V=`${Date.now()}-${R.name}`,v=URL.createObjectURL(R),F=document.createElement("img");F.src=v,document.body.appendChild(F),await new Promise(A=>{F.onload=A});const z=F.width,H=F.height;document.body.removeChild(F),_.push({uid:V,name:R.name,status:"uploading",thumbUrl:v,file:R,width:z,height:H})}e.maxCount&&n.value.length+_.length>e.maxCount&&_.splice(e.maxCount-n.value.length),e.multiple?n.value=[...n.value,..._]:n.value=_.slice(0,1),(C=e.onChange)==null||C.call(e,n.value,i.value),t("update:fileList",n.value),a.value&&(a.value.value="")},l=m=>{var p;n.value=n.value.filter(T=>T.uid!==m),(p=e.onChange)==null||p.call(e,n.value,i.value)};function h(m){i.value=m,u()}return{isShow:s,openModal:h,inputRef:a,fileList:n,triggerInput:u,handleChange:c,removeFile:l}}}),Hf={class:"upload-wrapper"},Vf=["accept","multiple"],Yf={key:1,class:"file-list mt-4"},qf={class:"flex items-center space-x-4"},Wf=["src"],$f=["onClick"];function Gf(e,t,a,n,i,s){return o.openBlock(),o.createElementBlock("div",Hf,[e.isShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"",onClick:t[0]||(t[0]=(...u)=>e.triggerInput&&e.triggerInput(...u))},[o.renderSlot(e.$slots,"upload-icon",{},()=>[t[2]||(t[2]=o.createElementVNode("div",{class:"upload-area border-dashed border-2 p-6 rounded cursor-pointer hover:border-blue-500"},[o.createElementVNode("div",{class:"text-gray-400 text-lg text-center"}," 点击或拖拽上传图片 ")],-1))],!0)])):o.createCommentVNode("",!0),o.createElementVNode("input",{type:"file",ref:"inputRef",class:"hidden",accept:e.accept,multiple:e.multiple,onChange:t[1]||(t[1]=(...u)=>e.handleChange&&e.handleChange(...u))},null,40,Vf),e.showList?(o.openBlock(),o.createElementBlock("div",Yf,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.fileList,u=>(o.openBlock(),o.createElementBlock("div",{key:u.uid,class:"file-item flex items-center justify-between p-2 border rounded mb-2"},[o.createElementVNode("div",qf,[u.thumbUrl?(o.openBlock(),o.createElementBlock("img",{key:0,src:u.thumbUrl,alt:"preview",class:"w-12 h-12 object-cover rounded"},null,8,Wf)):o.createCommentVNode("",!0),o.createElementVNode("span",null,o.toDisplayString(u.name),1)]),o.createElementVNode("div",null,[o.createElementVNode("button",{onClick:c=>e.removeFile(u.uid),class:"text-red-500 hover:underline"}," 删除 ",8,$f)])]))),128))])):o.createCommentVNode("",!0)])}const Xf=ot(Ff,[["render",Gf],["__scopeId","data-v-08babff9"]]),Qf={class:"flex gp-dsigner"},jf={key:0,class:"text-lg font-bold border-b p-2"},zf={class:"text-sm font-thin text-gray-500"},Kf=["innerHTML"],Zf=["innerHTML"],Jf={class:"flex-1"},em={key:0,class:"text-lg font-bold border-b p-2"},tm={class:"p-2"},am={class:"sticky top-0"},nm={key:0,class:"text-lg font-bold border-b p-2"},im={class:"text-sm font-thin text-gray-500"},rm={class:"p-2"},Ns=ot(o.defineComponent({__name:"Designer",props:{mode:{default:"design"},template:{},css:{},js:{},previewWidth:{default:375},uploadByFile:{},icons:{},rules:{},preview:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0}},emits:["update:modelValue","update:element"],setup(e,{emit:t}){const a=e,n=t,i=o.ref(a.template),s=o.ref();let u=Yr("",{},!1);const c=o.ref("");o.watch(()=>a.template,O=>{i.value=O},{immediate:!0}),o.watch(()=>i.value,O=>{O&&(s.value=A(O))},{immediate:!0}),o.watch(()=>a.css,O=>{O.forEach(x=>{if(document.querySelector(`link[href="${x}"]`))return;const y=document.createElement("link");y.rel="stylesheet",y.href=x,document.head.appendChild(y)})},{immediate:!0}),o.watch(()=>a.js,O=>{!O||O.length===0||O.forEach(x=>{if(document.querySelector(`script[src="${x}"]`))return;const y=document.createElement("script");y.src=x,document.body.appendChild(y)})},{immediate:!0});const l=o.ref(a.mode);o.watch(()=>s.value,O=>{O&&n("update:element",O)},{immediate:!0});const h=o.ref("");o.watch(()=>c.value,O=>{n("update:modelValue",O)},{immediate:!0});const m=o.ref(),p=o.ref(),T=o.ref(),_=o.ref(),C=o.ref(),L=o.ref("");function R(O){_.value=O}function V(O,x=""){if(x){const y=v(s.value,x);y?C.value=y:C.value=O}else C.value=O}function v(O,x){if(O.xpath===x)return O;if(O.children&&O.children.length)for(const y of O.children){const P=v(y,x);if(P)return P}}function F(O,x){var y,P;return O.tag===x.tag&&((y=O.children)==null?void 0:y.length)===((P=x.children)==null?void 0:P.length)}function z(O){if(_.value.xpath==O.xpath){if(_.value){if(O.type===q.Block){var x=!0;const y=v(s.value,_.value.parentxpath||"");if(y&&y.children&&y.children.forEach(P=>{if(P.tag!=_.value.tag||!F(P,_.value)){x=!1;return}}),!x){W.error("同级结构不一致,错误配置!");return}}if(_.value.rule=O.rule,_.value.type=O.type,_.value.type===q.Block){const y=v(s.value,_.value.parentxpath||"");y&&y.children&&(y.children.forEach(P=>{if(P.tag!=_.value.tag||!F(P,_.value)){W.error("同级结构不一致,无法配置为块类型");return}}),y.children.forEach(P=>{P.tag===_.value.tag&&(P.rule=O.rule,P.type=O.type)}))}}h.value=new Date().getTime().toString(),W.success("保存成功")}}function H(O){c.value=O}function A(O){u=Yr(O);const x=u("body").children().toArray().map(y=>U(u(y)));return c.value=u("body").html()||"",x[0]}function U(O,x=""){var Et;function y(Ie){if(!Ie||!Ie[0])return"";const _e=[];let pt=Ie;for(;pt.length&&pt[0].tagName!=="html";){const Cs=pt[0].tagName,um=pt.parent().children(Cs).index(pt)+1;_e.unshift(`${Cs}[${um}]`),pt=pt.parent()}return"/html/"+_e.join("/")}const P=y(O).replace("/html/body[1]",""),fe=O.children().toArray().map(Ie=>U(u(Ie),P)),Fe=(Et=a.rules)==null?void 0:Et.find(Ie=>Ie.xpath===P);return{tag:O[0].tagName,text:O.contents().not(O.children()).text().trim(),attrs:O[0].attribs,children:fe,xpath:P,parentxpath:x,type:(Fe==null?void 0:Fe.type)||q.None,rule:(Fe==null?void 0:Fe.rule)||{}}}function Q(O){console.log("更新子节点的文本",O);const x=v(s.value,O.element.xpath);if(x){const y=o.toRaw(x);y.editText=O.newText}}function ne(O,x=""){function y(P,fe){var Ie;const Et=(fe?((Ie=v(s.value,fe))==null?void 0:Ie.children)||[]:[s.value]).filter(_e=>_e.tag===P.tag).indexOf(P)+1;return`${fe}/${P.tag}[${Et}]`}O.xpath=y(O,x),O.parentxpath=x,(O.children||[]).forEach(P=>ne(P,O.xpath))}function Ne({action:O,element:x,newBlock:y}){const P=v(s.value,x.parentxpath||"");if(!P||!P.children)return;const fe=P.children.findIndex(_e=>_e===x);if(fe===-1){W.error("未找到元素");return}const Fe=P.children.length,{minBlock:Et,maxBlock:Ie}=x.rule;if((O==="add"||O==="copy")&&Fe>=(Ie||1/0)){L.value=`无法添加更多块。最大块数量为 ${Ie}`,W.error(L.value);return}switch(O){case"add":if(y){const _e={...y,xpath:"",children:JSON.parse(JSON.stringify(y.children))};P.children.splice(fe+1,0,_e),W.success("添加成功")}break;case"copy":if(y){const _e={...y,xpath:"",children:JSON.parse(JSON.stringify(y.children))};P.children.splice(fe+1,0,_e),W.success("复制成功")}break;case"moveUp":if(fe>0){const[_e]=P.children.splice(fe,1);P.children.splice(fe-1,0,_e),W.success("前移成功")}else W.error("已经是第一个块,无法前移");break;case"moveDown":if(fe<P.children.length-1){const[_e]=P.children.splice(fe,1);P.children.splice(fe+1,0,_e),W.success("后移成功")}else W.error("已经是最后一个块,无法后移");break;case"delete":if(Fe<=(Et||0)){L.value=`无法删除更多块。最小块数量为 ${Et}`,W.error(L.value);return}P.children.splice(fe,1),W.success("删除成功");break}L.value="",ne(s.value)}function Re(O,x){let y=x.attrs.class.replace(/icon-\S+/g,`icon-${O}`);x.attrs.class=y}function ke(O){const x=O.file,y=v(s.value,O.element.xpath);if(a.uploadByFile)a.uploadByFile(x).then(P=>{P.success&&(y.attrs.src=P.file.url,h.value=new Date().getTime().toString())});else{y.attrs.alt=x.name;const P=URL.createObjectURL(x);y.attrs.src=P,h.value=new Date().getTime().toString()}}function Ce(O){const{icon:x}=O,y=v(s.value,O.element.xpath);let P=y.attrs.class.replace(/icon-\S+/g,`icon-${x}`);y.attrs.class=P,h.value=new Date().getTime().toString()}const me=O=>O.type.startsWith("image/")?!0:(W.error("只能上传图片文件"),!1),D=o.ref({});function w(O,x){if(!O||O.length===0)return;const y=O[0];if(x.rule&&(x.rule.minImageWidth||x.rule.maxImageHeight)){if(x.rule.minImageWidth&&y.width<x.rule.minImageWidth){W.error(`图片宽度不能小于 ${x.rule.minImageWidth}px`);return}if(x.rule.maxImageHeight&&y.height<x.rule.maxImageHeight){W.error(`图片高度不能小于 ${x.rule.maxImageHeight}px`);return}}x.rule.minImageWidth&&x.rule.maxImageHeight?(D.value.width=x.rule.minImageWidth,D.value.height=x.rule.maxImageHeight,D.value.aspectRatio=x.rule.minImageWidth/x.rule.maxImageHeight):D.value={},y&&(x.rule.crop?(y.thumbUrl,m.value.handleOpenCropper(D.value,y.file,y.name,x)):a.uploadByFile?a.uploadByFile(y.file).then(P=>{P.success&&(x.attrs.src=P.file.url,h.value=new Date().getTime().toString())}):(x.attrs.src=y.thumbUrl,h.value=new Date().getTime().toString()))}const ee=o.ref(a.previewWidth),te=o.ref(375);let he=o.ref(!1),Ue=o.ref(""),ht=0,qe=0;function ft(O){Ue.value=O,he.value=!0,ht=event.clientX,O==="preview"?qe=ee.value:O==="structure"&&(qe=te.value),window.addEventListener("mousemove",mt),window.addEventListener("mouseup",et)}function mt(O){if(!he.value)return;const x=O.clientX-ht;Ue.value==="preview"?ee.value=Math.max(200,qe+x):Ue.value==="structure"&&(te.value=Math.max(200,qe-x))}function et(){he.value=!1,Ue.value="",window.removeEventListener("mousemove",mt),window.removeEventListener("mouseup",et)}return(O,x)=>(o.openBlock(),o.createElementBlock("div",Qf,[O.preview?(o.openBlock(),o.createElementBlock("div",{key:0,class:"border-l overflow-auto resize-area",style:o.normalizeStyle({width:ee.value+"px"})},[O.showTitle?(o.openBlock(),o.createElementBlock("h2",jf,[x[2]||(x[2]=o.createTextVNode(" 实时预览 ")),o.createElementVNode("span",zf,o.toDisplayString(ee.value)+"px",1)])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[c.value?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:c.value},null,8,Kf)):(o.openBlock(),o.createElementBlock("div",{key:1,innerHTML:o.unref(u)("body").html()},null,8,Zf))])],4)):o.createCommentVNode("",!0),O.preview?(o.openBlock(),o.createElementBlock("div",{key:1,class:"resizer",onMousedown:x[0]||(x[0]=y=>ft("preview"))},null,32)):o.createCommentVNode("",!0),o.createElementVNode("div",Jf,[O.showTitle?(o.openBlock(),o.createElementBlock("h2",em,"结构渲染")):o.createCommentVNode("",!0),o.createElementVNode("div",tm,[s.value?(o.openBlock(),o.createBlock(vd,{key:0,"upload-by-file":O.uploadByFile,cropper:m.value,icon:p.value,upload:T.value,mode:O.mode,icons:O.icons,r:h.value,element:s.value,selectedElement:_.value,hoveredElement:C.value,onSelectElement:R,onHoverElement:V,onContentUpdated:H,onUpdateText:Q,onBlockAction:Ne,onAddIcon:Re},null,8,["upload-by-file","cropper","icon","upload","mode","icons","r","element","selectedElement","hoveredElement"])):o.createCommentVNode("",!0)])]),l.value=="design"?(o.openBlock(),o.createElementBlock("div",{key:2,class:"resizer",onMousedown:x[1]||(x[1]=y=>ft("structure"))},null,32)):o.createCommentVNode("",!0),l.value=="design"?(o.openBlock(),o.createElementBlock("div",{key:3,class:"resize-area",style:o.normalizeStyle({width:te.value+"px"})},[o.createElementVNode("div",am,[O.showTitle?(o.openBlock(),o.createElementBlock("h2",nm,[x[3]||(x[3]=o.createTextVNode(" 节点属性 ")),o.createElementVNode("span",im,o.toDisplayString(te.value)+"px",1)])):o.createCommentVNode("",!0),o.createElementVNode("div",rm,[_.value?(o.openBlock(),o.createBlock(ph,{key:0,element:_.value,onUpdateElement:z},null,8,["element"])):o.createCommentVNode("",!0)])])],4)):o.createCommentVNode("",!0),o.createVNode(xf,{ref_key:"cropperRef",ref:m,onOk:ke},null,512),o.createVNode(Uf,{icons:O.icons,ref_key:"iconRef",ref:p,onOk:Ce},null,8,["icons"]),o.createVNode(Xf,{ref_key:"uploadRef",ref:T,multiple:!1,show:!1,beforeUpload:me,onChange:w},{"upload-icon":o.withCtx(()=>x[4]||(x[4]=[o.createElementVNode("div",{class:"p-2"},"上传",-1)])),_:1},512)]))}}),[["__scopeId","data-v-6ef13854"]]),sm={install(e){e.component("Designer",Ns)}};We.Designer=Ns,We.default=sm,Object.defineProperties(We,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
16
+ */function io(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(A,n).enumerable})),t.push.apply(t,r)}return t}function uo(A){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?io(Object(t),!0).forEach(function(r){PE(A,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):io(Object(t)).forEach(function(r){Object.defineProperty(A,r,Object.getOwnPropertyDescriptor(t,r))})}return A}function RE(A,e){if(typeof A!="object"||!A)return A;var t=A[Symbol.toPrimitive];if(t!==void 0){var r=t.call(A,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(A)}function oo(A){var e=RE(A,"string");return typeof e=="symbol"?e:e+""}function $a(A){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$a(A)}function ME(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function co(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,oo(r.key),r)}}function kE(A,e,t){return e&&co(A.prototype,e),t&&co(A,t),Object.defineProperty(A,"prototype",{writable:!1}),A}function PE(A,e,t){return e=oo(e),e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function lo(A){return KE(A)||VE(A)||GE(A)||YE()}function KE(A){if(Array.isArray(A))return ja(A)}function VE(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}function GE(A,e){if(A){if(typeof A=="string")return ja(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);if(t==="Object"&&A.constructor&&(t=A.constructor.name),t==="Map"||t==="Set")return Array.from(A);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ja(A,e)}}function ja(A,e){(e==null||e>A.length)&&(e=A.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=A[t];return r}function YE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var sn=typeof window<"u"&&typeof window.document<"u",de=sn?window:{},za=sn&&de.document.documentElement?"ontouchstart"in de.document.documentElement:!1,As=sn?"PointerEvent"in de:!1,hA="cropper",es="all",fo="crop",ho="move",Bo="zoom",et="e",tt="w",Ct="s",He="n",rr="ne",nr="nw",ar="se",sr="sw",ts="".concat(hA,"-crop"),go="".concat(hA,"-disabled"),YA="".concat(hA,"-hidden"),Eo="".concat(hA,"-hide"),XE="".concat(hA,"-invisible"),un="".concat(hA,"-modal"),rs="".concat(hA,"-move"),ir="".concat(hA,"Action"),on="".concat(hA,"Preview"),ns="crop",po="move",Co="none",as="crop",ss="cropend",is="cropmove",us="cropstart",mo="dblclick",WE=za?"touchstart":"mousedown",JE=za?"touchmove":"mousemove",qE=za?"touchend touchcancel":"mouseup",wo=As?"pointerdown":WE,To=As?"pointermove":JE,bo=As?"pointerup pointercancel":qE,Uo="ready",Qo="resize",Fo="wheel",os="zoom",Io="image/jpeg",ZE=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,$E=/^data:/,jE=/^data:image\/jpeg;base64,/,zE=/^img|canvas$/i,_o=200,yo=100,No={viewMode:0,dragMode:ns,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:_o,minContainerHeight:yo,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Ap='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',ep=Number.isNaN||de.isNaN;function $(A){return typeof A=="number"&&!ep(A)}var So=function(e){return e>0&&e<1/0};function cs(A){return typeof A>"u"}function rt(A){return $a(A)==="object"&&A!==null}var tp=Object.prototype.hasOwnProperty;function mt(A){if(!rt(A))return!1;try{var e=A.constructor,t=e.prototype;return e&&t&&tp.call(t,"isPrototypeOf")}catch{return!1}}function XA(A){return typeof A=="function"}var rp=Array.prototype.slice;function vo(A){return Array.from?Array.from(A):rp.call(A)}function CA(A,e){return A&&XA(e)&&(Array.isArray(A)||$(A.length)?vo(A).forEach(function(t,r){e.call(A,t,r,A)}):rt(A)&&Object.keys(A).forEach(function(t){e.call(A,A[t],t,A)})),A}var dA=Object.assign||function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return rt(e)&&r.length>0&&r.forEach(function(a){rt(a)&&Object.keys(a).forEach(function(s){e[s]=a[s]})}),e},np=/\.\d*(?:0|9){12}\d*$/;function wt(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return np.test(A)?Math.round(A*e)/e:A}var ap=/^width|height|left|top|marginLeft|marginTop$/;function xe(A,e){var t=A.style;CA(e,function(r,n){ap.test(n)&&$(r)&&(r="".concat(r,"px")),t[n]=r})}function sp(A,e){return A.classList?A.classList.contains(e):A.className.indexOf(e)>-1}function yA(A,e){if(e){if($(A.length)){CA(A,function(r){yA(r,e)});return}if(A.classList){A.classList.add(e);return}var t=A.className.trim();t?t.indexOf(e)<0&&(A.className="".concat(t," ").concat(e)):A.className=e}}function Be(A,e){if(e){if($(A.length)){CA(A,function(t){Be(t,e)});return}if(A.classList){A.classList.remove(e);return}A.className.indexOf(e)>=0&&(A.className=A.className.replace(e,""))}}function Tt(A,e,t){if(e){if($(A.length)){CA(A,function(r){Tt(r,e,t)});return}t?yA(A,e):Be(A,e)}}var ip=/([a-z\d])([A-Z])/g;function ls(A){return A.replace(ip,"$1-$2").toLowerCase()}function fs(A,e){return rt(A[e])?A[e]:A.dataset?A.dataset[e]:A.getAttribute("data-".concat(ls(e)))}function ur(A,e,t){rt(t)?A[e]=t:A.dataset?A.dataset[e]=t:A.setAttribute("data-".concat(ls(e)),t)}function up(A,e){if(rt(A[e]))try{delete A[e]}catch{A[e]=void 0}else if(A.dataset)try{delete A.dataset[e]}catch{A.dataset[e]=void 0}else A.removeAttribute("data-".concat(ls(e)))}var Lo=/\s\s*/,Ho=function(){var A=!1;if(sn){var e=!1,t=function(){},r=Object.defineProperty({},"once",{get:function(){return A=!0,e},set:function(a){e=a}});de.addEventListener("test",t,r),de.removeEventListener("test",t,r)}return A}();function ie(A,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=t;e.trim().split(Lo).forEach(function(a){if(!Ho){var s=A.listeners;s&&s[a]&&s[a][t]&&(n=s[a][t],delete s[a][t],Object.keys(s[a]).length===0&&delete s[a],Object.keys(s).length===0&&delete A.listeners)}A.removeEventListener(a,n,r)})}function Ae(A,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=t;e.trim().split(Lo).forEach(function(a){if(r.once&&!Ho){var s=A.listeners,u=s===void 0?{}:s;n=function(){delete u[a][t],A.removeEventListener(a,n,r);for(var c=arguments.length,f=new Array(c),h=0;h<c;h++)f[h]=arguments[h];t.apply(A,f)},u[a]||(u[a]={}),u[a][t]&&A.removeEventListener(a,u[a][t],r),u[a][t]=n,A.listeners=u}A.addEventListener(a,n,r)})}function bt(A,e,t){var r;return XA(Event)&&XA(CustomEvent)?r=new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,!0,!0,t)),A.dispatchEvent(r)}function xo(A){var e=A.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var hs=de.location,op=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function Do(A){var e=A.match(op);return e!==null&&(e[1]!==hs.protocol||e[2]!==hs.hostname||e[3]!==hs.port)}function Oo(A){var e="timestamp=".concat(new Date().getTime());return A+(A.indexOf("?")===-1?"?":"&")+e}function or(A){var e=A.rotate,t=A.scaleX,r=A.scaleY,n=A.translateX,a=A.translateY,s=[];$(n)&&n!==0&&s.push("translateX(".concat(n,"px)")),$(a)&&a!==0&&s.push("translateY(".concat(a,"px)")),$(e)&&e!==0&&s.push("rotate(".concat(e,"deg)")),$(t)&&t!==1&&s.push("scaleX(".concat(t,")")),$(r)&&r!==1&&s.push("scaleY(".concat(r,")"));var u=s.length?s.join(" "):"none";return{WebkitTransform:u,msTransform:u,transform:u}}function cp(A){var e=uo({},A),t=0;return CA(A,function(r,n){delete e[n],CA(e,function(a){var s=Math.abs(r.startX-a.startX),u=Math.abs(r.startY-a.startY),o=Math.abs(r.endX-a.endX),c=Math.abs(r.endY-a.endY),f=Math.sqrt(s*s+u*u),h=Math.sqrt(o*o+c*c),d=(h-f)/f;Math.abs(d)>Math.abs(t)&&(t=d)})}),t}function cn(A,e){var t=A.pageX,r=A.pageY,n={endX:t,endY:r};return e?n:uo({startX:t,startY:r},n)}function lp(A){var e=0,t=0,r=0;return CA(A,function(n){var a=n.startX,s=n.startY;e+=a,t+=s,r+=1}),e/=r,t/=r,{pageX:e,pageY:t}}function De(A){var e=A.aspectRatio,t=A.height,r=A.width,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=So(r),s=So(t);if(a&&s){var u=t*e;n==="contain"&&u>r||n==="cover"&&u<r?t=r/e:r=t*e}else a?t=r/e:s&&(r=t*e);return{width:r,height:t}}function fp(A){var e=A.width,t=A.height,r=A.degree;if(r=Math.abs(r)%180,r===90)return{width:t,height:e};var n=r%90*Math.PI/180,a=Math.sin(n),s=Math.cos(n),u=e*s+t*a,o=e*a+t*s;return r>90?{width:o,height:u}:{width:u,height:o}}function hp(A,e,t,r){var n=e.aspectRatio,a=e.naturalWidth,s=e.naturalHeight,u=e.rotate,o=u===void 0?0:u,c=e.scaleX,f=c===void 0?1:c,h=e.scaleY,d=h===void 0?1:h,m=t.aspectRatio,C=t.naturalWidth,T=t.naturalHeight,F=r.fillColor,Q=F===void 0?"transparent":F,I=r.imageSmoothingEnabled,H=I===void 0?!0:I,M=r.imageSmoothingQuality,y=M===void 0?"low":M,p=r.maxWidth,L=p===void 0?1/0:p,k=r.maxHeight,O=k===void 0?1/0:k,AA=r.minWidth,oA=AA===void 0?0:AA,cA=r.minHeight,W=cA===void 0?0:cA,tA=document.createElement("canvas"),R=tA.getContext("2d"),P=De({aspectRatio:m,width:L,height:O}),z=De({aspectRatio:m,width:oA,height:W},"cover"),rA=Math.min(P.width,Math.max(z.width,C)),lA=Math.min(P.height,Math.max(z.height,T)),UA=De({aspectRatio:n,width:L,height:O}),HA=De({aspectRatio:n,width:oA,height:W},"cover"),RA=Math.min(UA.width,Math.max(HA.width,a)),QA=Math.min(UA.height,Math.max(HA.height,s)),PA=[-RA/2,-QA/2,RA,QA];return tA.width=wt(rA),tA.height=wt(lA),R.fillStyle=Q,R.fillRect(0,0,rA,lA),R.save(),R.translate(rA/2,lA/2),R.rotate(o*Math.PI/180),R.scale(f,d),R.imageSmoothingEnabled=H,R.imageSmoothingQuality=y,R.drawImage.apply(R,[A].concat(lo(PA.map(function(wA){return Math.floor(wt(wA))})))),R.restore(),tA}var Ro=String.fromCharCode;function dp(A,e,t){var r="";t+=e;for(var n=e;n<t;n+=1)r+=Ro(A.getUint8(n));return r}var Bp=/^data:.*,/;function gp(A){var e=A.replace(Bp,""),t=atob(e),r=new ArrayBuffer(t.length),n=new Uint8Array(r);return CA(n,function(a,s){n[s]=t.charCodeAt(s)}),r}function Ep(A,e){for(var t=[],r=8192,n=new Uint8Array(A);n.length>0;)t.push(Ro.apply(null,vo(n.subarray(0,r)))),n=n.subarray(r);return"data:".concat(e,";base64,").concat(btoa(t.join("")))}function pp(A){var e=new DataView(A),t;try{var r,n,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var s=e.byteLength,u=2;u+1<s;){if(e.getUint8(u)===255&&e.getUint8(u+1)===225){n=u;break}u+=1}if(n){var o=n+4,c=n+10;if(dp(e,o,4)==="Exif"){var f=e.getUint16(c);if(r=f===18761,(r||f===19789)&&e.getUint16(c+2,r)===42){var h=e.getUint32(c+4,r);h>=8&&(a=c+h)}}}if(a){var d=e.getUint16(a,r),m,C;for(C=0;C<d;C+=1)if(m=a+C*12+2,e.getUint16(m,r)===274){m+=8,t=e.getUint16(m,r),e.setUint16(m,1,r);break}}}catch{t=1}return t}function Cp(A){var e=0,t=1,r=1;switch(A){case 2:t=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,t=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:t,scaleY:r}}var mp={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,r=this.container,n=this.cropper,a=Number(t.minContainerWidth),s=Number(t.minContainerHeight);yA(n,YA),Be(e,YA);var u={width:Math.max(r.offsetWidth,a>=0?a:_o),height:Math.max(r.offsetHeight,s>=0?s:yo)};this.containerData=u,xe(n,{width:u.width,height:u.height}),yA(e,YA),Be(n,YA)},initCanvas:function(){var e=this.containerData,t=this.imageData,r=this.options.viewMode,n=Math.abs(t.rotate)%180===90,a=n?t.naturalHeight:t.naturalWidth,s=n?t.naturalWidth:t.naturalHeight,u=a/s,o=e.width,c=e.height;e.height*u>e.width?r===3?o=e.height*u:c=e.width/u:r===3?c=e.width/u:o=e.height*u;var f={aspectRatio:u,naturalWidth:a,naturalHeight:s,width:o,height:c};this.canvasData=f,this.limited=r===1||r===2,this.limitCanvas(!0,!0),f.width=Math.min(Math.max(f.width,f.minWidth),f.maxWidth),f.height=Math.min(Math.max(f.height,f.minHeight),f.maxHeight),f.left=(e.width-f.width)/2,f.top=(e.height-f.height)/2,f.oldLeft=f.left,f.oldTop=f.top,this.initialCanvasData=dA({},f)},limitCanvas:function(e,t){var r=this.options,n=this.containerData,a=this.canvasData,s=this.cropBoxData,u=r.viewMode,o=a.aspectRatio,c=this.cropped&&s;if(e){var f=Number(r.minCanvasWidth)||0,h=Number(r.minCanvasHeight)||0;u>1?(f=Math.max(f,n.width),h=Math.max(h,n.height),u===3&&(h*o>f?f=h*o:h=f/o)):u>0&&(f?f=Math.max(f,c?s.width:0):h?h=Math.max(h,c?s.height:0):c&&(f=s.width,h=s.height,h*o>f?f=h*o:h=f/o));var d=De({aspectRatio:o,width:f,height:h});f=d.width,h=d.height,a.minWidth=f,a.minHeight=h,a.maxWidth=1/0,a.maxHeight=1/0}if(t)if(u>(c?0:1)){var m=n.width-a.width,C=n.height-a.height;a.minLeft=Math.min(0,m),a.minTop=Math.min(0,C),a.maxLeft=Math.max(0,m),a.maxTop=Math.max(0,C),c&&this.limited&&(a.minLeft=Math.min(s.left,s.left+(s.width-a.width)),a.minTop=Math.min(s.top,s.top+(s.height-a.height)),a.maxLeft=s.left,a.maxTop=s.top,u===2&&(a.width>=n.width&&(a.minLeft=Math.min(0,m),a.maxLeft=Math.max(0,m)),a.height>=n.height&&(a.minTop=Math.min(0,C),a.maxTop=Math.max(0,C))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=n.width,a.maxTop=n.height},renderCanvas:function(e,t){var r=this.canvasData,n=this.imageData;if(t){var a=fp({width:n.naturalWidth*Math.abs(n.scaleX||1),height:n.naturalHeight*Math.abs(n.scaleY||1),degree:n.rotate||0}),s=a.width,u=a.height,o=r.width*(s/r.naturalWidth),c=r.height*(u/r.naturalHeight);r.left-=(o-r.width)/2,r.top-=(c-r.height)/2,r.width=o,r.height=c,r.aspectRatio=s/u,r.naturalWidth=s,r.naturalHeight=u,this.limitCanvas(!0,!1)}(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCanvas(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,xe(this.canvas,dA({width:r.width,height:r.height},or({translateX:r.left,translateY:r.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,r=this.imageData,n=r.naturalWidth*(t.width/t.naturalWidth),a=r.naturalHeight*(t.height/t.naturalHeight);dA(r,{width:n,height:a,left:(t.width-n)/2,top:(t.height-a)/2}),xe(this.image,dA({width:r.width,height:r.height},or(dA({translateX:r.left,translateY:r.top},r)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,r=e.aspectRatio||e.initialAspectRatio,n=Number(e.autoCropArea)||.8,a={width:t.width,height:t.height};r&&(t.height*r>t.width?a.height=a.width/r:a.width=a.height*r),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*n),a.height=Math.max(a.minHeight,a.height*n),a.left=t.left+(t.width-a.width)/2,a.top=t.top+(t.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=dA({},a)},limitCropBox:function(e,t){var r=this.options,n=this.containerData,a=this.canvasData,s=this.cropBoxData,u=this.limited,o=r.aspectRatio;if(e){var c=Number(r.minCropBoxWidth)||0,f=Number(r.minCropBoxHeight)||0,h=u?Math.min(n.width,a.width,a.width+a.left,n.width-a.left):n.width,d=u?Math.min(n.height,a.height,a.height+a.top,n.height-a.top):n.height;c=Math.min(c,n.width),f=Math.min(f,n.height),o&&(c&&f?f*o>c?f=c/o:c=f*o:c?f=c/o:f&&(c=f*o),d*o>h?d=h/o:h=d*o),s.minWidth=Math.min(c,h),s.minHeight=Math.min(f,d),s.maxWidth=h,s.maxHeight=d}t&&(u?(s.minLeft=Math.max(0,a.left),s.minTop=Math.max(0,a.top),s.maxLeft=Math.min(n.width,a.left+a.width)-s.width,s.maxTop=Math.min(n.height,a.top+a.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=n.width-s.width,s.maxTop=n.height-s.height))},renderCropBox:function(){var e=this.options,t=this.containerData,r=this.cropBoxData;(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCropBox(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,e.movable&&e.cropBoxMovable&&ur(this.face,ir,r.width>=t.width&&r.height>=t.height?ho:es),xe(this.cropBox,dA({width:r.width,height:r.height},or({translateX:r.left,translateY:r.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),bt(this.element,as,this.getData())}},wp={initPreview:function(){var e=this.element,t=this.crossOrigin,r=this.options.preview,n=t?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",s=document.createElement("img");if(t&&(s.crossOrigin=t),s.src=n,s.alt=a,this.viewBox.appendChild(s),this.viewBoxImage=s,!!r){var u=r;typeof r=="string"?u=e.ownerDocument.querySelectorAll(r):r.querySelector&&(u=[r]),this.previews=u,CA(u,function(o){var c=document.createElement("img");ur(o,on,{width:o.offsetWidth,height:o.offsetHeight,html:o.innerHTML}),t&&(c.crossOrigin=t),c.src=n,c.alt=a,c.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',o.innerHTML="",o.appendChild(c)})}},resetPreview:function(){CA(this.previews,function(e){var t=fs(e,on);xe(e,{width:t.width,height:t.height}),e.innerHTML=t.html,up(e,on)})},preview:function(){var e=this.imageData,t=this.canvasData,r=this.cropBoxData,n=r.width,a=r.height,s=e.width,u=e.height,o=r.left-t.left-e.left,c=r.top-t.top-e.top;!this.cropped||this.disabled||(xe(this.viewBoxImage,dA({width:s,height:u},or(dA({translateX:-o,translateY:-c},e)))),CA(this.previews,function(f){var h=fs(f,on),d=h.width,m=h.height,C=d,T=m,F=1;n&&(F=d/n,T=a*F),a&&T>m&&(F=m/a,C=n*F,T=m),xe(f,{width:C,height:T}),xe(f.getElementsByTagName("img")[0],dA({width:s*F,height:u*F},or(dA({translateX:-o*F,translateY:-c*F},e))))}))}},Tp={bind:function(){var e=this.element,t=this.options,r=this.cropper;XA(t.cropstart)&&Ae(e,us,t.cropstart),XA(t.cropmove)&&Ae(e,is,t.cropmove),XA(t.cropend)&&Ae(e,ss,t.cropend),XA(t.crop)&&Ae(e,as,t.crop),XA(t.zoom)&&Ae(e,os,t.zoom),Ae(r,wo,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&Ae(r,Fo,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Ae(r,mo,this.onDblclick=this.dblclick.bind(this)),Ae(e.ownerDocument,To,this.onCropMove=this.cropMove.bind(this)),Ae(e.ownerDocument,bo,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&Ae(window,Qo,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,r=this.cropper;XA(t.cropstart)&&ie(e,us,t.cropstart),XA(t.cropmove)&&ie(e,is,t.cropmove),XA(t.cropend)&&ie(e,ss,t.cropend),XA(t.crop)&&ie(e,as,t.crop),XA(t.zoom)&&ie(e,os,t.zoom),ie(r,wo,this.onCropStart),t.zoomable&&t.zoomOnWheel&&ie(r,Fo,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&ie(r,mo,this.onDblclick),ie(e.ownerDocument,To,this.onCropMove),ie(e.ownerDocument,bo,this.onCropEnd),t.responsive&&ie(window,Qo,this.onResize)}},bp={resize:function(){if(!this.disabled){var e=this.options,t=this.container,r=this.containerData,n=t.offsetWidth/r.width,a=t.offsetHeight/r.height,s=Math.abs(n-1)>Math.abs(a-1)?n:a;if(s!==1){var u,o;e.restore&&(u=this.getCanvasData(),o=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(CA(u,function(c,f){u[f]=c*s})),this.setCropBoxData(CA(o,function(c,f){o[f]=c*s})))}}},dblclick:function(){this.disabled||this.options.dragMode===Co||this.setDragMode(sp(this.dragBox,ts)?po:ns)},wheel:function(e){var t=this,r=Number(this.options.wheelZoomRatio)||.1,n=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),e.deltaY?n=e.deltaY>0?1:-1:e.wheelDelta?n=-e.wheelDelta/120:e.detail&&(n=e.detail>0?1:-1),this.zoom(-n*r,e)))},cropStart:function(e){var t=e.buttons,r=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&($(t)&&t!==1||$(r)&&r!==0||e.ctrlKey))){var n=this.options,a=this.pointers,s;e.changedTouches?CA(e.changedTouches,function(u){a[u.identifier]=cn(u)}):a[e.pointerId||0]=cn(e),Object.keys(a).length>1&&n.zoomable&&n.zoomOnTouch?s=Bo:s=fs(e.target,ir),ZE.test(s)&&bt(this.element,us,{originalEvent:e,action:s})!==!1&&(e.preventDefault(),this.action=s,this.cropping=!1,s===fo&&(this.cropping=!0,yA(this.dragBox,un)))}},cropMove:function(e){var t=this.action;if(!(this.disabled||!t)){var r=this.pointers;e.preventDefault(),bt(this.element,is,{originalEvent:e,action:t})!==!1&&(e.changedTouches?CA(e.changedTouches,function(n){dA(r[n.identifier]||{},cn(n,!0))}):dA(r[e.pointerId||0]||{},cn(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,r=this.pointers;e.changedTouches?CA(e.changedTouches,function(n){delete r[n.identifier]}):delete r[e.pointerId||0],t&&(e.preventDefault(),Object.keys(r).length||(this.action=""),this.cropping&&(this.cropping=!1,Tt(this.dragBox,un,this.cropped&&this.options.modal)),bt(this.element,ss,{originalEvent:e,action:t}))}}},Up={change:function(e){var t=this.options,r=this.canvasData,n=this.containerData,a=this.cropBoxData,s=this.pointers,u=this.action,o=t.aspectRatio,c=a.left,f=a.top,h=a.width,d=a.height,m=c+h,C=f+d,T=0,F=0,Q=n.width,I=n.height,H=!0,M;!o&&e.shiftKey&&(o=h&&d?h/d:1),this.limited&&(T=a.minLeft,F=a.minTop,Q=T+Math.min(n.width,r.width,r.left+r.width),I=F+Math.min(n.height,r.height,r.top+r.height));var y=s[Object.keys(s)[0]],p={x:y.endX-y.startX,y:y.endY-y.startY},L=function(O){switch(O){case et:m+p.x>Q&&(p.x=Q-m);break;case tt:c+p.x<T&&(p.x=T-c);break;case He:f+p.y<F&&(p.y=F-f);break;case Ct:C+p.y>I&&(p.y=I-C);break}};switch(u){case es:c+=p.x,f+=p.y;break;case et:if(p.x>=0&&(m>=Q||o&&(f<=F||C>=I))){H=!1;break}L(et),h+=p.x,h<0&&(u=tt,h=-h,c-=h),o&&(d=h/o,f+=(a.height-d)/2);break;case He:if(p.y<=0&&(f<=F||o&&(c<=T||m>=Q))){H=!1;break}L(He),d-=p.y,f+=p.y,d<0&&(u=Ct,d=-d,f-=d),o&&(h=d*o,c+=(a.width-h)/2);break;case tt:if(p.x<=0&&(c<=T||o&&(f<=F||C>=I))){H=!1;break}L(tt),h-=p.x,c+=p.x,h<0&&(u=et,h=-h,c-=h),o&&(d=h/o,f+=(a.height-d)/2);break;case Ct:if(p.y>=0&&(C>=I||o&&(c<=T||m>=Q))){H=!1;break}L(Ct),d+=p.y,d<0&&(u=He,d=-d,f-=d),o&&(h=d*o,c+=(a.width-h)/2);break;case rr:if(o){if(p.y<=0&&(f<=F||m>=Q)){H=!1;break}L(He),d-=p.y,f+=p.y,h=d*o}else L(He),L(et),p.x>=0?m<Q?h+=p.x:p.y<=0&&f<=F&&(H=!1):h+=p.x,p.y<=0?f>F&&(d-=p.y,f+=p.y):(d-=p.y,f+=p.y);h<0&&d<0?(u=sr,d=-d,h=-h,f-=d,c-=h):h<0?(u=nr,h=-h,c-=h):d<0&&(u=ar,d=-d,f-=d);break;case nr:if(o){if(p.y<=0&&(f<=F||c<=T)){H=!1;break}L(He),d-=p.y,f+=p.y,h=d*o,c+=a.width-h}else L(He),L(tt),p.x<=0?c>T?(h-=p.x,c+=p.x):p.y<=0&&f<=F&&(H=!1):(h-=p.x,c+=p.x),p.y<=0?f>F&&(d-=p.y,f+=p.y):(d-=p.y,f+=p.y);h<0&&d<0?(u=ar,d=-d,h=-h,f-=d,c-=h):h<0?(u=rr,h=-h,c-=h):d<0&&(u=sr,d=-d,f-=d);break;case sr:if(o){if(p.x<=0&&(c<=T||C>=I)){H=!1;break}L(tt),h-=p.x,c+=p.x,d=h/o}else L(Ct),L(tt),p.x<=0?c>T?(h-=p.x,c+=p.x):p.y>=0&&C>=I&&(H=!1):(h-=p.x,c+=p.x),p.y>=0?C<I&&(d+=p.y):d+=p.y;h<0&&d<0?(u=rr,d=-d,h=-h,f-=d,c-=h):h<0?(u=ar,h=-h,c-=h):d<0&&(u=nr,d=-d,f-=d);break;case ar:if(o){if(p.x>=0&&(m>=Q||C>=I)){H=!1;break}L(et),h+=p.x,d=h/o}else L(Ct),L(et),p.x>=0?m<Q?h+=p.x:p.y>=0&&C>=I&&(H=!1):h+=p.x,p.y>=0?C<I&&(d+=p.y):d+=p.y;h<0&&d<0?(u=nr,d=-d,h=-h,f-=d,c-=h):h<0?(u=sr,h=-h,c-=h):d<0&&(u=rr,d=-d,f-=d);break;case ho:this.move(p.x,p.y),H=!1;break;case Bo:this.zoom(cp(s),e),H=!1;break;case fo:if(!p.x||!p.y){H=!1;break}M=xo(this.cropper),c=y.startX-M.left,f=y.startY-M.top,h=a.minWidth,d=a.minHeight,p.x>0?u=p.y>0?ar:rr:p.x<0&&(c-=h,u=p.y>0?sr:nr),p.y<0&&(f-=d),this.cropped||(Be(this.cropBox,YA),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}H&&(a.width=h,a.height=d,a.left=c,a.top=f,this.action=u,this.renderCropBox()),CA(s,function(k){k.startX=k.endX,k.startY=k.endY})}},Qp={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&yA(this.dragBox,un),Be(this.cropBox,YA),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=dA({},this.initialImageData),this.canvasData=dA({},this.initialCanvasData),this.cropBoxData=dA({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(dA(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Be(this.dragBox,un),yA(this.cropBox,YA)),this},replace:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,CA(this.previews,function(r){r.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Be(this.cropper,go)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,yA(this.cropper,go)),this},destroy:function(){var e=this.element;return e[hA]?(e[hA]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=this.canvasData,n=r.left,a=r.top;return this.moveTo(cs(e)?e:n+Number(e),cs(t)?t:a+Number(t))},moveTo:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=this.canvasData,n=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&($(e)&&(r.left=e,n=!0),$(t)&&(r.top=t,n=!0),n&&this.renderCanvas(!0)),this},zoom:function(e,t){var r=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(r.width*e/r.naturalWidth,null,t)},zoomTo:function(e,t,r){var n=this.options,a=this.canvasData,s=a.width,u=a.height,o=a.naturalWidth,c=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&n.zoomable){var f=o*e,h=c*e;if(bt(this.element,os,{ratio:e,oldRatio:s/o,originalEvent:r})===!1)return this;if(r){var d=this.pointers,m=xo(this.cropper),C=d&&Object.keys(d).length?lp(d):{pageX:r.pageX,pageY:r.pageY};a.left-=(f-s)*((C.pageX-m.left-a.left)/s),a.top-=(h-u)*((C.pageY-m.top-a.top)/u)}else mt(t)&&$(t.x)&&$(t.y)?(a.left-=(f-s)*((t.x-a.left)/s),a.top-=(h-u)*((t.y-a.top)/u)):(a.left-=(f-s)/2,a.top-=(h-u)/2);a.width=f,a.height=h,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),$(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,$(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale($(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=this.imageData,n=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&($(e)&&(r.scaleX=e,n=!0),$(t)&&(r.scaleY=t,n=!0),n&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.options,r=this.imageData,n=this.canvasData,a=this.cropBoxData,s;if(this.ready&&this.cropped){s={x:a.left-n.left,y:a.top-n.top,width:a.width,height:a.height};var u=r.width/r.naturalWidth;if(CA(s,function(f,h){s[h]=f/u}),e){var o=Math.round(s.y+s.height),c=Math.round(s.x+s.width);s.x=Math.round(s.x),s.y=Math.round(s.y),s.width=c-s.x,s.height=o-s.y}}else s={x:0,y:0,width:0,height:0};return t.rotatable&&(s.rotate=r.rotate||0),t.scalable&&(s.scaleX=r.scaleX||1,s.scaleY=r.scaleY||1),s},setData:function(e){var t=this.options,r=this.imageData,n=this.canvasData,a={};if(this.ready&&!this.disabled&&mt(e)){var s=!1;t.rotatable&&$(e.rotate)&&e.rotate!==r.rotate&&(r.rotate=e.rotate,s=!0),t.scalable&&($(e.scaleX)&&e.scaleX!==r.scaleX&&(r.scaleX=e.scaleX,s=!0),$(e.scaleY)&&e.scaleY!==r.scaleY&&(r.scaleY=e.scaleY,s=!0)),s&&this.renderCanvas(!0,!0);var u=r.width/r.naturalWidth;$(e.x)&&(a.left=e.x*u+n.left),$(e.y)&&(a.top=e.y*u+n.top),$(e.width)&&(a.width=e.width*u),$(e.height)&&(a.height=e.height*u),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?dA({},this.containerData):{}},getImageData:function(){return this.sized?dA({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&CA(["left","top","width","height","naturalWidth","naturalHeight"],function(r){t[r]=e[r]}),t},setCanvasData:function(e){var t=this.canvasData,r=t.aspectRatio;return this.ready&&!this.disabled&&mt(e)&&($(e.left)&&(t.left=e.left),$(e.top)&&(t.top=e.top),$(e.width)?(t.width=e.width,t.height=e.width/r):$(e.height)&&(t.height=e.height,t.width=e.height*r),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,t;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(e){var t=this.cropBoxData,r=this.options.aspectRatio,n,a;return this.ready&&this.cropped&&!this.disabled&&mt(e)&&($(e.left)&&(t.left=e.left),$(e.top)&&(t.top=e.top),$(e.width)&&e.width!==t.width&&(n=!0,t.width=e.width),$(e.height)&&e.height!==t.height&&(a=!0,t.height=e.height),r&&(n?t.height=t.width/r:a&&(t.width=t.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,r=hp(this.image,this.imageData,t,e);if(!this.cropped)return r;var n=this.getData(e.rounded),a=n.x,s=n.y,u=n.width,o=n.height,c=r.width/Math.floor(t.naturalWidth);c!==1&&(a*=c,s*=c,u*=c,o*=c);var f=u/o,h=De({aspectRatio:f,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),d=De({aspectRatio:f,width:e.minWidth||0,height:e.minHeight||0},"cover"),m=De({aspectRatio:f,width:e.width||(c!==1?r.width:u),height:e.height||(c!==1?r.height:o)}),C=m.width,T=m.height;C=Math.min(h.width,Math.max(d.width,C)),T=Math.min(h.height,Math.max(d.height,T));var F=document.createElement("canvas"),Q=F.getContext("2d");F.width=wt(C),F.height=wt(T),Q.fillStyle=e.fillColor||"transparent",Q.fillRect(0,0,C,T);var I=e.imageSmoothingEnabled,H=I===void 0?!0:I,M=e.imageSmoothingQuality;Q.imageSmoothingEnabled=H,M&&(Q.imageSmoothingQuality=M);var y=r.width,p=r.height,L=a,k=s,O,AA,oA,cA,W,tA;L<=-u||L>y?(L=0,O=0,oA=0,W=0):L<=0?(oA=-L,L=0,O=Math.min(y,u+L),W=O):L<=y&&(oA=0,O=Math.min(u,y-L),W=O),O<=0||k<=-o||k>p?(k=0,AA=0,cA=0,tA=0):k<=0?(cA=-k,k=0,AA=Math.min(p,o+k),tA=AA):k<=p&&(cA=0,AA=Math.min(o,p-k),tA=AA);var R=[L,k,O,AA];if(W>0&&tA>0){var P=C/u;R.push(oA*P,cA*P,W*P,tA*P)}return Q.drawImage.apply(Q,[r].concat(lo(R.map(function(z){return Math.floor(wt(z))})))),F},setAspectRatio:function(e){var t=this.options;return!this.disabled&&!cs(e)&&(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,r=this.dragBox,n=this.face;if(this.ready&&!this.disabled){var a=e===ns,s=t.movable&&e===po;e=a||s?e:Co,t.dragMode=e,ur(r,ir,e),Tt(r,ts,a),Tt(r,rs,s),t.cropBoxMovable||(ur(n,ir,e),Tt(n,ts,a),Tt(n,rs,s))}return this}},Fp=de.Cropper,Mo=function(){function A(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ME(this,A),!e||!zE.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=dA({},No,mt(t)&&t),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return kE(A,[{key:"init",value:function(){var t=this.element,r=t.tagName.toLowerCase(),n;if(!t[hA]){if(t[hA]=this,r==="img"){if(this.isImg=!0,n=t.getAttribute("src")||"",this.originalUrl=n,!n)return;n=t.src}else r==="canvas"&&window.HTMLCanvasElement&&(n=t.toDataURL());this.load(n)}}},{key:"load",value:function(t){var r=this;if(t){this.url=t,this.imageData={};var n=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if($E.test(t)){jE.test(t)?this.read(gp(t)):this.clone();return}var s=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=u,s.onerror=u,s.ontimeout=u,s.onprogress=function(){s.getResponseHeader("content-type")!==Io&&s.abort()},s.onload=function(){r.read(s.response)},s.onloadend=function(){r.reloading=!1,r.xhr=null},a.checkCrossOrigin&&Do(t)&&n.crossOrigin&&(t=Oo(t)),s.open("GET",t,!0),s.responseType="arraybuffer",s.withCredentials=n.crossOrigin==="use-credentials",s.send()}}},{key:"read",value:function(t){var r=this.options,n=this.imageData,a=pp(t),s=0,u=1,o=1;if(a>1){this.url=Ep(t,Io);var c=Cp(a);s=c.rotate,u=c.scaleX,o=c.scaleY}r.rotatable&&(n.rotate=s),r.scalable&&(n.scaleX=u,n.scaleY=o),this.clone()}},{key:"clone",value:function(){var t=this.element,r=this.url,n=t.crossOrigin,a=r;this.options.checkCrossOrigin&&Do(r)&&(n||(n="anonymous"),a=Oo(r)),this.crossOrigin=n,this.crossOriginUrl=a;var s=document.createElement("img");n&&(s.crossOrigin=n),s.src=a||r,s.alt=t.alt||"The image to crop",this.image=s,s.onload=this.start.bind(this),s.onerror=this.stop.bind(this),yA(s,Eo),t.parentNode.insertBefore(s,t.nextSibling)}},{key:"start",value:function(){var t=this,r=this.image;r.onload=null,r.onerror=null,this.sizing=!0;var n=de.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(de.navigator.userAgent),a=function(c,f){dA(t.imageData,{naturalWidth:c,naturalHeight:f,aspectRatio:c/f}),t.initialImageData=dA({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(r.naturalWidth&&!n){a(r.naturalWidth,r.naturalHeight);return}var s=document.createElement("img"),u=document.body||document.documentElement;this.sizingImage=s,s.onload=function(){a(s.width,s.height),n||u.removeChild(s)},s.src=r.src,n||(s.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",u.appendChild(s))}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var t=this.element,r=this.options,n=this.image,a=t.parentNode,s=document.createElement("div");s.innerHTML=Ap;var u=s.querySelector(".".concat(hA,"-container")),o=u.querySelector(".".concat(hA,"-canvas")),c=u.querySelector(".".concat(hA,"-drag-box")),f=u.querySelector(".".concat(hA,"-crop-box")),h=f.querySelector(".".concat(hA,"-face"));this.container=a,this.cropper=u,this.canvas=o,this.dragBox=c,this.cropBox=f,this.viewBox=u.querySelector(".".concat(hA,"-view-box")),this.face=h,o.appendChild(n),yA(t,YA),a.insertBefore(u,t.nextSibling),Be(n,Eo),this.initPreview(),this.bind(),r.initialAspectRatio=Math.max(0,r.initialAspectRatio)||NaN,r.aspectRatio=Math.max(0,r.aspectRatio)||NaN,r.viewMode=Math.max(0,Math.min(3,Math.round(r.viewMode)))||0,yA(f,YA),r.guides||yA(f.getElementsByClassName("".concat(hA,"-dashed")),YA),r.center||yA(f.getElementsByClassName("".concat(hA,"-center")),YA),r.background&&yA(u,"".concat(hA,"-bg")),r.highlight||yA(h,XE),r.cropBoxMovable&&(yA(h,rs),ur(h,ir,es)),r.cropBoxResizable||(yA(f.getElementsByClassName("".concat(hA,"-line")),YA),yA(f.getElementsByClassName("".concat(hA,"-point")),YA)),this.render(),this.ready=!0,this.setDragMode(r.dragMode),r.autoCrop&&this.crop(),this.setData(r.data),XA(r.ready)&&Ae(t,Uo,r.ready,{once:!0}),bt(t,Uo)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var t=this.cropper.parentNode;t&&t.removeChild(this.cropper),Be(this.element,YA)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=Fp,A}},{key:"setDefaults",value:function(t){dA(No,mt(t)&&t)}}])}();dA(Mo.prototype,mp,wp,Tp,bp,Up,Qp);function Ip(A,e){const t=A.split(",")||[],r=t[0].match(/:(.*?);/)[1],n=t[1]&&atob(t[1]);let a=n&&n.length;const s=new Uint8Array(a);for(;a--;)s[a]=n==null?void 0:n.charCodeAt(a);return new File([s],e,{type:r})}const _p={key:0,contenteditable:"false",class:"z-10 w-[100vw] h-[100vh] bg-[rgba(0,0,0,0.7)] flex flex-col justify-center items-center fixed top-0 left-0 cursor-auto"},yp={class:"w-[700px] flex flex-col bg-white rounded pb-8"},Np={class:"flex flex-row items-center justify-between px-6 py-4 bg-[#f4f8ff]"},Sp={class:"flex flex-col h-full"},vp={class:"flex flex-row justify-center items-start flex-1"},Lp={class:"flex flex-col items-start flex-1"},Hp={class:"flex flex-col w-full px-6 py-4"},xp={class:"flex flex-col w-full"},Dp={class:"flex flex-row items-center"},Op={class:"relative bg-[#474AFF] text-white rounded p-3"},Rp={class:"flex flex-row items-start justify-between mt-3"},Mp={class:"flex flex-col"},kp={class:"flex flex-col justify-center items-center border w-[300px] h-[300px]"},Pp={key:0,class:"w-full text-center"},Kp=["src"],Vp={class:"flex flex-col items-center",style:{width:"300px",height:"300px"}},Gp={class:"text-[#999] mt-05 flex justify-center mt-4"},Yp={class:"w-full flex justify-end space-x-5 mt-5 px-6"},Xp=["loading"],Wp=l.defineComponent({__name:"GpCropper",emits:["cancel","ok"],setup(A,{expose:e,emit:t}){const r=t,n=l.ref({coverUrl:"",inputValue:"",uploadType:2,videoHost:"",videoUrl:""}),a=l.ref(),s=l.ref({autoCrop:!0,autoCropArea:1,background:!0,center:!0,cropBoxResizable:!0,dragMode:"move",preview:".before",toggleDragModeOnDblclick:!0,viewMode:1,zoomOnWheel:!0}),u=l.ref(!1),o=l.ref("image/jpeg"),c=l.ref({afterImg:"",image:null,myCropper:null}),f=y=>{const p=y.target.files[0];p&&(p.name&&(n.value.inputValue=p.name),h(p))};async function h(y){if(!y)return;await M();const p=URL.createObjectURL(y);c.value.image=p,c.value.image&&d(),o.value=y.type}function d(){const y=document.querySelector("#imgId");y&&y.addEventListener("load",()=>{H(),c.value.myCropper=new Mo(y,s.value)})}const m=l.ref(!1),C=l.ref();function T(y,p,L,k){C.value=k,a.value=y,y&&y.aspectRatio&&(s.value.aspectRatio=y.aspectRatio),L&&(n.value.inputValue=L),m.value=!0,p&&h(p)}function F(){m.value=!1}const Q=()=>{var k,O;if(!c.value.myCropper)return;u.value=!0;var p=c.value.myCropper.getCroppedCanvas({height:(k=a.value)==null?void 0:k.height,imageSmoothingQuality:"high",width:(O=a.value)==null?void 0:O.width}).toDataURL(o.value);c.value.afterImg=p;const L=Ip(c.value.afterImg,n.value.inputValue);r("ok",{file:L,element:C.value}),u.value=!1,M(),H(),F()};function I(){M(),H(),F(),r("cancel")}function H(){c.value.myCropper&&c.value.myCropper.destroy()}function M(){c.value.image=""}return e({handleCloseCropper:F,handleOpenCropper:T}),(y,p)=>{var L,k,O;return m.value?(l.openBlock(),l.createElementBlock("div",_p,[l.createElementVNode("div",yp,[l.createElementVNode("div",Np,[p[1]||(p[1]=l.createElementVNode("span",{class:"text-base font-semibold text-[#333]"},"图片裁剪",-1)),l.createElementVNode("span",{class:"text-lg cursor-pointer text-[#999] iconfont icon-shanchu2",onClick:l.withModifiers(I,["stop"])})]),l.createElementVNode("div",Sp,[l.createElementVNode("div",vp,[l.createElementVNode("div",Lp,[l.createElementVNode("div",Hp,[l.createElementVNode("div",xp,[l.createElementVNode("div",Dp,[l.createElementVNode("div",Op,[l.createElementVNode("input",{type:"file",accept:"image/*",onClick:p[0]||(p[0]=l.withModifiers(()=>{},["stop"])),contenteditable:"false",ref:"fileInput",onChange:f,class:"absolute top-0 left-0 w-[110px] h-[40px] opacity-0 cursor-pointer"},null,544),p[2]||(p[2]=l.createElementVNode("span",{id:"uploadHandler",class:"cursor-pointer"}," 选择/更换图片 ",-1))]),p[3]||(p[3]=l.createElementVNode("span",{class:"text-sm text-[#999] ml-3"},"滚动鼠标放大或缩小图片",-1))]),l.createElementVNode("div",Rp,[l.createElementVNode("div",Mp,[l.createElementVNode("div",kp,[c.value.image?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Pp," 请上传图片 ")),l.createElementVNode("img",{id:"imgId",src:c.value.image,style:{width:"300px"}},null,8,Kp)])]),l.createElementVNode("div",Vp,[p[4]||(p[4]=l.createElementVNode("div",{class:"before w-[270px] h-[200px] pr-[70px] border"},null,-1)),l.createElementVNode("div",Gp," 预览画像 "+l.toDisplayString(((L=a.value)==null?void 0:L.width)||"")+" "+l.toDisplayString((k=a.value)!=null&&k.width?"x":"")+" "+l.toDisplayString(((O=a.value)==null?void 0:O.height)||""),1)])])])])])]),l.createElementVNode("div",Yp,[l.createElementVNode("span",{loading:u.value,class:"!w-22 bg-[#474AFF] text-white rounded py-2 px-6 cursor-pointer",type:"primary",onClick:Q}," 确认 ",8,Xp),l.createElementVNode("span",{class:"!w-22 border border-[#DEDEDE] text-[#666] rounded py-2 px-6 cursor-pointer",onClick:I},"取消")])])])])):l.createCommentVNode("",!0)}}}),Jp=l.defineComponent({name:"GpModal",props:{visible:{type:Boolean,required:!0},title:{type:String,default:""},okText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},showOkButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0}},emits:["update:visible","ok","cancel"],setup(A,{emit:e}){const{visible:t,okText:r,cancelText:n,showCloseButton:a}=l.toRefs(A);return{visible:t,okText:r,cancelText:n,showCloseButton:a,onClose:()=>{e("cancel"),e("update:visible",!1)},onOk:()=>{e("ok"),e("update:visible",!1)},onCancel:()=>{e("cancel"),e("update:visible",!1)}}}}),qp={class:"bg-white rounded-lg shadow-xl w-ful"},Zp={class:"p-4 border-b border-gray-200 relative flex items-center justify-between"},$p={key:0,class:"text-lg font-semibold"},jp={class:"p-4"},zp={key:0,class:"p-4 border-t border-gray-200 flex justify-end space-x-2"};function AC(A,e,t,r,n,a){return A.visible?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fixed inset-0 z-[99999] flex items-center justify-center bg-gray-900 bg-opacity-50",onClick:e[3]||(e[3]=l.withModifiers((...s)=>A.onClose&&A.onClose(...s),["self"]))},[l.createElementVNode("div",qp,[l.createElementVNode("div",Zp,[A.title?(l.openBlock(),l.createElementBlock("h3",$p,l.toDisplayString(A.title),1)):l.createCommentVNode("",!0),l.renderSlot(A.$slots,"header"),A.showCloseButton?(l.openBlock(),l.createElementBlock("button",{key:1,class:"text-gray-400 hover:text-gray-600",onClick:e[0]||(e[0]=(...s)=>A.onClose&&A.onClose(...s)),"aria-label":"Close"},e[4]||(e[4]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]))):l.createCommentVNode("",!0)]),l.createElementVNode("div",jp,[l.renderSlot(A.$slots,"default")]),A.showCancelButton||A.showOkButton?(l.openBlock(),l.createElementBlock("div",zp,[l.renderSlot(A.$slots,"footer",{},()=>[A.showCancelButton?(l.openBlock(),l.createElementBlock("button",{key:0,class:"px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded hover:bg-gray-200",onClick:e[1]||(e[1]=(...s)=>A.onCancel&&A.onCancel(...s))},l.toDisplayString(A.cancelText),1)):l.createCommentVNode("",!0),A.showOkButton?(l.openBlock(),l.createElementBlock("button",{key:1,class:"px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded hover:bg-blue-700",onClick:e[2]||(e[2]=(...s)=>A.onOk&&A.onOk(...s))},l.toDisplayString(A.okText),1)):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0)}const eC=At(Jp,[["render",AC]]),tC={class:"p-4 flex flex-wrap max-h-[500px] overflow-y-auto w-[640px]"},rC=["onClick"],nC=l.defineComponent({__name:"GpIcon",props:{icons:{type:Array,default:()=>[]}},emits:["ok"],setup(A,{expose:e,emit:t}){const r=A,n=t,a=l.ref(r.icons||[]);l.watch(()=>r.icons,h=>{a.value=h||[]},{immediate:!0});const s=l.ref(!1),u=l.ref();function o(h){s.value=!0,u.value=h}function c(h){f(),n("ok",{icon:h,element:u.value})}function f(){s.value=!1}return e({openModal:o,closeModal:f}),(h,d)=>(l.openBlock(),l.createBlock(eC,{visible:s.value,"onUpdate:visible":d[0]||(d[0]=m=>s.value=m),title:"选择图标",onOk:f,onCancel:f,showCancelButton:!1,showOkButton:!1},{default:l.withCtx(()=>[l.createElementVNode("div",tC,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,m=>(l.openBlock(),l.createElementBlock("span",{key:m,onClick:l.withModifiers(C=>c(m),["stop"]),style:{position:"unset",color:"unset",top:"unset",left:"unset",right:"unset",transform:"unset","font-size":"unset"},class:l.normalizeClass(["w-12 h-12 mx-1 mb-2 border cursor-pointer hover:border-gray-400 hover:bg-gray-200",`iconfont icon-${m} text-4xl overflow-hidden flex justify-center items-center`])},null,10,rC))),128))])]),_:1},8,["visible"]))}}),aC=l.defineComponent({name:"GpImageUpload",props:{accept:{type:String,default:"image/*"},multiple:{type:Boolean,default:!1},maxCount:{type:Number,default:1/0},beforeUpload:Function,onChange:Function,showList:{type:Boolean,default:!1},show:{type:Boolean,default:!0}},setup(A,{emit:e}){const t=l.ref(null),r=l.ref([]),n=l.ref(),a=l.ref(A.show);l.watch(()=>A.show,f=>{a.value=f},{immediate:!0});const s=()=>{var f;(f=t.value)==null||f.click()},u=async f=>{var C;const d=f.target.files;if(!d)return;const m=[];for(let T=0;T<d.length;T++){const F=d[T];if(A.beforeUpload&&await A.beforeUpload(F)===!1)continue;const Q=`${Date.now()}-${F.name}`,I=URL.createObjectURL(F),H=document.createElement("img");H.src=I,document.body.appendChild(H),await new Promise(p=>{H.onload=p});const M=H.width,y=H.height;document.body.removeChild(H),m.push({uid:Q,name:F.name,status:"uploading",thumbUrl:I,file:F,width:M,height:y})}A.maxCount&&r.value.length+m.length>A.maxCount&&m.splice(A.maxCount-r.value.length),A.multiple?r.value=[...r.value,...m]:r.value=m.slice(0,1),(C=A.onChange)==null||C.call(A,r.value,n.value),e("update:fileList",r.value),t.value&&(t.value.value="")},o=f=>{var h;r.value=r.value.filter(d=>d.uid!==f),(h=A.onChange)==null||h.call(A,r.value,n.value)};function c(f){n.value=f,s()}return{isShow:a,openModal:c,inputRef:t,fileList:r,triggerInput:s,handleChange:u,removeFile:o}}}),sC={class:"upload-wrapper"},iC=["accept","multiple"],uC={key:1,class:"file-list mt-4"},oC={class:"flex items-center space-x-4"},cC=["src"],lC=["onClick"];function fC(A,e,t,r,n,a){return l.openBlock(),l.createElementBlock("div",sC,[A.isShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"",onClick:e[0]||(e[0]=(...s)=>A.triggerInput&&A.triggerInput(...s))},[l.renderSlot(A.$slots,"upload-icon",{},()=>[e[2]||(e[2]=l.createElementVNode("div",{class:"upload-area border-dashed border-2 p-6 rounded cursor-pointer hover:border-blue-500"},[l.createElementVNode("div",{class:"text-gray-400 text-lg text-center"}," 点击或拖拽上传图片 ")],-1))],!0)])):l.createCommentVNode("",!0),l.createElementVNode("input",{type:"file",ref:"inputRef",class:"hidden",accept:A.accept,multiple:A.multiple,onChange:e[1]||(e[1]=(...s)=>A.handleChange&&A.handleChange(...s))},null,40,iC),A.showList?(l.openBlock(),l.createElementBlock("div",uC,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(A.fileList,s=>(l.openBlock(),l.createElementBlock("div",{key:s.uid,class:"file-item flex items-center justify-between p-2 border rounded mb-2"},[l.createElementVNode("div",oC,[s.thumbUrl?(l.openBlock(),l.createElementBlock("img",{key:0,src:s.thumbUrl,alt:"preview",class:"w-12 h-12 object-cover rounded"},null,8,cC)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(s.name),1)]),l.createElementVNode("div",null,[l.createElementVNode("button",{onClick:u=>A.removeFile(s.uid),class:"text-red-500 hover:underline"}," 删除 ",8,lC)])]))),128))])):l.createCommentVNode("",!0)])}const hC=At(aC,[["render",fC],["__scopeId","data-v-08babff9"]]);/*!
18
+ * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
19
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
20
+ * Released under MIT License
21
+ *//*! *****************************************************************************
22
+ Copyright (c) Microsoft Corporation.
23
+
24
+ Permission to use, copy, modify, and/or distribute this software for any
25
+ purpose with or without fee is hereby granted.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
28
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
29
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
30
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
31
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
32
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33
+ PERFORMANCE OF THIS SOFTWARE.
34
+ ***************************************************************************** */var ds=function(A,e){return ds=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},ds(A,e)};function ue(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ds(A,e);function t(){this.constructor=A}A.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Bs=function(){return Bs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Bs.apply(this,arguments)};function kA(A,e,t,r){function n(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(h){s(h)}}function o(f){try{c(r.throw(f))}catch(h){s(h)}}function c(f){f.done?a(f.value):n(f.value).then(u,o)}c((r=r.apply(A,[])).next())})}function DA(A,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,n,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return o([c,f])}}function o(c){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,n=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){t.label=c[1];break}if(c[0]===6&&t.label<a[1]){t.label=a[1],a=c;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(c);break}a[2]&&t.ops.pop(),t.trys.pop();continue}c=e.call(A,t)}catch(f){c=[6,f],n=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ln(A,e,t){if(arguments.length===2)for(var r=0,n=e.length,a;r<n;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return A.concat(a||e)}for(var be=function(){function A(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),fn=function(A,e){return be.fromClientRect(A,e.getBoundingClientRect())},dC=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new be(0,0,r,n)},hn=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var a=A.charCodeAt(t++);(a&64512)===56320?e.push(((n&1023)<<10)+(a&1023)+65536):(e.push(n),t--)}else e.push(n)}return e},EA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,a="";++n<t;){var s=A[n];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(n+1===t||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",BC=typeof Uint8Array>"u"?[]:new Uint8Array(256),dn=0;dn<ko.length;dn++)BC[ko.charCodeAt(dn)]=dn;for(var Po="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cr=typeof Uint8Array>"u"?[]:new Uint8Array(256),Bn=0;Bn<Po.length;Bn++)cr[Po.charCodeAt(Bn)]=Bn;for(var gC=function(A){var e=A.length*.75,t=A.length,r,n=0,a,s,u,o;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),f=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<t;r+=4)a=cr[A.charCodeAt(r)],s=cr[A.charCodeAt(r+1)],u=cr[A.charCodeAt(r+2)],o=cr[A.charCodeAt(r+3)],f[n++]=a<<2|s>>4,f[n++]=(s&15)<<4|u>>2,f[n++]=(u&3)<<6|o&63;return c},EC=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},pC=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},nt=5,gs=11,Es=2,CC=gs-nt,Ko=65536>>nt,mC=1<<nt,ps=mC-1,wC=1024>>nt,TC=Ko+wC,bC=TC,UC=32,QC=bC+UC,FC=65536>>gs,IC=1<<CC,_C=IC-1,Vo=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},yC=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},NC=function(A,e){var t=gC(A),r=Array.isArray(t)?pC(t):new Uint32Array(t),n=Array.isArray(t)?EC(t):new Uint16Array(t),a=24,s=Vo(n,a/2,r[4]/2),u=r[5]===2?Vo(n,(a+r[4])/2):yC(r,Math.ceil((a+r[4])/4));return new SC(r[0],r[1],r[2],r[3],s,u)},SC=function(){function A(e,t,r,n,a,s){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=a,this.data=s}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>nt],t=(t<<Es)+(e&ps),this.data[t];if(e<=65535)return t=this.index[Ko+(e-55296>>nt)],t=(t<<Es)+(e&ps),this.data[t];if(e<this.highStart)return t=QC-FC+(e>>gs),t=this.index[t],t+=e>>nt&_C,t=this.index[t],t=(t<<Es)+(e&ps),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Go="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vC=typeof Uint8Array>"u"?[]:new Uint8Array(256),gn=0;gn<Go.length;gn++)vC[Go.charCodeAt(gn)]=gn;var LC="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Yo=50,HC=1,Xo=2,Wo=3,xC=4,DC=5,Jo=7,qo=8,Zo=9,Oe=10,Cs=11,$o=12,ms=13,OC=14,lr=15,ws=16,En=17,fr=18,RC=19,jo=20,Ts=21,hr=22,bs=23,Ut=24,ZA=25,dr=26,Br=27,Qt=28,MC=29,at=30,kC=31,pn=32,Cn=33,Us=34,Qs=35,Fs=36,gr=37,Is=38,mn=39,wn=40,_s=41,zo=42,PC=43,KC=[9001,65288],Ac="!",j="×",Tn="÷",ys=NC(LC),Ue=[at,Fs],Ns=[HC,Xo,Wo,DC],ec=[Oe,qo],tc=[Br,dr],VC=Ns.concat(ec),rc=[Is,mn,wn,Us,Qs],GC=[lr,ms],YC=function(A,e){e===void 0&&(e="strict");var t=[],r=[],n=[];return A.forEach(function(a,s){var u=ys.get(a);if(u>Yo?(n.push(!0),u-=Yo):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return r.push(s),t.push(ws);if(u===xC||u===Cs){if(s===0)return r.push(s),t.push(at);var o=t[s-1];return VC.indexOf(o)===-1?(r.push(r[s-1]),t.push(o)):(r.push(s),t.push(at))}if(r.push(s),u===kC)return t.push(e==="strict"?Ts:gr);if(u===zo||u===MC)return t.push(at);if(u===PC)return a>=131072&&a<=196605||a>=196608&&a<=262141?t.push(gr):t.push(at);t.push(u)}),[r,t,n]},Ss=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var a=t;a<=r.length;){a++;var s=r[a];if(s===e)return!0;if(s!==Oe)break}if(n===Oe)for(var a=t;a>0;){a--;var u=r[a];if(Array.isArray(A)?A.indexOf(u)!==-1:A===u)for(var o=t;o<=r.length;){o++;var s=r[o];if(s===e)return!0;if(s!==Oe)break}if(u!==Oe)break}return!1},nc=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r===Oe)t--;else return r}return 0},XC=function(A,e,t,r,n){if(t[r]===0)return j;var a=r-1;if(Array.isArray(n)&&n[a]===!0)return j;var s=a-1,u=a+1,o=e[a],c=s>=0?e[s]:0,f=e[u];if(o===Xo&&f===Wo)return j;if(Ns.indexOf(o)!==-1)return Ac;if(Ns.indexOf(f)!==-1||ec.indexOf(f)!==-1)return j;if(nc(a,e)===qo)return Tn;if(ys.get(A[a])===Cs||(o===pn||o===Cn)&&ys.get(A[u])===Cs||o===Jo||f===Jo||o===Zo||[Oe,ms,lr].indexOf(o)===-1&&f===Zo||[En,fr,RC,Ut,Qt].indexOf(f)!==-1||nc(a,e)===hr||Ss(bs,hr,a,e)||Ss([En,fr],Ts,a,e)||Ss($o,$o,a,e))return j;if(o===Oe)return Tn;if(o===bs||f===bs)return j;if(f===ws||o===ws)return Tn;if([ms,lr,Ts].indexOf(f)!==-1||o===OC||c===Fs&&GC.indexOf(o)!==-1||o===Qt&&f===Fs||f===jo||Ue.indexOf(f)!==-1&&o===ZA||Ue.indexOf(o)!==-1&&f===ZA||o===Br&&[gr,pn,Cn].indexOf(f)!==-1||[gr,pn,Cn].indexOf(o)!==-1&&f===dr||Ue.indexOf(o)!==-1&&tc.indexOf(f)!==-1||tc.indexOf(o)!==-1&&Ue.indexOf(f)!==-1||[Br,dr].indexOf(o)!==-1&&(f===ZA||[hr,lr].indexOf(f)!==-1&&e[u+1]===ZA)||[hr,lr].indexOf(o)!==-1&&f===ZA||o===ZA&&[ZA,Qt,Ut].indexOf(f)!==-1)return j;if([ZA,Qt,Ut,En,fr].indexOf(f)!==-1)for(var h=a;h>=0;){var d=e[h];if(d===ZA)return j;if([Qt,Ut].indexOf(d)!==-1)h--;else break}if([Br,dr].indexOf(f)!==-1)for(var h=[En,fr].indexOf(o)!==-1?s:a;h>=0;){var d=e[h];if(d===ZA)return j;if([Qt,Ut].indexOf(d)!==-1)h--;else break}if(Is===o&&[Is,mn,Us,Qs].indexOf(f)!==-1||[mn,Us].indexOf(o)!==-1&&[mn,wn].indexOf(f)!==-1||[wn,Qs].indexOf(o)!==-1&&f===wn||rc.indexOf(o)!==-1&&[jo,dr].indexOf(f)!==-1||rc.indexOf(f)!==-1&&o===Br||Ue.indexOf(o)!==-1&&Ue.indexOf(f)!==-1||o===Ut&&Ue.indexOf(f)!==-1||Ue.concat(ZA).indexOf(o)!==-1&&f===hr&&KC.indexOf(A[u])===-1||Ue.concat(ZA).indexOf(f)!==-1&&o===fr)return j;if(o===_s&&f===_s){for(var m=t[a],C=1;m>0&&(m--,e[m]===_s);)C++;if(C%2!==0)return j}return o===pn&&f===Cn?j:Tn},WC=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=YC(A,e.lineBreak),r=t[0],n=t[1],a=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(u){return[ZA,at,zo].indexOf(u)!==-1?gr:u}));var s=e.wordBreak==="keep-all"?a.map(function(u,o){return u&&A[o]>=19968&&A[o]<=40959}):void 0;return[r,n,s]},JC=function(){function A(e,t,r,n){this.codePoints=e,this.required=t===Ac,this.start=r,this.end=n}return A.prototype.slice=function(){return EA.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),qC=function(A,e){var t=hn(A),r=WC(t,e),n=r[0],a=r[1],s=r[2],u=t.length,o=0,c=0;return{next:function(){if(c>=u)return{done:!0,value:null};for(var f=j;c<u&&(f=XC(t,a,n,++c,s))===j;);if(f!==j||c===u){var h=new JC(t,f,o,c);return o=c,{value:h,done:!1}}return{done:!0,value:null}}}},ZC=1,$C=2,Er=4,ac=8,bn=10,sc=47,pr=92,jC=9,zC=32,Un=34,Cr=61,Am=35,em=36,tm=37,Qn=39,Fn=40,mr=41,rm=95,WA=45,nm=33,am=60,sm=62,im=64,um=91,om=93,cm=61,lm=123,In=63,fm=125,ic=124,hm=126,dm=128,uc=65533,vs=42,st=43,Bm=44,gm=58,Em=59,wr=46,pm=0,Cm=8,mm=11,wm=14,Tm=31,bm=127,ge=-1,oc=48,cc=97,lc=101,Um=102,Qm=117,Fm=122,fc=65,hc=69,dc=70,Im=85,_m=90,OA=function(A){return A>=oc&&A<=57},ym=function(A){return A>=55296&&A<=57343},Ft=function(A){return OA(A)||A>=fc&&A<=dc||A>=cc&&A<=Um},Nm=function(A){return A>=cc&&A<=Fm},Sm=function(A){return A>=fc&&A<=_m},vm=function(A){return Nm(A)||Sm(A)},Lm=function(A){return A>=dm},_n=function(A){return A===bn||A===jC||A===zC},yn=function(A){return vm(A)||Lm(A)||A===rm},Bc=function(A){return yn(A)||OA(A)||A===WA},Hm=function(A){return A>=pm&&A<=Cm||A===mm||A>=wm&&A<=Tm||A===bm},Re=function(A,e){return A!==pr?!1:e!==bn},Nn=function(A,e,t){return A===WA?yn(e)||Re(e,t):yn(A)?!0:!!(A===pr&&Re(A,e))},Ls=function(A,e,t){return A===st||A===WA?OA(e)?!0:e===wr&&OA(t):OA(A===wr?e:A)},xm=function(A){var e=0,t=1;(A[e]===st||A[e]===WA)&&(A[e]===WA&&(t=-1),e++);for(var r=[];OA(A[e]);)r.push(A[e++]);var n=r.length?parseInt(EA.apply(void 0,r),10):0;A[e]===wr&&e++;for(var a=[];OA(A[e]);)a.push(A[e++]);var s=a.length,u=s?parseInt(EA.apply(void 0,a),10):0;(A[e]===hc||A[e]===lc)&&e++;var o=1;(A[e]===st||A[e]===WA)&&(A[e]===WA&&(o=-1),e++);for(var c=[];OA(A[e]);)c.push(A[e++]);var f=c.length?parseInt(EA.apply(void 0,c),10):0;return t*(n+u*Math.pow(10,-s))*Math.pow(10,o*f)},Dm={type:2},Om={type:3},Rm={type:4},Mm={type:13},km={type:8},Pm={type:21},Km={type:9},Vm={type:10},Gm={type:11},Ym={type:12},Xm={type:14},Sn={type:23},Wm={type:1},Jm={type:25},qm={type:24},Zm={type:26},$m={type:27},jm={type:28},zm={type:29},A1={type:31},Hs={type:32},gc=function(){function A(){this._value=[]}return A.prototype.write=function(e){this._value=this._value.concat(hn(e))},A.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Hs;)e.push(t),t=this.consumeToken();return e},A.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Un:return this.consumeStringToken(Un);case Am:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Bc(t)||Re(r,n)){var a=Nn(t,r,n)?$C:ZC,s=this.consumeName();return{type:5,value:s,flags:a}}break;case em:if(this.peekCodePoint(0)===Cr)return this.consumeCodePoint(),Mm;break;case Qn:return this.consumeStringToken(Qn);case Fn:return Dm;case mr:return Om;case vs:if(this.peekCodePoint(0)===Cr)return this.consumeCodePoint(),Xm;break;case st:if(Ls(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Bm:return Rm;case WA:var u=e,o=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Ls(u,o,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Nn(u,o,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(o===WA&&c===sm)return this.consumeCodePoint(),this.consumeCodePoint(),qm;break;case wr:if(Ls(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case sc:if(this.peekCodePoint(0)===vs)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===vs&&(f=this.consumeCodePoint(),f===sc))return this.consumeToken();if(f===ge)return this.consumeToken()}break;case gm:return Zm;case Em:return $m;case am:if(this.peekCodePoint(0)===nm&&this.peekCodePoint(1)===WA&&this.peekCodePoint(2)===WA)return this.consumeCodePoint(),this.consumeCodePoint(),Jm;break;case im:var h=this.peekCodePoint(0),d=this.peekCodePoint(1),m=this.peekCodePoint(2);if(Nn(h,d,m)){var s=this.consumeName();return{type:7,value:s}}break;case um:return jm;case pr:if(Re(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case om:return zm;case cm:if(this.peekCodePoint(0)===Cr)return this.consumeCodePoint(),km;break;case lm:return Gm;case fm:return Ym;case Qm:case Im:var C=this.peekCodePoint(0),T=this.peekCodePoint(1);return C===st&&(Ft(T)||T===In)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case ic:if(this.peekCodePoint(0)===Cr)return this.consumeCodePoint(),Km;if(this.peekCodePoint(0)===ic)return this.consumeCodePoint(),Pm;break;case hm:if(this.peekCodePoint(0)===Cr)return this.consumeCodePoint(),Vm;break;case ge:return Hs}return _n(e)?(this.consumeWhiteSpace(),A1):OA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):yn(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:EA(e)}},A.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},A.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},A.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},A.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Ft(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var r=!1;t===In&&e.length<6;)e.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(EA.apply(void 0,e.map(function(o){return o===In?oc:o})),16),a=parseInt(EA.apply(void 0,e.map(function(o){return o===In?dc:o})),16);return{type:30,start:n,end:a}}var s=parseInt(EA.apply(void 0,e),16);if(this.peekCodePoint(0)===WA&&Ft(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var u=[];Ft(t)&&u.length<6;)u.push(t),t=this.consumeCodePoint();var a=parseInt(EA.apply(void 0,u),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},A.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Fn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Fn?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},A.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ge)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===Qn||t===Un){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ge||this.peekCodePoint(0)===mr)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Sn)}for(;;){var n=this.consumeCodePoint();if(n===ge||n===mr)return{type:22,value:EA.apply(void 0,e)};if(_n(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ge||this.peekCodePoint(0)===mr?(this.consumeCodePoint(),{type:22,value:EA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Sn);if(n===Un||n===Qn||n===Fn||Hm(n))return this.consumeBadUrlRemnants(),Sn;if(n===pr)if(Re(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Sn;else e.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;_n(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===mr||e===ge)return;Re(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(e){for(var t=5e4,r="";e>0;){var n=Math.min(t,e);r+=EA.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),r},A.prototype.consumeStringToken=function(e){var t="",r=0;do{var n=this._value[r];if(n===ge||n===void 0||n===e)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===bn)return this._value.splice(0,r),Wm;if(n===pr){var a=this._value[r+1];a!==ge&&a!==void 0&&(a===bn?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):Re(n,a)&&(t+=this.consumeStringSlice(r),t+=EA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},A.prototype.consumeNumber=function(){var e=[],t=Er,r=this.peekCodePoint(0);for((r===st||r===WA)&&e.push(this.consumeCodePoint());OA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===wr&&OA(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=ac;OA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((r===hc||r===lc)&&((n===st||n===WA)&&OA(a)||OA(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=ac;OA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[xm(e),t]},A.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],r=e[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Nn(n,a,s)){var u=this.consumeName();return{type:15,number:t,flags:r,unit:u}}return n===tm?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},A.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Ft(e)){for(var t=EA(e);Ft(this.peekCodePoint(0))&&t.length<6;)t+=EA(this.consumeCodePoint());_n(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||ym(r)||r>1114111?uc:r}return e===ge?uc:e},A.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(Bc(t))e+=EA(t);else if(Re(t,this.peekCodePoint(0)))e+=EA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},A}(),Ec=function(){function A(e){this._tokens=e}return A.create=function(e){var t=new gc;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},A.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},A.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||t1(r,e))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},A.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Hs:e},A.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},A}(),Tr=function(A){return A.type===15},It=function(A){return A.type===17},iA=function(A){return A.type===20},e1=function(A){return A.type===0},xs=function(A,e){return iA(A)&&A.value===e},pc=function(A){return A.type!==31},_t=function(A){return A.type!==31&&A.type!==4},Ee=function(A){var e=[],t=[];return A.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&e.push(t),e},t1=function(A,e){return e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3},Me=function(A){return A.type===17||A.type===15},mA=function(A){return A.type===16||Me(A)},Cc=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},vA={type:17,number:0,flags:Er},Ds={type:16,number:50,flags:Er},ke={type:16,number:100,flags:Er},br=function(A,e,t){var r=A[0],n=A[1];return[uA(r,e),uA(typeof n<"u"?n:r,t)]},uA=function(A,e){if(A.type===16)return A.number/100*e;if(Tr(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},mc="deg",wc="grad",Tc="rad",bc="turn",vn={name:"angle",parse:function(A,e){if(e.type===15)switch(e.unit){case mc:return Math.PI*e.number/180;case wc:return Math.PI/200*e.number;case Tc:return e.number;case bc:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Uc=function(A){return A.type===15&&(A.unit===mc||A.unit===wc||A.unit===Tc||A.unit===bc)},Qc=function(A){var e=A.filter(iA).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[vA,vA];case"to top":case"bottom":return ee(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[vA,ke];case"to right":case"left":return ee(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ke,ke];case"to bottom":case"top":return ee(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ke,vA];case"to left":case"right":return ee(270)}return 0},ee=function(A){return Math.PI*A/180},Pe={name:"color",parse:function(A,e){if(e.type===18){var t=r1[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),n=e.value.substring(1,2),a=e.value.substring(2,3);return Ve(parseInt(r+r,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),n=e.value.substring(1,2),a=e.value.substring(2,3),s=e.value.substring(3,4);return Ve(parseInt(r+r,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),n=e.value.substring(2,4),a=e.value.substring(4,6);return Ve(parseInt(r,16),parseInt(n,16),parseInt(a,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),n=e.value.substring(2,4),a=e.value.substring(4,6),s=e.value.substring(6,8);return Ve(parseInt(r,16),parseInt(n,16),parseInt(a,16),parseInt(s,16)/255)}}if(e.type===20){var u=Qe[e.value.toUpperCase()];if(typeof u<"u")return u}return Qe.TRANSPARENT}},Ke=function(A){return(255&A)===0},NA=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},Ve=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(r*255)<<0)>>>0},Fc=function(A,e){if(A.type===17)return A.number;if(A.type===16){var t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},Ic=function(A,e){var t=e.filter(_t);if(t.length===3){var r=t.map(Fc),n=r[0],a=r[1],s=r[2];return Ve(n,a,s,1)}if(t.length===4){var u=t.map(Fc),n=u[0],a=u[1],s=u[2],o=u[3];return Ve(n,a,s,o)}return 0};function Os(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<1/2?e:t<2/3?(e-A)*6*(2/3-t)+A:A}var _c=function(A,e){var t=e.filter(_t),r=t[0],n=t[1],a=t[2],s=t[3],u=(r.type===17?ee(r.number):vn.parse(A,r))/(Math.PI*2),o=mA(n)?n.number/100:0,c=mA(a)?a.number/100:0,f=typeof s<"u"&&mA(s)?uA(s,1):1;if(o===0)return Ve(c*255,c*255,c*255,1);var h=c<=.5?c*(o+1):c+o-c*o,d=c*2-h,m=Os(d,h,u+1/3),C=Os(d,h,u),T=Os(d,h,u-1/3);return Ve(m*255,C*255,T*255,f)},r1={hsl:_c,hsla:_c,rgb:Ic,rgba:Ic},Ur=function(A,e){return Pe.parse(A,Ec.create(e).parseComponentValue())},Qe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},n1={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(t){if(iA(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},a1={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ln=function(A,e){var t=Pe.parse(A,e[0]),r=e[1];return r&&mA(r)?{color:t,stop:r}:{color:t,stop:null}},yc=function(A,e){var t=A[0],r=A[A.length-1];t.stop===null&&(t.stop=vA),r.stop===null&&(r.stop=ke);for(var n=[],a=0,s=0;s<A.length;s++){var u=A[s].stop;if(u!==null){var o=uA(u,e);o>a?n.push(o):n.push(a),a=o}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var f=n[s];if(f===null)c===null&&(c=s);else if(c!==null){for(var h=s-c,d=n[c-1],m=(f-d)/(h+1),C=1;C<=h;C++)n[c+C-1]=m*C;c=null}}return A.map(function(T,F){var Q=T.color;return{color:Q,stop:Math.max(Math.min(1,n[F]/e),0)}})},s1=function(A,e,t){var r=e/2,n=t/2,a=uA(A[0],e)-r,s=n-uA(A[1],t);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},i1=function(A,e,t){var r=typeof A=="number"?A:s1(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),a=e/2,s=t/2,u=n/2,o=Math.sin(r-Math.PI/2)*u,c=Math.cos(r-Math.PI/2)*u;return[n,a-c,a+c,s-o,s+o]},oe=function(A,e){return Math.sqrt(A*A+e*e)},Nc=function(A,e,t,r,n){var a=[[0,0],[0,e],[A,0],[A,e]];return a.reduce(function(s,u){var o=u[0],c=u[1],f=oe(t-o,r-c);return(n?f<s.optimumDistance:f>s.optimumDistance)?{optimumCorner:u,optimumDistance:f}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},u1=function(A,e,t,r,n){var a=0,s=0;switch(A.size){case 0:A.shape===0?a=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(A.shape===0)a=s=Math.min(oe(e,t),oe(e,t-n),oe(e-r,t),oe(e-r,t-n));else if(A.shape===1){var u=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),o=Nc(r,n,e,t,!0),c=o[0],f=o[1];a=oe(c-e,(f-t)/u),s=u*a}break;case 1:A.shape===0?a=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(A.shape===0)a=s=Math.max(oe(e,t),oe(e,t-n),oe(e-r,t),oe(e-r,t-n));else if(A.shape===1){var u=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r)),h=Nc(r,n,e,t,!1),c=h[0],f=h[1];a=oe(c-e,(f-t)/u),s=u*a}break}return Array.isArray(A.size)&&(a=uA(A.size[0],r),s=A.size.length===2?uA(A.size[1],n):a),[a,s]},o1=function(A,e){var t=ee(180),r=[];return Ee(e).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&s.value==="to"){t=Qc(n);return}else if(Uc(s)){t=vn.parse(A,s);return}}var u=Ln(A,n);r.push(u)}),{angle:t,stops:r,type:1}},Hn=function(A,e){var t=ee(180),r=[];return Ee(e).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){t=Qc(n);return}else if(Uc(s)){t=(vn.parse(A,s)+ee(270))%ee(360);return}}var u=Ln(A,n);r.push(u)}),{angle:t,stops:r,type:1}},c1=function(A,e){var t=ee(180),r=[],n=1,a=0,s=3,u=[];return Ee(e).forEach(function(o,c){var f=o[0];if(c===0){if(iA(f)&&f.value==="linear"){n=1;return}else if(iA(f)&&f.value==="radial"){n=2;return}}if(f.type===18){if(f.name==="from"){var h=Pe.parse(A,f.values[0]);r.push({stop:vA,color:h})}else if(f.name==="to"){var h=Pe.parse(A,f.values[0]);r.push({stop:ke,color:h})}else if(f.name==="color-stop"){var d=f.values.filter(_t);if(d.length===2){var h=Pe.parse(A,d[1]),m=d[0];It(m)&&r.push({stop:{type:16,number:m.number*100,flags:m.flags},color:h})}}}}),n===1?{angle:(t+ee(180))%ee(360),stops:r,type:n}:{size:s,shape:a,stops:r,position:u,type:n}},Sc="closest-side",vc="farthest-side",Lc="closest-corner",Hc="farthest-corner",xc="circle",Dc="ellipse",Oc="cover",Rc="contain",l1=function(A,e){var t=0,r=3,n=[],a=[];return Ee(e).forEach(function(s,u){var o=!0;if(u===0){var c=!1;o=s.reduce(function(h,d){if(c)if(iA(d))switch(d.value){case"center":return a.push(Ds),h;case"top":case"left":return a.push(vA),h;case"right":case"bottom":return a.push(ke),h}else(mA(d)||Me(d))&&a.push(d);else if(iA(d))switch(d.value){case xc:return t=0,!1;case Dc:return t=1,!1;case"at":return c=!0,!1;case Sc:return r=0,!1;case Oc:case vc:return r=1,!1;case Rc:case Lc:return r=2,!1;case Hc:return r=3,!1}else if(Me(d)||mA(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return h},o)}if(o){var f=Ln(A,s);n.push(f)}}),{size:r,shape:t,stops:n,position:a,type:2}},xn=function(A,e){var t=0,r=3,n=[],a=[];return Ee(e).forEach(function(s,u){var o=!0;if(u===0?o=s.reduce(function(f,h){if(iA(h))switch(h.value){case"center":return a.push(Ds),!1;case"top":case"left":return a.push(vA),!1;case"right":case"bottom":return a.push(ke),!1}else if(mA(h)||Me(h))return a.push(h),!1;return f},o):u===1&&(o=s.reduce(function(f,h){if(iA(h))switch(h.value){case xc:return t=0,!1;case Dc:return t=1,!1;case Rc:case Sc:return r=0,!1;case vc:return r=1,!1;case Lc:return r=2,!1;case Oc:case Hc:return r=3,!1}else if(Me(h)||mA(h))return Array.isArray(r)||(r=[]),r.push(h),!1;return f},o)),o){var c=Ln(A,s);n.push(c)}}),{size:r,shape:t,stops:n,position:a,type:2}},f1=function(A){return A.type===1},h1=function(A){return A.type===2},Rs={name:"image",parse:function(A,e){if(e.type===22){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){var r=Mc[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function d1(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!Mc[A.name])}var Mc={"linear-gradient":o1,"-moz-linear-gradient":Hn,"-ms-linear-gradient":Hn,"-o-linear-gradient":Hn,"-webkit-linear-gradient":Hn,"radial-gradient":l1,"-moz-radial-gradient":xn,"-ms-radial-gradient":xn,"-o-radial-gradient":xn,"-webkit-radial-gradient":xn,"-webkit-gradient":c1},B1={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(r){return _t(r)&&d1(r)}).map(function(r){return Rs.parse(A,r)})}},g1={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(t){if(iA(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},E1={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return Ee(e).map(function(t){return t.filter(mA)}).map(Cc)}},p1={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return Ee(e).map(function(t){return t.filter(iA).map(function(r){return r.value}).join(" ")}).map(C1)}},C1=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},yt;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(yt||(yt={}));var m1={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return Ee(e).map(function(t){return t.filter(w1)})}},w1=function(A){return iA(A)||mA(A)},Dn=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},T1=Dn("top"),b1=Dn("right"),U1=Dn("bottom"),Q1=Dn("left"),On=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Cc(t.filter(mA))}}},F1=On("top-left"),I1=On("top-right"),_1=On("bottom-right"),y1=On("bottom-left"),Rn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},N1=Rn("top"),S1=Rn("right"),v1=Rn("bottom"),L1=Rn("left"),Mn=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Tr(t)?t.number:0}}},H1=Mn("top"),x1=Mn("right"),D1=Mn("bottom"),O1=Mn("left"),R1={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},M1={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},k1={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(iA).reduce(function(t,r){return t|P1(r.value)},0)}},P1=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},K1={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},V1={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},kn;(function(A){A.NORMAL="normal",A.STRICT="strict"})(kn||(kn={}));var G1={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"strict":return kn.STRICT;case"normal":default:return kn.NORMAL}}},Y1={name:"line-height",initialValue:"normal",prefix:!1,type:4},kc=function(A,e){return iA(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:mA(A)?uA(A,e):e},X1={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return e.type===20&&e.value==="none"?null:Rs.parse(A,e)}},W1={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Ms={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Pn=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},J1=Pn("top"),q1=Pn("right"),Z1=Pn("bottom"),$1=Pn("left"),j1={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(iA).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},z1={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Kn=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Aw=Kn("top"),ew=Kn("right"),tw=Kn("bottom"),rw=Kn("left"),nw={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},aw={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},sw={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&xs(e[0],"none")?[]:Ee(e).map(function(t){for(var r={color:Qe.TRANSPARENT,offsetX:vA,offsetY:vA,blur:vA},n=0,a=0;a<t.length;a++){var s=t[a];Me(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:r.blur=s,n++):r.color=Pe.parse(A,s)}return r})}},iw={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},uw={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=lw[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},ow=function(A){var e=A.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},cw=function(A){var e=A.filter(function(o){return o.type===17}).map(function(o){return o.number}),t=e[0],r=e[1];e[2],e[3];var n=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],u=e[13];return e[14],e[15],e.length===16?[t,r,n,a,s,u]:null},lw={matrix:ow,matrix3d:cw},Pc={type:16,number:50,flags:Er},fw=[Pc,Pc],hw={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(mA);return t.length!==2?fw:[t[0],t[1]]}},dw={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Qr;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(Qr||(Qr={}));for(var Bw={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return Qr.BREAK_ALL;case"keep-all":return Qr.KEEP_ALL;case"normal":default:return Qr.NORMAL}}},gw={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(e.type===20)return{auto:!0,order:0};if(It(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Kc={name:"time",parse:function(A,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},Ew={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return It(e)?e.number:1}},pw={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cw={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(iA).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},mw={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach(function(n){switch(n.type){case 20:case 0:t.push(n.value);break;case 17:t.push(n.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},ww={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Tw={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){if(It(e))return e.number;if(iA(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},bw={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(iA).map(function(t){return t.value})}},Uw={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},bA=function(A,e){return(A&e)!==0},Qw={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},Fw={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=e.filter(pc),a=0;a<n.length;a++){var s=n[a],u=n[a+1];if(s.type===20){var o=u&&It(u)?u.number:1;r.push({counter:s.value,increment:o})}}return r}},Iw={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return[];for(var t=[],r=e.filter(pc),n=0;n<r.length;n++){var a=r[n],s=r[n+1];if(iA(a)&&a.value!=="none"){var u=s&&It(s)?s.number:0;t.push({counter:a.value,reset:u})}}return t}},_w={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(Tr).map(function(t){return Kc.parse(A,t)})}},yw={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var r=[],n=e.filter(e1);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var s=n[a].value,u=n[a+1].value;r.push({open:s,close:u})}return r}},Vc=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},Nw={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&xs(e[0],"none")?[]:Ee(e).map(function(t){for(var r={color:255,offsetX:vA,offsetY:vA,blur:vA,spread:vA,inset:!1},n=0,a=0;a<t.length;a++){var s=t[a];xs(s,"inset")?r.inset=!0:Me(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:n===2?r.blur=s:r.spread=s,n++):r.color=Pe.parse(A,s)}return r})}},Sw={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[0,1,2],r=[];return e.filter(iA).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},vw={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Lw={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Tr(e)?e.number:0}},Hw=function(){function A(e,t){var r,n;this.animationDuration=D(e,_w,t.animationDuration),this.backgroundClip=D(e,n1,t.backgroundClip),this.backgroundColor=D(e,a1,t.backgroundColor),this.backgroundImage=D(e,B1,t.backgroundImage),this.backgroundOrigin=D(e,g1,t.backgroundOrigin),this.backgroundPosition=D(e,E1,t.backgroundPosition),this.backgroundRepeat=D(e,p1,t.backgroundRepeat),this.backgroundSize=D(e,m1,t.backgroundSize),this.borderTopColor=D(e,T1,t.borderTopColor),this.borderRightColor=D(e,b1,t.borderRightColor),this.borderBottomColor=D(e,U1,t.borderBottomColor),this.borderLeftColor=D(e,Q1,t.borderLeftColor),this.borderTopLeftRadius=D(e,F1,t.borderTopLeftRadius),this.borderTopRightRadius=D(e,I1,t.borderTopRightRadius),this.borderBottomRightRadius=D(e,_1,t.borderBottomRightRadius),this.borderBottomLeftRadius=D(e,y1,t.borderBottomLeftRadius),this.borderTopStyle=D(e,N1,t.borderTopStyle),this.borderRightStyle=D(e,S1,t.borderRightStyle),this.borderBottomStyle=D(e,v1,t.borderBottomStyle),this.borderLeftStyle=D(e,L1,t.borderLeftStyle),this.borderTopWidth=D(e,H1,t.borderTopWidth),this.borderRightWidth=D(e,x1,t.borderRightWidth),this.borderBottomWidth=D(e,D1,t.borderBottomWidth),this.borderLeftWidth=D(e,O1,t.borderLeftWidth),this.boxShadow=D(e,Nw,t.boxShadow),this.color=D(e,R1,t.color),this.direction=D(e,M1,t.direction),this.display=D(e,k1,t.display),this.float=D(e,K1,t.cssFloat),this.fontFamily=D(e,mw,t.fontFamily),this.fontSize=D(e,ww,t.fontSize),this.fontStyle=D(e,Uw,t.fontStyle),this.fontVariant=D(e,bw,t.fontVariant),this.fontWeight=D(e,Tw,t.fontWeight),this.letterSpacing=D(e,V1,t.letterSpacing),this.lineBreak=D(e,G1,t.lineBreak),this.lineHeight=D(e,Y1,t.lineHeight),this.listStyleImage=D(e,X1,t.listStyleImage),this.listStylePosition=D(e,W1,t.listStylePosition),this.listStyleType=D(e,Ms,t.listStyleType),this.marginTop=D(e,J1,t.marginTop),this.marginRight=D(e,q1,t.marginRight),this.marginBottom=D(e,Z1,t.marginBottom),this.marginLeft=D(e,$1,t.marginLeft),this.opacity=D(e,Ew,t.opacity);var a=D(e,j1,t.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=D(e,z1,t.overflowWrap),this.paddingTop=D(e,Aw,t.paddingTop),this.paddingRight=D(e,ew,t.paddingRight),this.paddingBottom=D(e,tw,t.paddingBottom),this.paddingLeft=D(e,rw,t.paddingLeft),this.paintOrder=D(e,Sw,t.paintOrder),this.position=D(e,aw,t.position),this.textAlign=D(e,nw,t.textAlign),this.textDecorationColor=D(e,pw,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=D(e,Cw,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=D(e,sw,t.textShadow),this.textTransform=D(e,iw,t.textTransform),this.transform=D(e,uw,t.transform),this.transformOrigin=D(e,hw,t.transformOrigin),this.visibility=D(e,dw,t.visibility),this.webkitTextStrokeColor=D(e,vw,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=D(e,Lw,t.webkitTextStrokeWidth),this.wordBreak=D(e,Bw,t.wordBreak),this.zIndex=D(e,gw,t.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return Ke(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return bA(this.display,4)||bA(this.display,33554432)||bA(this.display,268435456)||bA(this.display,536870912)||bA(this.display,67108864)||bA(this.display,134217728)},A}(),xw=function(){function A(e,t){this.content=D(e,Qw,t.content),this.quotes=D(e,yw,t.quotes)}return A}(),Gc=function(){function A(e,t){this.counterIncrement=D(e,Fw,t.counterIncrement),this.counterReset=D(e,Iw,t.counterReset)}return A}(),D=function(A,e,t){var r=new gc,n=t!==null&&typeof t<"u"?t.toString():e.initialValue;r.write(n);var a=new Ec(r.read());switch(e.type){case 2:var s=a.parseComponentValue();return e.parse(A,iA(s)?s.value:e.initialValue);case 0:return e.parse(A,a.parseComponentValue());case 1:return e.parse(A,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return vn.parse(A,a.parseComponentValue());case"color":return Pe.parse(A,a.parseComponentValue());case"image":return Rs.parse(A,a.parseComponentValue());case"length":var u=a.parseComponentValue();return Me(u)?u:vA;case"length-percentage":var o=a.parseComponentValue();return mA(o)?o:vA;case"time":return Kc.parse(A,a.parseComponentValue())}break}},Dw="data-html2canvas-debug",Ow=function(A){var e=A.getAttribute(Dw);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ks=function(A,e){var t=Ow(A);return t===1||e===t},pe=function(){function A(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,ks(t,3))debugger;this.styles=new Hw(e,window.getComputedStyle(t,null)),Ai(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=fn(this.context,t),ks(t,4)&&(this.flags|=16)}return A}(),Rw="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Yc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fr=typeof Uint8Array>"u"?[]:new Uint8Array(256),Vn=0;Vn<Yc.length;Vn++)Fr[Yc.charCodeAt(Vn)]=Vn;for(var Mw=function(A){var e=A.length*.75,t=A.length,r,n=0,a,s,u,o;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),f=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<t;r+=4)a=Fr[A.charCodeAt(r)],s=Fr[A.charCodeAt(r+1)],u=Fr[A.charCodeAt(r+2)],o=Fr[A.charCodeAt(r+3)],f[n++]=a<<2|s>>4,f[n++]=(s&15)<<4|u>>2,f[n++]=(u&3)<<6|o&63;return c},kw=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},Pw=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},it=5,Ps=11,Ks=2,Kw=Ps-it,Xc=65536>>it,Vw=1<<it,Vs=Vw-1,Gw=1024>>it,Yw=Xc+Gw,Xw=Yw,Ww=32,Jw=Xw+Ww,qw=65536>>Ps,Zw=1<<Kw,$w=Zw-1,Wc=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},jw=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},zw=function(A,e){var t=Mw(A),r=Array.isArray(t)?Pw(t):new Uint32Array(t),n=Array.isArray(t)?kw(t):new Uint16Array(t),a=24,s=Wc(n,a/2,r[4]/2),u=r[5]===2?Wc(n,(a+r[4])/2):jw(r,Math.ceil((a+r[4])/4));return new AT(r[0],r[1],r[2],r[3],s,u)},AT=function(){function A(e,t,r,n,a,s){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=a,this.data=s}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>it],t=(t<<Ks)+(e&Vs),this.data[t];if(e<=65535)return t=this.index[Xc+(e-55296>>it)],t=(t<<Ks)+(e&Vs),this.data[t];if(e<this.highStart)return t=Jw-qw+(e>>Ps),t=this.index[t],t+=e>>it&$w,t=this.index[t],t=(t<<Ks)+(e&Vs),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Jc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eT=typeof Uint8Array>"u"?[]:new Uint8Array(256),Gn=0;Gn<Jc.length;Gn++)eT[Jc.charCodeAt(Gn)]=Gn;var tT=1,Gs=2,Ys=3,qc=4,Zc=5,rT=7,$c=8,Xs=9,Ws=10,jc=11,zc=12,Al=13,el=14,Js=15,nT=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var a=A.charCodeAt(t++);(a&64512)===56320?e.push(((n&1023)<<10)+(a&1023)+65536):(e.push(n),t--)}else e.push(n)}return e},aT=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,a="";++n<t;){var s=A[n];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(n+1===t||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},sT=zw(Rw),te="×",qs="÷",iT=function(A){return sT.get(A)},uT=function(A,e,t){var r=t-2,n=e[r],a=e[t-1],s=e[t];if(a===Gs&&s===Ys)return te;if(a===Gs||a===Ys||a===qc||s===Gs||s===Ys||s===qc)return qs;if(a===$c&&[$c,Xs,jc,zc].indexOf(s)!==-1||(a===jc||a===Xs)&&(s===Xs||s===Ws)||(a===zc||a===Ws)&&s===Ws||s===Al||s===Zc||s===rT||a===tT)return te;if(a===Al&&s===el){for(;n===Zc;)n=e[--r];if(n===el)return te}if(a===Js&&s===Js){for(var u=0;n===Js;)u++,n=e[--r];if(u%2===0)return te}return qs},oT=function(A){var e=nT(A),t=e.length,r=0,n=0,a=e.map(iT);return{next:function(){if(r>=t)return{done:!0,value:null};for(var s=te;r<t&&(s=uT(e,a,++r))===te;);if(s!==te||r===t){var u=aT.apply(null,e.slice(n,r));return n=r,{value:u,done:!1}}return{done:!0,value:null}}}},cT=function(A){for(var e=oT(A),t=[],r;!(r=e.next()).done;)r.value&&t.push(r.value.slice());return t},lT=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=e+"px",r.style.display="block",A.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),a=Math.round(n.height);if(A.body.removeChild(r),a===e)return!0}}return!1},fT=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=e.firstChild,n=hn(r.data).map(function(o){return EA(o)}),a=0,s={},u=n.every(function(o,c){t.setStart(r,a),t.setEnd(r,a+o.length);var f=t.getBoundingClientRect();a+=o.length;var h=f.x>s.x||f.y>s.y;return s=f,c===0?!0:h});return A.body.removeChild(e),u},hT=function(){return typeof new Image().crossOrigin<"u"},dT=function(){return typeof new XMLHttpRequest().responseType=="string"},BT=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},tl=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},gT=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,a=e.toDataURL();n.src=a;var s=Zs(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),rl(s).then(function(u){r.drawImage(u,0,0);var o=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var c=A.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=t+"px",tl(o)?rl(Zs(t,t,0,0,c)):Promise.reject(!1)}).then(function(u){return r.drawImage(u,0,0),tl(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Zs=function(A,e,t,r,n){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),u=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),u.setAttributeNS(null,"width","100%"),u.setAttributeNS(null,"height","100%"),u.setAttributeNS(null,"x",t.toString()),u.setAttributeNS(null,"y",r.toString()),u.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(u),u.appendChild(n),s},rl=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},LA={get SUPPORT_RANGE_BOUNDS(){var A=lT(document);return Object.defineProperty(LA,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=LA.SUPPORT_RANGE_BOUNDS&&fT(document);return Object.defineProperty(LA,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=BT(document);return Object.defineProperty(LA,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?gT(document):Promise.resolve(!1);return Object.defineProperty(LA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=hT();return Object.defineProperty(LA,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=dT();return Object.defineProperty(LA,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(LA,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(LA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Ir=function(){function A(e,t){this.text=e,this.bounds=t}return A}(),ET=function(A,e,t,r){var n=mT(e,t),a=[],s=0;return n.forEach(function(u){if(t.textDecorationLine.length||u.trim().length>0)if(LA.SUPPORT_RANGE_BOUNDS){var o=nl(r,s,u.length).getClientRects();if(o.length>1){var c=$s(u),f=0;c.forEach(function(d){a.push(new Ir(d,be.fromDOMRectList(A,nl(r,f+s,d.length).getClientRects()))),f+=d.length})}else a.push(new Ir(u,be.fromDOMRectList(A,o)))}else{var h=r.splitText(u.length);a.push(new Ir(u,pT(A,r))),r=h}else LA.SUPPORT_RANGE_BOUNDS||(r=r.splitText(u.length));s+=u.length}),a},pT=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var a=fn(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),a}}return be.EMPTY},nl=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},$s=function(A){if(LA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(t){return t.segment})}return cT(A)},CT=function(A,e){if(LA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(function(r){return r.segment})}return TT(A,e)},mT=function(A,e){return e.letterSpacing!==0?$s(A):CT(A,e)},wT=[32,160,4961,65792,65793,4153,4241],TT=function(A,e){for(var t=qC(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],n,a=function(){if(n.value){var s=n.value.slice(),u=hn(s),o="";u.forEach(function(c){wT.indexOf(c)===-1?o+=EA(c):(o.length&&r.push(o),r.push(EA(c)),o="")}),o.length&&r.push(o)}};!(n=t.next()).done;)a();return r},bT=function(){function A(e,t,r){this.text=UT(t.data,r.textTransform),this.textBounds=ET(e,this.text,r,t)}return A}(),UT=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(QT,FT);case 2:return A.toUpperCase();default:return A}},QT=/(^|\s|:|-|\(|\))([a-z])/g,FT=function(A,e,t){return A.length>0?e+t.toUpperCase():A},al=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return e}(pe),sl=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return e}(pe),il=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this,a=new XMLSerializer,s=fn(t,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e}(pe),ul=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.value=r.value,n}return e}(pe),js=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return e}(pe),IT=[{type:15,flags:0,unit:"px",number:3}],_T=[{type:16,flags:0,number:50}],yT=function(A){return A.width>A.height?new be(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new be(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},NT=function(A){var e=A.type===ST?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},Yn="checkbox",Xn="radio",ST="password",ol=707406591,zs=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=NT(r),(n.type===Yn||n.type===Xn)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=yT(n.bounds)),n.type){case Yn:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=IT;break;case Xn:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=_T;break}return n}return e}(pe),cl=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this,a=r.options[r.selectedIndex||0];return n.value=a&&a.text||"",n}return e}(pe),ll=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.value=r.value,n}return e}(pe),fl=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=dl(t,r.contentWindow.document.documentElement);var a=r.contentWindow.document.documentElement?Ur(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):Qe.TRANSPARENT,s=r.contentWindow.document.body?Ur(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):Qe.TRANSPARENT;n.backgroundColor=Ke(a)?Ke(s)?n.styles.backgroundColor:s:a}}catch{}return n}return e}(pe),vT=["OL","UL","MENU"],Wn=function(A,e,t,r){for(var n=e.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,Bl(n)&&n.data.trim().length>0)t.textNodes.push(new bT(A,n,t.styles));else if(Nt(n))if(wl(n)&&n.assignedNodes)n.assignedNodes().forEach(function(u){return Wn(A,u,t,r)});else{var s=hl(A,n);s.styles.isVisible()&&(LT(n,s,r)?s.flags|=4:HT(s.styles)&&(s.flags|=2),vT.indexOf(n.tagName)!==-1&&(s.flags|=8),t.elements.push(s),n.slot,n.shadowRoot?Wn(A,n.shadowRoot,s,r):!qn(n)&&!gl(n)&&!Zn(n)&&Wn(A,n,s,r))}},hl=function(A,e){return ti(e)?new al(A,e):El(e)?new sl(A,e):gl(e)?new il(A,e):xT(e)?new ul(A,e):DT(e)?new js(A,e):OT(e)?new zs(A,e):Zn(e)?new cl(A,e):qn(e)?new ll(A,e):Cl(e)?new fl(A,e):new pe(A,e)},dl=function(A,e){var t=hl(A,e);return t.flags|=4,Wn(A,e,t,t),t},LT=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||ei(A)&&t.styles.isTransparent()},HT=function(A){return A.isPositioned()||A.isFloating()},Bl=function(A){return A.nodeType===Node.TEXT_NODE},Nt=function(A){return A.nodeType===Node.ELEMENT_NODE},Ai=function(A){return Nt(A)&&typeof A.style<"u"&&!Jn(A)},Jn=function(A){return typeof A.className=="object"},xT=function(A){return A.tagName==="LI"},DT=function(A){return A.tagName==="OL"},OT=function(A){return A.tagName==="INPUT"},RT=function(A){return A.tagName==="HTML"},gl=function(A){return A.tagName==="svg"},ei=function(A){return A.tagName==="BODY"},El=function(A){return A.tagName==="CANVAS"},pl=function(A){return A.tagName==="VIDEO"},ti=function(A){return A.tagName==="IMG"},Cl=function(A){return A.tagName==="IFRAME"},ml=function(A){return A.tagName==="STYLE"},MT=function(A){return A.tagName==="SCRIPT"},qn=function(A){return A.tagName==="TEXTAREA"},Zn=function(A){return A.tagName==="SELECT"},wl=function(A){return A.tagName==="SLOT"},Tl=function(A){return A.tagName.indexOf("-")>0},kT=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},A.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},A.prototype.pop=function(e){var t=this;e.forEach(function(r){return t.counters[r].pop()})},A.prototype.parse=function(e){var t=this,r=e.counterIncrement,n=e.counterReset,a=!0;r!==null&&r.forEach(function(u){var o=t.counters[u.counter];o&&u.increment!==0&&(a=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=u.increment)});var s=[];return a&&n.forEach(function(u){var o=t.counters[u.counter];s.push(u.counter),o||(o=t.counters[u.counter]=[]),o.push(u.reset)}),s},A}(),bl={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ul={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},PT={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},KT={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},St=function(A,e,t,r,n,a){return A<e||A>t?yr(A,n,a.length>0):r.integers.reduce(function(s,u,o){for(;A>=u;)A-=u,s+=r.values[o];return s},"")+a},Ql=function(A,e,t,r){var n="";do t||A--,n=r(A)+n,A/=e;while(A*e>=e);return n},pA=function(A,e,t,r,n){var a=t-e+1;return(A<0?"-":"")+(Ql(Math.abs(A),a,r,function(s){return EA(Math.floor(s%a)+e)})+n)},ut=function(A,e,t){t===void 0&&(t=". ");var r=e.length;return Ql(Math.abs(A),r,!1,function(n){return e[Math.floor(n%r)]})+t},vt=1,Ge=2,Ye=4,_r=8,Fe=function(A,e,t,r,n,a){if(A<-9999||A>9999)return yr(A,4,n.length>0);var s=Math.abs(A),u=n;if(s===0)return e[0]+u;for(var o=0;s>0&&o<=4;o++){var c=s%10;c===0&&bA(a,vt)&&u!==""?u=e[c]+u:c>1||c===1&&o===0||c===1&&o===1&&bA(a,Ge)||c===1&&o===1&&bA(a,Ye)&&A>100||c===1&&o>1&&bA(a,_r)?u=e[c]+(o>0?t[o-1]:"")+u:c===1&&o>0&&(u=t[o-1]+u),s=Math.floor(s/10)}return(A<0?r:"")+u},Fl="十百千萬",Il="拾佰仟萬",_l="マイナス",ri="마이너스",yr=function(A,e,t){var r=t?". ":"",n=t?"、":"",a=t?", ":"",s=t?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var u=pA(A,48,57,!0,r);return u.length<4?"0"+u:u;case 4:return ut(A,"〇一二三四五六七八九",n);case 6:return St(A,1,3999,bl,3,r).toLowerCase();case 7:return St(A,1,3999,bl,3,r);case 8:return pA(A,945,969,!1,r);case 9:return pA(A,97,122,!1,r);case 10:return pA(A,65,90,!1,r);case 11:return pA(A,1632,1641,!0,r);case 12:case 49:return St(A,1,9999,Ul,3,r);case 35:return St(A,1,9999,Ul,3,r).toLowerCase();case 13:return pA(A,2534,2543,!0,r);case 14:case 30:return pA(A,6112,6121,!0,r);case 15:return ut(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return ut(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return Fe(A,"零一二三四五六七八九",Fl,"負",n,Ge|Ye|_r);case 47:return Fe(A,"零壹貳參肆伍陸柒捌玖",Il,"負",n,vt|Ge|Ye|_r);case 42:return Fe(A,"零一二三四五六七八九",Fl,"负",n,Ge|Ye|_r);case 41:return Fe(A,"零壹贰叁肆伍陆柒捌玖",Il,"负",n,vt|Ge|Ye|_r);case 26:return Fe(A,"〇一二三四五六七八九","十百千万",_l,n,0);case 25:return Fe(A,"零壱弐参四伍六七八九","拾百千万",_l,n,vt|Ge|Ye);case 31:return Fe(A,"영일이삼사오육칠팔구","십백천만",ri,a,vt|Ge|Ye);case 33:return Fe(A,"零一二三四五六七八九","十百千萬",ri,a,0);case 32:return Fe(A,"零壹貳參四五六七八九","拾百千",ri,a,vt|Ge|Ye);case 18:return pA(A,2406,2415,!0,r);case 20:return St(A,1,19999,KT,3,r);case 21:return pA(A,2790,2799,!0,r);case 22:return pA(A,2662,2671,!0,r);case 22:return St(A,1,10999,PT,3,r);case 23:return ut(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ut(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return pA(A,3302,3311,!0,r);case 28:return ut(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return ut(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return pA(A,3792,3801,!0,r);case 37:return pA(A,6160,6169,!0,r);case 38:return pA(A,4160,4169,!0,r);case 39:return pA(A,2918,2927,!0,r);case 40:return pA(A,1776,1785,!0,r);case 43:return pA(A,3046,3055,!0,r);case 44:return pA(A,3174,3183,!0,r);case 45:return pA(A,3664,3673,!0,r);case 46:return pA(A,3872,3881,!0,r);case 3:default:return pA(A,48,57,!0,r)}},yl="data-html2canvas-ignore",Nl=function(){function A(e,t,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new kT,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(e,t){var r=this,n=VT(e,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,u=n.contentWindow,o=u.document,c=XT(n).then(function(){return kA(r,void 0,void 0,function(){var f,h;return DA(this,function(d){switch(d.label){case 0:return this.scrolledElements.forEach(ZT),u&&(u.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.scrollY!==t.top||u.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-t.left,u.scrollY-t.top,0,0))),f=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:d.sent(),d.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,YT(o)]:[3,4];case 3:d.sent(),d.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(o,h)}).then(function(){return n})]:[2,n]}})})});return o.open(),o.write(JT(document.doctype)+"<html></html>"),qT(this.referenceElement.ownerDocument,a,s),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),c},A.prototype.createElementClone=function(e){if(ks(e,2))debugger;if(El(e))return this.createCanvasClone(e);if(pl(e))return this.createVideoClone(e);if(ml(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return ti(t)&&(ti(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),Tl(t)?this.createCustomElementClone(t):t},A.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return ni(e.style,t),t},A.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),n=e.cloneNode(!1);return n.textContent=r,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},A.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var a=e.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var u=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(u){var o=u.getContextAttributes();(o==null?void 0:o.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},A.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},A.prototype.appendChildNode=function(e,t,r){(!Nt(t)||!MT(t)&&!t.hasAttribute(yl)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Nt(t)||!ml(t))&&e.appendChild(this.cloneNode(t,r))},A.prototype.cloneChildNodes=function(e,t,r){for(var n=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(Nt(a)&&wl(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(u){return n.appendChildNode(t,u,r)})}else this.appendChildNode(t,a,r)},A.prototype.cloneNode=function(e,t){if(Bl(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&Nt(e)&&(Ai(e)||Jn(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var a=r.getComputedStyle(e),s=r.getComputedStyle(e,":before"),u=r.getComputedStyle(e,":after");this.referenceElement===e&&Ai(n)&&(this.clonedReferenceElement=n),ei(n)&&zT(n);var o=this.counters.parse(new Gc(this.context,a)),c=this.resolvePseudoContent(e,n,s,Nr.BEFORE);Tl(e)&&(t=!0),pl(e)||this.cloneChildNodes(e,n,t),c&&n.insertBefore(c,n.firstChild);var f=this.resolvePseudoContent(e,n,u,Nr.AFTER);return f&&n.appendChild(f),this.counters.pop(o),(a&&(this.options.copyStyles||Jn(e))&&!Cl(e)||t)&&ni(a,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(qn(e)||Zn(e))&&(qn(n)||Zn(n))&&(n.value=e.value),n}return e.cloneNode(!1)},A.prototype.resolvePseudoContent=function(e,t,r,n){var a=this;if(r){var s=r.content,u=t.ownerDocument;if(!(!u||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Gc(this.context,r));var o=new xw(this.context,r),c=u.createElement("html2canvaspseudoelement");ni(r,c),o.content.forEach(function(h){if(h.type===0)c.appendChild(u.createTextNode(h.value));else if(h.type===22){var d=u.createElement("img");d.src=h.value,d.style.opacity="1",c.appendChild(d)}else if(h.type===18){if(h.name==="attr"){var m=h.values.filter(iA);m.length&&c.appendChild(u.createTextNode(e.getAttribute(m[0].value)||""))}else if(h.name==="counter"){var C=h.values.filter(_t),T=C[0],F=C[1];if(T&&iA(T)){var Q=a.counters.getCounterValue(T.value),I=F&&iA(F)?Ms.parse(a.context,F.value):3;c.appendChild(u.createTextNode(yr(Q,I,!1)))}}else if(h.name==="counters"){var H=h.values.filter(_t),T=H[0],M=H[1],F=H[2];if(T&&iA(T)){var y=a.counters.getCounterValues(T.value),p=F&&iA(F)?Ms.parse(a.context,F.value):3,L=M&&M.type===0?M.value:"",k=y.map(function(oA){return yr(oA,p,!1)}).join(L);c.appendChild(u.createTextNode(k))}}}else if(h.type===20)switch(h.value){case"open-quote":c.appendChild(u.createTextNode(Vc(o.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(u.createTextNode(Vc(o.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(u.createTextNode(h.value))}}),c.className=ai+" "+si;var f=n===Nr.BEFORE?" "+ai:" "+si;return Jn(t)?t.className.baseValue+=f:t.className+=f,c}}},A.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},A}(),Nr;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(Nr||(Nr={}));var VT=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(yl,"true"),A.body.appendChild(t),t},GT=function(A){return new Promise(function(e){if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e})},YT=function(A){return Promise.all([].slice.call(A.images,0).map(GT))},XT=function(A){return new Promise(function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),e(A))},50)}})},WT=["all","d","content"],ni=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);WT.indexOf(r)===-1&&e.style.setProperty(r,A.getPropertyValue(r))}return e},JT=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},qT=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},ZT=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},$T=":before",jT=":after",ai="___html2canvas___pseudoelement_before",si="___html2canvas___pseudoelement_after",Sl=`{
35
+ content: "" !important;
36
+ display: none !important;
37
+ }`,zT=function(A){Ab(A,"."+ai+$T+Sl+`
38
+ .`+si+jT+Sl)},Ab=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},vl=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),eb=function(){function A(e,t){this.context=e,this._options=t,this._cache={}}return A.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(ui(e)||ab(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return kA(this,void 0,void 0,function(){var t,r,n,a,s=this;return DA(this,function(u){switch(u.label){case 0:return t=vl.isSameOrigin(e),r=!ii(e)&&this._options.useCORS===!0&&LA.SUPPORT_CORS_IMAGES&&!t,n=!ii(e)&&!t&&!ui(e)&&typeof this._options.proxy=="string"&&LA.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!ii(e)&&!ui(e)&&!n&&!r?[2]:(a=e,n?[4,this.proxy(a)]:[3,2]);case 1:a=u.sent(),u.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(o,c){var f=new Image;f.onload=function(){return o(f)},f.onerror=c,(sb(a)||r)&&(f.crossOrigin="anonymous"),f.src=a,f.complete===!0&&setTimeout(function(){return o(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,u.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(a,s){var u=LA.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(u==="text")a(o.response);else{var h=new FileReader;h.addEventListener("load",function(){return a(h.result)},!1),h.addEventListener("error",function(d){return s(d)},!1),h.readAsDataURL(o.response)}else s("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=s;var c=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+c+"url="+encodeURIComponent(e)+"&responseType="+u),u!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=u),t._options.imageTimeout){var f=t._options.imageTimeout;o.timeout=f,o.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+n)}}o.send()})},A}(),tb=/^data:image\/svg\+xml/i,rb=/^data:image\/.*;base64,/i,nb=/^data:image\/.*/i,ab=function(A){return LA.SUPPORT_SVG_DRAWING||!ib(A)},ii=function(A){return nb.test(A)},sb=function(A){return rb.test(A)},ui=function(A){return A.substr(0,4)==="blob"},ib=function(A){return A.substr(-3).toLowerCase()==="svg"||tb.test(A)},x=function(){function A(e,t){this.type=0,this.x=e,this.y=t}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Lt=function(A,e,t){return new x(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},$n=function(){function A(e,t,r,n){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return A.prototype.subdivide=function(e,t){var r=Lt(this.start,this.startControl,e),n=Lt(this.startControl,this.endControl,e),a=Lt(this.endControl,this.end,e),s=Lt(r,n,e),u=Lt(n,a,e),o=Lt(s,u,e);return t?new A(this.start,r,s,o):new A(o,u,a,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),re=function(A){return A.type===1},ub=function(){function A(e){var t=e.styles,r=e.bounds,n=br(t.borderTopLeftRadius,r.width,r.height),a=n[0],s=n[1],u=br(t.borderTopRightRadius,r.width,r.height),o=u[0],c=u[1],f=br(t.borderBottomRightRadius,r.width,r.height),h=f[0],d=f[1],m=br(t.borderBottomLeftRadius,r.width,r.height),C=m[0],T=m[1],F=[];F.push((a+o)/r.width),F.push((C+h)/r.width),F.push((s+T)/r.height),F.push((c+d)/r.height);var Q=Math.max.apply(Math,F);Q>1&&(a/=Q,s/=Q,o/=Q,c/=Q,h/=Q,d/=Q,C/=Q,T/=Q);var I=r.width-o,H=r.height-d,M=r.width-h,y=r.height-T,p=t.borderTopWidth,L=t.borderRightWidth,k=t.borderBottomWidth,O=t.borderLeftWidth,AA=uA(t.paddingTop,e.bounds.width),oA=uA(t.paddingRight,e.bounds.width),cA=uA(t.paddingBottom,e.bounds.width),W=uA(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?BA(r.left+O/3,r.top+p/3,a-O/3,s-p/3,aA.TOP_LEFT):new x(r.left+O/3,r.top+p/3),this.topRightBorderDoubleOuterBox=a>0||s>0?BA(r.left+I,r.top+p/3,o-L/3,c-p/3,aA.TOP_RIGHT):new x(r.left+r.width-L/3,r.top+p/3),this.bottomRightBorderDoubleOuterBox=h>0||d>0?BA(r.left+M,r.top+H,h-L/3,d-k/3,aA.BOTTOM_RIGHT):new x(r.left+r.width-L/3,r.top+r.height-k/3),this.bottomLeftBorderDoubleOuterBox=C>0||T>0?BA(r.left+O/3,r.top+y,C-O/3,T-k/3,aA.BOTTOM_LEFT):new x(r.left+O/3,r.top+r.height-k/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?BA(r.left+O*2/3,r.top+p*2/3,a-O*2/3,s-p*2/3,aA.TOP_LEFT):new x(r.left+O*2/3,r.top+p*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?BA(r.left+I,r.top+p*2/3,o-L*2/3,c-p*2/3,aA.TOP_RIGHT):new x(r.left+r.width-L*2/3,r.top+p*2/3),this.bottomRightBorderDoubleInnerBox=h>0||d>0?BA(r.left+M,r.top+H,h-L*2/3,d-k*2/3,aA.BOTTOM_RIGHT):new x(r.left+r.width-L*2/3,r.top+r.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=C>0||T>0?BA(r.left+O*2/3,r.top+y,C-O*2/3,T-k*2/3,aA.BOTTOM_LEFT):new x(r.left+O*2/3,r.top+r.height-k*2/3),this.topLeftBorderStroke=a>0||s>0?BA(r.left+O/2,r.top+p/2,a-O/2,s-p/2,aA.TOP_LEFT):new x(r.left+O/2,r.top+p/2),this.topRightBorderStroke=a>0||s>0?BA(r.left+I,r.top+p/2,o-L/2,c-p/2,aA.TOP_RIGHT):new x(r.left+r.width-L/2,r.top+p/2),this.bottomRightBorderStroke=h>0||d>0?BA(r.left+M,r.top+H,h-L/2,d-k/2,aA.BOTTOM_RIGHT):new x(r.left+r.width-L/2,r.top+r.height-k/2),this.bottomLeftBorderStroke=C>0||T>0?BA(r.left+O/2,r.top+y,C-O/2,T-k/2,aA.BOTTOM_LEFT):new x(r.left+O/2,r.top+r.height-k/2),this.topLeftBorderBox=a>0||s>0?BA(r.left,r.top,a,s,aA.TOP_LEFT):new x(r.left,r.top),this.topRightBorderBox=o>0||c>0?BA(r.left+I,r.top,o,c,aA.TOP_RIGHT):new x(r.left+r.width,r.top),this.bottomRightBorderBox=h>0||d>0?BA(r.left+M,r.top+H,h,d,aA.BOTTOM_RIGHT):new x(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=C>0||T>0?BA(r.left,r.top+y,C,T,aA.BOTTOM_LEFT):new x(r.left,r.top+r.height),this.topLeftPaddingBox=a>0||s>0?BA(r.left+O,r.top+p,Math.max(0,a-O),Math.max(0,s-p),aA.TOP_LEFT):new x(r.left+O,r.top+p),this.topRightPaddingBox=o>0||c>0?BA(r.left+Math.min(I,r.width-L),r.top+p,I>r.width+L?0:Math.max(0,o-L),Math.max(0,c-p),aA.TOP_RIGHT):new x(r.left+r.width-L,r.top+p),this.bottomRightPaddingBox=h>0||d>0?BA(r.left+Math.min(M,r.width-O),r.top+Math.min(H,r.height-k),Math.max(0,h-L),Math.max(0,d-k),aA.BOTTOM_RIGHT):new x(r.left+r.width-L,r.top+r.height-k),this.bottomLeftPaddingBox=C>0||T>0?BA(r.left+O,r.top+Math.min(y,r.height-k),Math.max(0,C-O),Math.max(0,T-k),aA.BOTTOM_LEFT):new x(r.left+O,r.top+r.height-k),this.topLeftContentBox=a>0||s>0?BA(r.left+O+W,r.top+p+AA,Math.max(0,a-(O+W)),Math.max(0,s-(p+AA)),aA.TOP_LEFT):new x(r.left+O+W,r.top+p+AA),this.topRightContentBox=o>0||c>0?BA(r.left+Math.min(I,r.width+O+W),r.top+p+AA,I>r.width+O+W?0:o-O+W,c-(p+AA),aA.TOP_RIGHT):new x(r.left+r.width-(L+oA),r.top+p+AA),this.bottomRightContentBox=h>0||d>0?BA(r.left+Math.min(M,r.width-(O+W)),r.top+Math.min(H,r.height+p+AA),Math.max(0,h-(L+oA)),d-(k+cA),aA.BOTTOM_RIGHT):new x(r.left+r.width-(L+oA),r.top+r.height-(k+cA)),this.bottomLeftContentBox=C>0||T>0?BA(r.left+O+W,r.top+y,Math.max(0,C-(O+W)),T-(k+cA),aA.BOTTOM_LEFT):new x(r.left+O+W,r.top+r.height-(k+cA))}return A}(),aA;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(aA||(aA={}));var BA=function(A,e,t,r,n){var a=4*((Math.sqrt(2)-1)/3),s=t*a,u=r*a,o=A+t,c=e+r;switch(n){case aA.TOP_LEFT:return new $n(new x(A,c),new x(A,c-u),new x(o-s,e),new x(o,e));case aA.TOP_RIGHT:return new $n(new x(A,e),new x(A+s,e),new x(o,c-u),new x(o,c));case aA.BOTTOM_RIGHT:return new $n(new x(o,e),new x(o,e+u),new x(A+s,c),new x(A,c));case aA.BOTTOM_LEFT:default:return new $n(new x(o,c),new x(o-s,c),new x(A,e+u),new x(A,e))}},jn=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},ob=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},zn=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},cb=function(){function A(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return A}(),Aa=function(){function A(e,t){this.path=e,this.target=t,this.type=1}return A}(),lb=function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A}(),fb=function(A){return A.type===0},Ll=function(A){return A.type===1},hb=function(A){return A.type===2},Hl=function(A,e){return A.length===e.length?A.some(function(t,r){return t===e[r]}):!1},db=function(A,e,t,r,n){return A.map(function(a,s){switch(s){case 0:return a.add(e,t);case 1:return a.add(e+r,t);case 2:return a.add(e+r,t+n);case 3:return a.add(e,t+n)}return a})},xl=function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),Dl=function(){function A(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new ub(this.container),this.container.styles.opacity<1&&this.effects.push(new lb(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new cb(r,n,a))}if(this.container.styles.overflowX!==0){var s=jn(this.curves),u=zn(this.curves);Hl(s,u)?this.effects.push(new Aa(s,6)):(this.effects.push(new Aa(s,2)),this.effects.push(new Aa(u,4)))}}return A.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var a=r.effects.filter(function(o){return!Ll(o)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,a),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=jn(r.curves),u=zn(r.curves);Hl(s,u)||n.unshift(new Aa(u,6))}}else n.unshift.apply(n,a);r=r.parent}return n.filter(function(o){return bA(o.target,e)})},A}(),oi=function(A,e,t,r){A.container.elements.forEach(function(n){var a=bA(n.flags,4),s=bA(n.flags,2),u=new Dl(n,A);bA(n.styles.display,2048)&&r.push(u);var o=bA(n.flags,8)?[]:r;if(a||s){var c=a||n.styles.isPositioned()?t:e,f=new xl(u);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var h=n.styles.zIndex.order;if(h<0){var d=0;c.negativeZIndex.some(function(C,T){return h>C.element.container.styles.zIndex.order?(d=T,!1):d>0}),c.negativeZIndex.splice(d,0,f)}else if(h>0){var m=0;c.positiveZIndex.some(function(C,T){return h>=C.element.container.styles.zIndex.order?(m=T+1,!1):m>0}),c.positiveZIndex.splice(m,0,f)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else n.styles.isFloating()?c.nonPositionedFloats.push(f):c.nonPositionedInlineLevel.push(f);oi(u,f,a?f:t,o)}else n.styles.isInlineLevel()?e.inlineLevel.push(u):e.nonInlineLevel.push(u),oi(u,e,t,o);bA(n.flags,8)&&Ol(n,o)})},Ol=function(A,e){for(var t=A instanceof js?A.start:1,r=A instanceof js?A.reversed:!1,n=0;n<e.length;n++){var a=e[n];a.container instanceof ul&&typeof a.container.value=="number"&&a.container.value!==0&&(t=a.container.value),a.listValue=yr(t,a.container.styles.listStyleType,!0),t+=r?-1:1}},Bb=function(A){var e=new Dl(A,null),t=new xl(e),r=[];return oi(e,t,t,r),Ol(e.container,r),t},Rl=function(A,e){switch(e){case 0:return ne(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return ne(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return ne(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return ne(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},gb=function(A,e){switch(e){case 0:return ne(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return ne(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return ne(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return ne(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},Eb=function(A,e){switch(e){case 0:return ne(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return ne(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return ne(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return ne(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},pb=function(A,e){switch(e){case 0:return ea(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return ea(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return ea(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return ea(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},ea=function(A,e){var t=[];return re(A)?t.push(A.subdivide(.5,!1)):t.push(A),re(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},ne=function(A,e,t,r){var n=[];return re(A)?n.push(A.subdivide(.5,!1)):n.push(A),re(t)?n.push(t.subdivide(.5,!0)):n.push(t),re(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),re(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},Ml=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},ta=function(A){var e=A.styles,t=A.bounds,r=uA(e.paddingLeft,t.width),n=uA(e.paddingRight,t.width),a=uA(e.paddingTop,t.width),s=uA(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+a+s))},Cb=function(A,e){return A===0?e.bounds:A===2?ta(e):Ml(e)},mb=function(A,e){return A===0?e.bounds:A===2?ta(e):Ml(e)},ci=function(A,e,t){var r=Cb(xt(A.styles.backgroundOrigin,e),A),n=mb(xt(A.styles.backgroundClip,e),A),a=wb(xt(A.styles.backgroundSize,e),t,r),s=a[0],u=a[1],o=br(xt(A.styles.backgroundPosition,e),r.width-s,r.height-u),c=Tb(xt(A.styles.backgroundRepeat,e),o,a,r,n),f=Math.round(r.left+o[0]),h=Math.round(r.top+o[1]);return[c,f,h,s,u]},Ht=function(A){return iA(A)&&A.value===yt.AUTO},ra=function(A){return typeof A=="number"},wb=function(A,e,t){var r=e[0],n=e[1],a=e[2],s=A[0],u=A[1];if(!s)return[0,0];if(mA(s)&&u&&mA(u))return[uA(s,t.width),uA(u,t.height)];var o=ra(a);if(iA(s)&&(s.value===yt.CONTAIN||s.value===yt.COVER)){if(ra(a)){var c=t.width/t.height;return c<a!=(s.value===yt.COVER)?[t.width,t.width/a]:[t.height*a,t.height]}return[t.width,t.height]}var f=ra(r),h=ra(n),d=f||h;if(Ht(s)&&(!u||Ht(u))){if(f&&h)return[r,n];if(!o&&!d)return[t.width,t.height];if(d&&o){var m=f?r:n*a,C=h?n:r/a;return[m,C]}var T=f?r:t.width,F=h?n:t.height;return[T,F]}if(o){var Q=0,I=0;return mA(s)?Q=uA(s,t.width):mA(u)&&(I=uA(u,t.height)),Ht(s)?Q=I*a:(!u||Ht(u))&&(I=Q/a),[Q,I]}var H=null,M=null;if(mA(s)?H=uA(s,t.width):u&&mA(u)&&(M=uA(u,t.height)),H!==null&&(!u||Ht(u))&&(M=f&&h?H/r*n:t.height),M!==null&&Ht(s)&&(H=f&&h?M/n*r:t.width),H!==null&&M!==null)return[H,M];throw new Error("Unable to calculate background-size for element")},xt=function(A,e){var t=A[e];return typeof t>"u"?A[0]:t},Tb=function(A,e,t,r,n){var a=e[0],s=e[1],u=t[0],o=t[1];switch(A){case 2:return[new x(Math.round(r.left),Math.round(r.top+s)),new x(Math.round(r.left+r.width),Math.round(r.top+s)),new x(Math.round(r.left+r.width),Math.round(o+r.top+s)),new x(Math.round(r.left),Math.round(o+r.top+s))];case 3:return[new x(Math.round(r.left+a),Math.round(r.top)),new x(Math.round(r.left+a+u),Math.round(r.top)),new x(Math.round(r.left+a+u),Math.round(r.height+r.top)),new x(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new x(Math.round(r.left+a),Math.round(r.top+s)),new x(Math.round(r.left+a+u),Math.round(r.top+s)),new x(Math.round(r.left+a+u),Math.round(r.top+s+o)),new x(Math.round(r.left+a),Math.round(r.top+s+o))];default:return[new x(Math.round(n.left),Math.round(n.top)),new x(Math.round(n.left+n.width),Math.round(n.top)),new x(Math.round(n.left+n.width),Math.round(n.height+n.top)),new x(Math.round(n.left),Math.round(n.height+n.top))]}},bb="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",kl="Hidden Text",Ub=function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),n.src=bb,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(kl)),r.appendChild(a),r.appendChild(n);var u=n.offsetTop-a.offsetTop+2;r.removeChild(a),r.appendChild(this._document.createTextNode(kl)),r.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:u,middle:o}},A.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},A}(),Pl=function(){function A(e,t){this.context=e,this.options=t}return A}(),Qb=1e4,Fb=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new Ub(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),hb(t)&&(this.ctx.globalAlpha=t.opacity),fb(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Ll(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return kA(this,void 0,void 0,function(){var r;return DA(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return kA(this,void 0,void 0,function(){return DA(this,function(r){switch(r.label){case 0:if(bA(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,n){var a=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var s=$s(t.text);s.reduce(function(u,o){return a.ctx.fillText(o,u,t.bounds.top+n),u+a.ctx.measureText(o).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=Sb(t.fontFamily).join(", "),a=Tr(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,a,n].join(" "),n,a]},e.prototype.renderTextNode=function(t,r){return kA(this,void 0,void 0,function(){var n,a,s,u,o,c,f,h,d=this;return DA(this,function(m){return n=this.createFontStyle(r),a=n[0],s=n[1],u=n[2],this.ctx.font=a,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(s,u),c=o.baseline,f=o.middle,h=r.paintOrder,t.textBounds.forEach(function(C){h.forEach(function(T){switch(T){case 0:d.ctx.fillStyle=NA(r.color),d.renderTextWithLetterSpacing(C,r.letterSpacing,c);var F=r.textShadow;F.length&&C.text.trim().length&&(F.slice(0).reverse().forEach(function(Q){d.ctx.shadowColor=NA(Q.color),d.ctx.shadowOffsetX=Q.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=Q.offsetY.number*d.options.scale,d.ctx.shadowBlur=Q.blur.number,d.renderTextWithLetterSpacing(C,r.letterSpacing,c)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),r.textDecorationLine.length&&(d.ctx.fillStyle=NA(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(Q){switch(Q){case 1:d.ctx.fillRect(C.bounds.left,Math.round(C.bounds.top+c),C.bounds.width,1);break;case 2:d.ctx.fillRect(C.bounds.left,Math.round(C.bounds.top),C.bounds.width,1);break;case 3:d.ctx.fillRect(C.bounds.left,Math.ceil(C.bounds.top+f),C.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&C.text.trim().length&&(d.ctx.strokeStyle=NA(r.webkitTextStrokeColor),d.ctx.lineWidth=r.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(C.text,C.bounds.left,C.bounds.top+c)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var a=ta(t),s=zn(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return kA(this,void 0,void 0,function(){var r,n,a,s,u,o,I,I,c,f,h,d,M,m,C,y,T,F,Q,I,H,M,y;return DA(this,function(p){switch(p.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,a=r.styles,s=0,u=r.textNodes,p.label=1;case 1:return s<u.length?(o=u[s],[4,this.renderTextNode(o,a)]):[3,4];case 2:p.sent(),p.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof al))return[3,8];p.label=5;case 5:return p.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return I=p.sent(),this.renderReplacedElement(r,n,I),[3,8];case 7:return p.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof sl&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof il))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return I=p.sent(),this.renderReplacedElement(r,n,I),[3,12];case 11:return p.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof fl&&r.tree?(c=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:f=p.sent(),r.width&&r.height&&this.ctx.drawImage(f,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),p.label=14;case 14:if(r instanceof zs&&(h=Math.min(r.bounds.width,r.bounds.height),r.type===Yn?r.checked&&(this.ctx.save(),this.path([new x(r.bounds.left+h*.39363,r.bounds.top+h*.79),new x(r.bounds.left+h*.16,r.bounds.top+h*.5549),new x(r.bounds.left+h*.27347,r.bounds.top+h*.44071),new x(r.bounds.left+h*.39694,r.bounds.top+h*.5649),new x(r.bounds.left+h*.72983,r.bounds.top+h*.23),new x(r.bounds.left+h*.84,r.bounds.top+h*.34085),new x(r.bounds.left+h*.39363,r.bounds.top+h*.79)]),this.ctx.fillStyle=NA(ol),this.ctx.fill(),this.ctx.restore()):r.type===Xn&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+h/2,r.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=NA(ol),this.ctx.fill(),this.ctx.restore())),Ib(r)&&r.value.length){switch(d=this.createFontStyle(a),M=d[0],m=d[1],C=this.fontMetrics.getMetrics(M,m).baseline,this.ctx.font=M,this.ctx.fillStyle=NA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=yb(r.styles.textAlign),y=ta(r),T=0,r.styles.textAlign){case 1:T+=y.width/2;break;case 2:T+=y.width;break}F=y.add(T,0,0,-y.height/2+1),this.ctx.save(),this.path([new x(y.left,y.top),new x(y.left+y.width,y.top),new x(y.left+y.width,y.top+y.height),new x(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ir(r.value,F),a.letterSpacing,C),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!bA(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(Q=r.styles.listStyleImage,Q.type!==0)return[3,18];I=void 0,H=Q.url,p.label=15;case 15:return p.trys.push([15,17,,18]),[4,this.context.cache.match(H)];case 16:return I=p.sent(),this.ctx.drawImage(I,r.bounds.left-(I.width+10),r.bounds.top),[3,18];case 17:return p.sent(),this.context.logger.error("Error loading list-style-image "+H),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(M=this.createFontStyle(a)[0],this.ctx.font=M,this.ctx.fillStyle=NA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new be(r.bounds.left,r.bounds.top+uA(r.styles.paddingTop,r.bounds.width),r.bounds.width,kc(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ir(t.listValue,y),a.letterSpacing,kc(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),p.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return kA(this,void 0,void 0,function(){var r,n,Q,a,s,Q,u,o,Q,c,f,Q,h,d,Q,m,C,Q,T,F,Q;return DA(this,function(I){switch(I.label){case 0:if(bA(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:I.sent(),r=0,n=t.negativeZIndex,I.label=2;case 2:return r<n.length?(Q=n[r],[4,this.renderStack(Q)]):[3,5];case 3:I.sent(),I.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:I.sent(),a=0,s=t.nonInlineLevel,I.label=7;case 7:return a<s.length?(Q=s[a],[4,this.renderNode(Q)]):[3,10];case 8:I.sent(),I.label=9;case 9:return a++,[3,7];case 10:u=0,o=t.nonPositionedFloats,I.label=11;case 11:return u<o.length?(Q=o[u],[4,this.renderStack(Q)]):[3,14];case 12:I.sent(),I.label=13;case 13:return u++,[3,11];case 14:c=0,f=t.nonPositionedInlineLevel,I.label=15;case 15:return c<f.length?(Q=f[c],[4,this.renderStack(Q)]):[3,18];case 16:I.sent(),I.label=17;case 17:return c++,[3,15];case 18:h=0,d=t.inlineLevel,I.label=19;case 19:return h<d.length?(Q=d[h],[4,this.renderNode(Q)]):[3,22];case 20:I.sent(),I.label=21;case 21:return h++,[3,19];case 22:m=0,C=t.zeroOrAutoZIndexOrTransformedOrOpacity,I.label=23;case 23:return m<C.length?(Q=C[m],[4,this.renderStack(Q)]):[3,26];case 24:I.sent(),I.label=25;case 25:return m++,[3,23];case 26:T=0,F=t.positiveZIndex,I.label=27;case 27:return T<F.length?(Q=F[T],[4,this.renderStack(Q)]):[3,30];case 28:I.sent(),I.label=29;case 29:return T++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var r=this;t.forEach(function(n,a){var s=re(n)?n.start:n;a===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),re(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(t,r,n,a){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},e.prototype.resizeImage=function(t,r,n){var a;if(t.width===r&&t.height===n)return t;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,u=s.createElement("canvas");u.width=Math.max(1,r),u.height=Math.max(1,n);var o=u.getContext("2d");return o.drawImage(t,0,0,t.width,t.height,0,0,r,n),u},e.prototype.renderBackgroundImage=function(t){return kA(this,void 0,void 0,function(){var r,n,a,s,u,o;return DA(this,function(c){switch(c.label){case 0:r=t.styles.backgroundImage.length-1,n=function(f){var h,d,m,AA,P,z,W,tA,k,C,AA,P,z,W,tA,T,F,Q,I,H,M,y,p,L,k,O,AA,oA,cA,W,tA,R,P,z,rA,lA,UA,HA,RA,QA,PA,wA;return DA(this,function(ce){switch(ce.label){case 0:if(f.type!==0)return[3,5];h=void 0,d=f.url,ce.label=1;case 1:return ce.trys.push([1,3,,4]),[4,a.context.cache.match(d)];case 2:return h=ce.sent(),[3,4];case 3:return ce.sent(),a.context.logger.error("Error loading background-image "+d),[3,4];case 4:return h&&(m=ci(t,r,[h.width,h.height,h.width/h.height]),AA=m[0],P=m[1],z=m[2],W=m[3],tA=m[4],k=a.ctx.createPattern(a.resizeImage(h,W,tA),"repeat"),a.renderRepeat(AA,k,P,z)),[3,6];case 5:f1(f)?(C=ci(t,r,[null,null,null]),AA=C[0],P=C[1],z=C[2],W=C[3],tA=C[4],T=i1(f.angle,W,tA),F=T[0],Q=T[1],I=T[2],H=T[3],M=T[4],y=document.createElement("canvas"),y.width=W,y.height=tA,p=y.getContext("2d"),L=p.createLinearGradient(Q,H,I,M),yc(f.stops,F).forEach(function(Xe){return L.addColorStop(Xe.stop,NA(Xe.color))}),p.fillStyle=L,p.fillRect(0,0,W,tA),W>0&&tA>0&&(k=a.ctx.createPattern(y,"repeat"),a.renderRepeat(AA,k,P,z))):h1(f)&&(O=ci(t,r,[null,null,null]),AA=O[0],oA=O[1],cA=O[2],W=O[3],tA=O[4],R=f.position.length===0?[Ds]:f.position,P=uA(R[0],W),z=uA(R[R.length-1],tA),rA=u1(f,P,z,W,tA),lA=rA[0],UA=rA[1],lA>0&&UA>0&&(HA=a.ctx.createRadialGradient(oA+P,cA+z,0,oA+P,cA+z,lA),yc(f.stops,lA*2).forEach(function(Xe){return HA.addColorStop(Xe.stop,NA(Xe.color))}),a.path(AA),a.ctx.fillStyle=HA,lA!==UA?(RA=t.bounds.left+.5*t.bounds.width,QA=t.bounds.top+.5*t.bounds.height,PA=UA/lA,wA=1/PA,a.ctx.save(),a.ctx.translate(RA,QA),a.ctx.transform(1,0,0,PA,0,0),a.ctx.translate(-RA,-QA),a.ctx.fillRect(oA,wA*(cA-QA)+QA,W,tA*wA),a.ctx.restore()):a.ctx.fill())),ce.label=6;case 6:return r--,[2]}})},a=this,s=0,u=t.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<u.length?(o=u[s],[5,n(o)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,r,n){return kA(this,void 0,void 0,function(){return DA(this,function(a){return this.path(Rl(n,r)),this.ctx.fillStyle=NA(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,r,n,a){return kA(this,void 0,void 0,function(){var s,u;return DA(this,function(o){switch(o.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,a)]:[3,2];case 1:return o.sent(),[2];case 2:return s=gb(a,n),this.path(s),this.ctx.fillStyle=NA(t),this.ctx.fill(),u=Eb(a,n),this.path(u),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return kA(this,void 0,void 0,function(){var r,n,a,s,u,o,c,f,h=this;return DA(this,function(d){switch(d.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!Ke(r.backgroundColor)||r.backgroundImage.length,a=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=_b(xt(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ke(r.backgroundColor)||(this.ctx.fillStyle=NA(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:d.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(m){h.ctx.save();var C=jn(t.curves),T=m.inset?0:Qb,F=db(C,-T+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(h.path(C),h.ctx.clip(),h.mask(F)):(h.mask(C),h.ctx.clip(),h.path(F)),h.ctx.shadowOffsetX=m.offsetX.number+T,h.ctx.shadowOffsetY=m.offsetY.number,h.ctx.shadowColor=NA(m.color),h.ctx.shadowBlur=m.blur.number,h.ctx.fillStyle=m.inset?NA(m.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),d.label=2;case 2:u=0,o=0,c=a,d.label=3;case 3:return o<c.length?(f=c[o],f.style!==0&&!Ke(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,u,t.curves,2)]:[3,11]):[3,13];case 4:return d.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,u,t.curves,3)];case 6:return d.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,u,t.curves)];case 8:return d.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,u,t.curves)];case 10:d.sent(),d.label=11;case 11:u++,d.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,n,a,s){return kA(this,void 0,void 0,function(){var u,o,c,f,h,d,m,C,T,F,Q,I,H,M,y,p,y,p;return DA(this,function(L){return this.ctx.save(),u=pb(a,n),o=Rl(a,n),s===2&&(this.path(o),this.ctx.clip()),re(o[0])?(c=o[0].start.x,f=o[0].start.y):(c=o[0].x,f=o[0].y),re(o[1])?(h=o[1].end.x,d=o[1].end.y):(h=o[1].x,d=o[1].y),n===0||n===2?m=Math.abs(c-h):m=Math.abs(f-d),this.ctx.beginPath(),s===3?this.formatPath(u):this.formatPath(o.slice(0,2)),C=r<3?r*3:r*2,T=r<3?r*2:r,s===3&&(C=r,T=r),F=!0,m<=C*2?F=!1:m<=C*2+T?(Q=m/(2*C+T),C*=Q,T*=Q):(I=Math.floor((m+T)/(C+T)),H=(m-I*C)/(I-1),M=(m-(I+1)*C)/I,T=M<=0||Math.abs(T-H)<Math.abs(T-M)?H:M),F&&(s===3?this.ctx.setLineDash([0,C+T]):this.ctx.setLineDash([C,T])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=NA(t),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(re(o[0])&&(y=o[3],p=o[0],this.ctx.beginPath(),this.formatPath([new x(y.end.x,y.end.y),new x(p.start.x,p.start.y)]),this.ctx.stroke()),re(o[1])&&(y=o[1],p=o[2],this.ctx.beginPath(),this.formatPath([new x(y.end.x,y.end.y),new x(p.start.x,p.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return kA(this,void 0,void 0,function(){var r;return DA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=NA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=Bb(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(Pl),Ib=function(A){return A instanceof ll||A instanceof cl?!0:A instanceof zs&&A.type!==Xn&&A.type!==Yn},_b=function(A,e){switch(A){case 0:return jn(e);case 2:return ob(e);case 1:default:return zn(e)}},yb=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Nb=["-apple-system","system-ui"],Sb=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return Nb.indexOf(e)===-1}):A},vb=function(A){ue(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return e.prototype.render=function(t){return kA(this,void 0,void 0,function(){var r,n;return DA(this,function(a){switch(a.label){case 0:return r=Zs(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Lb(r)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=NA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(Pl),Lb=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},Hb=function(){function A(e){var t=e.id,r=e.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,ln([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,ln([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,ln([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,ln([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A}(),xb=function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new Hb({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new eb(this,e)}return A.instanceCount=1,A}(),Db=function(A,e){return e===void 0&&(e={}),Ob(A,e)};typeof window<"u"&&vl.setContext(window);var Ob=function(A,e){return kA(void 0,void 0,void 0,function(){var t,r,n,a,s,u,o,c,f,h,d,m,C,T,F,Q,I,H,M,y,L,p,L,k,O,AA,oA,cA,W,tA,R,P,z,rA,lA,UA,HA,RA,QA,PA;return DA(this,function(wA){switch(wA.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=A.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(k=e.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(O=e.imageTimeout)!==null&&O!==void 0?O:15e3,proxy:e.proxy,useCORS:(AA=e.useCORS)!==null&&AA!==void 0?AA:!1},a=Bs({logging:(oA=e.logging)!==null&&oA!==void 0?oA:!0,cache:e.cache},n),s={windowWidth:(cA=e.windowWidth)!==null&&cA!==void 0?cA:r.innerWidth,windowHeight:(W=e.windowHeight)!==null&&W!==void 0?W:r.innerHeight,scrollX:(tA=e.scrollX)!==null&&tA!==void 0?tA:r.pageXOffset,scrollY:(R=e.scrollY)!==null&&R!==void 0?R:r.pageYOffset},u=new be(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),o=new xb(a,u),c=(P=e.foreignObjectRendering)!==null&&P!==void 0?P:!1,f={allowTaint:(z=e.allowTaint)!==null&&z!==void 0?z:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},o.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),h=new Nl(o,A,f),d=h.clonedReferenceElement,d?[4,h.toIFrame(t,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=wA.sent(),C=ei(d)||RT(d)?dC(d.ownerDocument):fn(o,d),T=C.width,F=C.height,Q=C.left,I=C.top,H=Rb(o,d,e.backgroundColor),M={canvas:e.canvas,backgroundColor:H,scale:(lA=(rA=e.scale)!==null&&rA!==void 0?rA:r.devicePixelRatio)!==null&&lA!==void 0?lA:1,x:((UA=e.x)!==null&&UA!==void 0?UA:0)+Q,y:((HA=e.y)!==null&&HA!==void 0?HA:0)+I,width:(RA=e.width)!==null&&RA!==void 0?RA:Math.ceil(T),height:(QA=e.height)!==null&&QA!==void 0?QA:Math.ceil(F)},c?(o.logger.debug("Document cloned, using foreign object rendering"),L=new vb(o,M),[4,L.render(d)]):[3,3];case 2:return y=wA.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+Q+","+I+" with size "+T+"x"+F+" using computed rendering"),o.logger.debug("Starting DOM parsing"),p=dl(o,d),H===p.styles.backgroundColor&&(p.styles.backgroundColor=Qe.TRANSPARENT),o.logger.debug("Starting renderer for element at "+M.x+","+M.y+" with size "+M.width+"x"+M.height),L=new Fb(o,M),[4,L.render(p)];case 4:y=wA.sent(),wA.label=5;case 5:return(!((PA=e.removeContainer)!==null&&PA!==void 0)||PA)&&(Nl.destroy(m)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,y]}})})},Rb=function(A,e,t){var r=e.ownerDocument,n=r.documentElement?Ur(A,getComputedStyle(r.documentElement).backgroundColor):Qe.TRANSPARENT,a=r.body?Ur(A,getComputedStyle(r.body).backgroundColor):Qe.TRANSPARENT,s=typeof t=="string"?Ur(A,t):t===null?Qe.TRANSPARENT:4294967295;return e===r.documentElement?Ke(n)?Ke(a)?s:a:n:s};const Mb={class:"flex gp-dsigner"},kb={key:0,class:"flex items-center justify-between border-b"},Pb={class:"text-lg font-bold p-2"},Kb={class:"text-sm font-thin text-gray-500"},Vb=["innerHTML"],Gb=["innerHTML"],Yb={class:"flex-1"},Xb={key:0,class:"text-lg font-bold border-b p-2"},Wb={class:"p-2"},Jb={class:"sticky top-0"},qb={key:0,class:"text-lg font-bold border-b p-2"},Zb={class:"text-sm font-thin text-gray-500"},$b={class:"p-2"},Kl=At(l.defineComponent({__name:"Designer",props:{mode:{default:"design"},template:{},css:{},js:{},previewWidth:{default:375},uploadByFile:{},icons:{},rules:{},preview:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0}},emits:["update:modelValue","update:element"],setup(A,{expose:e,emit:t}){const r=A,n=t,a=l.ref(r.template),s=l.ref();let u=ao("",{},!1);const o=l.ref("");l.watch(()=>r.template,S=>{a.value=S},{immediate:!0}),l.watch(()=>a.value,S=>{S&&(s.value=O(S))},{immediate:!0}),l.watch(()=>r.css,S=>{S.forEach(v=>{if(document.querySelector(`link[href="${v}"]`))return;const K=document.createElement("link");K.rel="stylesheet",K.href=v,document.head.appendChild(K)})},{immediate:!0}),l.watch(()=>r.js,S=>{!S||S.length===0||S.forEach(v=>{if(document.querySelector(`script[src="${v}"]`))return;const K=document.createElement("script");K.src=v,document.body.appendChild(K)})},{immediate:!0});const c=l.ref(r.mode);l.watch(()=>s.value,S=>{S&&n("update:element",S)},{immediate:!0});const f=l.ref("");l.watch(()=>o.value,S=>{n("update:modelValue",S)},{immediate:!0});const h=l.ref(),d=l.ref(),m=l.ref(),C=l.ref(),T=l.ref(),F=l.ref(),Q=l.ref("");function I(S=void 0){C.value&&Db(C.value,{x:0,y:0,scrollX:window.scrollX,scrollY:window.scrollY,useCORS:!0,allowTaint:!0}).then(v=>{S&&typeof S=="function"?S(v):v.toBlob(K=>{const Y=URL.createObjectURL(K);window.open(Y,"_blank")}),q.success("生成封面成功")})}function H(S){T.value=S}function M(S,v=""){if(v){const K=y(s.value,v);K?F.value=K:F.value=S}else F.value=S}function y(S,v){if(S.xpath===v)return S;if(S.children&&S.children.length)for(const K of S.children){const Y=y(K,v);if(Y)return Y}}function p(S,v){var K,Y;return S.tag===v.tag&&((K=S.children)==null?void 0:K.length)===((Y=v.children)==null?void 0:Y.length)}function L(S){if(T.value.xpath==S.xpath){if(T.value){if(S.type===Z.Block){var v=!0;const K=y(s.value,T.value.parentxpath||"");if(K&&K.children&&K.children.forEach(Y=>{if(Y.tag!=T.value.tag||!p(Y,T.value)){v=!1;return}}),!v){q.error("同级结构不一致,错误配置!");return}}if(T.value.rule=S.rule,T.value.type=S.type,T.value.type===Z.Block){const K=y(s.value,T.value.parentxpath||"");K&&K.children&&(K.children.forEach(Y=>{if(Y.tag!=T.value.tag||!p(Y,T.value)){q.error("同级结构不一致,无法配置为块类型");return}}),K.children.forEach(Y=>{Y.tag===T.value.tag&&(Y.rule=S.rule,Y.type=S.type)}))}}f.value=new Date().getTime().toString(),q.success("保存成功")}}function k(S){o.value=S}function O(S){u=ao(S);const v=u("body").children().toArray().map(K=>AA(u(K)));return o.value=u("body").html()||"",v[0]}function AA(S,v=""){var ot;function K($A){if(!$A||!$A[0])return"";const JA=[];let ct=$A;for(;ct.length&&ct[0].tagName!=="html";){const Gl=ct[0].tagName,zb=ct.parent().children(Gl).index(ct)+1;JA.unshift(`${Gl}[${zb}]`),ct=ct.parent()}return"/html/"+JA.join("/")}const Y=K(S).replace("/html/body[1]",""),MA=S.children().toArray().map($A=>AA(u($A),Y)),Ce=(ot=r.rules)==null?void 0:ot.find($A=>$A.xpath===Y);return{tag:S[0].tagName,text:S.contents().not(S.children()).text().trim(),attrs:S[0].attribs,children:MA,xpath:Y,parentxpath:v,type:(Ce==null?void 0:Ce.type)||Z.None,rule:(Ce==null?void 0:Ce.rule)||{}}}function oA(S){console.log("更新子节点的文本",S);const v=y(s.value,S.element.xpath);if(v){const K=l.toRaw(v);K.editText=S.newText}}function cA(S,v=""){function K(Y,MA){var $A;const ot=(MA?(($A=y(s.value,MA))==null?void 0:$A.children)||[]:[s.value]).filter(JA=>JA.tag===Y.tag).indexOf(Y)+1;return`${MA}/${Y.tag}[${ot}]`}S.xpath=K(S,v),S.parentxpath=v,(S.children||[]).forEach(Y=>cA(Y,S.xpath))}function W({action:S,element:v,newBlock:K}){const Y=y(s.value,v.parentxpath||"");if(!Y||!Y.children)return;const MA=Y.children.findIndex(JA=>JA===v);if(MA===-1){q.error("未找到元素");return}const Ce=Y.children.length,{minBlock:ot,maxBlock:$A}=v.rule;if((S==="add"||S==="copy")&&Ce>=($A||1/0)){Q.value=`无法添加更多块。最大块数量为 ${$A}`,q.error(Q.value);return}switch(S){case"add":if(K){const JA={...K,xpath:"",children:JSON.parse(JSON.stringify(K.children))};Y.children.splice(MA+1,0,JA),q.success("添加成功")}break;case"copy":if(K){const JA={...K,xpath:"",children:JSON.parse(JSON.stringify(K.children))};Y.children.splice(MA+1,0,JA),q.success("复制成功")}break;case"moveUp":if(MA>0){const[JA]=Y.children.splice(MA,1);Y.children.splice(MA-1,0,JA),q.success("前移成功")}else q.error("已经是第一个块,无法前移");break;case"moveDown":if(MA<Y.children.length-1){const[JA]=Y.children.splice(MA,1);Y.children.splice(MA+1,0,JA),q.success("后移成功")}else q.error("已经是最后一个块,无法后移");break;case"delete":if(Ce<=(ot||0)){Q.value=`无法删除更多块。最小块数量为 ${ot}`,q.error(Q.value);return}Y.children.splice(MA,1),q.success("删除成功");break}Q.value="",cA(s.value)}function tA(S,v){let K=v.attrs.class.replace(/icon-\S+/g,`icon-${S}`);v.attrs.class=K}function R(S){const v=S.file,K=y(s.value,S.element.xpath);if(r.uploadByFile)r.uploadByFile(v).then(Y=>{Y.success&&(K.attrs.src=Y.file.url,f.value=new Date().getTime().toString())});else{K.attrs.alt=v.name;const Y=URL.createObjectURL(v);K.attrs.src=Y,f.value=new Date().getTime().toString()}}function P(S){const{icon:v}=S,K=y(s.value,S.element.xpath);let Y=K.attrs.class.replace(/icon-\S+/g,`icon-${v}`);K.attrs.class=Y,f.value=new Date().getTime().toString()}const z=S=>S.type.startsWith("image/")?!0:(q.error("只能上传图片文件"),!1),rA=l.ref({});function lA(S,v){if(!S||S.length===0)return;const K=S[0];if(v.rule&&(v.rule.minImageWidth||v.rule.maxImageHeight)){if(v.rule.minImageWidth&&K.width<v.rule.minImageWidth){q.error(`图片宽度不能小于 ${v.rule.minImageWidth}px`);return}if(v.rule.maxImageHeight&&K.height<v.rule.maxImageHeight){q.error(`图片高度不能小于 ${v.rule.maxImageHeight}px`);return}}v.rule.minImageWidth&&v.rule.maxImageHeight?(rA.value.width=v.rule.minImageWidth,rA.value.height=v.rule.maxImageHeight,rA.value.aspectRatio=v.rule.minImageWidth/v.rule.maxImageHeight):rA.value={},K&&(v.rule.crop?(K.thumbUrl,h.value.handleOpenCropper(rA.value,K.file,K.name,v)):r.uploadByFile?r.uploadByFile(K.file).then(Y=>{Y.success&&(v.attrs.src=Y.file.url,f.value=new Date().getTime().toString())}):(v.attrs.src=K.thumbUrl,f.value=new Date().getTime().toString()))}const UA=l.ref(r.previewWidth),HA=l.ref(375);let RA=l.ref(!1),QA=l.ref(""),PA=0,wA=0;function ce(S){QA.value=S,RA.value=!0,PA=event.clientX,S==="preview"?wA=UA.value:S==="structure"&&(wA=HA.value),window.addEventListener("mousemove",Xe),window.addEventListener("mouseup",Vl)}function Xe(S){if(!RA.value)return;const v=S.clientX-PA;QA.value==="preview"?UA.value=Math.max(200,wA+v):QA.value==="structure"&&(HA.value=Math.max(200,wA-v))}function Vl(){RA.value=!1,QA.value="",window.removeEventListener("mousemove",Xe),window.removeEventListener("mouseup",Vl)}return e({generateCover:I}),(S,v)=>(l.openBlock(),l.createElementBlock("div",Mb,[S.preview?(l.openBlock(),l.createElementBlock("div",{key:0,class:"border-l overflow-auto resize-area",style:l.normalizeStyle({width:UA.value+"px"})},[S.showTitle?(l.openBlock(),l.createElementBlock("div",kb,[l.createElementVNode("h2",Pb,[v[3]||(v[3]=l.createTextVNode(" 实时预览 ")),l.createElementVNode("span",Kb,l.toDisplayString(UA.value)+"px",1)]),l.createElementVNode("div",{onClick:v[0]||(v[0]=()=>I()),class:"p-2 cursor-pointer text-blue-500"}," 生成封面 ")])):l.createCommentVNode("",!0),l.createElementVNode("div",{ref_key:"previewRef",ref:C},[o.value?(l.openBlock(),l.createElementBlock("div",{key:0,innerHTML:o.value},null,8,Vb)):(l.openBlock(),l.createElementBlock("div",{key:1,innerHTML:l.unref(u)("body").html()},null,8,Gb))],512)],4)):l.createCommentVNode("",!0),S.preview?(l.openBlock(),l.createElementBlock("div",{key:1,class:"resizer",onMousedown:v[1]||(v[1]=K=>ce("preview"))},null,32)):l.createCommentVNode("",!0),l.createElementVNode("div",Yb,[S.showTitle?(l.openBlock(),l.createElementBlock("h2",Xb,"结构渲染")):l.createCommentVNode("",!0),l.createElementVNode("div",Wb,[s.value?(l.openBlock(),l.createBlock(nE,{key:0,"upload-by-file":S.uploadByFile,cropper:h.value,icon:d.value,upload:m.value,mode:S.mode,icons:S.icons,r:f.value,element:s.value,selectedElement:T.value,hoveredElement:F.value,onSelectElement:H,onHoverElement:M,onContentUpdated:k,onUpdateText:oA,onBlockAction:W,onAddIcon:tA},null,8,["upload-by-file","cropper","icon","upload","mode","icons","r","element","selectedElement","hoveredElement"])):l.createCommentVNode("",!0)])]),c.value=="design"?(l.openBlock(),l.createElementBlock("div",{key:2,class:"resizer",onMousedown:v[2]||(v[2]=K=>ce("structure"))},null,32)):l.createCommentVNode("",!0),c.value=="design"?(l.openBlock(),l.createElementBlock("div",{key:3,class:"resize-area",style:l.normalizeStyle({width:HA.value+"px"})},[l.createElementVNode("div",Jb,[S.showTitle?(l.openBlock(),l.createElementBlock("h2",qb,[v[4]||(v[4]=l.createTextVNode(" 节点属性 ")),l.createElementVNode("span",Zb,l.toDisplayString(HA.value)+"px",1)])):l.createCommentVNode("",!0),l.createElementVNode("div",$b,[T.value?(l.openBlock(),l.createBlock(OE,{key:0,element:T.value,onUpdateElement:L},null,8,["element"])):l.createCommentVNode("",!0)])])],4)):l.createCommentVNode("",!0),l.createVNode(Wp,{ref_key:"cropperRef",ref:h,onOk:R},null,512),l.createVNode(nC,{icons:S.icons,ref_key:"iconRef",ref:d,onOk:P},null,8,["icons"]),l.createVNode(hC,{ref_key:"uploadRef",ref:m,multiple:!1,show:!1,beforeUpload:z,onChange:lA},{"upload-icon":l.withCtx(()=>v[5]||(v[5]=[l.createElementVNode("div",{class:"p-2"},"上传",-1)])),_:1},512)]))}}),[["__scopeId","data-v-3248e027"]]),jb={install(A){A.component("Designer",Kl)}};Ie.Designer=Kl,Ie.default=jb,Object.defineProperties(Ie,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});