diff --git "a/dist/assets/index-ead4fc11.js" "b/dist/assets/index-ead4fc11.js" new file mode 100644--- /dev/null +++ "b/dist/assets/index-ead4fc11.js" @@ -0,0 +1,1573 @@ +import{r as de,c as ho,g as xo,j as se,R as Qt,_ as Et,b as Cc,d as Mr,e as ap,p as Mo,w as lp,f as cp,i as up,k as hp,a as dp}from"./umi-670ae5f7.js";import{W as K1,C as ol,b as Rr,c as dh,E as ai,d as ni,e as ph,a as vt,f as fh,g as pp,h as ji,i as A1,j as fp,G as gp,k as mp,l as vp,n as yp,r as Ur,s as Xr,o as Cp,q as bp,t as ln,u as bc,m as er,v as Is,w as Ip,x as wp,y as Ap,z as Sp,S as sl,A as Ic,T as xp,P as Mp,B as wc,L as Ep,D as zp}from"./index-c664e24a.js";import{A as Mn,g as Ft,h as kp,i as Nt,j as Ac,p as Lp,r as Hn,m as Un,u as zr,c as yt,k as Tp,l as po,q as wn,s as Rp,v as al,x as ll,y as Hp,z as U1,B as X1,D as Vp,E as _p,F as Np,G as Op,H as Pp,I as $p,J as Dp,K as Bp,L as mr,M as kr,f as gh,N as io,O as Sc,n as ws,P as Fp,Q as xc,R as Wp,S as Gp,T as jp,U as Zp}from"./_setToString-723f7f3a.js";import{r as Kp,u as di,a as mh,b as cl,i as Up,P as ul,c as Xp,I as Mc,d as hl,e as vh,f as Y1,g as dl,h as pl,j as yh,k as fl,l as gl,m as ml,n as Ch,o as bh,p as Ih,q as wh,A as Yp,s as Jp,t as Qp,v as qp,w as ef,x as tf,y as nf,z as As,B as rf,C as of,D as Nn,E as sf,S as af,F as lf,G as cf,H as uf,J as hf}from"./index.less_used_.module-4ebc910f.js";import{S as df}from"./scheduler-a7fa9c3c.js";import{t as Ah,c as Pt,S as Sh,d as pf,p as vl,m as oo,i as Ec,n as Ss,P as ff,a as gf,b as mf,e as vf,u as yf,s as Cf,f as bf}from"./index-6a50d27c.js";import{o as J1,d as Q1,i as xh,n as If,S as Jt,T as ha,C as yl,I as Hr,R as q1,e as Sr,M as g1,Q as Mh,f as wf,D as da,P as Af,q as Sf,b as Eh,L as zc,E as xf,c as Mf,g as Ef}from"./index-eaf13c0b.js";import{_ as Mi,c as zf,a as kc,g as kf,b as cn,d as _t,i as Lf,r as jo,A as Tf,L as Rf,D as Hf,S as Vf}from"./confirm-c7e7a86d.js";import{u as Lc,S as _f,P as Nf,A as Tc}from"./Tags-681e8858.js";import{G as Of}from"./gaugeRendererGL-9dc55e03.js";import{B as kt}from"./button-388d96d7.js";import{w as Pf,D as pa,P as fa,I as Rc,R as $f,a as zh,S as Zo,u as kh,A as Lh,b as Zi,c as ga,d as Df,F as Ln,e as qn,f as Bf}from"./useDebounce-b16790b9.js";import{S as S1,d as Ff}from"./index-7c538814.js";import{S as Th,a as Wf}from"./index-b9291a65.js";import{p as Gf}from"./processCompressedAESFile-0476de5c.js";import{d as eo}from"./jszip.min-95dc3654.js";import{u as jf}from"./useIntersection-373d70d6.js";var Zf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};const Kf=Zf;var Uf=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:Kf}))},Xf=de.forwardRef(Uf);const ma=Xf;var Yf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zm-40 72H184v656h656V184zM640.01 338.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-square",theme:"outlined"};const Jf=Yf;var Qf=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:Jf}))},qf=de.forwardRef(Qf);const e4=qf;var t4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"};const n4=t4;var r4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:n4}))},i4=de.forwardRef(r4);const o4=i4;var s4={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};const a4=s4;var l4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:a4}))},c4=de.forwardRef(l4);const u4=c4;var h4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V650h182.9v148zm9.6-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z"}}]},name:"funnel-plot",theme:"outlined"};const d4=h4;var p4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:d4}))},f4=de.forwardRef(p4);const g4=f4;var m4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 392c8.8 0 16-7.2 16-16V192c0-8.8-7.2-16-16-16H744c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h56v240H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16V648c0-8.8-7.2-16-16-16h-56V392h56zM792 240h88v88h-88v-88zm-648 88v-88h88v88h-88zm88 456h-88v-88h88v88zm648-88v88h-88v-88h88zm-80-64h-56c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16h-56V392h56c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h56v240z"}}]},name:"gateway",theme:"outlined"};const v4=m4;var y4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:v4}))},C4=de.forwardRef(y4);const Rh=C4;var b4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const I4=b4;var w4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:I4}))},A4=de.forwardRef(w4);const Hc=A4;var S4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z"}}]},name:"node-index",theme:"outlined"};const x4=S4;var M4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:x4}))},E4=de.forwardRef(M4);const Vc=E4;var z4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z"}}]},name:"pause-circle",theme:"filled"};const k4=z4;var L4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:k4}))},T4=de.forwardRef(L4);const R4=T4;var H4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};const V4=H4;var _4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:V4}))},N4=de.forwardRef(_4);const O4=N4;var P4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926.8 397.1l-396-288a31.81 31.81 0 00-37.6 0l-396 288a31.99 31.99 0 00-11.6 35.8l151.3 466a32 32 0 0030.4 22.1h489.5c13.9 0 26.1-8.9 30.4-22.1l151.3-466c4.2-13.2-.5-27.6-11.7-35.8zM838.6 417l-98.5 32-200-144.7V199.9L838.6 417zM466 567.2l-89.1 122.3-55.2-169.2L466 567.2zm-116.3-96.8L484 373.3v140.8l-134.3-43.7zM512 599.2l93.9 128.9H418.1L512 599.2zm28.1-225.9l134.2 97.1L540.1 514V373.3zM558 567.2l144.3-46.9-55.2 169.2L558 567.2zm-74-367.3v104.4L283.9 449l-98.5-32L484 199.9zM169.3 470.8l86.5 28.1 80.4 246.4-53.8 73.9-113.1-348.4zM327.1 853l50.3-69h269.3l50.3 69H327.1zm414.5-33.8l-53.8-73.9 80.4-246.4 86.5-28.1-113.1 348.4z"}}]},name:"radar-chart",theme:"outlined"};const $4=P4;var D4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:$4}))},B4=de.forwardRef(D4);const Hh=B4;var F4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};const W4=F4;var G4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:W4}))},j4=de.forwardRef(G4);const Vh=j4;var Z4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M567.1 512l318.5-319.3c5-5 1.5-13.7-5.6-13.7h-90.5c-2.1 0-4.2.8-5.6 2.3l-273.3 274-90.2-90.5c12.5-22.1 19.7-47.6 19.7-74.8 0-83.9-68.1-152-152-152s-152 68.1-152 152 68.1 152 152 152c27.7 0 53.6-7.4 75.9-20.3l90 90.3-90.1 90.3A151.04 151.04 0 00288 582c-83.9 0-152 68.1-152 152s68.1 152 152 152 152-68.1 152-152c0-27.2-7.2-52.7-19.7-74.8l90.2-90.5 273.3 274c1.5 1.5 3.5 2.3 5.6 2.3H880c7.1 0 10.7-8.6 5.6-13.7L567.1 512zM288 370c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm0 444c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"}}]},name:"scissor",theme:"outlined"};const K4=Z4;var U4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:K4}))},X4=de.forwardRef(U4);const Y4=X4;var J4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0012.6 0l112-141.9c4.1-5.2.4-13-6.3-13z"}}]},name:"sort-ascending",theme:"outlined"};const Q4=J4;var q4=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:Q4}))},eg=de.forwardRef(q4);const tg=eg;var ng={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const rg=ng;var ig=function(t,n){return de.createElement(Mn,Ft(Ft({},t),{},{ref:n,icon:rg}))},og=de.forwardRef(ig);const _c=og;function _h(){var e=de.useRef(!0);return e.current?(e.current=!1,!0):e.current}var sg=function(e,t){var n=_h();de.useEffect(function(){if(!n)return e()},t)};const ag=sg;var lg=function(e){e===void 0&&(e={});var t=de.useState(e),n=t[0],r=t[1],o=de.useCallback(function(s){r(function(i){return Object.assign({},i,s instanceof Function?s(i):s)})},[]);return[n,o]};const cg=lg;var ug=function(e,t){e===void 0&&(e=!0);var n=de.useCallback(function(r){var o=typeof e=="function"?e():!0;if(o)return r.preventDefault(),t&&(r.returnValue=t),t},[e,t]);de.useEffect(function(){if(e)return J1(window,"beforeunload",n),function(){return Q1(window,"beforeunload",n)}},[e,n])};const hg=ug;var dg=function(){var e=kp(),t=cg({value:void 0,error:void 0,noUserInteraction:!0}),n=t[0],r=t[1],o=de.useCallback(function(s){if(e()){var i,d;try{if(typeof s!="string"&&typeof s!="number"){var S=new Error("Cannot copy typeof "+typeof s+" to clipboard, must be a string");r({value:s,error:S,noUserInteraction:!0});return}else if(s===""){var S=new Error("Cannot copy empty string to clipboard.");r({value:s,error:S,noUserInteraction:!0});return}d=s.toString(),i=Pf(d),r({value:d,error:void 0,noUserInteraction:i})}catch(g){r({value:d,error:g,noUserInteraction:i})}}},[]);return[n,o]};const pg=dg;var fg=function(e,t){var n=de.useState(t),r=n[0],o=n[1];return r==null?[e,o]:[r,o]};const gg=fg;var mg=xh?window:null,Nc=function(e){return!!e.addEventListener},Oc=function(e){return!!e.on},vg=function(e,t,n,r){n===void 0&&(n=mg),de.useEffect(function(){if(t&&n)return Nc(n)?J1(n,e,t,r):Oc(n)&&n.on(e,t,r),function(){Nc(n)?Q1(n,e,t,r):Oc(n)&&n.off(e,t,r)}},[e,t,n,JSON.stringify(r)])};const Nh=vg;var yg=function(e){return typeof e=="function"?e:typeof e=="string"?function(t){return t.key===e}:e?function(){return!0}:function(){return!1}},Cg=function(e,t,n,r){t===void 0&&(t=If),n===void 0&&(n={}),r===void 0&&(r=[e]);var o=n.event,s=o===void 0?"keydown":o,i=n.target,d=n.options,S=de.useMemo(function(){var g=yg(e),w=function(M){if(g(M))return t(M)};return w},r);Nh(s,S,i,d)};const Ai=Cg;var bg=function(e){var t=de.useState([!1,null]),n=t[0],r=t[1];return Ai(e,function(o){return r([!0,o])},{event:"keydown"},[n]),Ai(e,function(o){return r([!1,o])},{event:"keyup"},[n]),n};const li=bg;var Ig=function(e,t,n,r){r===void 0&&(r=li);var o=r(e),s=o[0],i=o[1];ag(function(){!s&&n?n(i):s&&t&&t(i)},[s])};const Pc=Ig;var wg=function(e,t){de.useEffect(function(){return e&&e(),function(){t&&t()}},[])};const Ag=wg;function va(e){if(e){if(e.tagName==="BODY")return e;if(e.tagName==="IFRAME"){var t=e.contentDocument;return t?t.body:null}else if(!e.offsetParent)return null}else return null;return va(e.offsetParent)}function $c(e){var t=e||window.event;return t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}var Dc=xh&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),fi=new Map,Bc=typeof document=="object"?document:void 0,Ko=!1;const Sg=Bc?function(t,n){t===void 0&&(t=!0);var r=de.useRef(Bc.body);n=n||r;var o=function(i){var d=fi.get(i);d?fi.set(i,{counter:d.counter+1,initialOverflow:d.initialOverflow}):(fi.set(i,{counter:1,initialOverflow:i.style.overflow}),Dc?Ko||(J1(document,"touchmove",$c,{passive:!1}),Ko=!0):i.style.overflow="hidden")},s=function(i){var d=fi.get(i);d&&(d.counter===1?(fi.delete(i),Dc?(i.ontouchmove=null,Ko&&(Q1(document,"touchmove",$c),Ko=!1)):i.style.overflow=d.initialOverflow):fi.set(i,{counter:d.counter-1,initialOverflow:d.initialOverflow}))};de.useEffect(function(){var i=va(n.current);i&&(t?o(i):s(i))},[t,n.current]),de.useEffect(function(){var i=va(n.current);if(i)return function(){s(i)}},[])}:function(t,n){};function xg(e,t,n){if(t===void 0&&(t=10),t<1)throw new Error("Capacity has to be greater than 1, got '"+t+"'");var r=_h(),o=de.useState(e),s=o[0],i=o[1],d=de.useRef(n??[]),S=de.useRef(0);r&&(d.current.length?(d.current[d.current.length-1]!==e&&d.current.push(e),d.current.length>t&&(d.current=d.current.slice(d.current.length-t))):d.current.push(e),S.current=d.current.length&&d.current.length-1);var g=de.useCallback(function(M){i(function(R){return M=Kp(M,R),M!==R&&(S.currentt&&(d.current=d.current.slice(d.current.length-t))),M})},[s,t]),w=de.useMemo(function(){return{history:d.current,position:S.current,capacity:t,back:function(M){M===void 0&&(M=1),S.current&&i(function(){return S.current-=Math.min(M,S.current),d.current[S.current]})},forward:function(M){M===void 0&&(M=1),S.current!==d.current.length-1&&i(function(){return S.current=Math.min(S.current+M,d.current.length-1),d.current[S.current]})},go:function(M){M!==S.current&&i(function(){return S.current=M<0?Math.max(d.current.length+M,0):Math.min(d.current.length-1,M),d.current[S.current]})}}},[s]);return[s,g,w]}var Mg=function(e){e===void 0&&(e=new Set);var t=de.useState(e),n=t[0],r=t[1],o=de.useMemo(function(){var i=function(g){return r(function(w){return new Set(Ac(Array.from(w),[g]))})},d=function(g){return r(function(w){return new Set(Array.from(w).filter(function(M){return M!==g}))})},S=function(g){return r(function(w){return w.has(g)?new Set(Array.from(w).filter(function(M){return M!==g})):new Set(Ac(Array.from(w),[g]))})};return{add:i,remove:d,toggle:S,reset:function(){return r(e)},clear:function(){return r(new Set)}}},[r]),s=Nt({has:de.useCallback(function(i){return n.has(i)},[n])},o);return[n,s]};const Eg=Mg;var zg=function(){var e=de.useState(function(){return window.location.hash}),t=e[0],n=e[1],r=de.useCallback(function(){n(window.location.hash)},[]);Ag(function(){J1(window,"hashchange",r)},function(){Q1(window,"hashchange",r)});var o=de.useCallback(function(s){s!==t&&(window.location.hash=s)},[t]);return[t,o]},ya={exports:{}},Fc={},Wc;function kg(){return Wc||(Wc=1),Fc}(function(e,t){(function(n,r){r(t,kg())})(ho,function(n,r){r=r&&r.hasOwnProperty("default")?r.default:r;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},s=function(ze,te){if(!(ze instanceof te))throw new TypeError("Cannot call a class as a function")},i=function(){function ze(te,le){for(var ae=0;ae"u")return this.pipes[le];this.pipes[le]=he}if(le&&le.name){if(he=le,he.processor===this)return he;this.pipes[he.name]=he}return he.processor=this,he}},{key:"process",value:function(le,ae){var he=le;he.options=this.options();for(var ie=ae||le.pipe||"default",ue=void 0,pe=void 0;ie;)typeof he.nextAfterChildren<"u"&&(he.next=he.nextAfterChildren,he.nextAfterChildren=null),typeof ie=="string"&&(ie=this.pipe(ie)),ie.process(he),pe=he,ue=ie,ie=null,he&&he.next&&(he=he.next,ie=pe.nextPipe||he.pipe||ue);return he.hasResult?he.result:void 0}}]),ze}(),V=function(){function ze(te){s(this,ze),this.name=te,this.filters=[]}return i(ze,[{key:"process",value:function(le){if(!this.processor)throw new Error("add this pipe to a processor before using it");for(var ae=this.debug,he=this.filters.length,ie=le,ue=0;ue"u"?"undefined":o(ie))==="object"&&ie.exiting){ie.exiting=!1;break}}!ie.next&&this.resultCheck&&this.resultCheck(ie)}},{key:"log",value:function(le){console.log("[jsondiffpatch] "+this.name+" pipe, "+le)}},{key:"append",value:function(){var le;return(le=this.filters).push.apply(le,arguments),this}},{key:"prepend",value:function(){var le;return(le=this.filters).unshift.apply(le,arguments),this}},{key:"indexOf",value:function(le){if(!le)throw new Error("a filter name is required");for(var ae=0;ae"u"?"undefined":o(ze))!=="object")return ze;if(ze===null)return null;if(k(ze))return ze.map(I);if(ze instanceof Date)return new Date(ze.getTime());if(ze instanceof RegExp)return z(ze);var te={};for(var le in ze)Object.prototype.hasOwnProperty.call(ze,le)&&(te[le]=I(ze[le]));return te}var H=function(ze){S(te,ze);function te(le,ae){s(this,te);var he=g(this,(te.__proto__||Object.getPrototypeOf(te)).call(this));return he.left=le,he.right=ae,he.pipe="diff",he}return i(te,[{key:"setResult",value:function(ae){if(this.options.cloneDiffValues&&(typeof ae>"u"?"undefined":o(ae))==="object"){var he=typeof this.options.cloneDiffValues=="function"?this.options.cloneDiffValues:I;o(ae[0])==="object"&&(ae[0]=he(ae[0])),o(ae[1])==="object"&&(ae[1]=he(ae[1]))}return _.prototype.setResult.apply(this,arguments)}}]),te}(_),A=function(ze){S(te,ze);function te(le,ae){s(this,te);var he=g(this,(te.__proto__||Object.getPrototypeOf(te)).call(this));return he.left=le,he.delta=ae,he.pipe="patch",he}return te}(_),x=function(ze){S(te,ze);function te(le){s(this,te);var ae=g(this,(te.__proto__||Object.getPrototypeOf(te)).call(this));return ae.delta=le,ae.pipe="reverse",ae}return te}(_),p=typeof Array.isArray=="function"?Array.isArray:function(ze){return ze instanceof Array},v=function(te){if(te.left===te.right){te.setResult(void 0).exit();return}if(typeof te.left>"u"){if(typeof te.right=="function")throw new Error("functions are not supported");te.setResult([te.right]).exit();return}if(typeof te.right>"u"){te.setResult([te.left,0,0]).exit();return}if(typeof te.left=="function"||typeof te.right=="function")throw new Error("functions are not supported");if(te.leftType=te.left===null?"null":o(te.left),te.rightType=te.right===null?"null":o(te.right),te.leftType!==te.rightType){te.setResult([te.left,te.right]).exit();return}if(te.leftType==="boolean"||te.leftType==="number"){te.setResult([te.left,te.right]).exit();return}if(te.leftType==="object"&&(te.leftIsArray=p(te.left)),te.rightType==="object"&&(te.rightIsArray=p(te.right)),te.leftIsArray!==te.rightIsArray){te.setResult([te.left,te.right]).exit();return}te.left instanceof RegExp&&(te.right instanceof RegExp?te.setResult([te.left.toString(),te.right.toString()]).exit():te.setResult([te.left,te.right]).exit())};v.filterName="trivial";var y=function(te){if(typeof te.delta>"u"){te.setResult(te.left).exit();return}if(te.nested=!p(te.delta),!te.nested){if(te.delta.length===1){te.setResult(te.delta[0]).exit();return}if(te.delta.length===2){if(te.left instanceof RegExp){var le=/^\/(.*)\/([gimyu]+)$/.exec(te.delta[1]);if(le){te.setResult(new RegExp(le[1],le[2])).exit();return}}te.setResult(te.delta[1]).exit();return}te.delta.length===3&&te.delta[2]===0&&te.setResult(void 0).exit()}};y.filterName="trivial";var a=function(te){if(typeof te.delta>"u"){te.setResult(te.delta).exit();return}if(te.nested=!p(te.delta),!te.nested){if(te.delta.length===1){te.setResult([te.delta[0],0,0]).exit();return}if(te.delta.length===2){te.setResult([te.delta[1],te.delta[0]]).exit();return}te.delta.length===3&&te.delta[2]===0&&te.setResult([te.delta[0]]).exit()}};a.filterName="trivial";function h(ze){if(!(!ze||!ze.children)){for(var te=ze.children.length,le=void 0,ae=ze.result,he=0;he"u")&&(ae=ae||{},ae[le.childName]=le.result);ae&&ze.leftIsArray&&(ae._t="a"),ze.setResult(ae).exit()}}h.filterName="collectChildren";function u(ze){if(!(ze.leftIsArray||ze.leftType!=="object")){var te=void 0,le=void 0,ae=ze.options.propertyFilter;for(te in ze.left)Object.prototype.hasOwnProperty.call(ze.left,te)&&(ae&&!ae(te,ze)||(le=new H(ze.left[te],ze.right[te]),ze.push(le,te)));for(te in ze.right)Object.prototype.hasOwnProperty.call(ze.right,te)&&(ae&&!ae(te,ze)||typeof ze.left[te]>"u"&&(le=new H(void 0,ze.right[te]),ze.push(le,te)));if(!ze.children||ze.children.length===0){ze.setResult(void 0).exit();return}ze.exit()}}u.filterName="objects";var b=function(te){if(te.nested&&!te.delta._t){var le=void 0,ae=void 0;for(le in te.delta)ae=new A(te.left[le],te.delta[le]),te.push(ae,le);te.exit()}};b.filterName="objects";var m=function(te){if(!(!te||!te.children)&&!te.delta._t){for(var le=te.children.length,ae=void 0,he=0;heAe?--ue:--ie}}return pe},L=function(te,le,ae,he){var ie=he||{},ue=C(te,le,ae||f,ie),pe=T(ue,te,le,ie);return typeof te=="string"&&typeof le=="string"&&(pe.sequence=pe.sequence.join("")),pe},O={get:L},P=3,F=typeof Array.isArray=="function"?Array.isArray:function(ze){return ze instanceof Array},B=typeof Array.prototype.indexOf=="function"?function(ze,te){return ze.indexOf(te)}:function(ze,te){for(var le=ze.length,ae=0;ae"u"?"undefined":o(ie))!=="object"||(typeof ue>"u"?"undefined":o(ue))!=="object")return!1;var pe=he.objectHash;if(!pe)return he.matchByPosition&&le===ae;var we=void 0,Se=void 0;return typeof le=="number"?(he.hashCache1=he.hashCache1||[],we=he.hashCache1[le],typeof we>"u"&&(he.hashCache1[le]=we=pe(ie,le))):we=pe(ie),typeof we>"u"||(typeof ae=="number"?(he.hashCache2=he.hashCache2||[],Se=he.hashCache2[ae],typeof Se>"u"&&(he.hashCache2[ae]=Se=pe(ue,ae))):Se=pe(ue),typeof Se>"u")?!1:we===Se}var j=function(te){if(te.leftIsArray){var le={objectHash:te.options&&te.options.objectHash,matchByPosition:te.options&&te.options.matchByPosition},ae=0,he=0,ie=void 0,ue=void 0,pe=void 0,we=te.left,Se=te.right,Ae=we.length,ke=Se.length,Pe=void 0;for(Ae>0&&ke>0&&!le.objectHash&&typeof le.matchByPosition!="boolean"&&(le.matchByPosition=!W(we,Se,Ae,ke));ae0){for(var pt=0;pt=0;le--){ae=ue[le];var Se=he["_"+ae],Ae=ie.splice(ae,1)[0];Se[2]===P&&pe.push({index:Se[1],value:Ae})}pe=pe.sort(E.numericallyBy("index"));var ke=pe.length;for(le=0;le0)for(le=0;lehe?he++:pe>=he&&we"u"&&(ie=X(ze.delta,le.childName,le.result)),ae[ie]!==le.result&&(ae[ie]=le.result)}ze.setResult(ae).exit()}}Y.filterName="arraysCollectChildren";var oe=function(te){te.left instanceof Date?(te.right instanceof Date?te.left.getTime()!==te.right.getTime()?te.setResult([te.left,te.right]):te.setResult(void 0):te.setResult([te.left,te.right]),te.exit()):te.right instanceof Date&&te.setResult([te.left,te.right]).exit()};oe.filterName="dates";function ce(ze,te){return te={exports:{}},ze(te,te.exports),te.exports}var re=ce(function(ze){function te(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var le=-1,ae=1,he=0;te.prototype.diff_main=function(ie,ue,pe,we){typeof we>"u"&&(this.Diff_Timeout<=0?we=Number.MAX_VALUE:we=new Date().getTime()+this.Diff_Timeout*1e3);var Se=we;if(ie==null||ue==null)throw new Error("Null input. (diff_main)");if(ie==ue)return ie?[[he,ie]]:[];typeof pe>"u"&&(pe=!0);var Ae=pe,ke=this.diff_commonPrefix(ie,ue),Pe=ie.substring(0,ke);ie=ie.substring(ke),ue=ue.substring(ke),ke=this.diff_commonSuffix(ie,ue);var je=ie.substring(ie.length-ke);ie=ie.substring(0,ie.length-ke),ue=ue.substring(0,ue.length-ke);var nt=this.diff_compute_(ie,ue,Ae,Se);return Pe&&nt.unshift([he,Pe]),je&&nt.push([he,je]),this.diff_cleanupMerge(nt),nt},te.prototype.diff_compute_=function(ie,ue,pe,we){var Se;if(!ie)return[[ae,ue]];if(!ue)return[[le,ie]];var Ae=ie.length>ue.length?ie:ue,ke=ie.length>ue.length?ue:ie,Pe=Ae.indexOf(ke);if(Pe!=-1)return Se=[[ae,Ae.substring(0,Pe)],[he,ke],[ae,Ae.substring(Pe+ke.length)]],ie.length>ue.length&&(Se[0][0]=Se[2][0]=le),Se;if(ke.length==1)return[[le,ie],[ae,ue]];var je=this.diff_halfMatch_(ie,ue);if(je){var nt=je[0],ot=je[1],Ee=je[2],Ge=je[3],qe=je[4],Je=this.diff_main(nt,Ee,pe,we),ht=this.diff_main(ot,Ge,pe,we);return Je.concat([[he,qe]],ht)}return pe&&ie.length>100&&ue.length>100?this.diff_lineMode_(ie,ue,we):this.diff_bisect_(ie,ue,we)},te.prototype.diff_lineMode_=function(ie,ue,pe){var we=this.diff_linesToChars_(ie,ue);ie=we.chars1,ue=we.chars2;var Se=we.lineArray,Ae=this.diff_main(ie,ue,!1,pe);this.diff_charsToLines_(Ae,Se),this.diff_cleanupSemantic(Ae),Ae.push([he,""]);for(var ke=0,Pe=0,je=0,nt="",ot="";ke=1&&je>=1){Ae.splice(ke-Pe-je,Pe+je),ke=ke-Pe-je;for(var we=this.diff_main(nt,ot,!1,pe),Ee=we.length-1;Ee>=0;Ee--)Ae.splice(ke,0,we[Ee]);ke=ke+we.length}je=0,Pe=0,nt="",ot="";break}ke++}return Ae.pop(),Ae},te.prototype.diff_bisect_=function(ie,ue,pe){for(var we=ie.length,Se=ue.length,Ae=Math.ceil((we+Se)/2),ke=Ae,Pe=2*Ae,je=new Array(Pe),nt=new Array(Pe),ot=0;otpe);bt++){for(var pt=-bt+qe;pt<=bt-Je;pt+=2){var It=ke+pt,ft;pt==-bt||pt!=bt&&je[It-1]we)Je+=2;else if(Vt>Se)qe+=2;else if(Ge){var St=ke+Ee-pt;if(St>=0&&St=Bt)return this.diff_bisectSplit_(ie,ue,ft,Vt,pe)}}}for(var hn=-bt+ht;hn<=bt-dt;hn+=2){var St=ke+hn,Bt;hn==-bt||hn!=bt&&nt[St-1]we)dt+=2;else if(sn>Se)ht+=2;else if(!Ge){var It=ke+Ee-hn;if(It>=0&&It=Bt)return this.diff_bisectSplit_(ie,ue,ft,Vt,pe)}}}}return[[le,ie],[ae,ue]]},te.prototype.diff_bisectSplit_=function(ie,ue,pe,we,Se){var Ae=ie.substring(0,pe),ke=ue.substring(0,we),Pe=ie.substring(pe),je=ue.substring(we),nt=this.diff_main(Ae,ke,!1,Se),ot=this.diff_main(Pe,je,!1,Se);return nt.concat(ot)},te.prototype.diff_linesToChars_=function(ie,ue){var pe=[],we={};pe[0]="";function Se(Pe){for(var je="",nt=0,ot=-1,Ee=pe.length;otwe?ie=ie.substring(pe-we):peue.length?ie:ue,we=ie.length>ue.length?ue:ie;if(pe.length<4||we.length*2=Je.length?[ft,Vt,St,Bt,It]:null}var ke=Ae(pe,we,Math.ceil(pe.length/4)),Pe=Ae(pe,we,Math.ceil(pe.length/2)),je;if(!ke&&!Pe)return null;Pe?ke?je=ke[4].length>Pe[4].length?ke:Pe:je=Pe:je=ke;var nt,ot,Ee,Ge;ie.length>ue.length?(nt=je[0],ot=je[1],Ee=je[2],Ge=je[3]):(Ee=je[0],Ge=je[1],nt=je[2],ot=je[3]);var qe=je[4];return[nt,ot,Ee,Ge,qe]},te.prototype.diff_cleanupSemantic=function(ie){for(var ue=!1,pe=[],we=0,Se=null,Ae=0,ke=0,Pe=0,je=0,nt=0;Ae0?pe[we-1]:-1,ke=0,Pe=0,je=0,nt=0,Se=null,ue=!0)),Ae++;for(ue&&this.diff_cleanupMerge(ie),this.diff_cleanupSemanticLossless(ie),Ae=1;Ae=qe?(Ge>=ot.length/2||Ge>=Ee.length/2)&&(ie.splice(Ae,0,[he,Ee.substring(0,Ge)]),ie[Ae-1][1]=ot.substring(0,ot.length-Ge),ie[Ae+1][1]=Ee.substring(Ge),Ae++):(qe>=ot.length/2||qe>=Ee.length/2)&&(ie.splice(Ae,0,[he,ot.substring(0,qe)]),ie[Ae-1][0]=ae,ie[Ae-1][1]=Ee.substring(0,Ee.length-qe),ie[Ae+1][0]=le,ie[Ae+1][1]=ot.substring(qe),Ae++),Ae++}Ae++}},te.prototype.diff_cleanupSemanticLossless=function(ie){function ue(qe,Je){if(!qe||!Je)return 6;var ht=qe.charAt(qe.length-1),dt=Je.charAt(0),bt=ht.match(te.nonAlphaNumericRegex_),pt=dt.match(te.nonAlphaNumericRegex_),It=bt&&ht.match(te.whitespaceRegex_),ft=pt&&dt.match(te.whitespaceRegex_),Vt=It&&ht.match(te.linebreakRegex_),St=ft&&dt.match(te.linebreakRegex_),Bt=Vt&&qe.match(te.blanklineEndRegex_),hn=St&&Je.match(te.blanklineStartRegex_);return Bt||hn?5:Vt||St?4:bt&&!It&&ft?3:It||ft?2:bt||pt?1:0}for(var pe=1;pe=Ee&&(Ee=Ge,je=we,nt=Se,ot=Ae)}ie[pe-1][1]!=je&&(je?ie[pe-1][1]=je:(ie.splice(pe-1,1),pe--),ie[pe][1]=nt,ot?ie[pe+1][1]=ot:(ie.splice(pe+1,1),pe--))}pe++}},te.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,te.whitespaceRegex_=/\s/,te.linebreakRegex_=/[\r\n]/,te.blanklineEndRegex_=/\n\r?\n$/,te.blanklineStartRegex_=/^\r?\n\r?\n/,te.prototype.diff_cleanupEfficiency=function(ie){for(var ue=!1,pe=[],we=0,Se=null,Ae=0,ke=!1,Pe=!1,je=!1,nt=!1;Ae0?pe[we-1]:-1,je=nt=!1),ue=!0)),Ae++;ue&&this.diff_cleanupMerge(ie)},te.prototype.diff_cleanupMerge=function(ie){ie.push([he,""]);for(var ue=0,pe=0,we=0,Se="",Ae="",ke;ue1?(pe!==0&&we!==0&&(ke=this.diff_commonPrefix(Ae,Se),ke!==0&&(ue-pe-we>0&&ie[ue-pe-we-1][0]==he?ie[ue-pe-we-1][1]+=Ae.substring(0,ke):(ie.splice(0,0,[he,Ae.substring(0,ke)]),ue++),Ae=Ae.substring(ke),Se=Se.substring(ke)),ke=this.diff_commonSuffix(Ae,Se),ke!==0&&(ie[ue][1]=Ae.substring(Ae.length-ke)+ie[ue][1],Ae=Ae.substring(0,Ae.length-ke),Se=Se.substring(0,Se.length-ke))),pe===0?ie.splice(ue-we,pe+we,[ae,Ae]):we===0?ie.splice(ue-pe,pe+we,[le,Se]):ie.splice(ue-pe-we,pe+we,[le,Se],[ae,Ae]),ue=ue-pe-we+(pe?1:0)+(we?1:0)+1):ue!==0&&ie[ue-1][0]==he?(ie[ue-1][1]+=ie[ue][1],ie.splice(ue,1)):ue++,we=0,pe=0,Se="",Ae="";break}ie[ie.length-1][1]===""&&ie.pop();var Pe=!1;for(ue=1;ueue));ke++)Se=pe,Ae=we;return ie.length!=ke&&ie[ke][0]===le?Ae:Ae+(ue-Se)},te.prototype.diff_prettyHtml=function(ie){for(var ue=[],pe=/&/g,we=//g,Ae=/\n/g,ke=0;ke");switch(Pe){case ae:ue[ke]=''+nt+"";break;case le:ue[ke]=''+nt+"";break;case he:ue[ke]=""+nt+"";break}}return ue.join("")},te.prototype.diff_text1=function(ie){for(var ue=[],pe=0;pethis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var we=this.match_alphabet_(ue),Se=this;function Ae(ft,Vt){var St=ft/ue.length,Bt=Math.abs(pe-Vt);return Se.Match_Distance?St+Bt/Se.Match_Distance:Bt?1:St}var ke=this.Match_Threshold,Pe=ie.indexOf(ue,pe);Pe!=-1&&(ke=Math.min(Ae(0,Pe),ke),Pe=ie.lastIndexOf(ue,pe+ue.length),Pe!=-1&&(ke=Math.min(Ae(0,Pe),ke)));var je=1<=Je;bt--){var pt=we[ie.charAt(bt-1)];if(qe===0?dt[bt]=(dt[bt+1]<<1|1)&pt:dt[bt]=(dt[bt+1]<<1|1)&pt|((Ge[bt+1]|Ge[bt])<<1|1)|Ge[bt+1],dt[bt]&je){var It=Ae(qe,bt-1);if(It<=ke)if(ke=It,Pe=bt-1,Pe>pe)Je=Math.max(1,2*pe-Pe);else break}}if(Ae(qe+1,pe)>ke)break;Ge=dt}return Pe},te.prototype.match_alphabet_=function(ie){for(var ue={},pe=0;pe"u")we=ie,Se=this.diff_main(we,ue,!0),Se.length>2&&(this.diff_cleanupSemantic(Se),this.diff_cleanupEfficiency(Se));else if(ie&&typeof ie=="object"&&typeof ue>"u"&&typeof pe>"u")Se=ie,we=this.diff_text1(Se);else if(typeof ie=="string"&&ue&&typeof ue=="object"&&typeof pe>"u")we=ie,Se=ue;else if(typeof ie=="string"&&typeof ue=="string"&&pe&&typeof pe=="object")we=ie,Se=pe;else throw new Error("Unknown call format to patch_make.");if(Se.length===0)return[];for(var Ae=[],ke=new te.patch_obj,Pe=0,je=0,nt=0,ot=we,Ee=we,Ge=0;Ge=2*this.Patch_Margin&&Pe&&(this.patch_addContext_(ke,ot),Ae.push(ke),ke=new te.patch_obj,Pe=0,ot=Ee,je=nt);break}qe!==ae&&(je+=Je.length),qe!==le&&(nt+=Je.length)}return Pe&&(this.patch_addContext_(ke,ot),Ae.push(ke)),Ae},te.prototype.patch_deepCopy=function(ie){for(var ue=[],pe=0;pethis.Match_MaxBits?(je=this.match_main(ue,Pe.substring(0,this.Match_MaxBits),ke),je!=-1&&(nt=this.match_main(ue,Pe.substring(Pe.length-this.Match_MaxBits),ke+Pe.length-this.Match_MaxBits),(nt==-1||je>=nt)&&(je=-1))):je=this.match_main(ue,Pe,ke),je==-1)Se[Ae]=!1,we-=ie[Ae].length2-ie[Ae].length1;else{Se[Ae]=!0,we=je-ke;var ot;if(nt==-1?ot=ue.substring(je,je+Pe.length):ot=ue.substring(je,nt+this.Match_MaxBits),Pe==ot)ue=ue.substring(0,je)+this.diff_text2(ie[Ae].diffs)+ue.substring(je+Pe.length);else{var Ee=this.diff_main(Pe,ot,!1);if(Pe.length>this.Match_MaxBits&&this.diff_levenshtein(Ee)/Pe.length>this.Patch_DeleteThreshold)Se[Ae]=!1;else{this.diff_cleanupSemanticLossless(Ee);for(var Ge=0,qe,Je=0;JeAe[0][1].length){var ke=ue-Ae[0][1].length;Ae[0][1]=pe.substring(Ae[0][1].length)+Ae[0][1],Se.start1-=ke,Se.start2-=ke,Se.length1+=ke,Se.length2+=ke}if(Se=ie[ie.length-1],Ae=Se.diffs,Ae.length==0||Ae[Ae.length-1][0]!=he)Ae.push([he,pe]),Se.length1+=ue,Se.length2+=ue;else if(ue>Ae[Ae.length-1][1].length){var ke=ue-Ae[Ae.length-1][1].length;Ae[Ae.length-1][1]+=pe.substring(0,ke),Se.length1+=ke,Se.length2+=ke}return pe},te.prototype.patch_splitMax=function(ie){for(var ue=this.Match_MaxBits,pe=0;pe2*ue?(Pe.length1+=ot.length,Se+=ot.length,je=!1,Pe.diffs.push([nt,ot]),we.diffs.shift()):(ot=ot.substring(0,ue-Pe.length1-this.Patch_Margin),Pe.length1+=ot.length,Se+=ot.length,nt===he?(Pe.length2+=ot.length,Ae+=ot.length):je=!1,Pe.diffs.push([nt,ot]),ot==we.diffs[0][1]?we.diffs.shift():we.diffs[0][1]=we.diffs[0][1].substring(ot.length))}ke=this.diff_text2(Pe.diffs),ke=ke.substring(ke.length-this.Patch_Margin);var Ee=this.diff_text1(we.diffs).substring(0,this.Patch_Margin);Ee!==""&&(Pe.length1+=Ee.length,Pe.length2+=Ee.length,Pe.diffs.length!==0&&Pe.diffs[Pe.diffs.length-1][0]===he?Pe.diffs[Pe.diffs.length-1][1]+=Ee:Pe.diffs.push([he,Ee])),je||ie.splice(++pe,0,Pe)}}},te.prototype.patch_toText=function(ie){for(var ue=[],pe=0;pe"u"&&typeof ie>"u")){var ke=this.getDeltaType(ae,pe),Pe=ke==="node"?ae._t==="a"?"array":"object":"";typeof ie<"u"?this.nodeBegin(le,ie,ue,ke,Pe,we):this.rootBegin(le,ke,Pe);var je=void 0;try{je=this["format_"+ke]||this.typeFormattterNotFound(le,ke),je.call(this,le,ae,Ae,ie,ue,pe)}catch(nt){this.typeFormattterErrorFormatter(le,nt,ae,Ae,ie,ue,pe),typeof console<"u"&&console.error&&console.error(nt.stack)}typeof ie<"u"?this.nodeEnd(le,ie,ue,ke,Pe,we):this.rootEnd(le,ke,Pe)}}},{key:"formatDeltaChildren",value:function(le,ae,he){var ie=this;this.forEachDeltaKey(ae,he,function(ue,pe,we,Se){ie.recurse(le,ae[ue],he?he[pe]:void 0,ue,pe,we,Se)})}},{key:"forEachDeltaKey",value:function(le,ae,he){var ie=Le(le),ue=le._t==="a",pe={},we=void 0;if(typeof ae<"u")for(we in ae)Object.prototype.hasOwnProperty.call(ae,we)&&typeof le[we]>"u"&&(!ue||typeof le["_"+we]>"u")&&ie.push(we);for(we in le)if(Object.prototype.hasOwnProperty.call(le,we)){var Se=le[we];me(Se)&&Se[2]===3&&(pe[Se[1].toString()]={key:we,value:ae&&ae[parseInt(we.substr(1))]},this.includeMoveDestinations!==!1&&typeof ae>"u"&&typeof le[Se[1]]>"u"&&ie.push(Se[1].toString()))}ue?ie.sort(Fe):ie.sort();for(var Ae=0,ke=ie.length;Ae"u")return typeof ae<"u"?"movedestination":"unchanged";if(me(le)){if(le.length===1)return"added";if(le.length===2)return"modified";if(le.length===3&&le[2]===0)return"deleted";if(le.length===3&&le[2]===2)return"textdiff";if(le.length===3&&le[2]===3)return"moved"}else if((typeof le>"u"?"undefined":o(le))==="object")return"node";return"unknown"}},{key:"parseTextDiff",value:function(le){for(var ae=[],he=le.split(` +@@ `),ie=0,ue=he.length;ie'+he+"")}},{key:"formatValue",value:function(ae,he){ae.out("
"+be(JSON.stringify(he,null,2))+"
")}},{key:"formatTextDiffString",value:function(ae,he){var ie=this.parseTextDiff(he);ae.out('
    ');for(var ue=0,pe=ie.length;ue
    '+(''+we.location.line+''+we.location.chr+'
    '));for(var Se=we.pieces,Ae=0,ke=Se.length;Ae'+be(decodeURI(Pe.text))+"")}ae.out("
    ")}ae.out("
")}},{key:"rootBegin",value:function(ae,he,ie){var ue="jsondiffpatch-"+he+(ie?" jsondiffpatch-child-node-type-"+ie:"");ae.out('
')}},{key:"rootEnd",value:function(ae){ae.out("
"+(ae.hasArrows?'