@teselagen/sequence-utils 0.1.1 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/annotationTypes.d.ts +1 -2
- package/diffUtils.d.ts +2 -2
- package/index.d.ts +1 -1
- package/index.js +35 -31
- package/index.mjs +5813 -5767
- package/index.umd.js +57 -0
- package/package.json +3 -3
package/index.umd.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
(function(D,Se){typeof exports=="object"&&typeof module!="undefined"?Se(exports):typeof define=="function"&&define.amd?define(["exports"],Se):(D=typeof globalThis!="undefined"?globalThis:D||self,Se(D["sequence-utils"]={}))})(this,function(D){"use strict";var $v=Object.defineProperty,jv=Object.defineProperties;var Xv=Object.getOwnPropertyDescriptors;var Cg=Object.getOwnPropertySymbols;var zv=Object.prototype.hasOwnProperty,Jv=Object.prototype.propertyIsEnumerable;var Oe=Math.pow,Fg=(D,Se,Te)=>Se in D?$v(D,Se,{enumerable:!0,configurable:!0,writable:!0,value:Te}):D[Se]=Te,ie=(D,Se)=>{for(var Te in Se||(Se={}))zv.call(Se,Te)&&Fg(D,Te,Se[Te]);if(Cg)for(var Te of Cg(Se))Jv.call(Se,Te)&&Fg(D,Te,Se[Te]);return D},ye=(D,Se)=>jv(D,Xv(Se));var Se=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Te(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var tn={exports:{}};/**
|
|
2
|
+
* @license
|
|
3
|
+
* Lodash <https://lodash.com/>
|
|
4
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5
|
+
* Released under MIT license <https://lodash.com/license>
|
|
6
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
+
*/tn.exports,function(a,n){(function(){var r,o="4.17.21",f=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",g="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",p=500,I="__lodash_placeholder__",h=1,v=2,m=4,w=1,B=2,_=1,C=2,N=4,F=8,L=16,x=32,U=64,G=128,$=256,J=512,ve=30,oe="...",ce=800,xe=16,Ze=1,tp=2,rp=3,zt=1/0,Mt=9007199254740991,np=17976931348623157e292,An=0/0,dt=4294967295,sp=dt-1,ap=dt>>>1,ip=[["ary",G],["bind",_],["bindKey",C],["curry",F],["curryRight",L],["flip",J],["partial",x],["partialRight",U],["rearg",$]],gr="[object Arguments]",_n="[object Array]",op="[object AsyncFunction]",Mr="[object Boolean]",Pr="[object Date]",fp="[object DOMException]",xn="[object Error]",En="[object Function]",Yo="[object GeneratorFunction]",it="[object Map]",Ur="[object Number]",cp="[object Null]",Rt="[object Object]",Qo="[object Promise]",gp="[object Proxy]",kr="[object RegExp]",ot="[object Set]",Dr="[object String]",Cn="[object Symbol]",lp="[object Undefined]",Hr="[object WeakMap]",up="[object WeakSet]",Nr="[object ArrayBuffer]",lr="[object DataView]",ea="[object Float32Array]",ta="[object Float64Array]",ra="[object Int8Array]",na="[object Int16Array]",sa="[object Int32Array]",aa="[object Uint8Array]",ia="[object Uint8ClampedArray]",oa="[object Uint16Array]",fa="[object Uint32Array]",pp=/\b__p \+= '';/g,Ip=/\b(__p \+=) '' \+/g,hp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ef=/&(?:amp|lt|gt|quot|#39);/g,tf=/[&<>"']/g,dp=RegExp(ef.source),vp=RegExp(tf.source),mp=/<%-([\s\S]+?)%>/g,Sp=/<%([\s\S]+?)%>/g,rf=/<%=([\s\S]+?)%>/g,bp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yp=/^\w*$/,wp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ca=/[\\^$.*+?()[\]{}|]/g,Rp=RegExp(ca.source),ga=/^\s+/,Op=/\s/,Bp=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ap=/\{\n\/\* \[wrapped with (.+)\] \*/,_p=/,? & /,xp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ep=/[()=,{}\[\]\/\s]/,Cp=/\\(\\)?/g,Fp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nf=/\w*$/,Tp=/^[-+]0x[0-9a-f]+$/i,Mp=/^0b[01]+$/i,Pp=/^\[object .+?Constructor\]$/,Up=/^0o[0-7]+$/i,kp=/^(?:0|[1-9]\d*)$/,Dp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fn=/($^)/,Hp=/['\n\r\u2028\u2029\\]/g,Tn="\\ud800-\\udfff",Np="\\u0300-\\u036f",Lp="\\ufe20-\\ufe2f",Gp="\\u20d0-\\u20ff",sf=Np+Lp+Gp,af="\\u2700-\\u27bf",of="a-z\\xdf-\\xf6\\xf8-\\xff",Kp="\\xac\\xb1\\xd7\\xf7",Vp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qp="\\u2000-\\u206f",Wp=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ff="A-Z\\xc0-\\xd6\\xd8-\\xde",cf="\\ufe0e\\ufe0f",gf=Kp+Vp+qp+Wp,la="['’]",$p="["+Tn+"]",lf="["+gf+"]",Mn="["+sf+"]",uf="\\d+",jp="["+af+"]",pf="["+of+"]",If="[^"+Tn+gf+uf+af+of+ff+"]",ua="\\ud83c[\\udffb-\\udfff]",Xp="(?:"+Mn+"|"+ua+")",hf="[^"+Tn+"]",pa="(?:\\ud83c[\\udde6-\\uddff]){2}",Ia="[\\ud800-\\udbff][\\udc00-\\udfff]",ur="["+ff+"]",df="\\u200d",vf="(?:"+pf+"|"+If+")",zp="(?:"+ur+"|"+If+")",mf="(?:"+la+"(?:d|ll|m|re|s|t|ve))?",Sf="(?:"+la+"(?:D|LL|M|RE|S|T|VE))?",bf=Xp+"?",yf="["+cf+"]?",Jp="(?:"+df+"(?:"+[hf,pa,Ia].join("|")+")"+yf+bf+")*",Zp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wf=yf+bf+Jp,Qp="(?:"+[jp,pa,Ia].join("|")+")"+wf,eI="(?:"+[hf+Mn+"?",Mn,pa,Ia,$p].join("|")+")",tI=RegExp(la,"g"),rI=RegExp(Mn,"g"),ha=RegExp(ua+"(?="+ua+")|"+eI+wf,"g"),nI=RegExp([ur+"?"+pf+"+"+mf+"(?="+[lf,ur,"$"].join("|")+")",zp+"+"+Sf+"(?="+[lf,ur+vf,"$"].join("|")+")",ur+"?"+vf+"+"+mf,ur+"+"+Sf,Yp,Zp,uf,Qp].join("|"),"g"),sI=RegExp("["+df+Tn+sf+cf+"]"),aI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,iI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],oI=-1,Ie={};Ie[ea]=Ie[ta]=Ie[ra]=Ie[na]=Ie[sa]=Ie[aa]=Ie[ia]=Ie[oa]=Ie[fa]=!0,Ie[gr]=Ie[_n]=Ie[Nr]=Ie[Mr]=Ie[lr]=Ie[Pr]=Ie[xn]=Ie[En]=Ie[it]=Ie[Ur]=Ie[Rt]=Ie[kr]=Ie[ot]=Ie[Dr]=Ie[Hr]=!1;var pe={};pe[gr]=pe[_n]=pe[Nr]=pe[lr]=pe[Mr]=pe[Pr]=pe[ea]=pe[ta]=pe[ra]=pe[na]=pe[sa]=pe[it]=pe[Ur]=pe[Rt]=pe[kr]=pe[ot]=pe[Dr]=pe[Cn]=pe[aa]=pe[ia]=pe[oa]=pe[fa]=!0,pe[xn]=pe[En]=pe[Hr]=!1;var fI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},cI={"&":"&","<":"<",">":">",'"':""","'":"'"},gI={"&":"&","<":"<",">":">",""":'"',"'":"'"},lI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uI=parseFloat,pI=parseInt,Rf=typeof Se=="object"&&Se&&Se.Object===Object&&Se,II=typeof self=="object"&&self&&self.Object===Object&&self,Ce=Rf||II||Function("return this")(),da=n&&!n.nodeType&&n,Jt=da&&!0&&a&&!a.nodeType&&a,Of=Jt&&Jt.exports===da,va=Of&&Rf.process,Ye=function(){try{var O=Jt&&Jt.require&&Jt.require("util").types;return O||va&&va.binding&&va.binding("util")}catch(T){}}(),Bf=Ye&&Ye.isArrayBuffer,Af=Ye&&Ye.isDate,_f=Ye&&Ye.isMap,xf=Ye&&Ye.isRegExp,Ef=Ye&&Ye.isSet,Cf=Ye&&Ye.isTypedArray;function Ve(O,T,E){switch(E.length){case 0:return O.call(T);case 1:return O.call(T,E[0]);case 2:return O.call(T,E[0],E[1]);case 3:return O.call(T,E[0],E[1],E[2])}return O.apply(T,E)}function hI(O,T,E,V){for(var Z=-1,fe=O==null?0:O.length;++Z<fe;){var Be=O[Z];T(V,Be,E(Be),O)}return V}function Qe(O,T){for(var E=-1,V=O==null?0:O.length;++E<V&&T(O[E],E,O)!==!1;);return O}function dI(O,T){for(var E=O==null?0:O.length;E--&&T(O[E],E,O)!==!1;);return O}function Ff(O,T){for(var E=-1,V=O==null?0:O.length;++E<V;)if(!T(O[E],E,O))return!1;return!0}function Pt(O,T){for(var E=-1,V=O==null?0:O.length,Z=0,fe=[];++E<V;){var Be=O[E];T(Be,E,O)&&(fe[Z++]=Be)}return fe}function Pn(O,T){var E=O==null?0:O.length;return!!E&&pr(O,T,0)>-1}function ma(O,T,E){for(var V=-1,Z=O==null?0:O.length;++V<Z;)if(E(T,O[V]))return!0;return!1}function de(O,T){for(var E=-1,V=O==null?0:O.length,Z=Array(V);++E<V;)Z[E]=T(O[E],E,O);return Z}function Ut(O,T){for(var E=-1,V=T.length,Z=O.length;++E<V;)O[Z+E]=T[E];return O}function Sa(O,T,E,V){var Z=-1,fe=O==null?0:O.length;for(V&&fe&&(E=O[++Z]);++Z<fe;)E=T(E,O[Z],Z,O);return E}function vI(O,T,E,V){var Z=O==null?0:O.length;for(V&&Z&&(E=O[--Z]);Z--;)E=T(E,O[Z],Z,O);return E}function ba(O,T){for(var E=-1,V=O==null?0:O.length;++E<V;)if(T(O[E],E,O))return!0;return!1}var mI=ya("length");function SI(O){return O.split("")}function bI(O){return O.match(xp)||[]}function Tf(O,T,E){var V;return E(O,function(Z,fe,Be){if(T(Z,fe,Be))return V=fe,!1}),V}function Un(O,T,E,V){for(var Z=O.length,fe=E+(V?1:-1);V?fe--:++fe<Z;)if(T(O[fe],fe,O))return fe;return-1}function pr(O,T,E){return T===T?TI(O,T,E):Un(O,Mf,E)}function yI(O,T,E,V){for(var Z=E-1,fe=O.length;++Z<fe;)if(V(O[Z],T))return Z;return-1}function Mf(O){return O!==O}function Pf(O,T){var E=O==null?0:O.length;return E?Ra(O,T)/E:An}function ya(O){return function(T){return T==null?r:T[O]}}function wa(O){return function(T){return O==null?r:O[T]}}function Uf(O,T,E,V,Z){return Z(O,function(fe,Be,ue){E=V?(V=!1,fe):T(E,fe,Be,ue)}),E}function wI(O,T){var E=O.length;for(O.sort(T);E--;)O[E]=O[E].value;return O}function Ra(O,T){for(var E,V=-1,Z=O.length;++V<Z;){var fe=T(O[V]);fe!==r&&(E=E===r?fe:E+fe)}return E}function Oa(O,T){for(var E=-1,V=Array(O);++E<O;)V[E]=T(E);return V}function RI(O,T){return de(T,function(E){return[E,O[E]]})}function kf(O){return O&&O.slice(0,Lf(O)+1).replace(ga,"")}function qe(O){return function(T){return O(T)}}function Ba(O,T){return de(T,function(E){return O[E]})}function Lr(O,T){return O.has(T)}function Df(O,T){for(var E=-1,V=O.length;++E<V&&pr(T,O[E],0)>-1;);return E}function Hf(O,T){for(var E=O.length;E--&&pr(T,O[E],0)>-1;);return E}function OI(O,T){for(var E=O.length,V=0;E--;)O[E]===T&&++V;return V}var BI=wa(fI),AI=wa(cI);function _I(O){return"\\"+lI[O]}function xI(O,T){return O==null?r:O[T]}function Ir(O){return sI.test(O)}function EI(O){return aI.test(O)}function CI(O){for(var T,E=[];!(T=O.next()).done;)E.push(T.value);return E}function Aa(O){var T=-1,E=Array(O.size);return O.forEach(function(V,Z){E[++T]=[Z,V]}),E}function Nf(O,T){return function(E){return O(T(E))}}function kt(O,T){for(var E=-1,V=O.length,Z=0,fe=[];++E<V;){var Be=O[E];(Be===T||Be===I)&&(O[E]=I,fe[Z++]=E)}return fe}function kn(O){var T=-1,E=Array(O.size);return O.forEach(function(V){E[++T]=V}),E}function FI(O){var T=-1,E=Array(O.size);return O.forEach(function(V){E[++T]=[V,V]}),E}function TI(O,T,E){for(var V=E-1,Z=O.length;++V<Z;)if(O[V]===T)return V;return-1}function MI(O,T,E){for(var V=E+1;V--;)if(O[V]===T)return V;return V}function hr(O){return Ir(O)?UI(O):mI(O)}function ft(O){return Ir(O)?kI(O):SI(O)}function Lf(O){for(var T=O.length;T--&&Op.test(O.charAt(T)););return T}var PI=wa(gI);function UI(O){for(var T=ha.lastIndex=0;ha.test(O);)++T;return T}function kI(O){return O.match(ha)||[]}function DI(O){return O.match(nI)||[]}var HI=function O(T){T=T==null?Ce:dr.defaults(Ce.Object(),T,dr.pick(Ce,iI));var E=T.Array,V=T.Date,Z=T.Error,fe=T.Function,Be=T.Math,ue=T.Object,_a=T.RegExp,NI=T.String,et=T.TypeError,Dn=E.prototype,LI=fe.prototype,vr=ue.prototype,Hn=T["__core-js_shared__"],Nn=LI.toString,le=vr.hasOwnProperty,GI=0,Gf=function(){var e=/[^.]+$/.exec(Hn&&Hn.keys&&Hn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ln=vr.toString,KI=Nn.call(ue),VI=Ce._,qI=_a("^"+Nn.call(le).replace(ca,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gn=Of?T.Buffer:r,Dt=T.Symbol,Kn=T.Uint8Array,Kf=Gn?Gn.allocUnsafe:r,Vn=Nf(ue.getPrototypeOf,ue),Vf=ue.create,qf=vr.propertyIsEnumerable,qn=Dn.splice,Wf=Dt?Dt.isConcatSpreadable:r,Gr=Dt?Dt.iterator:r,Zt=Dt?Dt.toStringTag:r,Wn=function(){try{var e=rr(ue,"defineProperty");return e({},"",{}),e}catch(t){}}(),WI=T.clearTimeout!==Ce.clearTimeout&&T.clearTimeout,$I=V&&V.now!==Ce.Date.now&&V.now,jI=T.setTimeout!==Ce.setTimeout&&T.setTimeout,$n=Be.ceil,jn=Be.floor,xa=ue.getOwnPropertySymbols,XI=Gn?Gn.isBuffer:r,$f=T.isFinite,zI=Dn.join,JI=Nf(ue.keys,ue),Ae=Be.max,Me=Be.min,ZI=V.now,YI=T.parseInt,jf=Be.random,QI=Dn.reverse,Ea=rr(T,"DataView"),Kr=rr(T,"Map"),Ca=rr(T,"Promise"),mr=rr(T,"Set"),Vr=rr(T,"WeakMap"),qr=rr(ue,"create"),Xn=Vr&&new Vr,Sr={},e1=nr(Ea),t1=nr(Kr),r1=nr(Ca),n1=nr(mr),s1=nr(Vr),zn=Dt?Dt.prototype:r,Wr=zn?zn.valueOf:r,Xf=zn?zn.toString:r;function S(e){if(be(e)&&!Y(e)&&!(e instanceof ne)){if(e instanceof tt)return e;if(le.call(e,"__wrapped__"))return zc(e)}return new tt(e)}var br=function(){function e(){}return function(t){if(!me(t))return{};if(Vf)return Vf(t);e.prototype=t;var s=new e;return e.prototype=r,s}}();function Jn(){}function tt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}S.templateSettings={escape:mp,evaluate:Sp,interpolate:rf,variable:"",imports:{_:S}},S.prototype=Jn.prototype,S.prototype.constructor=S,tt.prototype=br(Jn.prototype),tt.prototype.constructor=tt;function ne(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=dt,this.__views__=[]}function a1(){var e=new ne(this.__wrapped__);return e.__actions__=Ne(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ne(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ne(this.__views__),e}function i1(){if(this.__filtered__){var e=new ne(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function o1(){var e=this.__wrapped__.value(),t=this.__dir__,s=Y(e),u=t<0,d=s?e.length:0,b=Sh(0,d,this.__views__),y=b.start,R=b.end,A=R-y,M=u?R:y-1,P=this.__iteratees__,H=P.length,K=0,W=Me(A,this.__takeCount__);if(!s||!u&&d==A&&W==A)return mc(e,this.__actions__);var X=[];e:for(;A--&&K<W;){M+=t;for(var ee=-1,z=e[M];++ee<H;){var re=P[ee],se=re.iteratee,je=re.type,He=se(z);if(je==tp)z=He;else if(!He){if(je==Ze)continue e;break e}}X[K++]=z}return X}ne.prototype=br(Jn.prototype),ne.prototype.constructor=ne;function Yt(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var u=e[t];this.set(u[0],u[1])}}function f1(){this.__data__=qr?qr(null):{},this.size=0}function c1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function g1(e){var t=this.__data__;if(qr){var s=t[e];return s===l?r:s}return le.call(t,e)?t[e]:r}function l1(e){var t=this.__data__;return qr?t[e]!==r:le.call(t,e)}function u1(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=qr&&t===r?l:t,this}Yt.prototype.clear=f1,Yt.prototype.delete=c1,Yt.prototype.get=g1,Yt.prototype.has=l1,Yt.prototype.set=u1;function Ot(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var u=e[t];this.set(u[0],u[1])}}function p1(){this.__data__=[],this.size=0}function I1(e){var t=this.__data__,s=Zn(t,e);if(s<0)return!1;var u=t.length-1;return s==u?t.pop():qn.call(t,s,1),--this.size,!0}function h1(e){var t=this.__data__,s=Zn(t,e);return s<0?r:t[s][1]}function d1(e){return Zn(this.__data__,e)>-1}function v1(e,t){var s=this.__data__,u=Zn(s,e);return u<0?(++this.size,s.push([e,t])):s[u][1]=t,this}Ot.prototype.clear=p1,Ot.prototype.delete=I1,Ot.prototype.get=h1,Ot.prototype.has=d1,Ot.prototype.set=v1;function Bt(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var u=e[t];this.set(u[0],u[1])}}function m1(){this.size=0,this.__data__={hash:new Yt,map:new(Kr||Ot),string:new Yt}}function S1(e){var t=cs(this,e).delete(e);return this.size-=t?1:0,t}function b1(e){return cs(this,e).get(e)}function y1(e){return cs(this,e).has(e)}function w1(e,t){var s=cs(this,e),u=s.size;return s.set(e,t),this.size+=s.size==u?0:1,this}Bt.prototype.clear=m1,Bt.prototype.delete=S1,Bt.prototype.get=b1,Bt.prototype.has=y1,Bt.prototype.set=w1;function Qt(e){var t=-1,s=e==null?0:e.length;for(this.__data__=new Bt;++t<s;)this.add(e[t])}function R1(e){return this.__data__.set(e,l),this}function O1(e){return this.__data__.has(e)}Qt.prototype.add=Qt.prototype.push=R1,Qt.prototype.has=O1;function ct(e){var t=this.__data__=new Ot(e);this.size=t.size}function B1(){this.__data__=new Ot,this.size=0}function A1(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}function _1(e){return this.__data__.get(e)}function x1(e){return this.__data__.has(e)}function E1(e,t){var s=this.__data__;if(s instanceof Ot){var u=s.__data__;if(!Kr||u.length<f-1)return u.push([e,t]),this.size=++s.size,this;s=this.__data__=new Bt(u)}return s.set(e,t),this.size=s.size,this}ct.prototype.clear=B1,ct.prototype.delete=A1,ct.prototype.get=_1,ct.prototype.has=x1,ct.prototype.set=E1;function zf(e,t){var s=Y(e),u=!s&&sr(e),d=!s&&!u&&Kt(e),b=!s&&!u&&!d&&Or(e),y=s||u||d||b,R=y?Oa(e.length,NI):[],A=R.length;for(var M in e)(t||le.call(e,M))&&!(y&&(M=="length"||d&&(M=="offset"||M=="parent")||b&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||Et(M,A)))&&R.push(M);return R}function Jf(e){var t=e.length;return t?e[Ga(0,t-1)]:r}function C1(e,t){return gs(Ne(e),er(t,0,e.length))}function F1(e){return gs(Ne(e))}function Fa(e,t,s){(s!==r&&!gt(e[t],s)||s===r&&!(t in e))&&At(e,t,s)}function $r(e,t,s){var u=e[t];(!(le.call(e,t)&>(u,s))||s===r&&!(t in e))&&At(e,t,s)}function Zn(e,t){for(var s=e.length;s--;)if(gt(e[s][0],t))return s;return-1}function T1(e,t,s,u){return Ht(e,function(d,b,y){t(u,d,s(d),y)}),u}function Zf(e,t){return e&&mt(t,Ee(t),e)}function M1(e,t){return e&&mt(t,Ge(t),e)}function At(e,t,s){t=="__proto__"&&Wn?Wn(e,t,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[t]=s}function Ta(e,t){for(var s=-1,u=t.length,d=E(u),b=e==null;++s<u;)d[s]=b?r:ui(e,t[s]);return d}function er(e,t,s){return e===e&&(s!==r&&(e=e<=s?e:s),t!==r&&(e=e>=t?e:t)),e}function rt(e,t,s,u,d,b){var y,R=t&h,A=t&v,M=t&m;if(s&&(y=d?s(e,u,d,b):s(e)),y!==r)return y;if(!me(e))return e;var P=Y(e);if(P){if(y=yh(e),!R)return Ne(e,y)}else{var H=Pe(e),K=H==En||H==Yo;if(Kt(e))return yc(e,R);if(H==Rt||H==gr||K&&!d){if(y=A||K?{}:Lc(e),!R)return A?gh(e,M1(y,e)):ch(e,Zf(y,e))}else{if(!pe[H])return d?e:{};y=wh(e,H,R)}}b||(b=new ct);var W=b.get(e);if(W)return W;b.set(e,y),hg(e)?e.forEach(function(z){y.add(rt(z,t,s,z,e,b))}):pg(e)&&e.forEach(function(z,re){y.set(re,rt(z,t,s,re,e,b))});var X=M?A?Ya:Za:A?Ge:Ee,ee=P?r:X(e);return Qe(ee||e,function(z,re){ee&&(re=z,z=e[re]),$r(y,re,rt(z,t,s,re,e,b))}),y}function P1(e){var t=Ee(e);return function(s){return Yf(s,e,t)}}function Yf(e,t,s){var u=s.length;if(e==null)return!u;for(e=ue(e);u--;){var d=s[u],b=t[d],y=e[d];if(y===r&&!(d in e)||!b(y))return!1}return!0}function Qf(e,t,s){if(typeof e!="function")throw new et(c);return Qr(function(){e.apply(r,s)},t)}function jr(e,t,s,u){var d=-1,b=Pn,y=!0,R=e.length,A=[],M=t.length;if(!R)return A;s&&(t=de(t,qe(s))),u?(b=ma,y=!1):t.length>=f&&(b=Lr,y=!1,t=new Qt(t));e:for(;++d<R;){var P=e[d],H=s==null?P:s(P);if(P=u||P!==0?P:0,y&&H===H){for(var K=M;K--;)if(t[K]===H)continue e;A.push(P)}else b(t,H,u)||A.push(P)}return A}var Ht=Ac(vt),ec=Ac(Pa,!0);function U1(e,t){var s=!0;return Ht(e,function(u,d,b){return s=!!t(u,d,b),s}),s}function Yn(e,t,s){for(var u=-1,d=e.length;++u<d;){var b=e[u],y=t(b);if(y!=null&&(R===r?y===y&&!$e(y):s(y,R)))var R=y,A=b}return A}function k1(e,t,s,u){var d=e.length;for(s=Q(s),s<0&&(s=-s>d?0:d+s),u=u===r||u>d?d:Q(u),u<0&&(u+=d),u=s>u?0:vg(u);s<u;)e[s++]=t;return e}function tc(e,t){var s=[];return Ht(e,function(u,d,b){t(u,d,b)&&s.push(u)}),s}function Fe(e,t,s,u,d){var b=-1,y=e.length;for(s||(s=Oh),d||(d=[]);++b<y;){var R=e[b];t>0&&s(R)?t>1?Fe(R,t-1,s,u,d):Ut(d,R):u||(d[d.length]=R)}return d}var Ma=_c(),rc=_c(!0);function vt(e,t){return e&&Ma(e,t,Ee)}function Pa(e,t){return e&&rc(e,t,Ee)}function Qn(e,t){return Pt(t,function(s){return Ct(e[s])})}function tr(e,t){t=Lt(t,e);for(var s=0,u=t.length;e!=null&&s<u;)e=e[St(t[s++])];return s&&s==u?e:r}function nc(e,t,s){var u=t(e);return Y(e)?u:Ut(u,s(e))}function ke(e){return e==null?e===r?lp:cp:Zt&&Zt in ue(e)?mh(e):Fh(e)}function Ua(e,t){return e>t}function D1(e,t){return e!=null&&le.call(e,t)}function H1(e,t){return e!=null&&t in ue(e)}function N1(e,t,s){return e>=Me(t,s)&&e<Ae(t,s)}function ka(e,t,s){for(var u=s?ma:Pn,d=e[0].length,b=e.length,y=b,R=E(b),A=1/0,M=[];y--;){var P=e[y];y&&t&&(P=de(P,qe(t))),A=Me(P.length,A),R[y]=!s&&(t||d>=120&&P.length>=120)?new Qt(y&&P):r}P=e[0];var H=-1,K=R[0];e:for(;++H<d&&M.length<A;){var W=P[H],X=t?t(W):W;if(W=s||W!==0?W:0,!(K?Lr(K,X):u(M,X,s))){for(y=b;--y;){var ee=R[y];if(!(ee?Lr(ee,X):u(e[y],X,s)))continue e}K&&K.push(X),M.push(W)}}return M}function L1(e,t,s,u){return vt(e,function(d,b,y){t(u,s(d),b,y)}),u}function Xr(e,t,s){t=Lt(t,e),e=qc(e,t);var u=e==null?e:e[St(st(t))];return u==null?r:Ve(u,e,s)}function sc(e){return be(e)&&ke(e)==gr}function G1(e){return be(e)&&ke(e)==Nr}function K1(e){return be(e)&&ke(e)==Pr}function zr(e,t,s,u,d){return e===t?!0:e==null||t==null||!be(e)&&!be(t)?e!==e&&t!==t:V1(e,t,s,u,zr,d)}function V1(e,t,s,u,d,b){var y=Y(e),R=Y(t),A=y?_n:Pe(e),M=R?_n:Pe(t);A=A==gr?Rt:A,M=M==gr?Rt:M;var P=A==Rt,H=M==Rt,K=A==M;if(K&&Kt(e)){if(!Kt(t))return!1;y=!0,P=!1}if(K&&!P)return b||(b=new ct),y||Or(e)?Dc(e,t,s,u,d,b):dh(e,t,A,s,u,d,b);if(!(s&w)){var W=P&&le.call(e,"__wrapped__"),X=H&&le.call(t,"__wrapped__");if(W||X){var ee=W?e.value():e,z=X?t.value():t;return b||(b=new ct),d(ee,z,s,u,b)}}return K?(b||(b=new ct),vh(e,t,s,u,d,b)):!1}function q1(e){return be(e)&&Pe(e)==it}function Da(e,t,s,u){var d=s.length,b=d,y=!u;if(e==null)return!b;for(e=ue(e);d--;){var R=s[d];if(y&&R[2]?R[1]!==e[R[0]]:!(R[0]in e))return!1}for(;++d<b;){R=s[d];var A=R[0],M=e[A],P=R[1];if(y&&R[2]){if(M===r&&!(A in e))return!1}else{var H=new ct;if(u)var K=u(M,P,A,e,t,H);if(!(K===r?zr(P,M,w|B,u,H):K))return!1}}return!0}function ac(e){if(!me(e)||Ah(e))return!1;var t=Ct(e)?qI:Pp;return t.test(nr(e))}function W1(e){return be(e)&&ke(e)==kr}function $1(e){return be(e)&&Pe(e)==ot}function j1(e){return be(e)&&ds(e.length)&&!!Ie[ke(e)]}function ic(e){return typeof e=="function"?e:e==null?Ke:typeof e=="object"?Y(e)?cc(e[0],e[1]):fc(e):xg(e)}function Ha(e){if(!Yr(e))return JI(e);var t=[];for(var s in ue(e))le.call(e,s)&&s!="constructor"&&t.push(s);return t}function X1(e){if(!me(e))return Ch(e);var t=Yr(e),s=[];for(var u in e)u=="constructor"&&(t||!le.call(e,u))||s.push(u);return s}function Na(e,t){return e<t}function oc(e,t){var s=-1,u=Le(e)?E(e.length):[];return Ht(e,function(d,b,y){u[++s]=t(d,b,y)}),u}function fc(e){var t=ei(e);return t.length==1&&t[0][2]?Kc(t[0][0],t[0][1]):function(s){return s===e||Da(s,e,t)}}function cc(e,t){return ri(e)&&Gc(t)?Kc(St(e),t):function(s){var u=ui(s,e);return u===r&&u===t?pi(s,e):zr(t,u,w|B)}}function es(e,t,s,u,d){e!==t&&Ma(t,function(b,y){if(d||(d=new ct),me(b))z1(e,t,y,s,es,u,d);else{var R=u?u(si(e,y),b,y+"",e,t,d):r;R===r&&(R=b),Fa(e,y,R)}},Ge)}function z1(e,t,s,u,d,b,y){var R=si(e,s),A=si(t,s),M=y.get(A);if(M){Fa(e,s,M);return}var P=b?b(R,A,s+"",e,t,y):r,H=P===r;if(H){var K=Y(A),W=!K&&Kt(A),X=!K&&!W&&Or(A);P=A,K||W||X?Y(R)?P=R:we(R)?P=Ne(R):W?(H=!1,P=yc(A,!0)):X?(H=!1,P=wc(A,!0)):P=[]:en(A)||sr(A)?(P=R,sr(R)?P=mg(R):(!me(R)||Ct(R))&&(P=Lc(A))):H=!1}H&&(y.set(A,P),d(P,A,u,b,y),y.delete(A)),Fa(e,s,P)}function gc(e,t){var s=e.length;if(s)return t+=t<0?s:0,Et(t,s)?e[t]:r}function lc(e,t,s){t.length?t=de(t,function(b){return Y(b)?function(y){return tr(y,b.length===1?b[0]:b)}:b}):t=[Ke];var u=-1;t=de(t,qe(j()));var d=oc(e,function(b,y,R){var A=de(t,function(M){return M(b)});return{criteria:A,index:++u,value:b}});return wI(d,function(b,y){return fh(b,y,s)})}function J1(e,t){return uc(e,t,function(s,u){return pi(e,u)})}function uc(e,t,s){for(var u=-1,d=t.length,b={};++u<d;){var y=t[u],R=tr(e,y);s(R,y)&&Jr(b,Lt(y,e),R)}return b}function Z1(e){return function(t){return tr(t,e)}}function La(e,t,s,u){var d=u?yI:pr,b=-1,y=t.length,R=e;for(e===t&&(t=Ne(t)),s&&(R=de(e,qe(s)));++b<y;)for(var A=0,M=t[b],P=s?s(M):M;(A=d(R,P,A,u))>-1;)R!==e&&qn.call(R,A,1),qn.call(e,A,1);return e}function pc(e,t){for(var s=e?t.length:0,u=s-1;s--;){var d=t[s];if(s==u||d!==b){var b=d;Et(d)?qn.call(e,d,1):qa(e,d)}}return e}function Ga(e,t){return e+jn(jf()*(t-e+1))}function Y1(e,t,s,u){for(var d=-1,b=Ae($n((t-e)/(s||1)),0),y=E(b);b--;)y[u?b:++d]=e,e+=s;return y}function Ka(e,t){var s="";if(!e||t<1||t>Mt)return s;do t%2&&(s+=e),t=jn(t/2),t&&(e+=e);while(t);return s}function te(e,t){return ai(Vc(e,t,Ke),e+"")}function Q1(e){return Jf(Br(e))}function eh(e,t){var s=Br(e);return gs(s,er(t,0,s.length))}function Jr(e,t,s,u){if(!me(e))return e;t=Lt(t,e);for(var d=-1,b=t.length,y=b-1,R=e;R!=null&&++d<b;){var A=St(t[d]),M=s;if(A==="__proto__"||A==="constructor"||A==="prototype")return e;if(d!=y){var P=R[A];M=u?u(P,A,R):r,M===r&&(M=me(P)?P:Et(t[d+1])?[]:{})}$r(R,A,M),R=R[A]}return e}var Ic=Xn?function(e,t){return Xn.set(e,t),e}:Ke,th=Wn?function(e,t){return Wn(e,"toString",{configurable:!0,enumerable:!1,value:hi(t),writable:!0})}:Ke;function rh(e){return gs(Br(e))}function nt(e,t,s){var u=-1,d=e.length;t<0&&(t=-t>d?0:d+t),s=s>d?d:s,s<0&&(s+=d),d=t>s?0:s-t>>>0,t>>>=0;for(var b=E(d);++u<d;)b[u]=e[u+t];return b}function nh(e,t){var s;return Ht(e,function(u,d,b){return s=t(u,d,b),!s}),!!s}function ts(e,t,s){var u=0,d=e==null?u:e.length;if(typeof t=="number"&&t===t&&d<=ap){for(;u<d;){var b=u+d>>>1,y=e[b];y!==null&&!$e(y)&&(s?y<=t:y<t)?u=b+1:d=b}return d}return Va(e,t,Ke,s)}function Va(e,t,s,u){var d=0,b=e==null?0:e.length;if(b===0)return 0;t=s(t);for(var y=t!==t,R=t===null,A=$e(t),M=t===r;d<b;){var P=jn((d+b)/2),H=s(e[P]),K=H!==r,W=H===null,X=H===H,ee=$e(H);if(y)var z=u||X;else M?z=X&&(u||K):R?z=X&&K&&(u||!W):A?z=X&&K&&!W&&(u||!ee):W||ee?z=!1:z=u?H<=t:H<t;z?d=P+1:b=P}return Me(b,sp)}function hc(e,t){for(var s=-1,u=e.length,d=0,b=[];++s<u;){var y=e[s],R=t?t(y):y;if(!s||!gt(R,A)){var A=R;b[d++]=y===0?0:y}}return b}function dc(e){return typeof e=="number"?e:$e(e)?An:+e}function We(e){if(typeof e=="string")return e;if(Y(e))return de(e,We)+"";if($e(e))return Xf?Xf.call(e):"";var t=e+"";return t=="0"&&1/e==-zt?"-0":t}function Nt(e,t,s){var u=-1,d=Pn,b=e.length,y=!0,R=[],A=R;if(s)y=!1,d=ma;else if(b>=f){var M=t?null:Ih(e);if(M)return kn(M);y=!1,d=Lr,A=new Qt}else A=t?[]:R;e:for(;++u<b;){var P=e[u],H=t?t(P):P;if(P=s||P!==0?P:0,y&&H===H){for(var K=A.length;K--;)if(A[K]===H)continue e;t&&A.push(H),R.push(P)}else d(A,H,s)||(A!==R&&A.push(H),R.push(P))}return R}function qa(e,t){return t=Lt(t,e),e=qc(e,t),e==null||delete e[St(st(t))]}function vc(e,t,s,u){return Jr(e,t,s(tr(e,t)),u)}function rs(e,t,s,u){for(var d=e.length,b=u?d:-1;(u?b--:++b<d)&&t(e[b],b,e););return s?nt(e,u?0:b,u?b+1:d):nt(e,u?b+1:0,u?d:b)}function mc(e,t){var s=e;return s instanceof ne&&(s=s.value()),Sa(t,function(u,d){return d.func.apply(d.thisArg,Ut([u],d.args))},s)}function Wa(e,t,s){var u=e.length;if(u<2)return u?Nt(e[0]):[];for(var d=-1,b=E(u);++d<u;)for(var y=e[d],R=-1;++R<u;)R!=d&&(b[d]=jr(b[d]||y,e[R],t,s));return Nt(Fe(b,1),t,s)}function Sc(e,t,s){for(var u=-1,d=e.length,b=t.length,y={};++u<d;){var R=u<b?t[u]:r;s(y,e[u],R)}return y}function $a(e){return we(e)?e:[]}function ja(e){return typeof e=="function"?e:Ke}function Lt(e,t){return Y(e)?e:ri(e,t)?[e]:Xc(ge(e))}var sh=te;function Gt(e,t,s){var u=e.length;return s=s===r?u:s,!t&&s>=u?e:nt(e,t,s)}var bc=WI||function(e){return Ce.clearTimeout(e)};function yc(e,t){if(t)return e.slice();var s=e.length,u=Kf?Kf(s):new e.constructor(s);return e.copy(u),u}function Xa(e){var t=new e.constructor(e.byteLength);return new Kn(t).set(new Kn(e)),t}function ah(e,t){var s=t?Xa(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function ih(e){var t=new e.constructor(e.source,nf.exec(e));return t.lastIndex=e.lastIndex,t}function oh(e){return Wr?ue(Wr.call(e)):{}}function wc(e,t){var s=t?Xa(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Rc(e,t){if(e!==t){var s=e!==r,u=e===null,d=e===e,b=$e(e),y=t!==r,R=t===null,A=t===t,M=$e(t);if(!R&&!M&&!b&&e>t||b&&y&&A&&!R&&!M||u&&y&&A||!s&&A||!d)return 1;if(!u&&!b&&!M&&e<t||M&&s&&d&&!u&&!b||R&&s&&d||!y&&d||!A)return-1}return 0}function fh(e,t,s){for(var u=-1,d=e.criteria,b=t.criteria,y=d.length,R=s.length;++u<y;){var A=Rc(d[u],b[u]);if(A){if(u>=R)return A;var M=s[u];return A*(M=="desc"?-1:1)}}return e.index-t.index}function Oc(e,t,s,u){for(var d=-1,b=e.length,y=s.length,R=-1,A=t.length,M=Ae(b-y,0),P=E(A+M),H=!u;++R<A;)P[R]=t[R];for(;++d<y;)(H||d<b)&&(P[s[d]]=e[d]);for(;M--;)P[R++]=e[d++];return P}function Bc(e,t,s,u){for(var d=-1,b=e.length,y=-1,R=s.length,A=-1,M=t.length,P=Ae(b-R,0),H=E(P+M),K=!u;++d<P;)H[d]=e[d];for(var W=d;++A<M;)H[W+A]=t[A];for(;++y<R;)(K||d<b)&&(H[W+s[y]]=e[d++]);return H}function Ne(e,t){var s=-1,u=e.length;for(t||(t=E(u));++s<u;)t[s]=e[s];return t}function mt(e,t,s,u){var d=!s;s||(s={});for(var b=-1,y=t.length;++b<y;){var R=t[b],A=u?u(s[R],e[R],R,s,e):r;A===r&&(A=e[R]),d?At(s,R,A):$r(s,R,A)}return s}function ch(e,t){return mt(e,ti(e),t)}function gh(e,t){return mt(e,Hc(e),t)}function ns(e,t){return function(s,u){var d=Y(s)?hI:T1,b=t?t():{};return d(s,e,j(u,2),b)}}function yr(e){return te(function(t,s){var u=-1,d=s.length,b=d>1?s[d-1]:r,y=d>2?s[2]:r;for(b=e.length>3&&typeof b=="function"?(d--,b):r,y&&De(s[0],s[1],y)&&(b=d<3?r:b,d=1),t=ue(t);++u<d;){var R=s[u];R&&e(t,R,u,b)}return t})}function Ac(e,t){return function(s,u){if(s==null)return s;if(!Le(s))return e(s,u);for(var d=s.length,b=t?d:-1,y=ue(s);(t?b--:++b<d)&&u(y[b],b,y)!==!1;);return s}}function _c(e){return function(t,s,u){for(var d=-1,b=ue(t),y=u(t),R=y.length;R--;){var A=y[e?R:++d];if(s(b[A],A,b)===!1)break}return t}}function lh(e,t,s){var u=t&_,d=Zr(e);function b(){var y=this&&this!==Ce&&this instanceof b?d:e;return y.apply(u?s:this,arguments)}return b}function xc(e){return function(t){t=ge(t);var s=Ir(t)?ft(t):r,u=s?s[0]:t.charAt(0),d=s?Gt(s,1).join(""):t.slice(1);return u[e]()+d}}function wr(e){return function(t){return Sa(Ag(Bg(t).replace(tI,"")),e,"")}}function Zr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var s=br(e.prototype),u=e.apply(s,t);return me(u)?u:s}}function uh(e,t,s){var u=Zr(e);function d(){for(var b=arguments.length,y=E(b),R=b,A=Rr(d);R--;)y[R]=arguments[R];var M=b<3&&y[0]!==A&&y[b-1]!==A?[]:kt(y,A);if(b-=M.length,b<s)return Mc(e,t,ss,d.placeholder,r,y,M,r,r,s-b);var P=this&&this!==Ce&&this instanceof d?u:e;return Ve(P,this,y)}return d}function Ec(e){return function(t,s,u){var d=ue(t);if(!Le(t)){var b=j(s,3);t=Ee(t),s=function(R){return b(d[R],R,d)}}var y=e(t,s,u);return y>-1?d[b?t[y]:y]:r}}function Cc(e){return xt(function(t){var s=t.length,u=s,d=tt.prototype.thru;for(e&&t.reverse();u--;){var b=t[u];if(typeof b!="function")throw new et(c);if(d&&!y&&fs(b)=="wrapper")var y=new tt([],!0)}for(u=y?u:s;++u<s;){b=t[u];var R=fs(b),A=R=="wrapper"?Qa(b):r;A&&ni(A[0])&&A[1]==(G|F|x|$)&&!A[4].length&&A[9]==1?y=y[fs(A[0])].apply(y,A[3]):y=b.length==1&&ni(b)?y[R]():y.thru(b)}return function(){var M=arguments,P=M[0];if(y&&M.length==1&&Y(P))return y.plant(P).value();for(var H=0,K=s?t[H].apply(this,M):P;++H<s;)K=t[H].call(this,K);return K}})}function ss(e,t,s,u,d,b,y,R,A,M){var P=t&G,H=t&_,K=t&C,W=t&(F|L),X=t&J,ee=K?r:Zr(e);function z(){for(var re=arguments.length,se=E(re),je=re;je--;)se[je]=arguments[je];if(W)var He=Rr(z),Xe=OI(se,He);if(u&&(se=Oc(se,u,d,W)),b&&(se=Bc(se,b,y,W)),re-=Xe,W&&re<M){var Re=kt(se,He);return Mc(e,t,ss,z.placeholder,s,se,Re,R,A,M-re)}var lt=H?s:this,Tt=K?lt[e]:e;return re=se.length,R?se=Th(se,R):X&&re>1&&se.reverse(),P&&A<re&&(se.length=A),this&&this!==Ce&&this instanceof z&&(Tt=ee||Zr(Tt)),Tt.apply(lt,se)}return z}function Fc(e,t){return function(s,u){return L1(s,e,t(u),{})}}function as(e,t){return function(s,u){var d;if(s===r&&u===r)return t;if(s!==r&&(d=s),u!==r){if(d===r)return u;typeof s=="string"||typeof u=="string"?(s=We(s),u=We(u)):(s=dc(s),u=dc(u)),d=e(s,u)}return d}}function za(e){return xt(function(t){return t=de(t,qe(j())),te(function(s){var u=this;return e(t,function(d){return Ve(d,u,s)})})})}function is(e,t){t=t===r?" ":We(t);var s=t.length;if(s<2)return s?Ka(t,e):t;var u=Ka(t,$n(e/hr(t)));return Ir(t)?Gt(ft(u),0,e).join(""):u.slice(0,e)}function ph(e,t,s,u){var d=t&_,b=Zr(e);function y(){for(var R=-1,A=arguments.length,M=-1,P=u.length,H=E(P+A),K=this&&this!==Ce&&this instanceof y?b:e;++M<P;)H[M]=u[M];for(;A--;)H[M++]=arguments[++R];return Ve(K,d?s:this,H)}return y}function Tc(e){return function(t,s,u){return u&&typeof u!="number"&&De(t,s,u)&&(s=u=r),t=Ft(t),s===r?(s=t,t=0):s=Ft(s),u=u===r?t<s?1:-1:Ft(u),Y1(t,s,u,e)}}function os(e){return function(t,s){return typeof t=="string"&&typeof s=="string"||(t=at(t),s=at(s)),e(t,s)}}function Mc(e,t,s,u,d,b,y,R,A,M){var P=t&F,H=P?y:r,K=P?r:y,W=P?b:r,X=P?r:b;t|=P?x:U,t&=~(P?U:x),t&N||(t&=~(_|C));var ee=[e,t,d,W,H,X,K,R,A,M],z=s.apply(r,ee);return ni(e)&&Wc(z,ee),z.placeholder=u,$c(z,e,t)}function Ja(e){var t=Be[e];return function(s,u){if(s=at(s),u=u==null?0:Me(Q(u),292),u&&$f(s)){var d=(ge(s)+"e").split("e"),b=t(d[0]+"e"+(+d[1]+u));return d=(ge(b)+"e").split("e"),+(d[0]+"e"+(+d[1]-u))}return t(s)}}var Ih=mr&&1/kn(new mr([,-0]))[1]==zt?function(e){return new mr(e)}:mi;function Pc(e){return function(t){var s=Pe(t);return s==it?Aa(t):s==ot?FI(t):RI(t,e(t))}}function _t(e,t,s,u,d,b,y,R){var A=t&C;if(!A&&typeof e!="function")throw new et(c);var M=u?u.length:0;if(M||(t&=~(x|U),u=d=r),y=y===r?y:Ae(Q(y),0),R=R===r?R:Q(R),M-=d?d.length:0,t&U){var P=u,H=d;u=d=r}var K=A?r:Qa(e),W=[e,t,s,u,d,P,H,b,y,R];if(K&&Eh(W,K),e=W[0],t=W[1],s=W[2],u=W[3],d=W[4],R=W[9]=W[9]===r?A?0:e.length:Ae(W[9]-M,0),!R&&t&(F|L)&&(t&=~(F|L)),!t||t==_)var X=lh(e,t,s);else t==F||t==L?X=uh(e,t,R):(t==x||t==(_|x))&&!d.length?X=ph(e,t,s,u):X=ss.apply(r,W);var ee=K?Ic:Wc;return $c(ee(X,W),e,t)}function Uc(e,t,s,u){return e===r||gt(e,vr[s])&&!le.call(u,s)?t:e}function kc(e,t,s,u,d,b){return me(e)&&me(t)&&(b.set(t,e),es(e,t,r,kc,b),b.delete(t)),e}function hh(e){return en(e)?r:e}function Dc(e,t,s,u,d,b){var y=s&w,R=e.length,A=t.length;if(R!=A&&!(y&&A>R))return!1;var M=b.get(e),P=b.get(t);if(M&&P)return M==t&&P==e;var H=-1,K=!0,W=s&B?new Qt:r;for(b.set(e,t),b.set(t,e);++H<R;){var X=e[H],ee=t[H];if(u)var z=y?u(ee,X,H,t,e,b):u(X,ee,H,e,t,b);if(z!==r){if(z)continue;K=!1;break}if(W){if(!ba(t,function(re,se){if(!Lr(W,se)&&(X===re||d(X,re,s,u,b)))return W.push(se)})){K=!1;break}}else if(!(X===ee||d(X,ee,s,u,b))){K=!1;break}}return b.delete(e),b.delete(t),K}function dh(e,t,s,u,d,b,y){switch(s){case lr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Nr:return!(e.byteLength!=t.byteLength||!b(new Kn(e),new Kn(t)));case Mr:case Pr:case Ur:return gt(+e,+t);case xn:return e.name==t.name&&e.message==t.message;case kr:case Dr:return e==t+"";case it:var R=Aa;case ot:var A=u&w;if(R||(R=kn),e.size!=t.size&&!A)return!1;var M=y.get(e);if(M)return M==t;u|=B,y.set(e,t);var P=Dc(R(e),R(t),u,d,b,y);return y.delete(e),P;case Cn:if(Wr)return Wr.call(e)==Wr.call(t)}return!1}function vh(e,t,s,u,d,b){var y=s&w,R=Za(e),A=R.length,M=Za(t),P=M.length;if(A!=P&&!y)return!1;for(var H=A;H--;){var K=R[H];if(!(y?K in t:le.call(t,K)))return!1}var W=b.get(e),X=b.get(t);if(W&&X)return W==t&&X==e;var ee=!0;b.set(e,t),b.set(t,e);for(var z=y;++H<A;){K=R[H];var re=e[K],se=t[K];if(u)var je=y?u(se,re,K,t,e,b):u(re,se,K,e,t,b);if(!(je===r?re===se||d(re,se,s,u,b):je)){ee=!1;break}z||(z=K=="constructor")}if(ee&&!z){var He=e.constructor,Xe=t.constructor;He!=Xe&&"constructor"in e&&"constructor"in t&&!(typeof He=="function"&&He instanceof He&&typeof Xe=="function"&&Xe instanceof Xe)&&(ee=!1)}return b.delete(e),b.delete(t),ee}function xt(e){return ai(Vc(e,r,Yc),e+"")}function Za(e){return nc(e,Ee,ti)}function Ya(e){return nc(e,Ge,Hc)}var Qa=Xn?function(e){return Xn.get(e)}:mi;function fs(e){for(var t=e.name+"",s=Sr[t],u=le.call(Sr,t)?s.length:0;u--;){var d=s[u],b=d.func;if(b==null||b==e)return d.name}return t}function Rr(e){var t=le.call(S,"placeholder")?S:e;return t.placeholder}function j(){var e=S.iteratee||di;return e=e===di?ic:e,arguments.length?e(arguments[0],arguments[1]):e}function cs(e,t){var s=e.__data__;return Bh(t)?s[typeof t=="string"?"string":"hash"]:s.map}function ei(e){for(var t=Ee(e),s=t.length;s--;){var u=t[s],d=e[u];t[s]=[u,d,Gc(d)]}return t}function rr(e,t){var s=xI(e,t);return ac(s)?s:r}function mh(e){var t=le.call(e,Zt),s=e[Zt];try{e[Zt]=r;var u=!0}catch(b){}var d=Ln.call(e);return u&&(t?e[Zt]=s:delete e[Zt]),d}var ti=xa?function(e){return e==null?[]:(e=ue(e),Pt(xa(e),function(t){return qf.call(e,t)}))}:Si,Hc=xa?function(e){for(var t=[];e;)Ut(t,ti(e)),e=Vn(e);return t}:Si,Pe=ke;(Ea&&Pe(new Ea(new ArrayBuffer(1)))!=lr||Kr&&Pe(new Kr)!=it||Ca&&Pe(Ca.resolve())!=Qo||mr&&Pe(new mr)!=ot||Vr&&Pe(new Vr)!=Hr)&&(Pe=function(e){var t=ke(e),s=t==Rt?e.constructor:r,u=s?nr(s):"";if(u)switch(u){case e1:return lr;case t1:return it;case r1:return Qo;case n1:return ot;case s1:return Hr}return t});function Sh(e,t,s){for(var u=-1,d=s.length;++u<d;){var b=s[u],y=b.size;switch(b.type){case"drop":e+=y;break;case"dropRight":t-=y;break;case"take":t=Me(t,e+y);break;case"takeRight":e=Ae(e,t-y);break}}return{start:e,end:t}}function bh(e){var t=e.match(Ap);return t?t[1].split(_p):[]}function Nc(e,t,s){t=Lt(t,e);for(var u=-1,d=t.length,b=!1;++u<d;){var y=St(t[u]);if(!(b=e!=null&&s(e,y)))break;e=e[y]}return b||++u!=d?b:(d=e==null?0:e.length,!!d&&ds(d)&&Et(y,d)&&(Y(e)||sr(e)))}function yh(e){var t=e.length,s=new e.constructor(t);return t&&typeof e[0]=="string"&&le.call(e,"index")&&(s.index=e.index,s.input=e.input),s}function Lc(e){return typeof e.constructor=="function"&&!Yr(e)?br(Vn(e)):{}}function wh(e,t,s){var u=e.constructor;switch(t){case Nr:return Xa(e);case Mr:case Pr:return new u(+e);case lr:return ah(e,s);case ea:case ta:case ra:case na:case sa:case aa:case ia:case oa:case fa:return wc(e,s);case it:return new u;case Ur:case Dr:return new u(e);case kr:return ih(e);case ot:return new u;case Cn:return oh(e)}}function Rh(e,t){var s=t.length;if(!s)return e;var u=s-1;return t[u]=(s>1?"& ":"")+t[u],t=t.join(s>2?", ":" "),e.replace(Bp,`{
|
|
9
|
+
/* [wrapped with `+t+`] */
|
|
10
|
+
`)}function Oh(e){return Y(e)||sr(e)||!!(Wf&&e&&e[Wf])}function Et(e,t){var s=typeof e;return t=t==null?Mt:t,!!t&&(s=="number"||s!="symbol"&&kp.test(e))&&e>-1&&e%1==0&&e<t}function De(e,t,s){if(!me(s))return!1;var u=typeof t;return(u=="number"?Le(s)&&Et(t,s.length):u=="string"&&t in s)?gt(s[t],e):!1}function ri(e,t){if(Y(e))return!1;var s=typeof e;return s=="number"||s=="symbol"||s=="boolean"||e==null||$e(e)?!0:yp.test(e)||!bp.test(e)||t!=null&&e in ue(t)}function Bh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ni(e){var t=fs(e),s=S[t];if(typeof s!="function"||!(t in ne.prototype))return!1;if(e===s)return!0;var u=Qa(s);return!!u&&e===u[0]}function Ah(e){return!!Gf&&Gf in e}var _h=Hn?Ct:bi;function Yr(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||vr;return e===s}function Gc(e){return e===e&&!me(e)}function Kc(e,t){return function(s){return s==null?!1:s[e]===t&&(t!==r||e in ue(s))}}function xh(e){var t=Is(e,function(u){return s.size===p&&s.clear(),u}),s=t.cache;return t}function Eh(e,t){var s=e[1],u=t[1],d=s|u,b=d<(_|C|G),y=u==G&&s==F||u==G&&s==$&&e[7].length<=t[8]||u==(G|$)&&t[7].length<=t[8]&&s==F;if(!(b||y))return e;u&_&&(e[2]=t[2],d|=s&_?0:N);var R=t[3];if(R){var A=e[3];e[3]=A?Oc(A,R,t[4]):R,e[4]=A?kt(e[3],I):t[4]}return R=t[5],R&&(A=e[5],e[5]=A?Bc(A,R,t[6]):R,e[6]=A?kt(e[5],I):t[6]),R=t[7],R&&(e[7]=R),u&G&&(e[8]=e[8]==null?t[8]:Me(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=d,e}function Ch(e){var t=[];if(e!=null)for(var s in ue(e))t.push(s);return t}function Fh(e){return Ln.call(e)}function Vc(e,t,s){return t=Ae(t===r?e.length-1:t,0),function(){for(var u=arguments,d=-1,b=Ae(u.length-t,0),y=E(b);++d<b;)y[d]=u[t+d];d=-1;for(var R=E(t+1);++d<t;)R[d]=u[d];return R[t]=s(y),Ve(e,this,R)}}function qc(e,t){return t.length<2?e:tr(e,nt(t,0,-1))}function Th(e,t){for(var s=e.length,u=Me(t.length,s),d=Ne(e);u--;){var b=t[u];e[u]=Et(b,s)?d[b]:r}return e}function si(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Wc=jc(Ic),Qr=jI||function(e,t){return Ce.setTimeout(e,t)},ai=jc(th);function $c(e,t,s){var u=t+"";return ai(e,Rh(u,Mh(bh(u),s)))}function jc(e){var t=0,s=0;return function(){var u=ZI(),d=xe-(u-s);if(s=u,d>0){if(++t>=ce)return arguments[0]}else t=0;return e.apply(r,arguments)}}function gs(e,t){var s=-1,u=e.length,d=u-1;for(t=t===r?u:t;++s<t;){var b=Ga(s,d),y=e[b];e[b]=e[s],e[s]=y}return e.length=t,e}var Xc=xh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wp,function(s,u,d,b){t.push(d?b.replace(Cp,"$1"):u||s)}),t});function St(e){if(typeof e=="string"||$e(e))return e;var t=e+"";return t=="0"&&1/e==-zt?"-0":t}function nr(e){if(e!=null){try{return Nn.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Mh(e,t){return Qe(ip,function(s){var u="_."+s[0];t&s[1]&&!Pn(e,u)&&e.push(u)}),e.sort()}function zc(e){if(e instanceof ne)return e.clone();var t=new tt(e.__wrapped__,e.__chain__);return t.__actions__=Ne(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ph(e,t,s){(s?De(e,t,s):t===r)?t=1:t=Ae(Q(t),0);var u=e==null?0:e.length;if(!u||t<1)return[];for(var d=0,b=0,y=E($n(u/t));d<u;)y[b++]=nt(e,d,d+=t);return y}function Uh(e){for(var t=-1,s=e==null?0:e.length,u=0,d=[];++t<s;){var b=e[t];b&&(d[u++]=b)}return d}function kh(){var e=arguments.length;if(!e)return[];for(var t=E(e-1),s=arguments[0],u=e;u--;)t[u-1]=arguments[u];return Ut(Y(s)?Ne(s):[s],Fe(t,1))}var Dh=te(function(e,t){return we(e)?jr(e,Fe(t,1,we,!0)):[]}),Hh=te(function(e,t){var s=st(t);return we(s)&&(s=r),we(e)?jr(e,Fe(t,1,we,!0),j(s,2)):[]}),Nh=te(function(e,t){var s=st(t);return we(s)&&(s=r),we(e)?jr(e,Fe(t,1,we,!0),r,s):[]});function Lh(e,t,s){var u=e==null?0:e.length;return u?(t=s||t===r?1:Q(t),nt(e,t<0?0:t,u)):[]}function Gh(e,t,s){var u=e==null?0:e.length;return u?(t=s||t===r?1:Q(t),t=u-t,nt(e,0,t<0?0:t)):[]}function Kh(e,t){return e&&e.length?rs(e,j(t,3),!0,!0):[]}function Vh(e,t){return e&&e.length?rs(e,j(t,3),!0):[]}function qh(e,t,s,u){var d=e==null?0:e.length;return d?(s&&typeof s!="number"&&De(e,t,s)&&(s=0,u=d),k1(e,t,s,u)):[]}function Jc(e,t,s){var u=e==null?0:e.length;if(!u)return-1;var d=s==null?0:Q(s);return d<0&&(d=Ae(u+d,0)),Un(e,j(t,3),d)}function Zc(e,t,s){var u=e==null?0:e.length;if(!u)return-1;var d=u-1;return s!==r&&(d=Q(s),d=s<0?Ae(u+d,0):Me(d,u-1)),Un(e,j(t,3),d,!0)}function Yc(e){var t=e==null?0:e.length;return t?Fe(e,1):[]}function Wh(e){var t=e==null?0:e.length;return t?Fe(e,zt):[]}function $h(e,t){var s=e==null?0:e.length;return s?(t=t===r?1:Q(t),Fe(e,t)):[]}function jh(e){for(var t=-1,s=e==null?0:e.length,u={};++t<s;){var d=e[t];u[d[0]]=d[1]}return u}function Qc(e){return e&&e.length?e[0]:r}function Xh(e,t,s){var u=e==null?0:e.length;if(!u)return-1;var d=s==null?0:Q(s);return d<0&&(d=Ae(u+d,0)),pr(e,t,d)}function zh(e){var t=e==null?0:e.length;return t?nt(e,0,-1):[]}var Jh=te(function(e){var t=de(e,$a);return t.length&&t[0]===e[0]?ka(t):[]}),Zh=te(function(e){var t=st(e),s=de(e,$a);return t===st(s)?t=r:s.pop(),s.length&&s[0]===e[0]?ka(s,j(t,2)):[]}),Yh=te(function(e){var t=st(e),s=de(e,$a);return t=typeof t=="function"?t:r,t&&s.pop(),s.length&&s[0]===e[0]?ka(s,r,t):[]});function Qh(e,t){return e==null?"":zI.call(e,t)}function st(e){var t=e==null?0:e.length;return t?e[t-1]:r}function ed(e,t,s){var u=e==null?0:e.length;if(!u)return-1;var d=u;return s!==r&&(d=Q(s),d=d<0?Ae(u+d,0):Me(d,u-1)),t===t?MI(e,t,d):Un(e,Mf,d,!0)}function td(e,t){return e&&e.length?gc(e,Q(t)):r}var rd=te(eg);function eg(e,t){return e&&e.length&&t&&t.length?La(e,t):e}function nd(e,t,s){return e&&e.length&&t&&t.length?La(e,t,j(s,2)):e}function sd(e,t,s){return e&&e.length&&t&&t.length?La(e,t,r,s):e}var ad=xt(function(e,t){var s=e==null?0:e.length,u=Ta(e,t);return pc(e,de(t,function(d){return Et(d,s)?+d:d}).sort(Rc)),u});function id(e,t){var s=[];if(!(e&&e.length))return s;var u=-1,d=[],b=e.length;for(t=j(t,3);++u<b;){var y=e[u];t(y,u,e)&&(s.push(y),d.push(u))}return pc(e,d),s}function ii(e){return e==null?e:QI.call(e)}function od(e,t,s){var u=e==null?0:e.length;return u?(s&&typeof s!="number"&&De(e,t,s)?(t=0,s=u):(t=t==null?0:Q(t),s=s===r?u:Q(s)),nt(e,t,s)):[]}function fd(e,t){return ts(e,t)}function cd(e,t,s){return Va(e,t,j(s,2))}function gd(e,t){var s=e==null?0:e.length;if(s){var u=ts(e,t);if(u<s&>(e[u],t))return u}return-1}function ld(e,t){return ts(e,t,!0)}function ud(e,t,s){return Va(e,t,j(s,2),!0)}function pd(e,t){var s=e==null?0:e.length;if(s){var u=ts(e,t,!0)-1;if(gt(e[u],t))return u}return-1}function Id(e){return e&&e.length?hc(e):[]}function hd(e,t){return e&&e.length?hc(e,j(t,2)):[]}function dd(e){var t=e==null?0:e.length;return t?nt(e,1,t):[]}function vd(e,t,s){return e&&e.length?(t=s||t===r?1:Q(t),nt(e,0,t<0?0:t)):[]}function md(e,t,s){var u=e==null?0:e.length;return u?(t=s||t===r?1:Q(t),t=u-t,nt(e,t<0?0:t,u)):[]}function Sd(e,t){return e&&e.length?rs(e,j(t,3),!1,!0):[]}function bd(e,t){return e&&e.length?rs(e,j(t,3)):[]}var yd=te(function(e){return Nt(Fe(e,1,we,!0))}),wd=te(function(e){var t=st(e);return we(t)&&(t=r),Nt(Fe(e,1,we,!0),j(t,2))}),Rd=te(function(e){var t=st(e);return t=typeof t=="function"?t:r,Nt(Fe(e,1,we,!0),r,t)});function Od(e){return e&&e.length?Nt(e):[]}function Bd(e,t){return e&&e.length?Nt(e,j(t,2)):[]}function Ad(e,t){return t=typeof t=="function"?t:r,e&&e.length?Nt(e,r,t):[]}function oi(e){if(!(e&&e.length))return[];var t=0;return e=Pt(e,function(s){if(we(s))return t=Ae(s.length,t),!0}),Oa(t,function(s){return de(e,ya(s))})}function tg(e,t){if(!(e&&e.length))return[];var s=oi(e);return t==null?s:de(s,function(u){return Ve(t,r,u)})}var _d=te(function(e,t){return we(e)?jr(e,t):[]}),xd=te(function(e){return Wa(Pt(e,we))}),Ed=te(function(e){var t=st(e);return we(t)&&(t=r),Wa(Pt(e,we),j(t,2))}),Cd=te(function(e){var t=st(e);return t=typeof t=="function"?t:r,Wa(Pt(e,we),r,t)}),Fd=te(oi);function Td(e,t){return Sc(e||[],t||[],$r)}function Md(e,t){return Sc(e||[],t||[],Jr)}var Pd=te(function(e){var t=e.length,s=t>1?e[t-1]:r;return s=typeof s=="function"?(e.pop(),s):r,tg(e,s)});function rg(e){var t=S(e);return t.__chain__=!0,t}function Ud(e,t){return t(e),e}function ls(e,t){return t(e)}var kd=xt(function(e){var t=e.length,s=t?e[0]:0,u=this.__wrapped__,d=function(b){return Ta(b,e)};return t>1||this.__actions__.length||!(u instanceof ne)||!Et(s)?this.thru(d):(u=u.slice(s,+s+(t?1:0)),u.__actions__.push({func:ls,args:[d],thisArg:r}),new tt(u,this.__chain__).thru(function(b){return t&&!b.length&&b.push(r),b}))});function Dd(){return rg(this)}function Hd(){return new tt(this.value(),this.__chain__)}function Nd(){this.__values__===r&&(this.__values__=dg(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Ld(){return this}function Gd(e){for(var t,s=this;s instanceof Jn;){var u=zc(s);u.__index__=0,u.__values__=r,t?d.__wrapped__=u:t=u;var d=u;s=s.__wrapped__}return d.__wrapped__=e,t}function Kd(){var e=this.__wrapped__;if(e instanceof ne){var t=e;return this.__actions__.length&&(t=new ne(this)),t=t.reverse(),t.__actions__.push({func:ls,args:[ii],thisArg:r}),new tt(t,this.__chain__)}return this.thru(ii)}function Vd(){return mc(this.__wrapped__,this.__actions__)}var qd=ns(function(e,t,s){le.call(e,s)?++e[s]:At(e,s,1)});function Wd(e,t,s){var u=Y(e)?Ff:U1;return s&&De(e,t,s)&&(t=r),u(e,j(t,3))}function $d(e,t){var s=Y(e)?Pt:tc;return s(e,j(t,3))}var jd=Ec(Jc),Xd=Ec(Zc);function zd(e,t){return Fe(us(e,t),1)}function Jd(e,t){return Fe(us(e,t),zt)}function Zd(e,t,s){return s=s===r?1:Q(s),Fe(us(e,t),s)}function ng(e,t){var s=Y(e)?Qe:Ht;return s(e,j(t,3))}function sg(e,t){var s=Y(e)?dI:ec;return s(e,j(t,3))}var Yd=ns(function(e,t,s){le.call(e,s)?e[s].push(t):At(e,s,[t])});function Qd(e,t,s,u){e=Le(e)?e:Br(e),s=s&&!u?Q(s):0;var d=e.length;return s<0&&(s=Ae(d+s,0)),vs(e)?s<=d&&e.indexOf(t,s)>-1:!!d&&pr(e,t,s)>-1}var e2=te(function(e,t,s){var u=-1,d=typeof t=="function",b=Le(e)?E(e.length):[];return Ht(e,function(y){b[++u]=d?Ve(t,y,s):Xr(y,t,s)}),b}),t2=ns(function(e,t,s){At(e,s,t)});function us(e,t){var s=Y(e)?de:oc;return s(e,j(t,3))}function r2(e,t,s,u){return e==null?[]:(Y(t)||(t=t==null?[]:[t]),s=u?r:s,Y(s)||(s=s==null?[]:[s]),lc(e,t,s))}var n2=ns(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function s2(e,t,s){var u=Y(e)?Sa:Uf,d=arguments.length<3;return u(e,j(t,4),s,d,Ht)}function a2(e,t,s){var u=Y(e)?vI:Uf,d=arguments.length<3;return u(e,j(t,4),s,d,ec)}function i2(e,t){var s=Y(e)?Pt:tc;return s(e,hs(j(t,3)))}function o2(e){var t=Y(e)?Jf:Q1;return t(e)}function f2(e,t,s){(s?De(e,t,s):t===r)?t=1:t=Q(t);var u=Y(e)?C1:eh;return u(e,t)}function c2(e){var t=Y(e)?F1:rh;return t(e)}function g2(e){if(e==null)return 0;if(Le(e))return vs(e)?hr(e):e.length;var t=Pe(e);return t==it||t==ot?e.size:Ha(e).length}function l2(e,t,s){var u=Y(e)?ba:nh;return s&&De(e,t,s)&&(t=r),u(e,j(t,3))}var u2=te(function(e,t){if(e==null)return[];var s=t.length;return s>1&&De(e,t[0],t[1])?t=[]:s>2&&De(t[0],t[1],t[2])&&(t=[t[0]]),lc(e,Fe(t,1),[])}),ps=$I||function(){return Ce.Date.now()};function p2(e,t){if(typeof t!="function")throw new et(c);return e=Q(e),function(){if(--e<1)return t.apply(this,arguments)}}function ag(e,t,s){return t=s?r:t,t=e&&t==null?e.length:t,_t(e,G,r,r,r,r,t)}function ig(e,t){var s;if(typeof t!="function")throw new et(c);return e=Q(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=r),s}}var fi=te(function(e,t,s){var u=_;if(s.length){var d=kt(s,Rr(fi));u|=x}return _t(e,u,t,s,d)}),og=te(function(e,t,s){var u=_|C;if(s.length){var d=kt(s,Rr(og));u|=x}return _t(t,u,e,s,d)});function fg(e,t,s){t=s?r:t;var u=_t(e,F,r,r,r,r,r,t);return u.placeholder=fg.placeholder,u}function cg(e,t,s){t=s?r:t;var u=_t(e,L,r,r,r,r,r,t);return u.placeholder=cg.placeholder,u}function gg(e,t,s){var u,d,b,y,R,A,M=0,P=!1,H=!1,K=!0;if(typeof e!="function")throw new et(c);t=at(t)||0,me(s)&&(P=!!s.leading,H="maxWait"in s,b=H?Ae(at(s.maxWait)||0,t):b,K="trailing"in s?!!s.trailing:K);function W(Re){var lt=u,Tt=d;return u=d=r,M=Re,y=e.apply(Tt,lt),y}function X(Re){return M=Re,R=Qr(re,t),P?W(Re):y}function ee(Re){var lt=Re-A,Tt=Re-M,Eg=t-lt;return H?Me(Eg,b-Tt):Eg}function z(Re){var lt=Re-A,Tt=Re-M;return A===r||lt>=t||lt<0||H&&Tt>=b}function re(){var Re=ps();if(z(Re))return se(Re);R=Qr(re,ee(Re))}function se(Re){return R=r,K&&u?W(Re):(u=d=r,y)}function je(){R!==r&&bc(R),M=0,u=A=d=R=r}function He(){return R===r?y:se(ps())}function Xe(){var Re=ps(),lt=z(Re);if(u=arguments,d=this,A=Re,lt){if(R===r)return X(A);if(H)return bc(R),R=Qr(re,t),W(A)}return R===r&&(R=Qr(re,t)),y}return Xe.cancel=je,Xe.flush=He,Xe}var I2=te(function(e,t){return Qf(e,1,t)}),h2=te(function(e,t,s){return Qf(e,at(t)||0,s)});function d2(e){return _t(e,J)}function Is(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new et(c);var s=function(){var u=arguments,d=t?t.apply(this,u):u[0],b=s.cache;if(b.has(d))return b.get(d);var y=e.apply(this,u);return s.cache=b.set(d,y)||b,y};return s.cache=new(Is.Cache||Bt),s}Is.Cache=Bt;function hs(e){if(typeof e!="function")throw new et(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function v2(e){return ig(2,e)}var m2=sh(function(e,t){t=t.length==1&&Y(t[0])?de(t[0],qe(j())):de(Fe(t,1),qe(j()));var s=t.length;return te(function(u){for(var d=-1,b=Me(u.length,s);++d<b;)u[d]=t[d].call(this,u[d]);return Ve(e,this,u)})}),ci=te(function(e,t){var s=kt(t,Rr(ci));return _t(e,x,r,t,s)}),lg=te(function(e,t){var s=kt(t,Rr(lg));return _t(e,U,r,t,s)}),S2=xt(function(e,t){return _t(e,$,r,r,r,t)});function b2(e,t){if(typeof e!="function")throw new et(c);return t=t===r?t:Q(t),te(e,t)}function y2(e,t){if(typeof e!="function")throw new et(c);return t=t==null?0:Ae(Q(t),0),te(function(s){var u=s[t],d=Gt(s,0,t);return u&&Ut(d,u),Ve(e,this,d)})}function w2(e,t,s){var u=!0,d=!0;if(typeof e!="function")throw new et(c);return me(s)&&(u="leading"in s?!!s.leading:u,d="trailing"in s?!!s.trailing:d),gg(e,t,{leading:u,maxWait:t,trailing:d})}function R2(e){return ag(e,1)}function O2(e,t){return ci(ja(t),e)}function B2(){if(!arguments.length)return[];var e=arguments[0];return Y(e)?e:[e]}function A2(e){return rt(e,m)}function _2(e,t){return t=typeof t=="function"?t:r,rt(e,m,t)}function x2(e){return rt(e,h|m)}function E2(e,t){return t=typeof t=="function"?t:r,rt(e,h|m,t)}function C2(e,t){return t==null||Yf(e,t,Ee(t))}function gt(e,t){return e===t||e!==e&&t!==t}var F2=os(Ua),T2=os(function(e,t){return e>=t}),sr=sc(function(){return arguments}())?sc:function(e){return be(e)&&le.call(e,"callee")&&!qf.call(e,"callee")},Y=E.isArray,M2=Bf?qe(Bf):G1;function Le(e){return e!=null&&ds(e.length)&&!Ct(e)}function we(e){return be(e)&&Le(e)}function P2(e){return e===!0||e===!1||be(e)&&ke(e)==Mr}var Kt=XI||bi,U2=Af?qe(Af):K1;function k2(e){return be(e)&&e.nodeType===1&&!en(e)}function D2(e){if(e==null)return!0;if(Le(e)&&(Y(e)||typeof e=="string"||typeof e.splice=="function"||Kt(e)||Or(e)||sr(e)))return!e.length;var t=Pe(e);if(t==it||t==ot)return!e.size;if(Yr(e))return!Ha(e).length;for(var s in e)if(le.call(e,s))return!1;return!0}function H2(e,t){return zr(e,t)}function N2(e,t,s){s=typeof s=="function"?s:r;var u=s?s(e,t):r;return u===r?zr(e,t,r,s):!!u}function gi(e){if(!be(e))return!1;var t=ke(e);return t==xn||t==fp||typeof e.message=="string"&&typeof e.name=="string"&&!en(e)}function L2(e){return typeof e=="number"&&$f(e)}function Ct(e){if(!me(e))return!1;var t=ke(e);return t==En||t==Yo||t==op||t==gp}function ug(e){return typeof e=="number"&&e==Q(e)}function ds(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Mt}function me(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function be(e){return e!=null&&typeof e=="object"}var pg=_f?qe(_f):q1;function G2(e,t){return e===t||Da(e,t,ei(t))}function K2(e,t,s){return s=typeof s=="function"?s:r,Da(e,t,ei(t),s)}function V2(e){return Ig(e)&&e!=+e}function q2(e){if(_h(e))throw new Z(i);return ac(e)}function W2(e){return e===null}function $2(e){return e==null}function Ig(e){return typeof e=="number"||be(e)&&ke(e)==Ur}function en(e){if(!be(e)||ke(e)!=Rt)return!1;var t=Vn(e);if(t===null)return!0;var s=le.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&Nn.call(s)==KI}var li=xf?qe(xf):W1;function j2(e){return ug(e)&&e>=-Mt&&e<=Mt}var hg=Ef?qe(Ef):$1;function vs(e){return typeof e=="string"||!Y(e)&&be(e)&&ke(e)==Dr}function $e(e){return typeof e=="symbol"||be(e)&&ke(e)==Cn}var Or=Cf?qe(Cf):j1;function X2(e){return e===r}function z2(e){return be(e)&&Pe(e)==Hr}function J2(e){return be(e)&&ke(e)==up}var Z2=os(Na),Y2=os(function(e,t){return e<=t});function dg(e){if(!e)return[];if(Le(e))return vs(e)?ft(e):Ne(e);if(Gr&&e[Gr])return CI(e[Gr]());var t=Pe(e),s=t==it?Aa:t==ot?kn:Br;return s(e)}function Ft(e){if(!e)return e===0?e:0;if(e=at(e),e===zt||e===-zt){var t=e<0?-1:1;return t*np}return e===e?e:0}function Q(e){var t=Ft(e),s=t%1;return t===t?s?t-s:t:0}function vg(e){return e?er(Q(e),0,dt):0}function at(e){if(typeof e=="number")return e;if($e(e))return An;if(me(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=me(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=kf(e);var s=Mp.test(e);return s||Up.test(e)?pI(e.slice(2),s?2:8):Tp.test(e)?An:+e}function mg(e){return mt(e,Ge(e))}function Q2(e){return e?er(Q(e),-Mt,Mt):e===0?e:0}function ge(e){return e==null?"":We(e)}var e0=yr(function(e,t){if(Yr(t)||Le(t)){mt(t,Ee(t),e);return}for(var s in t)le.call(t,s)&&$r(e,s,t[s])}),Sg=yr(function(e,t){mt(t,Ge(t),e)}),ms=yr(function(e,t,s,u){mt(t,Ge(t),e,u)}),t0=yr(function(e,t,s,u){mt(t,Ee(t),e,u)}),r0=xt(Ta);function n0(e,t){var s=br(e);return t==null?s:Zf(s,t)}var s0=te(function(e,t){e=ue(e);var s=-1,u=t.length,d=u>2?t[2]:r;for(d&&De(t[0],t[1],d)&&(u=1);++s<u;)for(var b=t[s],y=Ge(b),R=-1,A=y.length;++R<A;){var M=y[R],P=e[M];(P===r||gt(P,vr[M])&&!le.call(e,M))&&(e[M]=b[M])}return e}),a0=te(function(e){return e.push(r,kc),Ve(bg,r,e)});function i0(e,t){return Tf(e,j(t,3),vt)}function o0(e,t){return Tf(e,j(t,3),Pa)}function f0(e,t){return e==null?e:Ma(e,j(t,3),Ge)}function c0(e,t){return e==null?e:rc(e,j(t,3),Ge)}function g0(e,t){return e&&vt(e,j(t,3))}function l0(e,t){return e&&Pa(e,j(t,3))}function u0(e){return e==null?[]:Qn(e,Ee(e))}function p0(e){return e==null?[]:Qn(e,Ge(e))}function ui(e,t,s){var u=e==null?r:tr(e,t);return u===r?s:u}function I0(e,t){return e!=null&&Nc(e,t,D1)}function pi(e,t){return e!=null&&Nc(e,t,H1)}var h0=Fc(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),e[t]=s},hi(Ke)),d0=Fc(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),le.call(e,t)?e[t].push(s):e[t]=[s]},j),v0=te(Xr);function Ee(e){return Le(e)?zf(e):Ha(e)}function Ge(e){return Le(e)?zf(e,!0):X1(e)}function m0(e,t){var s={};return t=j(t,3),vt(e,function(u,d,b){At(s,t(u,d,b),u)}),s}function S0(e,t){var s={};return t=j(t,3),vt(e,function(u,d,b){At(s,d,t(u,d,b))}),s}var b0=yr(function(e,t,s){es(e,t,s)}),bg=yr(function(e,t,s,u){es(e,t,s,u)}),y0=xt(function(e,t){var s={};if(e==null)return s;var u=!1;t=de(t,function(b){return b=Lt(b,e),u||(u=b.length>1),b}),mt(e,Ya(e),s),u&&(s=rt(s,h|v|m,hh));for(var d=t.length;d--;)qa(s,t[d]);return s});function w0(e,t){return yg(e,hs(j(t)))}var R0=xt(function(e,t){return e==null?{}:J1(e,t)});function yg(e,t){if(e==null)return{};var s=de(Ya(e),function(u){return[u]});return t=j(t),uc(e,s,function(u,d){return t(u,d[0])})}function O0(e,t,s){t=Lt(t,e);var u=-1,d=t.length;for(d||(d=1,e=r);++u<d;){var b=e==null?r:e[St(t[u])];b===r&&(u=d,b=s),e=Ct(b)?b.call(e):b}return e}function B0(e,t,s){return e==null?e:Jr(e,t,s)}function A0(e,t,s,u){return u=typeof u=="function"?u:r,e==null?e:Jr(e,t,s,u)}var wg=Pc(Ee),Rg=Pc(Ge);function _0(e,t,s){var u=Y(e),d=u||Kt(e)||Or(e);if(t=j(t,4),s==null){var b=e&&e.constructor;d?s=u?new b:[]:me(e)?s=Ct(b)?br(Vn(e)):{}:s={}}return(d?Qe:vt)(e,function(y,R,A){return t(s,y,R,A)}),s}function x0(e,t){return e==null?!0:qa(e,t)}function E0(e,t,s){return e==null?e:vc(e,t,ja(s))}function C0(e,t,s,u){return u=typeof u=="function"?u:r,e==null?e:vc(e,t,ja(s),u)}function Br(e){return e==null?[]:Ba(e,Ee(e))}function F0(e){return e==null?[]:Ba(e,Ge(e))}function T0(e,t,s){return s===r&&(s=t,t=r),s!==r&&(s=at(s),s=s===s?s:0),t!==r&&(t=at(t),t=t===t?t:0),er(at(e),t,s)}function M0(e,t,s){return t=Ft(t),s===r?(s=t,t=0):s=Ft(s),e=at(e),N1(e,t,s)}function P0(e,t,s){if(s&&typeof s!="boolean"&&De(e,t,s)&&(t=s=r),s===r&&(typeof t=="boolean"?(s=t,t=r):typeof e=="boolean"&&(s=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Ft(e),t===r?(t=e,e=0):t=Ft(t)),e>t){var u=e;e=t,t=u}if(s||e%1||t%1){var d=jf();return Me(e+d*(t-e+uI("1e-"+((d+"").length-1))),t)}return Ga(e,t)}var U0=wr(function(e,t,s){return t=t.toLowerCase(),e+(s?Og(t):t)});function Og(e){return Ii(ge(e).toLowerCase())}function Bg(e){return e=ge(e),e&&e.replace(Dp,BI).replace(rI,"")}function k0(e,t,s){e=ge(e),t=We(t);var u=e.length;s=s===r?u:er(Q(s),0,u);var d=s;return s-=t.length,s>=0&&e.slice(s,d)==t}function D0(e){return e=ge(e),e&&vp.test(e)?e.replace(tf,AI):e}function H0(e){return e=ge(e),e&&Rp.test(e)?e.replace(ca,"\\$&"):e}var N0=wr(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),L0=wr(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),G0=xc("toLowerCase");function K0(e,t,s){e=ge(e),t=Q(t);var u=t?hr(e):0;if(!t||u>=t)return e;var d=(t-u)/2;return is(jn(d),s)+e+is($n(d),s)}function V0(e,t,s){e=ge(e),t=Q(t);var u=t?hr(e):0;return t&&u<t?e+is(t-u,s):e}function q0(e,t,s){e=ge(e),t=Q(t);var u=t?hr(e):0;return t&&u<t?is(t-u,s)+e:e}function W0(e,t,s){return s||t==null?t=0:t&&(t=+t),YI(ge(e).replace(ga,""),t||0)}function $0(e,t,s){return(s?De(e,t,s):t===r)?t=1:t=Q(t),Ka(ge(e),t)}function j0(){var e=arguments,t=ge(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var X0=wr(function(e,t,s){return e+(s?"_":"")+t.toLowerCase()});function z0(e,t,s){return s&&typeof s!="number"&&De(e,t,s)&&(t=s=r),s=s===r?dt:s>>>0,s?(e=ge(e),e&&(typeof t=="string"||t!=null&&!li(t))&&(t=We(t),!t&&Ir(e))?Gt(ft(e),0,s):e.split(t,s)):[]}var J0=wr(function(e,t,s){return e+(s?" ":"")+Ii(t)});function Z0(e,t,s){return e=ge(e),s=s==null?0:er(Q(s),0,e.length),t=We(t),e.slice(s,s+t.length)==t}function Y0(e,t,s){var u=S.templateSettings;s&&De(e,t,s)&&(t=r),e=ge(e),t=ms({},t,u,Uc);var d=ms({},t.imports,u.imports,Uc),b=Ee(d),y=Ba(d,b),R,A,M=0,P=t.interpolate||Fn,H="__p += '",K=_a((t.escape||Fn).source+"|"+P.source+"|"+(P===rf?Fp:Fn).source+"|"+(t.evaluate||Fn).source+"|$","g"),W="//# sourceURL="+(le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++oI+"]")+`
|
|
11
|
+
`;e.replace(K,function(z,re,se,je,He,Xe){return se||(se=je),H+=e.slice(M,Xe).replace(Hp,_I),re&&(R=!0,H+=`' +
|
|
12
|
+
__e(`+re+`) +
|
|
13
|
+
'`),He&&(A=!0,H+=`';
|
|
14
|
+
`+He+`;
|
|
15
|
+
__p += '`),se&&(H+=`' +
|
|
16
|
+
((__t = (`+se+`)) == null ? '' : __t) +
|
|
17
|
+
'`),M=Xe+z.length,z}),H+=`';
|
|
18
|
+
`;var X=le.call(t,"variable")&&t.variable;if(!X)H=`with (obj) {
|
|
19
|
+
`+H+`
|
|
20
|
+
}
|
|
21
|
+
`;else if(Ep.test(X))throw new Z(g);H=(A?H.replace(pp,""):H).replace(Ip,"$1").replace(hp,"$1;"),H="function("+(X||"obj")+`) {
|
|
22
|
+
`+(X?"":`obj || (obj = {});
|
|
23
|
+
`)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(A?`, __j = Array.prototype.join;
|
|
24
|
+
function print() { __p += __j.call(arguments, '') }
|
|
25
|
+
`:`;
|
|
26
|
+
`)+H+`return __p
|
|
27
|
+
}`;var ee=_g(function(){return fe(b,W+"return "+H).apply(r,y)});if(ee.source=H,gi(ee))throw ee;return ee}function Q0(e){return ge(e).toLowerCase()}function ev(e){return ge(e).toUpperCase()}function tv(e,t,s){if(e=ge(e),e&&(s||t===r))return kf(e);if(!e||!(t=We(t)))return e;var u=ft(e),d=ft(t),b=Df(u,d),y=Hf(u,d)+1;return Gt(u,b,y).join("")}function rv(e,t,s){if(e=ge(e),e&&(s||t===r))return e.slice(0,Lf(e)+1);if(!e||!(t=We(t)))return e;var u=ft(e),d=Hf(u,ft(t))+1;return Gt(u,0,d).join("")}function nv(e,t,s){if(e=ge(e),e&&(s||t===r))return e.replace(ga,"");if(!e||!(t=We(t)))return e;var u=ft(e),d=Df(u,ft(t));return Gt(u,d).join("")}function sv(e,t){var s=ve,u=oe;if(me(t)){var d="separator"in t?t.separator:d;s="length"in t?Q(t.length):s,u="omission"in t?We(t.omission):u}e=ge(e);var b=e.length;if(Ir(e)){var y=ft(e);b=y.length}if(s>=b)return e;var R=s-hr(u);if(R<1)return u;var A=y?Gt(y,0,R).join(""):e.slice(0,R);if(d===r)return A+u;if(y&&(R+=A.length-R),li(d)){if(e.slice(R).search(d)){var M,P=A;for(d.global||(d=_a(d.source,ge(nf.exec(d))+"g")),d.lastIndex=0;M=d.exec(P);)var H=M.index;A=A.slice(0,H===r?R:H)}}else if(e.indexOf(We(d),R)!=R){var K=A.lastIndexOf(d);K>-1&&(A=A.slice(0,K))}return A+u}function av(e){return e=ge(e),e&&dp.test(e)?e.replace(ef,PI):e}var iv=wr(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Ii=xc("toUpperCase");function Ag(e,t,s){return e=ge(e),t=s?r:t,t===r?EI(e)?DI(e):bI(e):e.match(t)||[]}var _g=te(function(e,t){try{return Ve(e,r,t)}catch(s){return gi(s)?s:new Z(s)}}),ov=xt(function(e,t){return Qe(t,function(s){s=St(s),At(e,s,fi(e[s],e))}),e});function fv(e){var t=e==null?0:e.length,s=j();return e=t?de(e,function(u){if(typeof u[1]!="function")throw new et(c);return[s(u[0]),u[1]]}):[],te(function(u){for(var d=-1;++d<t;){var b=e[d];if(Ve(b[0],this,u))return Ve(b[1],this,u)}})}function cv(e){return P1(rt(e,h))}function hi(e){return function(){return e}}function gv(e,t){return e==null||e!==e?t:e}var lv=Cc(),uv=Cc(!0);function Ke(e){return e}function di(e){return ic(typeof e=="function"?e:rt(e,h))}function pv(e){return fc(rt(e,h))}function Iv(e,t){return cc(e,rt(t,h))}var hv=te(function(e,t){return function(s){return Xr(s,e,t)}}),dv=te(function(e,t){return function(s){return Xr(e,s,t)}});function vi(e,t,s){var u=Ee(t),d=Qn(t,u);s==null&&!(me(t)&&(d.length||!u.length))&&(s=t,t=e,e=this,d=Qn(t,Ee(t)));var b=!(me(s)&&"chain"in s)||!!s.chain,y=Ct(e);return Qe(d,function(R){var A=t[R];e[R]=A,y&&(e.prototype[R]=function(){var M=this.__chain__;if(b||M){var P=e(this.__wrapped__),H=P.__actions__=Ne(this.__actions__);return H.push({func:A,args:arguments,thisArg:e}),P.__chain__=M,P}return A.apply(e,Ut([this.value()],arguments))})}),e}function vv(){return Ce._===this&&(Ce._=VI),this}function mi(){}function mv(e){return e=Q(e),te(function(t){return gc(t,e)})}var Sv=za(de),bv=za(Ff),yv=za(ba);function xg(e){return ri(e)?ya(St(e)):Z1(e)}function wv(e){return function(t){return e==null?r:tr(e,t)}}var Rv=Tc(),Ov=Tc(!0);function Si(){return[]}function bi(){return!1}function Bv(){return{}}function Av(){return""}function _v(){return!0}function xv(e,t){if(e=Q(e),e<1||e>Mt)return[];var s=dt,u=Me(e,dt);t=j(t),e-=dt;for(var d=Oa(u,t);++s<e;)t(s);return d}function Ev(e){return Y(e)?de(e,St):$e(e)?[e]:Ne(Xc(ge(e)))}function Cv(e){var t=++GI;return ge(e)+t}var Fv=as(function(e,t){return e+t},0),Tv=Ja("ceil"),Mv=as(function(e,t){return e/t},1),Pv=Ja("floor");function Uv(e){return e&&e.length?Yn(e,Ke,Ua):r}function kv(e,t){return e&&e.length?Yn(e,j(t,2),Ua):r}function Dv(e){return Pf(e,Ke)}function Hv(e,t){return Pf(e,j(t,2))}function Nv(e){return e&&e.length?Yn(e,Ke,Na):r}function Lv(e,t){return e&&e.length?Yn(e,j(t,2),Na):r}var Gv=as(function(e,t){return e*t},1),Kv=Ja("round"),Vv=as(function(e,t){return e-t},0);function qv(e){return e&&e.length?Ra(e,Ke):0}function Wv(e,t){return e&&e.length?Ra(e,j(t,2)):0}return S.after=p2,S.ary=ag,S.assign=e0,S.assignIn=Sg,S.assignInWith=ms,S.assignWith=t0,S.at=r0,S.before=ig,S.bind=fi,S.bindAll=ov,S.bindKey=og,S.castArray=B2,S.chain=rg,S.chunk=Ph,S.compact=Uh,S.concat=kh,S.cond=fv,S.conforms=cv,S.constant=hi,S.countBy=qd,S.create=n0,S.curry=fg,S.curryRight=cg,S.debounce=gg,S.defaults=s0,S.defaultsDeep=a0,S.defer=I2,S.delay=h2,S.difference=Dh,S.differenceBy=Hh,S.differenceWith=Nh,S.drop=Lh,S.dropRight=Gh,S.dropRightWhile=Kh,S.dropWhile=Vh,S.fill=qh,S.filter=$d,S.flatMap=zd,S.flatMapDeep=Jd,S.flatMapDepth=Zd,S.flatten=Yc,S.flattenDeep=Wh,S.flattenDepth=$h,S.flip=d2,S.flow=lv,S.flowRight=uv,S.fromPairs=jh,S.functions=u0,S.functionsIn=p0,S.groupBy=Yd,S.initial=zh,S.intersection=Jh,S.intersectionBy=Zh,S.intersectionWith=Yh,S.invert=h0,S.invertBy=d0,S.invokeMap=e2,S.iteratee=di,S.keyBy=t2,S.keys=Ee,S.keysIn=Ge,S.map=us,S.mapKeys=m0,S.mapValues=S0,S.matches=pv,S.matchesProperty=Iv,S.memoize=Is,S.merge=b0,S.mergeWith=bg,S.method=hv,S.methodOf=dv,S.mixin=vi,S.negate=hs,S.nthArg=mv,S.omit=y0,S.omitBy=w0,S.once=v2,S.orderBy=r2,S.over=Sv,S.overArgs=m2,S.overEvery=bv,S.overSome=yv,S.partial=ci,S.partialRight=lg,S.partition=n2,S.pick=R0,S.pickBy=yg,S.property=xg,S.propertyOf=wv,S.pull=rd,S.pullAll=eg,S.pullAllBy=nd,S.pullAllWith=sd,S.pullAt=ad,S.range=Rv,S.rangeRight=Ov,S.rearg=S2,S.reject=i2,S.remove=id,S.rest=b2,S.reverse=ii,S.sampleSize=f2,S.set=B0,S.setWith=A0,S.shuffle=c2,S.slice=od,S.sortBy=u2,S.sortedUniq=Id,S.sortedUniqBy=hd,S.split=z0,S.spread=y2,S.tail=dd,S.take=vd,S.takeRight=md,S.takeRightWhile=Sd,S.takeWhile=bd,S.tap=Ud,S.throttle=w2,S.thru=ls,S.toArray=dg,S.toPairs=wg,S.toPairsIn=Rg,S.toPath=Ev,S.toPlainObject=mg,S.transform=_0,S.unary=R2,S.union=yd,S.unionBy=wd,S.unionWith=Rd,S.uniq=Od,S.uniqBy=Bd,S.uniqWith=Ad,S.unset=x0,S.unzip=oi,S.unzipWith=tg,S.update=E0,S.updateWith=C0,S.values=Br,S.valuesIn=F0,S.without=_d,S.words=Ag,S.wrap=O2,S.xor=xd,S.xorBy=Ed,S.xorWith=Cd,S.zip=Fd,S.zipObject=Td,S.zipObjectDeep=Md,S.zipWith=Pd,S.entries=wg,S.entriesIn=Rg,S.extend=Sg,S.extendWith=ms,vi(S,S),S.add=Fv,S.attempt=_g,S.camelCase=U0,S.capitalize=Og,S.ceil=Tv,S.clamp=T0,S.clone=A2,S.cloneDeep=x2,S.cloneDeepWith=E2,S.cloneWith=_2,S.conformsTo=C2,S.deburr=Bg,S.defaultTo=gv,S.divide=Mv,S.endsWith=k0,S.eq=gt,S.escape=D0,S.escapeRegExp=H0,S.every=Wd,S.find=jd,S.findIndex=Jc,S.findKey=i0,S.findLast=Xd,S.findLastIndex=Zc,S.findLastKey=o0,S.floor=Pv,S.forEach=ng,S.forEachRight=sg,S.forIn=f0,S.forInRight=c0,S.forOwn=g0,S.forOwnRight=l0,S.get=ui,S.gt=F2,S.gte=T2,S.has=I0,S.hasIn=pi,S.head=Qc,S.identity=Ke,S.includes=Qd,S.indexOf=Xh,S.inRange=M0,S.invoke=v0,S.isArguments=sr,S.isArray=Y,S.isArrayBuffer=M2,S.isArrayLike=Le,S.isArrayLikeObject=we,S.isBoolean=P2,S.isBuffer=Kt,S.isDate=U2,S.isElement=k2,S.isEmpty=D2,S.isEqual=H2,S.isEqualWith=N2,S.isError=gi,S.isFinite=L2,S.isFunction=Ct,S.isInteger=ug,S.isLength=ds,S.isMap=pg,S.isMatch=G2,S.isMatchWith=K2,S.isNaN=V2,S.isNative=q2,S.isNil=$2,S.isNull=W2,S.isNumber=Ig,S.isObject=me,S.isObjectLike=be,S.isPlainObject=en,S.isRegExp=li,S.isSafeInteger=j2,S.isSet=hg,S.isString=vs,S.isSymbol=$e,S.isTypedArray=Or,S.isUndefined=X2,S.isWeakMap=z2,S.isWeakSet=J2,S.join=Qh,S.kebabCase=N0,S.last=st,S.lastIndexOf=ed,S.lowerCase=L0,S.lowerFirst=G0,S.lt=Z2,S.lte=Y2,S.max=Uv,S.maxBy=kv,S.mean=Dv,S.meanBy=Hv,S.min=Nv,S.minBy=Lv,S.stubArray=Si,S.stubFalse=bi,S.stubObject=Bv,S.stubString=Av,S.stubTrue=_v,S.multiply=Gv,S.nth=td,S.noConflict=vv,S.noop=mi,S.now=ps,S.pad=K0,S.padEnd=V0,S.padStart=q0,S.parseInt=W0,S.random=P0,S.reduce=s2,S.reduceRight=a2,S.repeat=$0,S.replace=j0,S.result=O0,S.round=Kv,S.runInContext=O,S.sample=o2,S.size=g2,S.snakeCase=X0,S.some=l2,S.sortedIndex=fd,S.sortedIndexBy=cd,S.sortedIndexOf=gd,S.sortedLastIndex=ld,S.sortedLastIndexBy=ud,S.sortedLastIndexOf=pd,S.startCase=J0,S.startsWith=Z0,S.subtract=Vv,S.sum=qv,S.sumBy=Wv,S.template=Y0,S.times=xv,S.toFinite=Ft,S.toInteger=Q,S.toLength=vg,S.toLower=Q0,S.toNumber=at,S.toSafeInteger=Q2,S.toString=ge,S.toUpper=ev,S.trim=tv,S.trimEnd=rv,S.trimStart=nv,S.truncate=sv,S.unescape=av,S.uniqueId=Cv,S.upperCase=iv,S.upperFirst=Ii,S.each=ng,S.eachRight=sg,S.first=Qc,vi(S,function(){var e={};return vt(S,function(t,s){le.call(S.prototype,s)||(e[s]=t)}),e}(),{chain:!1}),S.VERSION=o,Qe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){S[e].placeholder=S}),Qe(["drop","take"],function(e,t){ne.prototype[e]=function(s){s=s===r?1:Ae(Q(s),0);var u=this.__filtered__&&!t?new ne(this):this.clone();return u.__filtered__?u.__takeCount__=Me(s,u.__takeCount__):u.__views__.push({size:Me(s,dt),type:e+(u.__dir__<0?"Right":"")}),u},ne.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),Qe(["filter","map","takeWhile"],function(e,t){var s=t+1,u=s==Ze||s==rp;ne.prototype[e]=function(d){var b=this.clone();return b.__iteratees__.push({iteratee:j(d,3),type:s}),b.__filtered__=b.__filtered__||u,b}}),Qe(["head","last"],function(e,t){var s="take"+(t?"Right":"");ne.prototype[e]=function(){return this[s](1).value()[0]}}),Qe(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");ne.prototype[e]=function(){return this.__filtered__?new ne(this):this[s](1)}}),ne.prototype.compact=function(){return this.filter(Ke)},ne.prototype.find=function(e){return this.filter(e).head()},ne.prototype.findLast=function(e){return this.reverse().find(e)},ne.prototype.invokeMap=te(function(e,t){return typeof e=="function"?new ne(this):this.map(function(s){return Xr(s,e,t)})}),ne.prototype.reject=function(e){return this.filter(hs(j(e)))},ne.prototype.slice=function(e,t){e=Q(e);var s=this;return s.__filtered__&&(e>0||t<0)?new ne(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=Q(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},ne.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ne.prototype.toArray=function(){return this.take(dt)},vt(ne.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),d=S[u?"take"+(t=="last"?"Right":""):t],b=u||/^find/.test(t);d&&(S.prototype[t]=function(){var y=this.__wrapped__,R=u?[1]:arguments,A=y instanceof ne,M=R[0],P=A||Y(y),H=function(re){var se=d.apply(S,Ut([re],R));return u&&K?se[0]:se};P&&s&&typeof M=="function"&&M.length!=1&&(A=P=!1);var K=this.__chain__,W=!!this.__actions__.length,X=b&&!K,ee=A&&!W;if(!b&&P){y=ee?y:new ne(this);var z=e.apply(y,R);return z.__actions__.push({func:ls,args:[H],thisArg:r}),new tt(z,K)}return X&&ee?e.apply(this,R):(z=this.thru(H),X?u?z.value()[0]:z.value():z)})}),Qe(["pop","push","shift","sort","splice","unshift"],function(e){var t=Dn[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);S.prototype[e]=function(){var d=arguments;if(u&&!this.__chain__){var b=this.value();return t.apply(Y(b)?b:[],d)}return this[s](function(y){return t.apply(Y(y)?y:[],d)})}}),vt(ne.prototype,function(e,t){var s=S[t];if(s){var u=s.name+"";le.call(Sr,u)||(Sr[u]=[]),Sr[u].push({name:t,func:s})}}),Sr[ss(r,C).name]=[{name:"wrapper",func:r}],ne.prototype.clone=a1,ne.prototype.reverse=i1,ne.prototype.value=o1,S.prototype.at=kd,S.prototype.chain=Dd,S.prototype.commit=Hd,S.prototype.next=Nd,S.prototype.plant=Gd,S.prototype.reverse=Kd,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=Vd,S.prototype.first=S.prototype.head,Gr&&(S.prototype[Gr]=Ld),S},dr=HI();Jt?((Jt.exports=dr)._=dr,da._=dr):Ce._=dr}).call(Se)}(tn,tn.exports);var q=tn.exports;const Tg="ACDEFGHIKLMNPQRSTVWY",Mg="ACDEFGHIKLMNPQRSTVWYBXZJUO.*-",Pg={A:"Ala",C:"Cys",D:"Asp",E:"Glu",F:"Phe",G:"Gly",H:"His",I:"Ile",K:"Lys",L:"Leu",M:"Met",N:"Asn",P:"Pro",Q:"Gln",R:"Arg",S:"Ser",T:"Thr",V:"Val",W:"Trp",Y:"Tyr",O:"Pyl",U:"Sec"},yi="GATCRYWSMKHBVDN",Ug="GATC",kg="GAUCRYWSMKHBVDN",Dg="GAUC",Hg="GATCBDSW",rn={".":".",A:"A",C:"C",G:"G",T:"T",M:"AC",R:"AG",W:"AT",S:"CG",Y:"CT",K:"GT",V:"ACG",H:"ACT",D:"AGT",B:"CGT",X:"GATC",N:"GATC"},Ng={".":".",A:"A",C:"C",G:"G",U:"U",M:"AC",R:"AG",W:"AU",S:"CG",Y:"CU",K:"GU",V:"ACG",H:"ACU",D:"AGU",B:"CGU",X:"GAUC",N:"GAUC"},Lg={".":".",A:"T",C:"G",G:"C",T:"A",M:"K",R:"Y",W:"W",S:"S",Y:"R",K:"M",V:"B",H:"D",D:"H",B:"V",X:"X",N:"N"},Gg={".":".",A:"U",C:"G",G:"C",U:"A",M:"K",R:"Y",W:"W",S:"S",Y:"R",K:"M",V:"B",H:"D",D:"H",B:"V",X:"X",N:"N"},Kg={A:331.2218,C:307.1971,G:347.2212,T:322.2085},Vg={A:331.06817,C:307.056936,G:347.063084,T:322.056602},qg={A:347.2212,C:323.1965,G:363.2206,U:324.1813},Wg={A:347.063084,C:323.051851,G:363.057999,U:324.035867},$g={A:89.0932,C:121.1582,D:133.1027,E:147.1293,F:165.1891,G:75.0666,H:155.1546,I:131.1729,K:146.1876,L:131.1729,M:149.2113,N:132.1179,O:255.3134,P:115.1305,Q:146.1445,R:174.201,S:105.0926,T:119.1192,U:168.0532,V:117.1463,W:204.2252,Y:181.1885},jg={A:89.047678,C:121.019749,D:133.037508,E:147.053158,F:165.078979,G:75.032028,H:155.069477,I:131.094629,K:146.105528,L:131.094629,M:149.051049,N:132.053492,O:255.158292,P:115.063329,Q:146.069142,R:174.111676,S:105.042593,T:119.058243,U:168.964203,V:117.078979,W:204.089878,Y:181.073893},wi={A:"A",B:"ND",C:"C",D:"D",E:"E",F:"F",G:"G",H:"H",I:"I",J:"IL",K:"K",L:"L",M:"M",N:"N",O:"O",P:"P",Q:"Q",R:"R",S:"S",T:"T",U:"U",V:"V",W:"W",X:"ACDEFGHIKLMNPQRSTVWY",Y:"Y",Z:"QE","*":"\\*\\.",".":"\\.\\.","-":"\\-"},Xg=Object.freeze(Object.defineProperty({__proto__:null,ambiguous_dna_complement:Lg,ambiguous_dna_letters:yi,ambiguous_dna_values:rn,ambiguous_rna_complement:Gg,ambiguous_rna_letters:kg,ambiguous_rna_values:Ng,atom_weights:{H:1.00794,D:2.0141,He:4.002602,Li:6.941,Be:9.012182,B:10.811,C:12.0107,N:14.0067,O:15.9994,F:18.9984032,Ne:20.1797,Na:22.98977,Mg:24.305,Al:26.981538,Si:28.0855,P:30.973761,S:32.065,Cl:35.453,Ar:39.948,K:39.0983,Ca:40.078,Sc:44.95591,Ti:47.867,V:50.9415,Cr:51.9961,Mn:54.938049,Fe:55.845,Co:58.9332,Ni:58.6934,Cu:63.546,Zn:65.39,Ga:69.723,Ge:72.64,As:74.9216,Se:78.96,Br:79.904,Kr:83.8,Rb:85.4678,Sr:87.62,Y:88.90585,Zr:91.224,Nb:92.90638,Mo:95.94,Tc:98,Ru:101.07,Rh:102.9055,Pd:106.42,Ag:107.8682,Cd:112.411,In:114.818,Sn:118.71,Sb:121.76,Te:127.6,I:126.90447,Xe:131.293,Cs:132.90545,Ba:137.327,La:138.9055,Ce:140.116,Pr:140.90765,Nd:144.24,Pm:145,Sm:150.36,Eu:151.964,Gd:157.25,Tb:158.92534,Dy:162.5,Ho:164.93032,Er:167.259,Tm:168.93421,Yb:173.04,Lu:174.967,Hf:178.49,Ta:180.9479,W:183.84,Re:186.207,Os:190.23,Ir:192.217,Pt:195.078,Au:196.96655,Hg:200.59,Tl:204.3833,Pb:207.2,Bi:208.98038,Po:208.98,At:209.99,Rn:222.02,Fr:223.02,Ra:226.03,Ac:227.03,Th:232.0381,Pa:231.03588,U:238.02891,Np:237.05,Pu:244.06,Am:243.06,Cm:247.07,Bk:247.07,Cf:251.08,Es:252.08,Fm:257.1,Md:258.1,No:259.1,Lr:262.11,Rf:261.11,Db:262.11,Sg:266.12,Bh:264.12,Hs:269.13,Mt:268.14},extended_dna_letters:Hg,extended_protein_letters:Mg,extended_protein_values:wi,monoisotopic_protein_weights:jg,monoisotopic_unambiguous_dna_weights:Vg,monoisotopic_unambiguous_rna_weights:Wg,protein_letters:Tg,protein_letters_1to3:Pg,protein_weights:$g,unambiguous_dna_letters:Ug,unambiguous_dna_weights:Kg,unambiguous_rna_letters:Dg,unambiguous_rna_weights:qg},Symbol.toStringTag,{value:"Module"})),nn={"-":"---",".":"...","*":"trr",a:"gcn",b:"ray",c:"tgy",d:"gay",e:"gar",f:"tty",g:"ggn",h:"cay",i:"ath",j:"htn",k:"aar",l:"ytn",m:"atg",n:"aay",o:"tag",p:"ccn",q:"car",r:"mgn",s:"wsn",t:"acn",u:"tga",v:"gtn",w:"tgg",x:"nnn",y:"tay",z:"sar"};function bt(a,n){n!==0&&(n=n||1/0);const r=[];return a.start>a.end?(r.push({start:0,end:a.end,type:"end"}),r.push({start:a.start,end:n-1,type:"beginning"})):r.push({start:a.start,end:a.end,type:"beginningAndEnd"}),r}function zg(a,n){if(a.start<n.start){if(!(a.end<n.start))return a.end<n.end?{start:n.start,end:a.end}:{start:n.start,end:n.end}}else if(!(a.start>n.end))return a.end<n.end?{start:a.start,end:a.end}:{start:a.start,end:n.end}}function Ss(a,n,r,o){const f=bt(a,r),i=bt(n,r);let c=[];if(f.forEach(function(g,l){i.forEach(function(p,I){const h=zg(g,p);h&&c.push(h)})}),o&&f.length===2&&i.length===2&&r){const g={};c=q.flatMap(c,(l,p)=>{if(l.start===0)return g.end=l.end,[];if(l.end===r-1)return g.start=l.start,[]}),c.push(g)}return c}function Jg(a,n){let r;return a&&(a.start<n.start?a.end<n.start?r={start:a.start,end:a.end}:a.end>n.end?r={start:a.start,end:a.end}:r={start:a.start,end:n.start-1}:a.end<=n.end||(a.start>n.end?r={end:a.end,start:a.start}:r={end:a.end,start:n.end+1})),r}function bs(a,n,r){if(!a||!n)return console.warn("invalid range input"),null;let o;for(o of[a.start,a.end,n.start,n.end])if(o<0||!o&&o!==0)return console.warn("invalid range input"),null;const f=Ss(a,n,r);if(!f.length)return a;const i=bt(a,r);i.forEach(function(l,p){f.forEach(function(I){l&&(l=Jg(l,I))}),i[p]=l});const c=i.filter(function(l){return!!l});let g;if(c.length<0||(c.length===1?g=c[0]:c.length===2&&(c[0].start<c[1].start?g={start:c[1].start,end:c[0].end}:g={start:c[0].start,end:c[1].end})),g)return q.extend({},a,{start:g.start,end:g.end})}function Ri(a,n,r){const o=bs(a,n,r);return o&&bt(n,r).forEach(function(i){const c=i.end-i.start+1;o.start>o.end?i.start<o.end?(o.start-=c,o.end-=c):i.start<o.start&&(o.start-=c):i.start<o.start?(o.start-=c,o.end-=c):i.start<o.end&&(o.end-=c)}),o}function Oi(a,n,r){const o=q.assign({},a);return a.start>a.end?a.end>=n?(o.start+=r,o.end+=r):a.start>=n&&(o.start+=r):a.start>=n?(o.start+=r,o.end+=r):a.end>=n&&(o.end+=r),o}function Zg(a,n){return a.start<n.start?!(a.end<n.start):!(a.start>n.end)}function Yg(a,n){return bt(a,1/0).some(function(r){return bt(n,1/0).some(function(o){return Zg(r,o)})})}function sn(a,n,r){const o=r&&r.start<=r.end;if(a.length===1||a.length===0)return a;if(a.length===2)return a[0].start===0&&a[1].end+1===n&&!o?[{start:a[1].start,end:a[0].end}]:a[1].start===0&&a[0].end+1===n&&!o?[{start:a[0].start,end:a[1].end}]:a;if(a.length===3){const f=a[0],i=a[1],c=a[2];let g=sn([f,i],n,r);return g.length===1?(g.push(c),g):(g=sn([f,c],n,r),g.length===1?(g.push(i),g):(g=sn([i,c],n,r),g.length===1?(g.push(f),g):a))}}function ys(a){return function(){const n=Array.prototype.slice.call(arguments),r=n[n.length-1];r&&(r.inclusive1BasedEnd||r.inclusive1BasedStart)&&n.forEach(function(f,i){f&&f.start>-1&&r.inclusive1BasedStart&&(n[i]=q.assign(f,{start:f.start-1})),f&&f.end>-1&&r.inclusive1BasedEnd&&(n[i]=q.assign(f,{end:f.end-1}))});let o=a.apply(this,n);return o&&o.start>-1&&r&&r.inclusive1BasedStart&&(o=q.assign(o,{start:o.start+1})),o&&o.end>-1&&r&&r.inclusive1BasedEnd&&(o=q.assign(o,{end:o.end+1})),o}}const _e=ys(Qg);function Qg(a,n){let r;return a.end<a.start?r=n-a.start+a.end+1:r=a.end-a.start+1,a.overlapsSelf&&n&&(r+=n),r}function Bi(a,n,r){let o=bs(a,n,r);return o===null?!1:!o}function Ai(a,n,r,o,f){return bt(n,r).some(function(g){return(o?a<g.start:a<=g.start)?!1:f?a<=g.end+1:a<=g.end})}function ae(a,n,r){let o=a;return o<0?o+=n:o+(r?0:1)>n&&(o-=n),o<0?0:o>n-(r?0:1)?n-(r?0:1):o}function _i(a,n){return q.assign({},a,{start:ae(a.start,n),end:ae(a.end,n)})}function ws(a,n,r,o){const f=q.clone(a);return r?f.start-=n:f.end+=n,_i(f,o)}function ar(a,n,r){return q.assign({},a,{start:ae(a.start+n,r),end:ae(a.end+n,r)})}function el(a,n,r,o){return Bi(a,n,r)?xi(a,n,r):tl(a,n,r)}function tl(a,n,r,o){const f=Bi(n,a,r);let i;if(f){const c=_e({start:a.start,end:n.start},r)-1;i=ws(n,c,!1,r);const g=_e({end:a.end,start:n.end},r)-1;i=ws(i,g,!0,r)}else{const c=Ss(a,n,r);if(c.length>=1){let g;const l=c[0];g=l.start!==n.start;const p=xi(l,n,r),I=_e(a,r)-_e(p,r);i=ws(p,I,g,r)}else throw new Error("This case (relative ranges that do not overlap) is unsupported! ")}return i}function xi(a,n,r,o){const f=-n.start,i=ar(n,f,r),c=ar(a,f,r),g=rl(c,i,r);return ar(g,-f,r)}function rl(a,n,r){const o=a.start-n.start,f=n.end-o,i=_e(a,r);return{end:f,start:f-(i-1)}}function nl(a,n,r){const o=Rs(a,n);let f;return r?f=ae(Rs(o,o+r),n):f=Rs(a,n),{start:o,end:f}}function Rs(a,n){return Math.floor(Math.random()*(n-a))+a}function yt(a,n){if(a.start<0||a.end<0)return"";if(a.start>a.end){let r=n.slice(a.start,n.length);return typeof r=="string"?r+=n.slice(0,a.end+1):r=r.concat(n.slice(0,a.end+1)),r}else return n.slice(a.start,a.end+1)}function Ei(a,n,r){if(a<n){const i=a;a=n,n=i}const o=a-n,f=r-a+n;return Math.min(o,f)}function Ci(a,n,r){let o=[];return n.some(function(i,c){if(!i.some(function(l){return Yg(a,l)}))return o=c,r&&(a.yOffset=c),i.push(a),!0})||(o=n.length,r&&(a.yOffset=n.length)),o}function sl(a,n){const r=[];let o=0;const f=[];return a.forEach(function(i){const c=Ci(i,f,n);r.push(c),c>o&&(o=c),i.yOffset=c,f[c]||(f[c]=[]),f[c].push(i)}),{yOffsets:r,maxYOffset:o}}const al=ys(il);function il(a,n){if(a.start>-1){const r=a.end+1,o=a.start-1;return{start:ae(r,n,!1),end:ae(o,n,!1)}}else if(a>-1)return{start:ae(a,n,!1),end:ae(a-1,n,!1)}}function ol(a,n,r){const o=Ei(n.start,a,r),f=Ei(n.end,a,r);return o<=f}function Fi(a,n){let r=a;return a<n.start?r=n.end-(n.start-(a+1)):a>n.end&&(r=n.start+(a-n.end-1)),r}const fl=ys(cl);function cl(a,n){return q.assign(a,{start:ae(a.start,n),end:ae(a.end,n)})}function an(a,n){return Fi(a,{start:1,end:n})}function ut(a,n,r){return n-a-(r?0:1)}function gl(a,n,r){if(bs(a,n,r))throw new Error("subRange must be fully contained by containerRange! Otherwise this function does not make sense");const f={};return f.start=a.start-n.start,f.end=a.end-n.start,f.start<0&&(f.start+=r),f.end<0&&(f.end+=r),f}function Ti(a,n=0,r){const o=r?ll:q.identity;return q.assign({},a,{start:o(a.start-(n||0),r),end:o(a.end-(n||0),r)})}function ll(a,n){return(a%n+n)%n}function ul(a,n,r){return sn(Ss(a,n,r),r,a).map(i=>gl(i,{start:n.start,end:ae(n.start-1,r)},r))}const Os={".":".",a:"t",t:"a",u:"a",c:"g",g:"c",A:"T",T:"A",U:"A",C:"G",G:"C",r:"y",R:"Y",y:"r",Y:"R",d:"h",D:"H",h:"d",H:"D",k:"m",K:"M",m:"k",M:"K",v:"b",V:"B",b:"v",B:"V"};function wt(a){let n="";for(let r=a.length-1;r>=0;r--){let o=Os[a[r]];o||(o=a[r]),n+=o}return n}function Mi({seqsToAnnotateById:a,annotationsToCheckById:n,compareName:r,warnIfMoreThan:o}){const f={};q.forEach(n,c=>{const g=new RegExp(c.sequence,"gi");q.forEach(q.omitBy(a,l=>!l.sequence.length),({circular:l,sequence:p},I)=>{function h({seqToMatchAgainst:w,isReverse:B,seqLen:_}){let C,N;try{for(;C=g.exec(w);){const{index:F,0:L}=C;if(F>=_)return;const x=F+L.length;if(N&&F>N.start&&x<=N.end){g.lastIndex=C.index+1;continue}N={start:F,end:x};const U={start:F,end:ae(x-1,_)};f[I]||(f[I]=[]),f[I].push(ye(ie({},B?{start:ut(U.end,_),end:ut(U.start,_)}:U),{strand:B?-1:1,id:c.id})),g.lastIndex=C.index+1}}catch(F){console.error("error:",F)}}const v=p.length,m=wt(p);h({seqLen:v,seqToMatchAgainst:l?p+p:p}),h({seqLen:v,isReverse:!0,seqToMatchAgainst:l?m+m:m})})});const i={};return q.forEach(f,(c,g)=>{const l=a[g],p={};q.forEach(l.annotations,v=>{p[Pi(v,{compareName:r})]=v});const I={},h=c.filter(v=>p[Pi(v,{compareName:r})]?!1:(o&&(I[v.id]=(I[v.id]||0)+1),!0)).sort((v,m)=>v.start-m.start);h.length&&(i[g]=h),o&&q.forEach(I,(v,m)=>{v>o&&(i.__more_than_warnings=i.__more_than_warnings||{},i.__more_than_warnings[g]=i.__more_than_warnings[g]||[],i.__more_than_warnings[g].push(m))})}),i}function Pi({start:a,end:n,name:r,strand:o,forward:f},{compareName:i}){return`${a}-${n}-${o===-1||f===!1?"rev":"for"}-${i?r:""}`}function pl(a=""){let n="",r="",o="",f="",i,c,g;for(const l of a.replace("(","").replace(")","")){let p=function(h){g&&(r+=h,o=`${r}${o.length?"|":""}${o}`)};const I=rn[l.toUpperCase()];if(I&&I.length>1){let h;I.length===4?h=".":h=`[${I}]`,n+=h,p(h);continue}if(l==="#"){if(g)throw new Error("Error converting regex");const h=i?`[^${i}]*?`:".*?";n+=h,p(h);continue}if(l==="<"){if(g)throw new Error("Error converting to regex");if(c)throw new Error("Error converting to regex");let h="",v="",m=!0,w;const B=[];for(let C=0;C<n.length;C++){const N=n[C],F=n[C+1];N==="["?m=!1:(N==="]"||w)&&(w=!0,(rn[F]||F==="[")&&(m=!0,w=!1)),h+=N,m&&(B.push(h),h="")}let _="";B.reverse(),B.forEach(C=>{_=C+_,v=`${_}${v.length?"|":""}${v}`}),n=`(${v})?`,c=!0;continue}if(l===">"){if(g)throw new Error("Error converting regex");g=!0,f=n;continue}n+=l,p(l),i=l}return g&&(n=`${f}(${o})?`),n}function Il(a){let n="",r;for(r of a){const o=nn[r.toLowerCase()];o?n+=o:n+=r}return n}const Ui=[{name:"-10_signal",color:"#4ECDC4"},{name:"-35_signal",color:"#F7FFF7"},{name:"3'clip",color:"#FF6B6B"},{name:"3'UTR",color:"#FFE66D"},{name:"5'clip",color:"#3E517A"},{name:"5'UTR",color:"#BBBBBB"},{name:"D-loop",color:"#F13C73"},{name:"assembly_gap",color:"#DE9151"},{name:"centromere",color:"#F34213"},{name:"Het",color:"#BC5D2E"},{name:"mobile_element",color:"#6DB1BF"},{name:"ncRNA",color:"#FFEAEC"},{name:"proprotein",color:"#F39A9D"},{name:"regulatory",color:"#3F6C51"},{name:"SecStr",color:"#7B4B94"},{name:"Site",color:"#7D82B8"},{name:"telomere",color:"DE9151"},{name:"tmRNA",color:"#B7E3CC"},{name:"unsure",color:"#C4FFB2"},{name:"V_segment",color:"#D6F7A3"},{name:"allele",color:"#D86D6D"},{name:"attenuator",color:"#6B7F9C"},{name:"C_region",color:"#B5D89D"},{name:"CAAT_signal",color:"#E9CD98"},{name:"CDS",color:"#EF6500"},{name:"conserved",color:"#A3A5F0"},{name:"D_segment",color:"#C060F7"},{name:"default",color:"#CCCCCC"},{name:"enhancer",color:"#38F872"},{name:"exon",color:"#95F844"},{name:"gap",color:"#F7D43C"},{name:"GC_signal",color:"#861F1F"},{name:"gene",color:"#684E27"},{name:"iDNA",color:"#A59B41"},{name:"intron",color:"#52963E"},{name:"J_region",color:"#369283"},{name:"LTR",color:"#31748F"},{name:"m_rna",color:"#FFFF00"},{name:"mat_peptide",color:"#353E8F"},{name:"misc_binding",color:"#006FEF"},{name:"misc_difference",color:"#5A368A"},{name:"misc_feature",color:"#006FEF"},{name:"misc_marker",color:"#8DCEB1"},{name:"misc_part",color:"#006FEF"},{name:"misc_recomb",color:"#DD97B4"},{name:"misc_RNA",color:"#BD0101"},{name:"misc_signal",color:"#FF9A04"},{name:"misc_structure",color:"#B3FF00"},{name:"modified_base",color:"#00F7FF"},{name:"mRNA",color:"#FFD900"},{name:"N_region",color:"#AE00FF"},{name:"old_sequence",color:"#F0A7FF"},{name:"operator",color:"#63004D"},{name:"operon",color:"#000653"},{name:"oriT",color:"#580000"},{name:"plasmid",color:"#00635E"},{name:"polyA_signal",color:"#BBBBBB"},{name:"polyA_site",color:"#003328"},{name:"precursor_RNA",color:"#443200"},{name:"prim_transcript",color:"#665E4C"},{name:"primer_bind",color:"#53d969"},{name:"promoter",color:"#31B440"},{name:"protein_bind",color:"#2E2E2E"},{name:"protein_domain",color:"#4D4B4B"},{name:"protein",color:"#696969"},{name:"RBS",color:"#BDFFCB"},{name:"rep_origin",color:"#878787"},{name:"repeat_region",color:"#966363"},{name:"repeat_unit",color:"#A16D8D"},{name:"rRNA",color:"#9BF0FF"},{name:"s_mutation",color:"#70A2FF"},{name:"S_region",color:"#FF74A9"},{name:"satellite",color:"#164E64"},{name:"scRNA",color:"#A057FF"},{name:"sig_peptide",color:"#2FFF8D"},{name:"snoRNA",color:"#296B14"},{name:"snRNA",color:"#A16249"},{name:"source",color:"#0B17BD"},{name:"start",color:"#D6A336"},{name:"stem_loop",color:"#67069E"},{name:"stop",color:"#D44FC9"},{name:"STS",color:"#597FE7"},{name:"tag",color:"#E419DA"},{name:"TATA_signal",color:"#EB2B2B"},{name:"terminator",color:"#F51600"},{name:"transit_peptide",color:"#24D491"},{name:"transposon",color:"#B6E436"},{name:"tRNA",color:"#D1456F"},{name:"V_region",color:"#7B5EE7"},{name:"variation",color:"#2EE455"}],Bs=()=>{const a=q.keyBy(Ui.map(r=>ye(ie({},r),{isGenbankStandardType:!0})),"name");let n=typeof window!="undefined"&&q.get(window,"tg_featureTypeOverrides")||typeof global!="undefined"&&q.get(global,"tg_featureTypeOverrides");return n=n||[],n=n.map(r=>{const o=a[r.name];return ie(ie(ie({},o),r),o?{isOverridden:!0}:{isCustomType:!0})}),n=q.keyBy(n,"name"),ie(ie({},a),n)},As=({includeHidden:a}={})=>{const n={};return q.filter(Bs(),r=>a?!0:!r.isHidden).forEach(r=>{n[r.name]=r.color}),n},on=({includeHidden:a}={})=>q.filter(Bs(),n=>a?!0:!n.isHidden).map(n=>n.name);var _s=Math.floor(Math.random()*16777215),ki=he.index=parseInt(Math.random()*16777215,10),hl=(typeof process=="undefined"||typeof process.pid!="number"?Math.floor(Math.random()*1e5):process.pid)%65535,dl=function(a){return!!(a!=null&&a.constructor&&typeof a.constructor.isBuffer=="function"&&a.constructor.isBuffer(a))};function he(a){if(!(this instanceof he))return new he(a);if(a&&(a instanceof he||a._bsontype==="ObjectID"))return a;var n;if(dl(a)||Array.isArray(a)&&a.length===12)n=Array.prototype.slice.call(a);else if(typeof a=="string"){if(a.length!==12&&!he.isValid(a))throw new Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");n=Hi(a)}else/number|undefined/.test(typeof a)&&(n=Hi(Di(a)));Object.defineProperty(this,"id",{enumerable:!0,get:function(){return String.fromCharCode.apply(this,n)}}),Object.defineProperty(this,"str",{get:function(){return n.map(ir.bind(this,2)).join("")}})}var vl=he;he.generate=Di,he.default=he,he.createFromTime=function(a){return a=parseInt(a,10)%4294967295,new he(ir(8,a)+"0000000000000000")},he.createFromHexString=function(a){if(!he.isValid(a))throw new Error("Invalid ObjectID hex string");return new he(a)},he.isValid=function(a){return!a||typeof a!="string"&&(typeof a!="object"||Array.isArray(a)||typeof a.toString!="function")?!1:/^[0-9A-F]{24}$/i.test(a.toString())},he.setMachineID=function(a){var n;if(typeof a=="string"){if(n=parseInt(a,16),isNaN(n)){a=("000000"+a).substr(-7,6),n="";for(var r=0;r<6;r++)n+=a.charCodeAt(r)}}else/number|undefined/.test(typeof a)&&(n=a|0);_s=n&16777215},he.getMachineID=function(){return _s},he.prototype={_bsontype:"ObjectID",constructor:he,toHexString:function(){return this.str},equals:function(a){return!!a&&this.str===a.toString()},getTimestamp:function(){return new Date(parseInt(this.str.substr(0,8),16)*1e3)}};function ml(){return ki=(ki+1)%16777215}function Di(a){return typeof a!="number"&&(a=Date.now()/1e3),a=parseInt(a,10)%4294967295,ir(8,a)+ir(6,_s)+ir(4,hl)+ir(6,ml())}function ir(a,n){return n=n.toString(16),n.length===a?n:"00000000".substring(n.length,a)+n}function Hi(a){var n=0,r=[];if(a.length===24)for(;n<24;r.push(parseInt(a[n]+a[n+1],16)),n+=2);else if(a.length===12)for(;n<12;r.push(a.charCodeAt(n)),n++);return r}var Sl=Symbol&&Symbol.for("nodejs.util.inspect.custom")||"inspect";he.prototype[Sl]=function(){return"ObjectID("+this+")"},he.prototype.toJSON=he.prototype.toHexString,he.prototype.toString=he.prototype.toHexString;const Vt=Te(vl);function fn(a,n,r){if(r.forwardRegex.length===0||r.reverseRegex.length===0){let l=[];return l.error="Cannot cut sequence. Enzyme restriction site must be at least 1 bp long.",l}let o=new RegExp(r.forwardRegex,"ig"),f=a,i=Ni(o,r,f,n),c=[];if(r.forwardRegex!==r.reverseRegex){let l=wt(f);c=Ni(o,r,l,n),c=c.map(p=>g(p,f.length))}return i.concat(c);function g(l,p){return l.start=ut(l.start,p,!1),l.end=ut(l.end,p,!1),l.topSnipPosition=ut(l.topSnipPosition,p,!0),l.bottomSnipPosition=ut(l.bottomSnipPosition,p,!0),l.cutsTwice&&(l.upstreamTopSnip=ut(l.upstreamTopSnip,p,!0),l.upstreamBottomSnip=ut(l.upstreamBottomSnip,p,!0)),l.recognitionSiteRange.start=ut(l.recognitionSiteRange.start,p,!1),l.recognitionSiteRange.end=ut(l.recognitionSiteRange.end,p,!1),q.assign({},l,{start:l.end,end:l.start,overhangBps:wt(l.overhangBps),topSnipPosition:l.bottomSnipPosition,bottomSnipPosition:l.topSnipPosition,upstreamTopSnip:l.upstreamBottomSnip,upstreamBottomSnip:l.upstreamTopSnip,upstreamTopBeforeBottom:!!l.upstreamTopBeforeBottom,topSnipBeforeBottom:!!l.topSnipBeforeBottom,recognitionSiteRange:{start:l.recognitionSiteRange.end,end:l.recognitionSiteRange.start},forward:!1})}}function Ni(a,n,r,o){let f=[],i,c=n.site.length,g=r,l=r.length;o&&(r+=r);let p=r.length,I=r.search(a),h=0,v=r;for(;I!==-1;){let m={},w,B,_=null,C=null,N=!1,F=null,L=null,x=!1,U=!1;if(m.start=I+h,w=m.start,m.end=I+c-1+h,B=m.end,n.cutType===1&&(_=m.end-n.usForward,C=m.end-n.usReverse,_>=0&&C>=0?(U=!0,_<C?(w>_&&(w=_+1),N=!0):w>C&&(w=C+1),_=ae(_,l,!0),C=ae(C,l,!0)):(_=null,C=null)),F=m.start+n.topSnipOffset,L=m.start+n.bottomSnipOffset,L<=p&&F<=p?(U=!0,F>L?F>m.end&&(B=F-1):(L>m.end&&(B=L-1),x=!0),F=ae(F,l,!0),L=ae(L,l,!0)):(F=null,L=null),U&&w>=0&&B>=0&&w<l&&B<p){w=ae(w,l,!1),B=ae(B,l,!1),m.start=ae(m.start,l,!1),m.end=ae(m.end,l,!1);let G={start:-1,end:-1};F!==L&&(G=x?{start:F,end:ae(L-1,l)}:{start:L,end:ae(F-1,l)});let $=yt(G,g);i={id:Vt().str,start:w,end:B,topSnipPosition:F,bottomSnipPosition:L,topSnipBeforeBottom:x,overhangBps:$,overhangSize:$.length,upstreamTopBeforeBottom:N,upstreamTopSnip:_,annotationTypePlural:"cutsites",upstreamBottomSnip:C,recognitionSiteRange:m,forward:!0,name:n.name,restrictionEnzyme:n},f.push(i)}h=h+I+1,v=r.substring(h,r.length),I=v.search(a)}return f}function Li(a,n,r){const o={};for(let f=0;f<r.length;f++){const i=r[f],c=fn(a,n,i);c.length&&(o[i.name]=c)}return o}function Gi({cutsites:a,sequenceLength:n,circular:r,includeOverAndUnderHangs:o,computePartialDigest:f,computeDigestDisabled:i,computePartialDigestDisabled:c,selectionLayerUpdate:g,updateSelectedFragment:l}){const p=[],I=[],h=[],v=a.sort((m,w)=>m.topSnipPosition-w.topSnipPosition);return!r&&a.length&&v.push({id:"seqTerm_"+Vt().str,start:0,end:0,overhangBps:"",topSnipPosition:0,bottomSnipPosition:0,upstreamTopSnip:0,upstreamBottomSnip:0,upstreamTopBeforeBottom:!1,topSnipBeforeBottom:!1,recognitionSiteRange:{start:0,end:0},forward:!0,name:"Sequence_Terminus",restrictionEnzyme:{name:"Sequence_Terminus"}}),v.forEach((m,w)=>{f&&!c&&v.forEach((B,_)=>{_===w+1||_===0||h.push([m,v[_]])}),i||h.push([m,v[w+1]?v[w+1]:v[0]])}),h.forEach(m=>{let[w,B]=m,_,C,N;_=ae(w.topSnipPosition,n),C=ae(B.topSnipPosition-1,n),N=_e({start:_,end:C},n);let F;if(o){const G=N;_=ae(w.topSnipBeforeBottom?w.topSnipPosition:w.bottomSnipPosition,n),C=ae(B.topSnipBeforeBottom?B.bottomSnipPosition-1:B.topSnipPosition-1,n),N=_e({start:_,end:C},n),G>N&&(F=!0,N+=n)}let L;w.name==="Sequence_Terminus"?(w=q.cloneDeep(w),L=!0,w.name="Linear_Sequence_Start",w.restrictionEnzyme.name="Linear_Sequence_Start"):B.name==="Sequence_Terminus"&&(B=q.cloneDeep(B),L=!0,B.name="Linear_Sequence_End",B.restrictionEnzyme.name="Linear_Sequence_End");const x=_+"-"+C+"-"+N+"-",U=`${w.restrictionEnzyme.name} -- ${B.restrictionEnzyme.name} ${N} bps`;_e({start:_,end:C},n),p.push({isFormedFromLinearEnd:L,madeFromOneCutsite:w===B,start:_,end:C,size:N,overlapsSelf:F,id:x,name:U,cut1:w,cut2:B,onFragmentSelect:g&&l?()=>{g({start:_,end:C,name:U}),l(x)}:void 0})}),p.filter(m=>m.size?!0:(I.push(m),!1)),{computePartialDigestDisabled:c,computeDigestDisabled:i,fragments:p,overlappingEnzymes:I}}function bl({sequence:a,circular:n,enzymes:r,includeOverAndUnderHangs:o}){const f=Li(a,n,r);return Gi({includeOverAndUnderHangs:o,cutsites:q.flatMap(f),sequenceLength:a.length,circular:n})}var Ki={exports:{}};(function(a){var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},r=-1,o=1,f=0;n.Diff=function(i,c){return[i,c]},n.prototype.diff_main=function(i,c,g,l){typeof l=="undefined"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+this.Diff_Timeout*1e3);var p=l;if(i==null||c==null)throw new Error("Null input. (diff_main)");if(i==c)return i?[new n.Diff(f,i)]:[];typeof g=="undefined"&&(g=!0);var I=g,h=this.diff_commonPrefix(i,c),v=i.substring(0,h);i=i.substring(h),c=c.substring(h),h=this.diff_commonSuffix(i,c);var m=i.substring(i.length-h);i=i.substring(0,i.length-h),c=c.substring(0,c.length-h);var w=this.diff_compute_(i,c,I,p);return v&&w.unshift(new n.Diff(f,v)),m&&w.push(new n.Diff(f,m)),this.diff_cleanupMerge(w),w},n.prototype.diff_compute_=function(i,c,g,l){var p;if(!i)return[new n.Diff(o,c)];if(!c)return[new n.Diff(r,i)];var I=i.length>c.length?i:c,h=i.length>c.length?c:i,v=I.indexOf(h);if(v!=-1)return p=[new n.Diff(o,I.substring(0,v)),new n.Diff(f,h),new n.Diff(o,I.substring(v+h.length))],i.length>c.length&&(p[0][0]=p[2][0]=r),p;if(h.length==1)return[new n.Diff(r,i),new n.Diff(o,c)];var m=this.diff_halfMatch_(i,c);if(m){var w=m[0],B=m[1],_=m[2],C=m[3],N=m[4],F=this.diff_main(w,_,g,l),L=this.diff_main(B,C,g,l);return F.concat([new n.Diff(f,N)],L)}return g&&i.length>100&&c.length>100?this.diff_lineMode_(i,c,l):this.diff_bisect_(i,c,l)},n.prototype.diff_lineMode_=function(i,c,g){var l=this.diff_linesToChars_(i,c);i=l.chars1,c=l.chars2;var p=l.lineArray,I=this.diff_main(i,c,!1,g);this.diff_charsToLines_(I,p),this.diff_cleanupSemantic(I),I.push(new n.Diff(f,""));for(var h=0,v=0,m=0,w="",B="";h<I.length;){switch(I[h][0]){case o:m++,B+=I[h][1];break;case r:v++,w+=I[h][1];break;case f:if(v>=1&&m>=1){I.splice(h-v-m,v+m),h=h-v-m;for(var _=this.diff_main(w,B,!1,g),C=_.length-1;C>=0;C--)I.splice(h,0,_[C]);h=h+_.length}m=0,v=0,w="",B="";break}h++}return I.pop(),I},n.prototype.diff_bisect_=function(i,c,g){for(var l=i.length,p=c.length,I=Math.ceil((l+p)/2),h=I,v=2*I,m=new Array(v),w=new Array(v),B=0;B<v;B++)m[B]=-1,w[B]=-1;m[h+1]=0,w[h+1]=0;for(var _=l-p,C=_%2!=0,N=0,F=0,L=0,x=0,U=0;U<I&&!(new Date().getTime()>g);U++){for(var G=-U+N;G<=U-F;G+=2){var $=h+G,J;G==-U||G!=U&&m[$-1]<m[$+1]?J=m[$+1]:J=m[$-1]+1;for(var ve=J-G;J<l&&ve<p&&i.charAt(J)==c.charAt(ve);)J++,ve++;if(m[$]=J,J>l)F+=2;else if(ve>p)N+=2;else if(C){var oe=h+_-G;if(oe>=0&&oe<v&&w[oe]!=-1){var ce=l-w[oe];if(J>=ce)return this.diff_bisectSplit_(i,c,J,ve,g)}}}for(var xe=-U+L;xe<=U-x;xe+=2){var oe=h+xe,ce;xe==-U||xe!=U&&w[oe-1]<w[oe+1]?ce=w[oe+1]:ce=w[oe-1]+1;for(var Ze=ce-xe;ce<l&&Ze<p&&i.charAt(l-ce-1)==c.charAt(p-Ze-1);)ce++,Ze++;if(w[oe]=ce,ce>l)x+=2;else if(Ze>p)L+=2;else if(!C){var $=h+_-xe;if($>=0&&$<v&&m[$]!=-1){var J=m[$],ve=h+J-$;if(ce=l-ce,J>=ce)return this.diff_bisectSplit_(i,c,J,ve,g)}}}}return[new n.Diff(r,i),new n.Diff(o,c)]},n.prototype.diff_bisectSplit_=function(i,c,g,l,p){var I=i.substring(0,g),h=c.substring(0,l),v=i.substring(g),m=c.substring(l),w=this.diff_main(I,h,!1,p),B=this.diff_main(v,m,!1,p);return w.concat(B)},n.prototype.diff_linesToChars_=function(i,c){var g=[],l={};g[0]="";function p(m){for(var w="",B=0,_=-1,C=g.length;_<m.length-1;){_=m.indexOf(`
|
|
28
|
+
`,B),_==-1&&(_=m.length-1);var N=m.substring(B,_+1);(l.hasOwnProperty?l.hasOwnProperty(N):l[N]!==void 0)?w+=String.fromCharCode(l[N]):(C==I&&(N=m.substring(B),_=m.length),w+=String.fromCharCode(C),l[N]=C,g[C++]=N),B=_+1}return w}var I=4e4,h=p(i);I=65535;var v=p(c);return{chars1:h,chars2:v,lineArray:g}},n.prototype.diff_charsToLines_=function(i,c){for(var g=0;g<i.length;g++){for(var l=i[g][1],p=[],I=0;I<l.length;I++)p[I]=c[l.charCodeAt(I)];i[g][1]=p.join("")}},n.prototype.diff_commonPrefix=function(i,c){if(!i||!c||i.charAt(0)!=c.charAt(0))return 0;for(var g=0,l=Math.min(i.length,c.length),p=l,I=0;g<p;)i.substring(I,p)==c.substring(I,p)?(g=p,I=g):l=p,p=Math.floor((l-g)/2+g);return p},n.prototype.diff_commonSuffix=function(i,c){if(!i||!c||i.charAt(i.length-1)!=c.charAt(c.length-1))return 0;for(var g=0,l=Math.min(i.length,c.length),p=l,I=0;g<p;)i.substring(i.length-p,i.length-I)==c.substring(c.length-p,c.length-I)?(g=p,I=g):l=p,p=Math.floor((l-g)/2+g);return p},n.prototype.diff_commonOverlap_=function(i,c){var g=i.length,l=c.length;if(g==0||l==0)return 0;g>l?i=i.substring(g-l):g<l&&(c=c.substring(0,g));var p=Math.min(g,l);if(i==c)return p;for(var I=0,h=1;;){var v=i.substring(p-h),m=c.indexOf(v);if(m==-1)return I;h+=m,(m==0||i.substring(p-h)==c.substring(0,h))&&(I=h,h++)}},n.prototype.diff_halfMatch_=function(i,c){if(this.Diff_Timeout<=0)return null;var g=i.length>c.length?i:c,l=i.length>c.length?c:i;if(g.length<4||l.length*2<g.length)return null;var p=this;function I(F,L,x){for(var U=F.substring(x,x+Math.floor(F.length/4)),G=-1,$="",J,ve,oe,ce;(G=L.indexOf(U,G+1))!=-1;){var xe=p.diff_commonPrefix(F.substring(x),L.substring(G)),Ze=p.diff_commonSuffix(F.substring(0,x),L.substring(0,G));$.length<Ze+xe&&($=L.substring(G-Ze,G)+L.substring(G,G+xe),J=F.substring(0,x-Ze),ve=F.substring(x+xe),oe=L.substring(0,G-Ze),ce=L.substring(G+xe))}return $.length*2>=F.length?[J,ve,oe,ce,$]:null}var h=I(g,l,Math.ceil(g.length/4)),v=I(g,l,Math.ceil(g.length/2)),m;if(!h&&!v)return null;v?h?m=h[4].length>v[4].length?h:v:m=v:m=h;var w,B,_,C;i.length>c.length?(w=m[0],B=m[1],_=m[2],C=m[3]):(_=m[0],C=m[1],w=m[2],B=m[3]);var N=m[4];return[w,B,_,C,N]},n.prototype.diff_cleanupSemantic=function(i){for(var c=!1,g=[],l=0,p=null,I=0,h=0,v=0,m=0,w=0;I<i.length;)i[I][0]==f?(g[l++]=I,h=m,v=w,m=0,w=0,p=i[I][1]):(i[I][0]==o?m+=i[I][1].length:w+=i[I][1].length,p&&p.length<=Math.max(h,v)&&p.length<=Math.max(m,w)&&(i.splice(g[l-1],0,new n.Diff(r,p)),i[g[l-1]+1][0]=o,l--,l--,I=l>0?g[l-1]:-1,h=0,v=0,m=0,w=0,p=null,c=!0)),I++;for(c&&this.diff_cleanupMerge(i),this.diff_cleanupSemanticLossless(i),I=1;I<i.length;){if(i[I-1][0]==r&&i[I][0]==o){var B=i[I-1][1],_=i[I][1],C=this.diff_commonOverlap_(B,_),N=this.diff_commonOverlap_(_,B);C>=N?(C>=B.length/2||C>=_.length/2)&&(i.splice(I,0,new n.Diff(f,_.substring(0,C))),i[I-1][1]=B.substring(0,B.length-C),i[I+1][1]=_.substring(C),I++):(N>=B.length/2||N>=_.length/2)&&(i.splice(I,0,new n.Diff(f,B.substring(0,N))),i[I-1][0]=o,i[I-1][1]=_.substring(0,_.length-N),i[I+1][0]=r,i[I+1][1]=B.substring(N),I++),I++}I++}},n.prototype.diff_cleanupSemanticLossless=function(i){function c(N,F){if(!N||!F)return 6;var L=N.charAt(N.length-1),x=F.charAt(0),U=L.match(n.nonAlphaNumericRegex_),G=x.match(n.nonAlphaNumericRegex_),$=U&&L.match(n.whitespaceRegex_),J=G&&x.match(n.whitespaceRegex_),ve=$&&L.match(n.linebreakRegex_),oe=J&&x.match(n.linebreakRegex_),ce=ve&&N.match(n.blanklineEndRegex_),xe=oe&&F.match(n.blanklineStartRegex_);return ce||xe?5:ve||oe?4:U&&!$&&J?3:$||J?2:U||G?1:0}for(var g=1;g<i.length-1;){if(i[g-1][0]==f&&i[g+1][0]==f){var l=i[g-1][1],p=i[g][1],I=i[g+1][1],h=this.diff_commonSuffix(l,p);if(h){var v=p.substring(p.length-h);l=l.substring(0,l.length-h),p=v+p.substring(0,p.length-h),I=v+I}for(var m=l,w=p,B=I,_=c(l,p)+c(p,I);p.charAt(0)===I.charAt(0);){l+=p.charAt(0),p=p.substring(1)+I.charAt(0),I=I.substring(1);var C=c(l,p)+c(p,I);C>=_&&(_=C,m=l,w=p,B=I)}i[g-1][1]!=m&&(m?i[g-1][1]=m:(i.splice(g-1,1),g--),i[g][1]=w,B?i[g+1][1]=B:(i.splice(g+1,1),g--))}g++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(i){for(var c=!1,g=[],l=0,p=null,I=0,h=!1,v=!1,m=!1,w=!1;I<i.length;)i[I][0]==f?(i[I][1].length<this.Diff_EditCost&&(m||w)?(g[l++]=I,h=m,v=w,p=i[I][1]):(l=0,p=null),m=w=!1):(i[I][0]==r?w=!0:m=!0,p&&(h&&v&&m&&w||p.length<this.Diff_EditCost/2&&h+v+m+w==3)&&(i.splice(g[l-1],0,new n.Diff(r,p)),i[g[l-1]+1][0]=o,l--,p=null,h&&v?(m=w=!0,l=0):(l--,I=l>0?g[l-1]:-1,m=w=!1),c=!0)),I++;c&&this.diff_cleanupMerge(i)},n.prototype.diff_cleanupMerge=function(i){i.push(new n.Diff(f,""));for(var c=0,g=0,l=0,p="",I="",h;c<i.length;)switch(i[c][0]){case o:l++,I+=i[c][1],c++;break;case r:g++,p+=i[c][1],c++;break;case f:g+l>1?(g!==0&&l!==0&&(h=this.diff_commonPrefix(I,p),h!==0&&(c-g-l>0&&i[c-g-l-1][0]==f?i[c-g-l-1][1]+=I.substring(0,h):(i.splice(0,0,new n.Diff(f,I.substring(0,h))),c++),I=I.substring(h),p=p.substring(h)),h=this.diff_commonSuffix(I,p),h!==0&&(i[c][1]=I.substring(I.length-h)+i[c][1],I=I.substring(0,I.length-h),p=p.substring(0,p.length-h))),c-=g+l,i.splice(c,g+l),p.length&&(i.splice(c,0,new n.Diff(r,p)),c++),I.length&&(i.splice(c,0,new n.Diff(o,I)),c++),c++):c!==0&&i[c-1][0]==f?(i[c-1][1]+=i[c][1],i.splice(c,1)):c++,l=0,g=0,p="",I="";break}i[i.length-1][1]===""&&i.pop();var v=!1;for(c=1;c<i.length-1;)i[c-1][0]==f&&i[c+1][0]==f&&(i[c][1].substring(i[c][1].length-i[c-1][1].length)==i[c-1][1]?(i[c][1]=i[c-1][1]+i[c][1].substring(0,i[c][1].length-i[c-1][1].length),i[c+1][1]=i[c-1][1]+i[c+1][1],i.splice(c-1,1),v=!0):i[c][1].substring(0,i[c+1][1].length)==i[c+1][1]&&(i[c-1][1]+=i[c+1][1],i[c][1]=i[c][1].substring(i[c+1][1].length)+i[c+1][1],i.splice(c+1,1),v=!0)),c++;v&&this.diff_cleanupMerge(i)},n.prototype.diff_xIndex=function(i,c){var g=0,l=0,p=0,I=0,h;for(h=0;h<i.length&&(i[h][0]!==o&&(g+=i[h][1].length),i[h][0]!==r&&(l+=i[h][1].length),!(g>c));h++)p=g,I=l;return i.length!=h&&i[h][0]===r?I:I+(c-p)},n.prototype.diff_prettyHtml=function(i){for(var c=[],g=/&/g,l=/</g,p=/>/g,I=/\n/g,h=0;h<i.length;h++){var v=i[h][0],m=i[h][1],w=m.replace(g,"&").replace(l,"<").replace(p,">").replace(I,"¶<br>");switch(v){case o:c[h]='<ins style="background:#e6ffe6;">'+w+"</ins>";break;case r:c[h]='<del style="background:#ffe6e6;">'+w+"</del>";break;case f:c[h]="<span>"+w+"</span>";break}}return c.join("")},n.prototype.diff_text1=function(i){for(var c=[],g=0;g<i.length;g++)i[g][0]!==o&&(c[g]=i[g][1]);return c.join("")},n.prototype.diff_text2=function(i){for(var c=[],g=0;g<i.length;g++)i[g][0]!==r&&(c[g]=i[g][1]);return c.join("")},n.prototype.diff_levenshtein=function(i){for(var c=0,g=0,l=0,p=0;p<i.length;p++){var I=i[p][0],h=i[p][1];switch(I){case o:g+=h.length;break;case r:l+=h.length;break;case f:c+=Math.max(g,l),g=0,l=0;break}}return c+=Math.max(g,l),c},n.prototype.diff_toDelta=function(i){for(var c=[],g=0;g<i.length;g++)switch(i[g][0]){case o:c[g]="+"+encodeURI(i[g][1]);break;case r:c[g]="-"+i[g][1].length;break;case f:c[g]="="+i[g][1].length;break}return c.join(" ").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(i,c){for(var g=[],l=0,p=0,I=c.split(/\t/g),h=0;h<I.length;h++){var v=I[h].substring(1);switch(I[h].charAt(0)){case"+":try{g[l++]=new n.Diff(o,decodeURI(v))}catch(B){throw new Error("Illegal escape in diff_fromDelta: "+v)}break;case"-":case"=":var m=parseInt(v,10);if(isNaN(m)||m<0)throw new Error("Invalid number in diff_fromDelta: "+v);var w=i.substring(p,p+=m);I[h].charAt(0)=="="?g[l++]=new n.Diff(f,w):g[l++]=new n.Diff(r,w);break;default:if(I[h])throw new Error("Invalid diff operation in diff_fromDelta: "+I[h])}}if(p!=i.length)throw new Error("Delta length ("+p+") does not equal source text length ("+i.length+").");return g},n.prototype.match_main=function(i,c,g){if(i==null||c==null||g==null)throw new Error("Null input. (match_main)");return g=Math.max(0,Math.min(g,i.length)),i==c?0:i.length?i.substring(g,g+c.length)==c?g:this.match_bitap_(i,c,g):-1},n.prototype.match_bitap_=function(i,c,g){if(c.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var l=this.match_alphabet_(c),p=this;function I(J,ve){var oe=J/c.length,ce=Math.abs(g-ve);return p.Match_Distance?oe+ce/p.Match_Distance:ce?1:oe}var h=this.Match_Threshold,v=i.indexOf(c,g);v!=-1&&(h=Math.min(I(0,v),h),v=i.lastIndexOf(c,g+c.length),v!=-1&&(h=Math.min(I(0,v),h)));var m=1<<c.length-1;v=-1;for(var w,B,_=c.length+i.length,C,N=0;N<c.length;N++){for(w=0,B=_;w<B;)I(N,g+B)<=h?w=B:_=B,B=Math.floor((_-w)/2+w);_=B;var F=Math.max(1,g-B+1),L=Math.min(g+B,i.length)+c.length,x=Array(L+2);x[L+1]=(1<<N)-1;for(var U=L;U>=F;U--){var G=l[i.charAt(U-1)];if(N===0?x[U]=(x[U+1]<<1|1)&G:x[U]=(x[U+1]<<1|1)&G|((C[U+1]|C[U])<<1|1)|C[U+1],x[U]&m){var $=I(N,U-1);if($<=h)if(h=$,v=U-1,v>g)F=Math.max(1,2*g-v);else break}}if(I(N+1,g)>h)break;C=x}return v},n.prototype.match_alphabet_=function(i){for(var c={},g=0;g<i.length;g++)c[i.charAt(g)]=0;for(var g=0;g<i.length;g++)c[i.charAt(g)]|=1<<i.length-g-1;return c},n.prototype.patch_addContext_=function(i,c){if(c.length!=0){if(i.start2===null)throw Error("patch not initialized");for(var g=c.substring(i.start2,i.start2+i.length1),l=0;c.indexOf(g)!=c.lastIndexOf(g)&&g.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)l+=this.Patch_Margin,g=c.substring(i.start2-l,i.start2+i.length1+l);l+=this.Patch_Margin;var p=c.substring(i.start2-l,i.start2);p&&i.diffs.unshift(new n.Diff(f,p));var I=c.substring(i.start2+i.length1,i.start2+i.length1+l);I&&i.diffs.push(new n.Diff(f,I)),i.start1-=p.length,i.start2-=p.length,i.length1+=p.length+I.length,i.length2+=p.length+I.length}},n.prototype.patch_make=function(i,c,g){var l,p;if(typeof i=="string"&&typeof c=="string"&&typeof g=="undefined")l=i,p=this.diff_main(l,c,!0),p.length>2&&(this.diff_cleanupSemantic(p),this.diff_cleanupEfficiency(p));else if(i&&typeof i=="object"&&typeof c=="undefined"&&typeof g=="undefined")p=i,l=this.diff_text1(p);else if(typeof i=="string"&&c&&typeof c=="object"&&typeof g=="undefined")l=i,p=c;else if(typeof i=="string"&&typeof c=="string"&&g&&typeof g=="object")l=i,p=g;else throw new Error("Unknown call format to patch_make.");if(p.length===0)return[];for(var I=[],h=new n.patch_obj,v=0,m=0,w=0,B=l,_=l,C=0;C<p.length;C++){var N=p[C][0],F=p[C][1];switch(!v&&N!==f&&(h.start1=m,h.start2=w),N){case o:h.diffs[v++]=p[C],h.length2+=F.length,_=_.substring(0,w)+F+_.substring(w);break;case r:h.length1+=F.length,h.diffs[v++]=p[C],_=_.substring(0,w)+_.substring(w+F.length);break;case f:F.length<=2*this.Patch_Margin&&v&&p.length!=C+1?(h.diffs[v++]=p[C],h.length1+=F.length,h.length2+=F.length):F.length>=2*this.Patch_Margin&&v&&(this.patch_addContext_(h,B),I.push(h),h=new n.patch_obj,v=0,B=_,m=w);break}N!==o&&(m+=F.length),N!==r&&(w+=F.length)}return v&&(this.patch_addContext_(h,B),I.push(h)),I},n.prototype.patch_deepCopy=function(i){for(var c=[],g=0;g<i.length;g++){var l=i[g],p=new n.patch_obj;p.diffs=[];for(var I=0;I<l.diffs.length;I++)p.diffs[I]=new n.Diff(l.diffs[I][0],l.diffs[I][1]);p.start1=l.start1,p.start2=l.start2,p.length1=l.length1,p.length2=l.length2,c[g]=p}return c},n.prototype.patch_apply=function(i,c){if(i.length==0)return[c,[]];i=this.patch_deepCopy(i);var g=this.patch_addPadding(i);c=g+c+g,this.patch_splitMax(i);for(var l=0,p=[],I=0;I<i.length;I++){var h=i[I].start2+l,v=this.diff_text1(i[I].diffs),m,w=-1;if(v.length>this.Match_MaxBits?(m=this.match_main(c,v.substring(0,this.Match_MaxBits),h),m!=-1&&(w=this.match_main(c,v.substring(v.length-this.Match_MaxBits),h+v.length-this.Match_MaxBits),(w==-1||m>=w)&&(m=-1))):m=this.match_main(c,v,h),m==-1)p[I]=!1,l-=i[I].length2-i[I].length1;else{p[I]=!0,l=m-h;var B;if(w==-1?B=c.substring(m,m+v.length):B=c.substring(m,w+this.Match_MaxBits),v==B)c=c.substring(0,m)+this.diff_text2(i[I].diffs)+c.substring(m+v.length);else{var _=this.diff_main(v,B,!1);if(v.length>this.Match_MaxBits&&this.diff_levenshtein(_)/v.length>this.Patch_DeleteThreshold)p[I]=!1;else{this.diff_cleanupSemanticLossless(_);for(var C=0,N,F=0;F<i[I].diffs.length;F++){var L=i[I].diffs[F];L[0]!==f&&(N=this.diff_xIndex(_,C)),L[0]===o?c=c.substring(0,m+N)+L[1]+c.substring(m+N):L[0]===r&&(c=c.substring(0,m+N)+c.substring(m+this.diff_xIndex(_,C+L[1].length))),L[0]!==r&&(C+=L[1].length)}}}}}return c=c.substring(g.length,c.length-g.length),[c,p]},n.prototype.patch_addPadding=function(i){for(var c=this.Patch_Margin,g="",l=1;l<=c;l++)g+=String.fromCharCode(l);for(var l=0;l<i.length;l++)i[l].start1+=c,i[l].start2+=c;var p=i[0],I=p.diffs;if(I.length==0||I[0][0]!=f)I.unshift(new n.Diff(f,g)),p.start1-=c,p.start2-=c,p.length1+=c,p.length2+=c;else if(c>I[0][1].length){var h=c-I[0][1].length;I[0][1]=g.substring(I[0][1].length)+I[0][1],p.start1-=h,p.start2-=h,p.length1+=h,p.length2+=h}if(p=i[i.length-1],I=p.diffs,I.length==0||I[I.length-1][0]!=f)I.push(new n.Diff(f,g)),p.length1+=c,p.length2+=c;else if(c>I[I.length-1][1].length){var h=c-I[I.length-1][1].length;I[I.length-1][1]+=g.substring(0,h),p.length1+=h,p.length2+=h}return g},n.prototype.patch_splitMax=function(i){for(var c=this.Match_MaxBits,g=0;g<i.length;g++)if(!(i[g].length1<=c)){var l=i[g];i.splice(g--,1);for(var p=l.start1,I=l.start2,h="";l.diffs.length!==0;){var v=new n.patch_obj,m=!0;for(v.start1=p-h.length,v.start2=I-h.length,h!==""&&(v.length1=v.length2=h.length,v.diffs.push(new n.Diff(f,h)));l.diffs.length!==0&&v.length1<c-this.Patch_Margin;){var w=l.diffs[0][0],B=l.diffs[0][1];w===o?(v.length2+=B.length,I+=B.length,v.diffs.push(l.diffs.shift()),m=!1):w===r&&v.diffs.length==1&&v.diffs[0][0]==f&&B.length>2*c?(v.length1+=B.length,p+=B.length,m=!1,v.diffs.push(new n.Diff(w,B)),l.diffs.shift()):(B=B.substring(0,c-v.length1-this.Patch_Margin),v.length1+=B.length,p+=B.length,w===f?(v.length2+=B.length,I+=B.length):m=!1,v.diffs.push(new n.Diff(w,B)),B==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(B.length))}h=this.diff_text2(v.diffs),h=h.substring(h.length-this.Patch_Margin);var _=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);_!==""&&(v.length1+=_.length,v.length2+=_.length,v.diffs.length!==0&&v.diffs[v.diffs.length-1][0]===f?v.diffs[v.diffs.length-1][1]+=_:v.diffs.push(new n.Diff(f,_))),m||i.splice(++g,0,v)}}},n.prototype.patch_toText=function(i){for(var c=[],g=0;g<i.length;g++)c[g]=i[g];return c.join("")},n.prototype.patch_fromText=function(i){var c=[];if(!i)return c;for(var g=i.split(`
|
|
29
|
+
`),l=0,p=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;l<g.length;){var I=g[l].match(p);if(!I)throw new Error("Invalid patch string: "+g[l]);var h=new n.patch_obj;for(c.push(h),h.start1=parseInt(I[1],10),I[2]===""?(h.start1--,h.length1=1):I[2]=="0"?h.length1=0:(h.start1--,h.length1=parseInt(I[2],10)),h.start2=parseInt(I[3],10),I[4]===""?(h.start2--,h.length2=1):I[4]=="0"?h.length2=0:(h.start2--,h.length2=parseInt(I[4],10)),l++;l<g.length;){var v=g[l].charAt(0);try{var m=decodeURI(g[l].substring(1))}catch(w){throw new Error("Illegal escape in patch_fromText: "+m)}if(v=="-")h.diffs.push(new n.Diff(r,m));else if(v=="+")h.diffs.push(new n.Diff(o,m));else if(v==" ")h.diffs.push(new n.Diff(f,m));else{if(v=="@")break;if(v!=="")throw new Error('Invalid patch mode "'+v+'" in: '+m)}l++}}return c},n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},n.patch_obj.prototype.toString=function(){var i,c;this.length1===0?i=this.start1+",0":this.length1==1?i=this.start1+1:i=this.start1+1+","+this.length1,this.length2===0?c=this.start2+",0":this.length2==1?c=this.start2+1:c=this.start2+1+","+this.length2;for(var g=["@@ -"+i+" +"+c+` @@
|
|
30
|
+
`],l,p=0;p<this.diffs.length;p++){switch(this.diffs[p][0]){case o:l="+";break;case r:l="-";break;case f:l=" ";break}g[p+1]=l+encodeURI(this.diffs[p][1])+`
|
|
31
|
+
`}return g.join("").replace(/%20/g," ")},a.exports=n,a.exports.diff_match_patch=n,a.exports.DIFF_DELETE=r,a.exports.DIFF_INSERT=o,a.exports.DIFF_EQUAL=f})(Ki);var yl=Ki.exports;const xs=Te(yl);var Es={exports:{}},Cs,Vi;function wl(){return Vi||(Vi=1,Cs={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),Cs}var Fs,qi;function Wi(){if(qi)return Fs;qi=1;const a=wl(),n={};for(const f of Object.keys(a))n[a[f]]=f;const r={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Fs=r;for(const f of Object.keys(r)){if(!("channels"in r[f]))throw new Error("missing channels property: "+f);if(!("labels"in r[f]))throw new Error("missing channel labels property: "+f);if(r[f].labels.length!==r[f].channels)throw new Error("channel and label counts mismatch: "+f);const{channels:i,labels:c}=r[f];delete r[f].channels,delete r[f].labels,Object.defineProperty(r[f],"channels",{value:i}),Object.defineProperty(r[f],"labels",{value:c})}r.rgb.hsl=function(f){const i=f[0]/255,c=f[1]/255,g=f[2]/255,l=Math.min(i,c,g),p=Math.max(i,c,g),I=p-l;let h,v;p===l?h=0:i===p?h=(c-g)/I:c===p?h=2+(g-i)/I:g===p&&(h=4+(i-c)/I),h=Math.min(h*60,360),h<0&&(h+=360);const m=(l+p)/2;return p===l?v=0:m<=.5?v=I/(p+l):v=I/(2-p-l),[h,v*100,m*100]},r.rgb.hsv=function(f){let i,c,g,l,p;const I=f[0]/255,h=f[1]/255,v=f[2]/255,m=Math.max(I,h,v),w=m-Math.min(I,h,v),B=function(_){return(m-_)/6/w+1/2};return w===0?(l=0,p=0):(p=w/m,i=B(I),c=B(h),g=B(v),I===m?l=g-c:h===m?l=1/3+i-g:v===m&&(l=2/3+c-i),l<0?l+=1:l>1&&(l-=1)),[l*360,p*100,m*100]},r.rgb.hwb=function(f){const i=f[0],c=f[1];let g=f[2];const l=r.rgb.hsl(f)[0],p=1/255*Math.min(i,Math.min(c,g));return g=1-1/255*Math.max(i,Math.max(c,g)),[l,p*100,g*100]},r.rgb.cmyk=function(f){const i=f[0]/255,c=f[1]/255,g=f[2]/255,l=Math.min(1-i,1-c,1-g),p=(1-i-l)/(1-l)||0,I=(1-c-l)/(1-l)||0,h=(1-g-l)/(1-l)||0;return[p*100,I*100,h*100,l*100]};function o(f,i){return Oe(f[0]-i[0],2)+Oe(f[1]-i[1],2)+Oe(f[2]-i[2],2)}return r.rgb.keyword=function(f){const i=n[f];if(i)return i;let c=1/0,g;for(const l of Object.keys(a)){const p=a[l],I=o(f,p);I<c&&(c=I,g=l)}return g},r.keyword.rgb=function(f){return a[f]},r.rgb.xyz=function(f){let i=f[0]/255,c=f[1]/255,g=f[2]/255;i=i>.04045?Oe((i+.055)/1.055,2.4):i/12.92,c=c>.04045?Oe((c+.055)/1.055,2.4):c/12.92,g=g>.04045?Oe((g+.055)/1.055,2.4):g/12.92;const l=i*.4124+c*.3576+g*.1805,p=i*.2126+c*.7152+g*.0722,I=i*.0193+c*.1192+g*.9505;return[l*100,p*100,I*100]},r.rgb.lab=function(f){const i=r.rgb.xyz(f);let c=i[0],g=i[1],l=i[2];c/=95.047,g/=100,l/=108.883,c=c>.008856?Oe(c,1/3):7.787*c+16/116,g=g>.008856?Oe(g,1/3):7.787*g+16/116,l=l>.008856?Oe(l,1/3):7.787*l+16/116;const p=116*g-16,I=500*(c-g),h=200*(g-l);return[p,I,h]},r.hsl.rgb=function(f){const i=f[0]/360,c=f[1]/100,g=f[2]/100;let l,p,I;if(c===0)return I=g*255,[I,I,I];g<.5?l=g*(1+c):l=g+c-g*c;const h=2*g-l,v=[0,0,0];for(let m=0;m<3;m++)p=i+1/3*-(m-1),p<0&&p++,p>1&&p--,6*p<1?I=h+(l-h)*6*p:2*p<1?I=l:3*p<2?I=h+(l-h)*(2/3-p)*6:I=h,v[m]=I*255;return v},r.hsl.hsv=function(f){const i=f[0];let c=f[1]/100,g=f[2]/100,l=c;const p=Math.max(g,.01);g*=2,c*=g<=1?g:2-g,l*=p<=1?p:2-p;const I=(g+c)/2,h=g===0?2*l/(p+l):2*c/(g+c);return[i,h*100,I*100]},r.hsv.rgb=function(f){const i=f[0]/60,c=f[1]/100;let g=f[2]/100;const l=Math.floor(i)%6,p=i-Math.floor(i),I=255*g*(1-c),h=255*g*(1-c*p),v=255*g*(1-c*(1-p));switch(g*=255,l){case 0:return[g,v,I];case 1:return[h,g,I];case 2:return[I,g,v];case 3:return[I,h,g];case 4:return[v,I,g];case 5:return[g,I,h]}},r.hsv.hsl=function(f){const i=f[0],c=f[1]/100,g=f[2]/100,l=Math.max(g,.01);let p,I;I=(2-c)*g;const h=(2-c)*l;return p=c*l,p/=h<=1?h:2-h,p=p||0,I/=2,[i,p*100,I*100]},r.hwb.rgb=function(f){const i=f[0]/360;let c=f[1]/100,g=f[2]/100;const l=c+g;let p;l>1&&(c/=l,g/=l);const I=Math.floor(6*i),h=1-g;p=6*i-I,I&1&&(p=1-p);const v=c+p*(h-c);let m,w,B;switch(I){default:case 6:case 0:m=h,w=v,B=c;break;case 1:m=v,w=h,B=c;break;case 2:m=c,w=h,B=v;break;case 3:m=c,w=v,B=h;break;case 4:m=v,w=c,B=h;break;case 5:m=h,w=c,B=v;break}return[m*255,w*255,B*255]},r.cmyk.rgb=function(f){const i=f[0]/100,c=f[1]/100,g=f[2]/100,l=f[3]/100,p=1-Math.min(1,i*(1-l)+l),I=1-Math.min(1,c*(1-l)+l),h=1-Math.min(1,g*(1-l)+l);return[p*255,I*255,h*255]},r.xyz.rgb=function(f){const i=f[0]/100,c=f[1]/100,g=f[2]/100;let l,p,I;return l=i*3.2406+c*-1.5372+g*-.4986,p=i*-.9689+c*1.8758+g*.0415,I=i*.0557+c*-.204+g*1.057,l=l>.0031308?1.055*Oe(l,1/2.4)-.055:l*12.92,p=p>.0031308?1.055*Oe(p,1/2.4)-.055:p*12.92,I=I>.0031308?1.055*Oe(I,1/2.4)-.055:I*12.92,l=Math.min(Math.max(0,l),1),p=Math.min(Math.max(0,p),1),I=Math.min(Math.max(0,I),1),[l*255,p*255,I*255]},r.xyz.lab=function(f){let i=f[0],c=f[1],g=f[2];i/=95.047,c/=100,g/=108.883,i=i>.008856?Oe(i,1/3):7.787*i+16/116,c=c>.008856?Oe(c,1/3):7.787*c+16/116,g=g>.008856?Oe(g,1/3):7.787*g+16/116;const l=116*c-16,p=500*(i-c),I=200*(c-g);return[l,p,I]},r.lab.xyz=function(f){const i=f[0],c=f[1],g=f[2];let l,p,I;p=(i+16)/116,l=c/500+p,I=p-g/200;const h=Oe(p,3),v=Oe(l,3),m=Oe(I,3);return p=h>.008856?h:(p-16/116)/7.787,l=v>.008856?v:(l-16/116)/7.787,I=m>.008856?m:(I-16/116)/7.787,l*=95.047,p*=100,I*=108.883,[l,p,I]},r.lab.lch=function(f){const i=f[0],c=f[1],g=f[2];let l;l=Math.atan2(g,c)*360/2/Math.PI,l<0&&(l+=360);const I=Math.sqrt(c*c+g*g);return[i,I,l]},r.lch.lab=function(f){const i=f[0],c=f[1],l=f[2]/360*2*Math.PI,p=c*Math.cos(l),I=c*Math.sin(l);return[i,p,I]},r.rgb.ansi16=function(f,i=null){const[c,g,l]=f;let p=i===null?r.rgb.hsv(f)[2]:i;if(p=Math.round(p/50),p===0)return 30;let I=30+(Math.round(l/255)<<2|Math.round(g/255)<<1|Math.round(c/255));return p===2&&(I+=60),I},r.hsv.ansi16=function(f){return r.rgb.ansi16(r.hsv.rgb(f),f[2])},r.rgb.ansi256=function(f){const i=f[0],c=f[1],g=f[2];return i===c&&c===g?i<8?16:i>248?231:Math.round((i-8)/247*24)+232:16+36*Math.round(i/255*5)+6*Math.round(c/255*5)+Math.round(g/255*5)},r.ansi16.rgb=function(f){let i=f%10;if(i===0||i===7)return f>50&&(i+=3.5),i=i/10.5*255,[i,i,i];const c=(~~(f>50)+1)*.5,g=(i&1)*c*255,l=(i>>1&1)*c*255,p=(i>>2&1)*c*255;return[g,l,p]},r.ansi256.rgb=function(f){if(f>=232){const p=(f-232)*10+8;return[p,p,p]}f-=16;let i;const c=Math.floor(f/36)/5*255,g=Math.floor((i=f%36)/6)/5*255,l=i%6/5*255;return[c,g,l]},r.rgb.hex=function(f){const c=(((Math.round(f[0])&255)<<16)+((Math.round(f[1])&255)<<8)+(Math.round(f[2])&255)).toString(16).toUpperCase();return"000000".substring(c.length)+c},r.hex.rgb=function(f){const i=f.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!i)return[0,0,0];let c=i[0];i[0].length===3&&(c=c.split("").map(h=>h+h).join(""));const g=parseInt(c,16),l=g>>16&255,p=g>>8&255,I=g&255;return[l,p,I]},r.rgb.hcg=function(f){const i=f[0]/255,c=f[1]/255,g=f[2]/255,l=Math.max(Math.max(i,c),g),p=Math.min(Math.min(i,c),g),I=l-p;let h,v;return I<1?h=p/(1-I):h=0,I<=0?v=0:l===i?v=(c-g)/I%6:l===c?v=2+(g-i)/I:v=4+(i-c)/I,v/=6,v%=1,[v*360,I*100,h*100]},r.hsl.hcg=function(f){const i=f[1]/100,c=f[2]/100,g=c<.5?2*i*c:2*i*(1-c);let l=0;return g<1&&(l=(c-.5*g)/(1-g)),[f[0],g*100,l*100]},r.hsv.hcg=function(f){const i=f[1]/100,c=f[2]/100,g=i*c;let l=0;return g<1&&(l=(c-g)/(1-g)),[f[0],g*100,l*100]},r.hcg.rgb=function(f){const i=f[0]/360,c=f[1]/100,g=f[2]/100;if(c===0)return[g*255,g*255,g*255];const l=[0,0,0],p=i%1*6,I=p%1,h=1-I;let v=0;switch(Math.floor(p)){case 0:l[0]=1,l[1]=I,l[2]=0;break;case 1:l[0]=h,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=I;break;case 3:l[0]=0,l[1]=h,l[2]=1;break;case 4:l[0]=I,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=h}return v=(1-c)*g,[(c*l[0]+v)*255,(c*l[1]+v)*255,(c*l[2]+v)*255]},r.hcg.hsv=function(f){const i=f[1]/100,c=f[2]/100,g=i+c*(1-i);let l=0;return g>0&&(l=i/g),[f[0],l*100,g*100]},r.hcg.hsl=function(f){const i=f[1]/100,g=f[2]/100*(1-i)+.5*i;let l=0;return g>0&&g<.5?l=i/(2*g):g>=.5&&g<1&&(l=i/(2*(1-g))),[f[0],l*100,g*100]},r.hcg.hwb=function(f){const i=f[1]/100,c=f[2]/100,g=i+c*(1-i);return[f[0],(g-i)*100,(1-g)*100]},r.hwb.hcg=function(f){const i=f[1]/100,g=1-f[2]/100,l=g-i;let p=0;return l<1&&(p=(g-l)/(1-l)),[f[0],l*100,p*100]},r.apple.rgb=function(f){return[f[0]/65535*255,f[1]/65535*255,f[2]/65535*255]},r.rgb.apple=function(f){return[f[0]/255*65535,f[1]/255*65535,f[2]/255*65535]},r.gray.rgb=function(f){return[f[0]/100*255,f[0]/100*255,f[0]/100*255]},r.gray.hsl=function(f){return[0,0,f[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(f){return[0,100,f[0]]},r.gray.cmyk=function(f){return[0,0,0,f[0]]},r.gray.lab=function(f){return[f[0],0,0]},r.gray.hex=function(f){const i=Math.round(f[0]/100*255)&255,g=((i<<16)+(i<<8)+i).toString(16).toUpperCase();return"000000".substring(g.length)+g},r.rgb.gray=function(f){return[(f[0]+f[1]+f[2])/3/255*100]},Fs}var Ts,$i;function Rl(){if($i)return Ts;$i=1;const a=Wi();function n(){const i={},c=Object.keys(a);for(let g=c.length,l=0;l<g;l++)i[c[l]]={distance:-1,parent:null};return i}function r(i){const c=n(),g=[i];for(c[i].distance=0;g.length;){const l=g.pop(),p=Object.keys(a[l]);for(let I=p.length,h=0;h<I;h++){const v=p[h],m=c[v];m.distance===-1&&(m.distance=c[l].distance+1,m.parent=l,g.unshift(v))}}return c}function o(i,c){return function(g){return c(i(g))}}function f(i,c){const g=[c[i].parent,i];let l=a[c[i].parent][i],p=c[i].parent;for(;c[p].parent;)g.unshift(c[p].parent),l=o(a[c[p].parent][p],l),p=c[p].parent;return l.conversion=g,l}return Ts=function(i){const c=r(i),g={},l=Object.keys(c);for(let p=l.length,I=0;I<p;I++){const h=l[I];c[h].parent!==null&&(g[h]=f(h,c))}return g},Ts}var Ms,ji;function Ol(){if(ji)return Ms;ji=1;const a=Wi(),n=Rl(),r={},o=Object.keys(a);function f(c){const g=function(...l){const p=l[0];return p==null?p:(p.length>1&&(l=p),c(l))};return"conversion"in c&&(g.conversion=c.conversion),g}function i(c){const g=function(...l){const p=l[0];if(p==null)return p;p.length>1&&(l=p);const I=c(l);if(typeof I=="object")for(let h=I.length,v=0;v<h;v++)I[v]=Math.round(I[v]);return I};return"conversion"in c&&(g.conversion=c.conversion),g}return o.forEach(c=>{r[c]={},Object.defineProperty(r[c],"channels",{value:a[c].channels}),Object.defineProperty(r[c],"labels",{value:a[c].labels});const g=n(c);Object.keys(g).forEach(p=>{const I=g[p];r[c][p]=i(I),r[c][p].raw=f(I)})}),Ms=r,Ms}Es.exports,function(a){const n=(I,h)=>(...v)=>`\x1B[${I(...v)+h}m`,r=(I,h)=>(...v)=>{const m=I(...v);return`\x1B[${38+h};5;${m}m`},o=(I,h)=>(...v)=>{const m=I(...v);return`\x1B[${38+h};2;${m[0]};${m[1]};${m[2]}m`},f=I=>I,i=(I,h,v)=>[I,h,v],c=(I,h,v)=>{Object.defineProperty(I,h,{get:()=>{const m=v();return Object.defineProperty(I,h,{value:m,enumerable:!0,configurable:!0}),m},enumerable:!0,configurable:!0})};let g;const l=(I,h,v,m)=>{g===void 0&&(g=Ol());const w=m?10:0,B={};for(const[_,C]of Object.entries(g)){const N=_==="ansi16"?"ansi":_;_===h?B[N]=I(v,w):typeof C=="object"&&(B[N]=I(C[h],w))}return B};function p(){const I=new Map,h={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};h.color.gray=h.color.blackBright,h.bgColor.bgGray=h.bgColor.bgBlackBright,h.color.grey=h.color.blackBright,h.bgColor.bgGrey=h.bgColor.bgBlackBright;for(const[v,m]of Object.entries(h)){for(const[w,B]of Object.entries(m))h[w]={open:`\x1B[${B[0]}m`,close:`\x1B[${B[1]}m`},m[w]=h[w],I.set(B[0],B[1]);Object.defineProperty(h,v,{value:m,enumerable:!1})}return Object.defineProperty(h,"codes",{value:I,enumerable:!1}),h.color.close="\x1B[39m",h.bgColor.close="\x1B[49m",c(h.color,"ansi",()=>l(n,"ansi16",f,!1)),c(h.color,"ansi256",()=>l(r,"ansi256",f,!1)),c(h.color,"ansi16m",()=>l(o,"rgb",i,!1)),c(h.bgColor,"ansi",()=>l(n,"ansi16",f,!0)),c(h.bgColor,"ansi256",()=>l(r,"ansi256",f,!0)),c(h.bgColor,"ansi16m",()=>l(o,"rgb",i,!0)),h}Object.defineProperty(a,"exports",{enumerable:!0,get:p})}(Es);var Bl=Es.exports,Al={stdout:!1,stderr:!1},_l={stringReplaceAll:(a,n,r)=>{let o=a.indexOf(n);if(o===-1)return a;const f=n.length;let i=0,c="";do c+=a.substr(i,o-i)+n+r,i=o+f,o=a.indexOf(n,i);while(o!==-1);return c+=a.substr(i),c},stringEncaseCRLFWithFirstIndex:(a,n,r,o)=>{let f=0,i="";do{const c=a[o-1]==="\r";i+=a.substr(f,(c?o-1:o)-f)+n+(c?`\r
|
|
32
|
+
`:`
|
|
33
|
+
`)+r,f=o+1,o=a.indexOf(`
|
|
34
|
+
`,f)}while(o!==-1);return i+=a.substr(f),i}},Ps,Xi;function xl(){if(Xi)return Ps;Xi=1;const a=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,f=new Map([["n",`
|
|
35
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function i(p){const I=p[0]==="u",h=p[1]==="{";return I&&!h&&p.length===5||p[0]==="x"&&p.length===3?String.fromCharCode(parseInt(p.slice(1),16)):I&&h?String.fromCodePoint(parseInt(p.slice(2,-1),16)):f.get(p)||p}function c(p,I){const h=[],v=I.trim().split(/\s*,\s*/g);let m;for(const w of v){const B=Number(w);if(!Number.isNaN(B))h.push(B);else if(m=w.match(r))h.push(m[2].replace(o,(_,C,N)=>C?i(C):N));else throw new Error(`Invalid Chalk template style argument: ${w} (in style '${p}')`)}return h}function g(p){n.lastIndex=0;const I=[];let h;for(;(h=n.exec(p))!==null;){const v=h[1];if(h[2]){const m=c(v,h[2]);I.push([v].concat(m))}else I.push([v])}return I}function l(p,I){const h={};for(const m of I)for(const w of m.styles)h[w[0]]=m.inverse?null:w.slice(1);let v=p;for(const[m,w]of Object.entries(h))if(Array.isArray(w)){if(!(m in v))throw new Error(`Unknown Chalk style: ${m}`);v=w.length>0?v[m](...w):v[m]}return v}return Ps=(p,I)=>{const h=[],v=[];let m=[];if(I.replace(a,(w,B,_,C,N,F)=>{if(B)m.push(i(B));else if(C){const L=m.join("");m=[],v.push(h.length===0?L:l(p,h)(L)),h.push({inverse:_,styles:g(C)})}else if(N){if(h.length===0)throw new Error("Found extraneous } in Chalk template literal");v.push(l(p,h)(m.join(""))),m=[],h.pop()}else m.push(F)}),v.push(m.join("")),h.length>0){const w=`Chalk template literal is missing ${h.length} closing bracket${h.length===1?"":"s"} (\`}\`)`;throw new Error(w)}return v.join("")},Ps}const Ar=Bl,{stdout:Us,stderr:ks}=Al,{stringReplaceAll:El,stringEncaseCRLFWithFirstIndex:Cl}=_l,{isArray:cn}=Array,zi=["ansi","ansi","ansi256","ansi16m"],or=Object.create(null),Fl=(a,n={})=>{if(n.level&&!(Number.isInteger(n.level)&&n.level>=0&&n.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=Us?Us.level:0;a.level=n.level===void 0?r:n.level};class Tl{constructor(n){return Ji(n)}}const Ji=a=>{const n={};return Fl(n,a),n.template=(...r)=>Qi(n.template,...r),Object.setPrototypeOf(n,gn.prototype),Object.setPrototypeOf(n.template,n),n.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},n.template.Instance=Tl,n.template};function gn(a){return Ji(a)}for(const[a,n]of Object.entries(Ar))or[a]={get(){const r=ln(this,Ds(n.open,n.close,this._styler),this._isEmpty);return Object.defineProperty(this,a,{value:r}),r}};or.visible={get(){const a=ln(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:a}),a}};const Zi=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const a of Zi)or[a]={get(){const{level:n}=this;return function(...r){const o=Ds(Ar.color[zi[n]][a](...r),Ar.color.close,this._styler);return ln(this,o,this._isEmpty)}}};for(const a of Zi){const n="bg"+a[0].toUpperCase()+a.slice(1);or[n]={get(){const{level:r}=this;return function(...o){const f=Ds(Ar.bgColor[zi[r]][a](...o),Ar.bgColor.close,this._styler);return ln(this,f,this._isEmpty)}}}}const Ml=Object.defineProperties(()=>{},ye(ie({},or),{level:{enumerable:!0,get(){return this._generator.level},set(a){this._generator.level=a}}})),Ds=(a,n,r)=>{let o,f;return r===void 0?(o=a,f=n):(o=r.openAll+a,f=n+r.closeAll),{open:a,close:n,openAll:o,closeAll:f,parent:r}},ln=(a,n,r)=>{const o=(...f)=>cn(f[0])&&cn(f[0].raw)?Yi(o,Qi(o,...f)):Yi(o,f.length===1?""+f[0]:f.join(" "));return Object.setPrototypeOf(o,Ml),o._generator=a,o._styler=n,o._isEmpty=r,o},Yi=(a,n)=>{if(a.level<=0||!n)return a._isEmpty?"":n;let r=a._styler;if(r===void 0)return n;const{openAll:o,closeAll:f}=r;if(n.indexOf("\x1B")!==-1)for(;r!==void 0;)n=El(n,r.close,r.open),r=r.parent;const i=n.indexOf(`
|
|
36
|
+
`);return i!==-1&&(n=Cl(n,f,o,i)),o+n+f};let Hs;const Qi=(a,...n)=>{const[r]=n;if(!cn(r)||!cn(r.raw))return n.join(" ");const o=n.slice(1),f=[r.raw[0]];for(let i=1;i<r.length;i++)f.push(String(o[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return Hs===void 0&&(Hs=xl()),Hs(a,f.join(""))};Object.defineProperties(gn.prototype,or);const un=gn();un.supportsColor=Us,un.stderr=gn({level:ks?ks.level:0}),un.stderr.supportsColor=ks;var Pl=un;const eo=Te(Pl);var pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ze=function(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")},It=function(){function a(n,r){for(var o=0;o<r.length;o++){var f=r[o];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(n,f.key,f)}}return function(n,r,o){return r&&a(n.prototype,r),o&&a(n,o),n}}(),Ns=function a(n,r,o){n===null&&(n=Function.prototype);var f=Object.getOwnPropertyDescriptor(n,r);if(f===void 0){var i=Object.getPrototypeOf(n);return i===null?void 0:a(i,r,o)}else{if("value"in f)return f.value;var c=f.get;return c===void 0?void 0:c.call(o)}},qt=function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);a.prototype=Object.create(n&&n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(a,n):a.__proto__=n)},Wt=function(a,n){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:a},Ul=function(){function a(n){ze(this,a),this.selfOptions=n||{},this.pipes={}}return It(a,[{key:"options",value:function(r){return r&&(this.selfOptions=r),this.selfOptions}},{key:"pipe",value:function(r,o){var f=o;if(typeof r=="string"){if(typeof f=="undefined")return this.pipes[r];this.pipes[r]=f}if(r&&r.name){if(f=r,f.processor===this)return f;this.pipes[f.name]=f}return f.processor=this,f}},{key:"process",value:function(r,o){var f=r;f.options=this.options();for(var i=o||r.pipe||"default",c=void 0,g=void 0;i;)typeof f.nextAfterChildren!="undefined"&&(f.next=f.nextAfterChildren,f.nextAfterChildren=null),typeof i=="string"&&(i=this.pipe(i)),i.process(f),g=f,c=i,i=null,f&&f.next&&(f=f.next,i=g.nextPipe||f.pipe||c);return f.hasResult?f.result:void 0}}]),a}(),pn=function(){function a(n){ze(this,a),this.name=n,this.filters=[]}return It(a,[{key:"process",value:function(r){if(!this.processor)throw new Error("add this pipe to a processor before using it");for(var o=this.debug,f=this.filters.length,i=r,c=0;c<f;c++){var g=this.filters[c];if(o&&this.log("filter: "+g.filterName),g(i),(typeof i=="undefined"?"undefined":pt(i))==="object"&&i.exiting){i.exiting=!1;break}}!i.next&&this.resultCheck&&this.resultCheck(i)}},{key:"log",value:function(r){console.log("[jsondiffpatch] "+this.name+" pipe, "+r)}},{key:"append",value:function(){var r;return(r=this.filters).push.apply(r,arguments),this}},{key:"prepend",value:function(){var r;return(r=this.filters).unshift.apply(r,arguments),this}},{key:"indexOf",value:function(r){if(!r)throw new Error("a filter name is required");for(var o=0;o<this.filters.length;o++){var f=this.filters[o];if(f.filterName===r)return o}throw new Error("filter not found: "+r)}},{key:"list",value:function(){return this.filters.map(function(r){return r.filterName})}},{key:"after",value:function(r){var o=this.indexOf(r),f=Array.prototype.slice.call(arguments,1);if(!f.length)throw new Error("a filter is required");return f.unshift(o+1,0),Array.prototype.splice.apply(this.filters,f),this}},{key:"before",value:function(r){var o=this.indexOf(r),f=Array.prototype.slice.call(arguments,1);if(!f.length)throw new Error("a filter is required");return f.unshift(o,0),Array.prototype.splice.apply(this.filters,f),this}},{key:"replace",value:function(r){var o=this.indexOf(r),f=Array.prototype.slice.call(arguments,1);if(!f.length)throw new Error("a filter is required");return f.unshift(o,1),Array.prototype.splice.apply(this.filters,f),this}},{key:"remove",value:function(r){var o=this.indexOf(r);return this.filters.splice(o,1),this}},{key:"clear",value:function(){return this.filters.length=0,this}},{key:"shouldHaveResult",value:function(r){if(r===!1){this.resultCheck=null;return}if(!this.resultCheck){var o=this;return this.resultCheck=function(f){if(!f.hasResult){console.log(f);var i=new Error(o.name+" failed");throw i.noResult=!0,i}},this}}}]),a}(),In=function(){function a(){ze(this,a)}return It(a,[{key:"setResult",value:function(r){return this.result=r,this.hasResult=!0,this}},{key:"exit",value:function(){return this.exiting=!0,this}},{key:"switchTo",value:function(r,o){return typeof r=="string"||r instanceof pn?this.nextPipe=r:(this.next=r,o&&(this.nextPipe=o)),this}},{key:"push",value:function(r,o){return r.parent=this,typeof o!="undefined"&&(r.childName=o),r.root=this.root||this,r.options=r.options||this.options,this.children?(this.children[this.children.length-1].next=r,this.children.push(r)):(this.children=[r],this.nextAfterChildren=this.next||null,this.next=r),r.next=this,this}}]),a}(),kl=typeof Array.isArray=="function"?Array.isArray:function(a){return a instanceof Array};function Dl(a){var n=/^\/(.*)\/([gimyu]*)$/.exec(a.toString());return new RegExp(n[1],n[2])}function hn(a){if((typeof a=="undefined"?"undefined":pt(a))!=="object")return a;if(a===null)return null;if(kl(a))return a.map(hn);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return Dl(a);var n={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(n[r]=hn(a[r]));return n}var $t=function(a){qt(n,a);function n(r,o){ze(this,n);var f=Wt(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return f.left=r,f.right=o,f.pipe="diff",f}return It(n,[{key:"setResult",value:function(o){if(this.options.cloneDiffValues&&(typeof o=="undefined"?"undefined":pt(o))==="object"){var f=typeof this.options.cloneDiffValues=="function"?this.options.cloneDiffValues:hn;pt(o[0])==="object"&&(o[0]=f(o[0])),pt(o[1])==="object"&&(o[1]=f(o[1]))}return In.prototype.setResult.apply(this,arguments)}}]),n}(In),Ls=function(a){qt(n,a);function n(r,o){ze(this,n);var f=Wt(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return f.left=r,f.delta=o,f.pipe="patch",f}return n}(In),Gs=function(a){qt(n,a);function n(r){ze(this,n);var o=Wt(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return o.delta=r,o.pipe="reverse",o}return n}(In),dn=typeof Array.isArray=="function"?Array.isArray:function(a){return a instanceof Array},to=function(n){if(n.left===n.right){n.setResult(void 0).exit();return}if(typeof n.left=="undefined"){if(typeof n.right=="function")throw new Error("functions are not supported");n.setResult([n.right]).exit();return}if(typeof n.right=="undefined"){n.setResult([n.left,0,0]).exit();return}if(typeof n.left=="function"||typeof n.right=="function")throw new Error("functions are not supported");if(n.leftType=n.left===null?"null":pt(n.left),n.rightType=n.right===null?"null":pt(n.right),n.leftType!==n.rightType){n.setResult([n.left,n.right]).exit();return}if(n.leftType==="boolean"||n.leftType==="number"){n.setResult([n.left,n.right]).exit();return}if(n.leftType==="object"&&(n.leftIsArray=dn(n.left)),n.rightType==="object"&&(n.rightIsArray=dn(n.right)),n.leftIsArray!==n.rightIsArray){n.setResult([n.left,n.right]).exit();return}n.left instanceof RegExp&&(n.right instanceof RegExp?n.setResult([n.left.toString(),n.right.toString()]).exit():n.setResult([n.left,n.right]).exit())};to.filterName="trivial";var ro=function(n){if(typeof n.delta=="undefined"){n.setResult(n.left).exit();return}if(n.nested=!dn(n.delta),!n.nested){if(n.delta.length===1){n.setResult(n.delta[0]).exit();return}if(n.delta.length===2){if(n.left instanceof RegExp){var r=/^\/(.*)\/([gimyu]+)$/.exec(n.delta[1]);if(r){n.setResult(new RegExp(r[1],r[2])).exit();return}}n.setResult(n.delta[1]).exit();return}n.delta.length===3&&n.delta[2]===0&&n.setResult(void 0).exit()}};ro.filterName="trivial";var no=function(n){if(typeof n.delta=="undefined"){n.setResult(n.delta).exit();return}if(n.nested=!dn(n.delta),!n.nested){if(n.delta.length===1){n.setResult([n.delta[0],0,0]).exit();return}if(n.delta.length===2){n.setResult([n.delta[1],n.delta[0]]).exit();return}n.delta.length===3&&n.delta[2]===0&&n.setResult([n.delta[0]]).exit()}};no.filterName="trivial";function so(a){if(!(!a||!a.children)){for(var n=a.children.length,r=void 0,o=a.result,f=0;f<n;f++)r=a.children[f],typeof r.result!="undefined"&&(o=o||{},o[r.childName]=r.result);o&&a.leftIsArray&&(o._t="a"),a.setResult(o).exit()}}so.filterName="collectChildren";function ao(a){if(!(a.leftIsArray||a.leftType!=="object")){var n=void 0,r=void 0,o=a.options.propertyFilter;for(n in a.left)Object.prototype.hasOwnProperty.call(a.left,n)&&(o&&!o(n,a)||(r=new $t(a.left[n],a.right[n]),a.push(r,n)));for(n in a.right)Object.prototype.hasOwnProperty.call(a.right,n)&&(o&&!o(n,a)||typeof a.left[n]=="undefined"&&(r=new $t(void 0,a.right[n]),a.push(r,n)));if(!a.children||a.children.length===0){a.setResult(void 0).exit();return}a.exit()}}ao.filterName="objects";var io=function(n){if(n.nested&&!n.delta._t){var r=void 0,o=void 0;for(r in n.delta)o=new Ls(n.left[r],n.delta[r]),n.push(o,r);n.exit()}};io.filterName="objects";var oo=function(n){if(!(!n||!n.children)&&!n.delta._t){for(var r=n.children.length,o=void 0,f=0;f<r;f++)o=n.children[f],Object.prototype.hasOwnProperty.call(n.left,o.childName)&&o.result===void 0?delete n.left[o.childName]:n.left[o.childName]!==o.result&&(n.left[o.childName]=o.result);n.setResult(n.left).exit()}};oo.filterName="collectChildren";var fo=function(n){if(n.nested&&!n.delta._t){var r=void 0,o=void 0;for(r in n.delta)o=new Gs(n.delta[r]),n.push(o,r);n.exit()}};fo.filterName="objects";function co(a){if(!(!a||!a.children)&&!a.delta._t){for(var n=a.children.length,r=void 0,o={},f=0;f<n;f++)r=a.children[f],o[r.childName]!==r.result&&(o[r.childName]=r.result);a.setResult(o).exit()}}co.filterName="collectChildren";var Hl=function(n,r,o,f){return n[o]===r[f]},Nl=function(n,r,o,f){var i=n.length,c=r.length,g=void 0,l=void 0,p=[i+1];for(g=0;g<i+1;g++)for(p[g]=[c+1],l=0;l<c+1;l++)p[g][l]=0;for(p.match=o,g=1;g<i+1;g++)for(l=1;l<c+1;l++)o(n,r,g-1,l-1,f)?p[g][l]=p[g-1][l-1]+1:p[g][l]=Math.max(p[g-1][l],p[g][l-1]);return p},Ll=function(n,r,o,f){for(var i=r.length,c=o.length,g={sequence:[],indices1:[],indices2:[]};i!==0&&c!==0;){var l=n.match(r,o,i-1,c-1,f);if(l)g.sequence.unshift(r[i-1]),g.indices1.unshift(i-1),g.indices2.unshift(c-1),--i,--c;else{var p=n[i][c-1],I=n[i-1][c];p>I?--c:--i}}return g},Gl=function(n,r,o,f){var i=f||{},c=Nl(n,r,o||Hl,i),g=Ll(c,n,r,i);return typeof n=="string"&&typeof r=="string"&&(g.sequence=g.sequence.join("")),g},Kl={get:Gl},fr=3,go=typeof Array.isArray=="function"?Array.isArray:function(a){return a instanceof Array},lo=typeof Array.prototype.indexOf=="function"?function(a,n){return a.indexOf(n)}:function(a,n){for(var r=a.length,o=0;o<r;o++)if(a[o]===n)return o;return-1};function Vl(a,n,r,o){for(var f=0;f<r;f++)for(var i=a[f],c=0;c<o;c++){var g=n[c];if(f!==c&&i===g)return!0}}function vn(a,n,r,o,f){var i=a[r],c=n[o];if(i===c)return!0;if((typeof i=="undefined"?"undefined":pt(i))!=="object"||(typeof c=="undefined"?"undefined":pt(c))!=="object")return!1;var g=f.objectHash;if(!g)return f.matchByPosition&&r===o;var l=void 0,p=void 0;return typeof r=="number"?(f.hashCache1=f.hashCache1||[],l=f.hashCache1[r],typeof l=="undefined"&&(f.hashCache1[r]=l=g(i,r))):l=g(i),typeof l=="undefined"||(typeof o=="number"?(f.hashCache2=f.hashCache2||[],p=f.hashCache2[o],typeof p=="undefined"&&(f.hashCache2[o]=p=g(c,o))):p=g(c),typeof p=="undefined")?!1:l===p}var uo=function(n){if(n.leftIsArray){var r={objectHash:n.options&&n.options.objectHash,matchByPosition:n.options&&n.options.matchByPosition},o=0,f=0,i=void 0,c=void 0,g=void 0,l=n.left,p=n.right,I=l.length,h=p.length,v=void 0;for(I>0&&h>0&&!r.objectHash&&typeof r.matchByPosition!="boolean"&&(r.matchByPosition=!Vl(l,p,I,h));o<I&&o<h&&vn(l,p,o,o,r);)i=o,v=new $t(n.left[i],n.right[i]),n.push(v,i),o++;for(;f+o<I&&f+o<h&&vn(l,p,I-1-f,h-1-f,r);)c=I-1-f,g=h-1-f,v=new $t(n.left[c],n.right[g]),n.push(v,g),f++;var m=void 0;if(o+f===I){if(I===h){n.setResult(void 0).exit();return}for(m=m||{_t:"a"},i=o;i<h-f;i++)m[i]=[p[i]];n.setResult(m).exit();return}if(o+f===h){for(m=m||{_t:"a"},i=o;i<I-f;i++)m["_"+i]=[l[i],0,0];n.setResult(m).exit();return}delete r.hashCache1,delete r.hashCache2;var w=l.slice(o,I-f),B=p.slice(o,h-f),_=Kl.get(w,B,vn,r),C=[];for(m=m||{_t:"a"},i=o;i<I-f;i++)lo(_.indices1,i-o)<0&&(m["_"+i]=[l[i],0,0],C.push(i));var N=!0;n.options&&n.options.arrays&&n.options.arrays.detectMove===!1&&(N=!1);var F=!1;n.options&&n.options.arrays&&n.options.arrays.includeValueOnMove&&(F=!0);var L=C.length;for(i=o;i<h-f;i++){var x=lo(_.indices2,i-o);if(x<0){var U=!1;if(N&&L>0){for(var G=0;G<L;G++)if(c=C[G],vn(w,B,c-o,i-o,r)){m["_"+c].splice(1,2,i,fr),F||(m["_"+c][0]=""),g=i,v=new $t(n.left[c],n.right[g]),n.push(v,g),C.splice(G,1),U=!0;break}}U||(m[i]=[p[i]])}else c=_.indices1[x]+o,g=_.indices2[x]+o,v=new $t(n.left[c],n.right[g]),n.push(v,g)}n.setResult(m).exit()}};uo.filterName="arrays";var po={numerically:function(n,r){return n-r},numericallyBy:function(n){return function(r,o){return r[n]-o[n]}}},Io=function(n){if(n.nested&&n.delta._t==="a"){var r=void 0,o=void 0,f=n.delta,i=n.left,c=[],g=[],l=[];for(r in f)if(r!=="_t")if(r[0]==="_")if(f[r][2]===0||f[r][2]===fr)c.push(parseInt(r.slice(1),10));else throw new Error("only removal or move can be applied at original array indices,"+(" invalid diff type: "+f[r][2]));else f[r].length===1?g.push({index:parseInt(r,10),value:f[r][0]}):l.push({index:parseInt(r,10),delta:f[r]});for(c=c.sort(po.numerically),r=c.length-1;r>=0;r--){o=c[r];var p=f["_"+o],I=i.splice(o,1)[0];p[2]===fr&&g.push({index:p[1],value:I})}g=g.sort(po.numericallyBy("index"));var h=g.length;for(r=0;r<h;r++){var v=g[r];i.splice(v.index,0,v.value)}var m=l.length,w=void 0;if(m>0)for(r=0;r<m;r++){var B=l[r];w=new Ls(n.left[B.index],B.delta),n.push(w,B.index)}if(!n.children){n.setResult(n.left).exit();return}n.exit()}};Io.filterName="arrays";var ho=function(n){if(!(!n||!n.children)&&n.delta._t==="a"){for(var r=n.children.length,o=void 0,f=0;f<r;f++)o=n.children[f],n.left[o.childName]=o.result;n.setResult(n.left).exit()}};ho.filterName="arraysCollectChildren";var vo=function(n){if(!n.nested){n.delta[2]===fr&&(n.newName="_"+n.delta[1],n.setResult([n.delta[0],parseInt(n.childName.substr(1),10),fr]).exit());return}if(n.delta._t==="a"){var r=void 0,o=void 0;for(r in n.delta)r!=="_t"&&(o=new Gs(n.delta[r]),n.push(o,r));n.exit()}};vo.filterName="arrays";var ql=function(n,r,o){if(typeof r=="string"&&r[0]==="_")return parseInt(r.substr(1),10);if(go(o)&&o[2]===0)return"_"+r;var f=+r;for(var i in n){var c=n[i];if(go(c))if(c[2]===fr){var g=parseInt(i.substr(1),10),l=c[1];if(l===+r)return g;g<=f&&l>f?f++:g>=f&&l<f&&f--}else if(c[2]===0){var p=parseInt(i.substr(1),10);p<=f&&f++}else c.length===1&&i<=f&&f--}return f};function mo(a){if(!(!a||!a.children)&&a.delta._t==="a"){for(var n=a.children.length,r=void 0,o={_t:"a"},f=0;f<n;f++){r=a.children[f];var i=r.newName;typeof i=="undefined"&&(i=ql(a.delta,r.childName,r.result)),o[i]!==r.result&&(o[i]=r.result)}a.setResult(o).exit()}}mo.filterName="arraysCollectChildren";var So=function(n){n.left instanceof Date?(n.right instanceof Date?n.left.getTime()!==n.right.getTime()?n.setResult([n.left,n.right]):n.setResult(void 0):n.setResult([n.left,n.right]),n.exit()):n.right instanceof Date&&n.setResult([n.left,n.right]).exit()};So.filterName="dates";var mn=2,Wl=60,Ks=null,bo=function(n){if(!Ks){var r=void 0;if(typeof diff_match_patch!="undefined")r=typeof diff_match_patch=="function"?new diff_match_patch:new diff_match_patch.diff_match_patch;else if(xs)try{r=xs&&new xs}catch(f){r=null}if(!r){if(!n)return null;var o=new Error("text diff_match_patch library not found");throw o.diff_match_patch_not_found=!0,o}Ks={diff:function(i,c){return r.patch_toText(r.patch_make(i,c))},patch:function(i,c){for(var g=r.patch_apply(r.patch_fromText(c),i),l=0;l<g[1].length;l++)if(!g[1][l]){var p=new Error("text patch failed");p.textPatchFailed=!0}return g[0]}}}return Ks},yo=function(n){if(n.leftType==="string"){var r=n.options&&n.options.textDiff&&n.options.textDiff.minLength||Wl;if(n.left.length<r||n.right.length<r){n.setResult([n.left,n.right]).exit();return}var o=bo();if(!o){n.setResult([n.left,n.right]).exit();return}var f=o.diff;n.setResult([f(n.left,n.right),0,mn]).exit()}};yo.filterName="texts";var wo=function(n){if(!n.nested&&n.delta[2]===mn){var r=bo(!0).patch;n.setResult(r(n.left,n.delta[0])).exit()}};wo.filterName="texts";var $l=function(n){var r=void 0,o=void 0,f=void 0,i=void 0,c=void 0,g=null,l=/^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/,p=void 0;for(f=n.split(`
|
|
37
|
+
`),r=0,o=f.length;r<o;r++){i=f[r];var I=i.slice(0,1);I==="@"?(g=l.exec(i),p=r,f[p]="@@ -"+g[3]+","+g[4]+" +"+g[1]+","+g[2]+" @@"):I==="+"?(f[r]="-"+f[r].slice(1),f[r-1].slice(0,1)==="+"&&(c=f[r],f[r]=f[r-1],f[r-1]=c)):I==="-"&&(f[r]="+"+f[r].slice(1))}return f.join(`
|
|
38
|
+
`)},Ro=function(n){n.nested||n.delta[2]===mn&&n.setResult([$l(n.delta[0]),0,mn]).exit()};Ro.filterName="texts";var Vs=function(){function a(n){ze(this,a),this.processor=new Ul(n),this.processor.pipe(new pn("diff").append(so,to,So,yo,ao,uo).shouldHaveResult()),this.processor.pipe(new pn("patch").append(oo,ho,ro,wo,io,Io).shouldHaveResult()),this.processor.pipe(new pn("reverse").append(co,mo,no,Ro,fo,vo).shouldHaveResult())}return It(a,[{key:"options",value:function(){var r;return(r=this.processor).options.apply(r,arguments)}},{key:"diff",value:function(r,o){return this.processor.process(new $t(r,o))}},{key:"patch",value:function(r,o){return this.processor.process(new Ls(r,o))}},{key:"reverse",value:function(r){return this.processor.process(new Gs(r))}},{key:"unpatch",value:function(r,o){return this.patch(r,this.reverse(o))}},{key:"clone",value:function(r){return hn(r)}}]),a}(),qs=typeof Array.isArray=="function"?Array.isArray:function(a){return a instanceof Array},jl=typeof Object.keys=="function"?function(a){return Object.keys(a)}:function(a){var n=[];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&n.push(r);return n},Xl=function(n){return n.substr(0,1)==="_"?n.slice(1):n},Oo=function(n){return n==="_t"?-1:n.substr(0,1)==="_"?parseInt(n.slice(1),10):parseInt(n,10)+.1},zl=function(n,r){return Oo(n)-Oo(r)},Sn=function(){function a(){ze(this,a)}return It(a,[{key:"format",value:function(r,o){var f={};return this.prepareContext(f),this.recurse(f,r,o),this.finalize(f)}},{key:"prepareContext",value:function(r){r.buffer=[],r.out=function(){var o;(o=this.buffer).push.apply(o,arguments)}}},{key:"typeFormattterNotFound",value:function(r,o){throw new Error("cannot format delta type: "+o)}},{key:"typeFormattterErrorFormatter",value:function(r,o){return o.toString()}},{key:"finalize",value:function(r){var o=r.buffer;if(qs(o))return o.join("")}},{key:"recurse",value:function(r,o,f,i,c,g,l){var p=o&&g,I=p?g.value:f;if(!(typeof o=="undefined"&&typeof i=="undefined")){var h=this.getDeltaType(o,g),v=h==="node"?o._t==="a"?"array":"object":"";typeof i!="undefined"?this.nodeBegin(r,i,c,h,v,l):this.rootBegin(r,h,v);var m=void 0;try{m=this["format_"+h]||this.typeFormattterNotFound(r,h),m.call(this,r,o,I,i,c,g)}catch(w){this.typeFormattterErrorFormatter(r,w,o,I,i,c,g),typeof console!="undefined"&&console.error&&console.error(w.stack)}typeof i!="undefined"?this.nodeEnd(r,i,c,h,v,l):this.rootEnd(r,h,v)}}},{key:"formatDeltaChildren",value:function(r,o,f){var i=this;this.forEachDeltaKey(o,f,function(c,g,l,p){i.recurse(r,o[c],f?f[g]:void 0,c,g,l,p)})}},{key:"forEachDeltaKey",value:function(r,o,f){var i=jl(r),c=r._t==="a",g={},l=void 0;if(typeof o!="undefined")for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&typeof r[l]=="undefined"&&(!c||typeof r["_"+l]=="undefined")&&i.push(l);for(l in r)if(Object.prototype.hasOwnProperty.call(r,l)){var p=r[l];qs(p)&&p[2]===3&&(g[p[1].toString()]={key:l,value:o&&o[parseInt(l.substr(1))]},this.includeMoveDestinations!==!1&&typeof o=="undefined"&&typeof r[p[1]]=="undefined"&&i.push(p[1].toString()))}c?i.sort(zl):i.sort();for(var I=0,h=i.length;I<h;I++){var v=i[I];if(!(c&&v==="_t")){var m=c?typeof v=="number"?v:parseInt(Xl(v),10):v,w=I===h-1;f(v,m,g[m],w)}}}},{key:"getDeltaType",value:function(r,o){if(typeof r=="undefined")return typeof o!="undefined"?"movedestination":"unchanged";if(qs(r)){if(r.length===1)return"added";if(r.length===2)return"modified";if(r.length===3&&r[2]===0)return"deleted";if(r.length===3&&r[2]===2)return"textdiff";if(r.length===3&&r[2]===3)return"moved"}else if((typeof r=="undefined"?"undefined":pt(r))==="object")return"node";return"unknown"}},{key:"parseTextDiff",value:function(r){for(var o=[],f=r.split(`
|
|
39
|
+
@@ `),i=0,c=f.length;i<c;i++){var g=f[i],l={pieces:[]},p=/^(?:@@ )?[-+]?(\d+),(\d+)/.exec(g).slice(1);l.location={line:p[0],chr:p[1]};for(var I=g.split(`
|
|
40
|
+
`).slice(1),h=0,v=I.length;h<v;h++){var m=I[h];if(m.length){var w={type:"context"};m.substr(0,1)==="+"?w.type="added":m.substr(0,1)==="-"&&(w.type="deleted"),w.text=m.slice(1),l.pieces.push(w)}}o.push(l)}return o}}]),a}();(function(a){qt(n,a);function n(){return ze(this,n),Wt(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return It(n,[{key:"typeFormattterErrorFormatter",value:function(o,f){o.out('<pre class="jsondiffpatch-error">'+f+"</pre>")}},{key:"formatValue",value:function(o,f){o.out("<pre>"+Bo(JSON.stringify(f,null,2))+"</pre>")}},{key:"formatTextDiffString",value:function(o,f){var i=this.parseTextDiff(f);o.out('<ul class="jsondiffpatch-textdiff">');for(var c=0,g=i.length;c<g;c++){var l=i[c];o.out('<li><div class="jsondiffpatch-textdiff-location">'+('<span class="jsondiffpatch-textdiff-line-number">'+l.location.line+'</span><span class="jsondiffpatch-textdiff-char">'+l.location.chr+'</span></div><div class="jsondiffpatch-textdiff-line">'));for(var p=l.pieces,I=0,h=p.length;I<h;I++){var v=p[I];o.out('<span class="jsondiffpatch-textdiff-'+v.type+'">'+Bo(decodeURI(v.text))+"</span>")}o.out("</div></li>")}o.out("</ul>")}},{key:"rootBegin",value:function(o,f,i){var c="jsondiffpatch-"+f+(i?" jsondiffpatch-child-node-type-"+i:"");o.out('<div class="jsondiffpatch-delta '+c+'">')}},{key:"rootEnd",value:function(o){o.out("</div>"+(o.hasArrows?'<script type="text/javascript">setTimeout('+(Jl.toString()+",10);<\/script>"):""))}},{key:"nodeBegin",value:function(o,f,i,c,g){var l="jsondiffpatch-"+c+(g?" jsondiffpatch-child-node-type-"+g:"");o.out('<li class="'+l+'" data-key="'+i+'">'+('<div class="jsondiffpatch-property-name">'+i+"</div>"))}},{key:"nodeEnd",value:function(o){o.out("</li>")}},{key:"format_unchanged",value:function(o,f,i){typeof i!="undefined"&&(o.out('<div class="jsondiffpatch-value">'),this.formatValue(o,i),o.out("</div>"))}},{key:"format_movedestination",value:function(o,f,i){typeof i!="undefined"&&(o.out('<div class="jsondiffpatch-value">'),this.formatValue(o,i),o.out("</div>"))}},{key:"format_node",value:function(o,f,i){var c=f._t==="a"?"array":"object";o.out('<ul class="jsondiffpatch-node jsondiffpatch-node-type-'+c+'">'),this.formatDeltaChildren(o,f,i),o.out("</ul>")}},{key:"format_added",value:function(o,f){o.out('<div class="jsondiffpatch-value">'),this.formatValue(o,f[0]),o.out("</div>")}},{key:"format_modified",value:function(o,f){o.out('<div class="jsondiffpatch-value jsondiffpatch-left-value">'),this.formatValue(o,f[0]),o.out('</div><div class="jsondiffpatch-value jsondiffpatch-right-value">'),this.formatValue(o,f[1]),o.out("</div>")}},{key:"format_deleted",value:function(o,f){o.out('<div class="jsondiffpatch-value">'),this.formatValue(o,f[0]),o.out("</div>")}},{key:"format_moved",value:function(o,f){o.out('<div class="jsondiffpatch-value">'),this.formatValue(o,f[0]),o.out('</div><div class="jsondiffpatch-moved-destination">'+f[1]+"</div>"),o.out(`<div class="jsondiffpatch-arrow" style="position: relative; left: -34px;">
|
|
41
|
+
<svg width="30" height="60" style="position: absolute; display: none;">
|
|
42
|
+
<defs>
|
|
43
|
+
<marker id="markerArrow" markerWidth="8" markerHeight="8"
|
|
44
|
+
refx="2" refy="4"
|
|
45
|
+
orient="auto" markerUnits="userSpaceOnUse">
|
|
46
|
+
<path d="M1,1 L1,7 L7,4 L1,1" style="fill: #339;" />
|
|
47
|
+
</marker>
|
|
48
|
+
</defs>
|
|
49
|
+
<path d="M30,0 Q-10,25 26,50"
|
|
50
|
+
style="stroke: #88f; stroke-width: 2px; fill: none; stroke-opacity: 0.5; marker-end: url(#markerArrow);"
|
|
51
|
+
></path>
|
|
52
|
+
</svg>
|
|
53
|
+
</div>`),o.hasArrows=!0}},{key:"format_textdiff",value:function(o,f){o.out('<div class="jsondiffpatch-value">'),this.formatTextDiffString(o,f[0]),o.out("</div>")}}]),n})(Sn);function Bo(a){for(var n=a,r=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/'/g,"'"],[/"/g,"""]],o=0;o<r.length;o++)n=n.replace(r[o][0],r[o][1]);return n}var Jl=function(n){var r=n||document,o=function(g){var l=g.textContent,p=g.innerText;return l||p},f=function(g,l,p){for(var I=g.querySelectorAll(l),h=0,v=I.length;h<v;h++)p(I[h])},i=function(g,l){for(var p=g.children,I=0,h=p.length;I<h;I++)l(p[I],I)};f(r,".jsondiffpatch-arrow",function(c){var g=c.parentNode,l=c.children,p=c.style,I=g,h=l[0],v=h.children[1];h.style.display="none";var m=o(I.querySelector(".jsondiffpatch-moved-destination")),w=I.parentNode,B=void 0;if(i(w,function(N){N.getAttribute("data-key")===m&&(B=N)}),!!B)try{var _=B.offsetTop-I.offsetTop;h.setAttribute("height",Math.abs(_)+6),p.top=-8+(_>0?0:_)+"px";var C=_>0?"M30,0 Q-10,"+Math.round(_/2)+" 26,"+(_-4):"M30,"+-_+" Q-10,"+Math.round(-_/2)+" 26,4";v.setAttribute("d",C),h.style.display=""}catch(N){}})},_r=function(a){qt(n,a);function n(){ze(this,n);var r=Wt(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return r.includeMoveDestinations=!1,r}return It(n,[{key:"prepareContext",value:function(o){Ns(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"prepareContext",this).call(this,o),o.indent=function(f){this.indentLevel=(this.indentLevel||0)+(typeof f=="undefined"?1:f),this.indentPad=new Array(this.indentLevel+1).join(" ")},o.row=function(f,i){o.out('<tr><td style="white-space: nowrap;"><pre class="jsondiffpatch-annotated-indent" style="display: inline-block">'),o.out(o.indentPad),o.out('</pre><pre style="display: inline-block">'),o.out(f),o.out('</pre></td><td class="jsondiffpatch-delta-note"><div>'),o.out(i),o.out("</div></td></tr>")}}},{key:"typeFormattterErrorFormatter",value:function(o,f){o.row("",'<pre class="jsondiffpatch-error">'+f+"</pre>")}},{key:"formatTextDiffString",value:function(o,f){var i=this.parseTextDiff(f);o.out('<ul class="jsondiffpatch-textdiff">');for(var c=0,g=i.length;c<g;c++){var l=i[c];o.out('<li><div class="jsondiffpatch-textdiff-location">'+('<span class="jsondiffpatch-textdiff-line-number">'+l.location.line+'</span><span class="jsondiffpatch-textdiff-char">'+l.location.chr+'</span></div><div class="jsondiffpatch-textdiff-line">'));for(var p=l.pieces,I=0,h=p.length;I<h;I++){var v=p[I];o.out('<span class="jsondiffpatch-textdiff-'+v.type+'">'+v.text+"</span>")}o.out("</div></li>")}o.out("</ul>")}},{key:"rootBegin",value:function(o,f,i){o.out('<table class="jsondiffpatch-annotated-delta">'),f==="node"&&(o.row("{"),o.indent()),i==="array"&&o.row('"_t": "a",',"Array delta (member names indicate array indices)")}},{key:"rootEnd",value:function(o,f){f==="node"&&(o.indent(-1),o.row("}")),o.out("</table>")}},{key:"nodeBegin",value:function(o,f,i,c,g){o.row("""+f+"": {"),c==="node"&&o.indent(),g==="array"&&o.row('"_t": "a",',"Array delta (member names indicate array indices)")}},{key:"nodeEnd",value:function(o,f,i,c,g,l){c==="node"&&o.indent(-1),o.row("}"+(l?"":","))}},{key:"format_unchanged",value:function(){}},{key:"format_movedestination",value:function(){}},{key:"format_node",value:function(o,f,i){this.formatDeltaChildren(o,f,i)}}]),n}(Sn),bn=function(n){return'<pre style="display:inline-block">"'+n+""</pre>"},Zl={added:function(n,r,o,f){var i=" <pre>([newValue])</pre>";return typeof f=="undefined"?"new value"+i:typeof f=="number"?"insert at index "+f+i:"add property "+bn(f)+i},modified:function(n,r,o,f){var i=" <pre>([previousValue, newValue])</pre>";return typeof f=="undefined"?"modify value"+i:typeof f=="number"?"modify at index "+f+i:"modify property "+bn(f)+i},deleted:function(n,r,o,f){var i=" <pre>([previousValue, 0, 0])</pre>";return typeof f=="undefined"?"delete value"+i:typeof f=="number"?"remove index "+f+i:"delete property "+bn(f)+i},moved:function(n,r,o,f){return'move from <span title="(position to remove at original state)">'+("index "+f+'</span> to <span title="(position to insert at final')+(' state)">index '+n[1]+"</span>")},textdiff:function(n,r,o,f){var i=typeof f=="undefined"?"":typeof f=="number"?" at index "+f:" at property "+bn(f);return"text diff"+i+', format is <a href="https://code.google.com/p/google-diff-match-patch/wiki/Unidiff">a variation of Unidiff</a>'}},xr=function(n,r){var o=this.getDeltaType(r),f=Zl[o],i=f&&f.apply(f,Array.prototype.slice.call(arguments,1)),c=JSON.stringify(r,null,2);o==="textdiff"&&(c=c.split("\\n").join(`\\n"+
|
|
54
|
+
"`)),n.indent(),n.row(c,i),n.indent(-1)};_r.prototype.format_added=xr,_r.prototype.format_modified=xr,_r.prototype.format_deleted=xr,_r.prototype.format_moved=xr,_r.prototype.format_textdiff=xr;var yn={add:"add",remove:"remove",replace:"replace",move:"move"};(function(a){qt(n,a);function n(){ze(this,n);var r=Wt(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return r.includeMoveDestinations=!0,r}return It(n,[{key:"prepareContext",value:function(o){Ns(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"prepareContext",this).call(this,o),o.result=[],o.path=[],o.pushCurrentOp=function(f){var i=f.op,c=f.value,g={op:i,path:this.currentPath()};typeof c!="undefined"&&(g.value=c),this.result.push(g)},o.pushMoveOp=function(f){var i=this.currentPath();this.result.push({op:yn.move,from:i,path:this.toPath(f)})},o.currentPath=function(){return"/"+this.path.join("/")},o.toPath=function(f){var i=this.path.slice();return i[i.length-1]=f,"/"+i.join("/")}}},{key:"typeFormattterErrorFormatter",value:function(o,f){o.out("[ERROR] "+f)}},{key:"rootBegin",value:function(){}},{key:"rootEnd",value:function(){}},{key:"nodeBegin",value:function(o,f,i){var c=o.path;c.push(i)}},{key:"nodeEnd",value:function(o){var f=o.path;f.pop()}},{key:"format_unchanged",value:function(){}},{key:"format_movedestination",value:function(){}},{key:"format_node",value:function(o,f,i){this.formatDeltaChildren(o,f,i)}},{key:"format_added",value:function(o,f){o.pushCurrentOp({op:yn.add,value:f[0]})}},{key:"format_modified",value:function(o,f){o.pushCurrentOp({op:yn.replace,value:f[1]})}},{key:"format_deleted",value:function(o){o.pushCurrentOp({op:yn.remove})}},{key:"format_moved",value:function(o,f){var i=f[1];o.pushMoveOp(i)}},{key:"format_textdiff",value:function(){throw new Error("Not implemented")}},{key:"format",value:function(o,f){var i={};return this.prepareContext(i),this.recurse(i,o,f),i.result}}]),n})(Sn);function jt(a){return eo&&eo[a]||function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return r}}var Xt={added:jt("green"),deleted:jt("red"),movedestination:jt("gray"),moved:jt("yellow"),unchanged:jt("gray"),error:jt("white.bgRed"),textDiffLine:jt("gray")};(function(a){qt(n,a);function n(){ze(this,n);var r=Wt(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return r.includeMoveDestinations=!1,r}return It(n,[{key:"prepareContext",value:function(o){Ns(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"prepareContext",this).call(this,o),o.indent=function(f){this.indentLevel=(this.indentLevel||0)+(typeof f=="undefined"?1:f),this.indentPad=new Array(this.indentLevel+1).join(" "),this.outLine()},o.outLine=function(){this.buffer.push(`
|
|
55
|
+
`+(this.indentPad||""))},o.out=function(){for(var f=arguments.length,i=Array(f),c=0;c<f;c++)i[c]=arguments[c];for(var g=0,l=i.length;g<l;g++){var p=i[g].split(`
|
|
56
|
+
`),I=p.join(`
|
|
57
|
+
`+(this.indentPad||""));this.color&&this.color[0]&&(I=this.color[0](I)),this.buffer.push(I)}},o.pushColor=function(f){this.color=this.color||[],this.color.unshift(f)},o.popColor=function(){this.color=this.color||[],this.color.shift()}}},{key:"typeFormattterErrorFormatter",value:function(o,f){o.pushColor(Xt.error),o.out("[ERROR]"+f),o.popColor()}},{key:"formatValue",value:function(o,f){o.out(JSON.stringify(f,null,2))}},{key:"formatTextDiffString",value:function(o,f){var i=this.parseTextDiff(f);o.indent();for(var c=0,g=i.length;c<g;c++){var l=i[c];o.pushColor(Xt.textDiffLine),o.out(l.location.line+","+l.location.chr+" "),o.popColor();for(var p=l.pieces,I=0,h=p.length;I<h;I++){var v=p[I];o.pushColor(Xt[v.type]),o.out(v.text),o.popColor()}c<g-1&&o.outLine()}o.indent(-1)}},{key:"rootBegin",value:function(o,f,i){o.pushColor(Xt[f]),f==="node"&&(o.out(i==="array"?"[":"{"),o.indent())}},{key:"rootEnd",value:function(o,f,i){f==="node"&&(o.indent(-1),o.out(i==="array"?"]":"}")),o.popColor()}},{key:"nodeBegin",value:function(o,f,i,c,g){o.pushColor(Xt[c]),o.out(i+": "),c==="node"&&(o.out(g==="array"?"[":"{"),o.indent())}},{key:"nodeEnd",value:function(o,f,i,c,g,l){c==="node"&&(o.indent(-1),o.out(g==="array"?"]":"}"+(l?"":","))),l||o.outLine(),o.popColor()}},{key:"format_unchanged",value:function(o,f,i){typeof i!="undefined"&&this.formatValue(o,i)}},{key:"format_movedestination",value:function(o,f,i){typeof i!="undefined"&&this.formatValue(o,i)}},{key:"format_node",value:function(o,f,i){this.formatDeltaChildren(o,f,i)}},{key:"format_added",value:function(o,f){this.formatValue(o,f[0])}},{key:"format_modified",value:function(o,f){o.pushColor(Xt.deleted),this.formatValue(o,f[0]),o.popColor(),o.out(" => "),o.pushColor(Xt.added),this.formatValue(o,f[1]),o.popColor()}},{key:"format_deleted",value:function(o,f){this.formatValue(o,f[0])}},{key:"format_moved",value:function(o,f){o.out("==> "+f[1])}},{key:"format_textdiff",value:function(o,f){this.formatTextDiffString(o,f[0])}}]),n})(Sn);var Je=void 0;function Yl(){return Je||(Je=new Vs),Je.diff.apply(Je,arguments)}function Ql(){return Je||(Je=new Vs),Je.patch.apply(Je,arguments)}function eu(){return Je||(Je=new Vs),Je.reverse.apply(Je,arguments)}const k={A:{value:"A",name:"Alanine",threeLettersName:"Ala",hydrophobicity:1.8,colorByFamily:"#00FFFF",color:"hsl(327.3, 100%, 69%)",mass:89.1},R:{value:"R",name:"Arginine",threeLettersName:"Arg",hydrophobicity:-4.5,colorByFamily:"#FFC0CB",color:"hsl(258.1, 100%, 69%)",mass:174.2},N:{value:"N",name:"Asparagine",threeLettersName:"Asn",hydrophobicity:-3.5,colorByFamily:"#D3D3D3",color:"hsl(268.9, 100%, 69%)",mass:132.1},D:{value:"D",name:"Aspartic acid",threeLettersName:"Asp",hydrophobicity:-3.5,colorByFamily:"#EE82EE",color:"hsl(268.9, 100%, 69%)",mass:133.1},C:{value:"C",name:"Cysteine",threeLettersName:"Cys",hydrophobicity:2.5,colorByFamily:"#FFFF00",color:"hsl(335.1, 100%, 69%)",mass:121.2},E:{value:"E",name:"Glutamic acid",threeLettersName:"Glu",hydrophobicity:-3.5,colorByFamily:"#EE82EE",color:"hsl(268.9, 100%, 69%)",mass:147.1},Q:{value:"Q",name:"Glutamine",threeLettersName:"Gln",hydrophobicity:-3.5,colorByFamily:"#D3D3D3",color:"hsl(268.9, 100%, 69%)",mass:146.2},G:{value:"G",name:"Glycine",threeLettersName:"Gly",hydrophobicity:-.4,colorByFamily:"#00FFFF",color:"hsl(303.1, 100%, 69%)",mass:75.1},H:{value:"H",name:"Histidine",threeLettersName:"His",hydrophobicity:-3.2,colorByFamily:"#FFC0CB",color:"hsl(272.2, 100%, 69%)",mass:155.2},I:{value:"I",name:"Isoleucine ",threeLettersName:"Ile",hydrophobicity:4.5,colorByFamily:"#00FFFF",color:"hsl(356.9, 100%, 69%)",mass:131.2},L:{value:"L",name:"Leucine",threeLettersName:"Leu",hydrophobicity:3.8,colorByFamily:"#00FFFF",color:"hsl(349.4, 100%, 69%)",mass:131.2},K:{value:"K",name:"Lysine",threeLettersName:"Lys",hydrophobicity:-3.9,colorByFamily:"#FFC0CB",color:"hsl(264.7, 100%, 69%)",mass:146.2},M:{value:"M",name:"Methionine",threeLettersName:"Met",hydrophobicity:1.9,colorByFamily:"#FFFF00",color:"hsl(328.5, 100%, 69%)",mass:149.2},F:{value:"F",name:"Phenylalanine",threeLettersName:"Phe",hydrophobicity:2.8,colorByFamily:"#FFA500",color:"hsl(338.4, 100%, 69%)",mass:165.2},P:{value:"P",name:"Proline",threeLettersName:"Pro",hydrophobicity:-1.6,colorByFamily:"#00FFFF",color:"hsl(289.9, 100%, 69%)",mass:115.1},S:{value:"S",name:"Serine",threeLettersName:"Ser",hydrophobicity:-.8,colorByFamily:"#90EE90",color:"hsl(298.6, 100%, 69%)",mass:105.1},T:{value:"T",name:"Threonine",threeLettersName:"Thr",hydrophobicity:-.7,colorByFamily:"#90EE90",color:"hsl(299.8, 100%, 69%)",mass:119.1},U:{value:"U",name:"Selenocysteine",threeLettersName:"Sec",colorByFamily:"#FF0000",color:"hsl(0, 100%, 69%)",mass:168.1},W:{value:"W",name:"Tryptophan",threeLettersName:"Trp",hydrophobicity:-.9,colorByFamily:"#FFA500",color:"hsl(297.6, 100%, 69%)",mass:204.2},Y:{value:"Y",name:"Tyrosine",threeLettersName:"Tyr",hydrophobicity:-1.3,colorByFamily:"#FFA500",color:"hsl(293.2, 100%, 69%)",mass:181.2},V:{value:"V",name:"Valine",threeLettersName:"Val",hydrophobicity:4.2,colorByFamily:"#00FFFF",color:"hsl(353.6, 100%, 69%)",mass:117.1},"*":{value:"*",name:"Stop",threeLettersName:"Stop",colorByFamily:"#FF0000",color:"hsl(0, 100%, 69%)",mass:0},".":{value:".",name:"Gap",threeLettersName:"Gap",colorByFamily:"#FF0000",color:"hsl(0, 100%, 69%)",mass:0},"-":{value:"-",name:"Gap",threeLettersName:"Gap",colorByFamily:"#FF0000",color:"hsl(0, 100%, 69%)",mass:0},B:{value:"B",threeLettersName:"ND",colorByFamily:"#D3D3D3",color:"hsl(268.9, 100%, 69%)",isAmbiguous:!0,name:"B",aliases:"ND",mass:0},J:{value:"J",threeLettersName:"IL",colorByFamily:"#00FFFF",color:"hsl(352, 100%, 69%)",isAmbiguous:!0,name:"J",aliases:"IL",mass:0},X:{value:"X",threeLettersName:"ACDEFGHIKLMNPQRSTVWY",colorByFamily:"#FFFFFF",color:"hsl(60, 100%, 69%)",isAmbiguous:!0,name:"X",aliases:"ACDEFGHIKLMNPQRSTVWY",mass:0},Z:{value:"Z",threeLettersName:"QE",colorByFamily:"#D3D3D3",color:"hsl(268.9, 100%, 69%)",isAmbiguous:!0,name:"Z",aliases:"QE",mass:0}},Ao={gct:k.A,gcc:k.A,gca:k.A,gcg:k.A,gcu:k.A,cgt:k.R,cgc:k.R,cga:k.R,cgg:k.R,aga:k.R,agg:k.R,cgu:k.R,aat:k.N,aac:k.N,aau:k.N,gat:k.D,gac:k.D,gau:k.D,tgt:k.C,tgc:k.C,ugu:k.C,ugc:k.C,gaa:k.E,gag:k.E,caa:k.Q,cag:k.Q,ggt:k.G,ggc:k.G,gga:k.G,ggg:k.G,ggu:k.G,cat:k.H,cac:k.H,cau:k.H,att:k.I,atc:k.I,ata:k.I,auu:k.I,auc:k.I,aua:k.I,ctt:k.L,ctc:k.L,cta:k.L,ctg:k.L,tta:k.L,ttg:k.L,cuu:k.L,cuc:k.L,cua:k.L,cug:k.L,uua:k.L,uug:k.L,aaa:k.K,aag:k.K,atg:k.M,aug:k.M,ttt:k.F,ttc:k.F,uuu:k.F,uuc:k.F,cct:k.P,ccc:k.P,cca:k.P,ccg:k.P,ccu:k.P,tct:k.S,tcc:k.S,tca:k.S,tcg:k.S,agt:k.S,agc:k.S,ucu:k.S,ucc:k.S,uca:k.S,ucg:k.S,agu:k.S,act:k.T,acc:k.T,aca:k.T,acg:k.T,acu:k.T,tgg:k.W,ugg:k.W,tat:k.Y,tac:k.Y,uau:k.Y,uac:k.Y,gtt:k.V,gtc:k.V,gta:k.V,gtg:k.V,guu:k.V,guc:k.V,gua:k.V,gug:k.V,taa:k["*"],tag:k["*"],tga:k["*"],"...":k["."],"---":k["-"]},_o=q.invert(nn);function wn(a){if(a=a.toLowerCase(),a.length!==3)throw new Error("must pass a string of length 3");let n=Ao[a];if(n)return n;const r=_o[a.replace("x","n")]||"x";return k[r.toUpperCase()]}function Er(a,n,r,o){let f=o?a.length*3:a.length,i=a,c=0;r&&(i=yt(r,a),c=r.start);let g=o?i.length*3:i.length,l=[],p,I=0,h=0;if(!n&&(h=Math.floor((g-1)/3),I=g%3,p=ar({start:0,end:I-1},c,f),I>0)){for(let m=0;m<I;m++)l.push({aminoAcid:wn("xxx"),positionInCodon:I-m-1,aminoAcidIndex:h,sequenceIndex:p.start+m,codonRange:p,fullCodon:!1});h--}for(let m=2+I;m<g;m+=3){let w;if(o)w=k[i[(m-2)/3].toUpperCase()];else{let B=i.slice(m-2,m+1);n||(B=wt(B)),w=wn(B)}p=ar({start:m-2,end:m},c,f),l.push({aminoAcid:w,positionInCodon:n?0:2,aminoAcidIndex:h,sequenceIndex:p.start,codonRange:p,fullCodon:!0}),l.push({aminoAcid:w,positionInCodon:1,aminoAcidIndex:h,sequenceIndex:p.start+1,codonRange:p,fullCodon:!0}),l.push({aminoAcid:w,positionInCodon:n?2:0,aminoAcidIndex:h,sequenceIndex:p.start+2,codonRange:p,fullCodon:!0}),n?h++:h--}let v=g-l.length;p=ar({start:g-v,end:g-1},c,f);for(let m=0;m<v;m++)l.push({aminoAcid:wn("xxx"),positionInCodon:m,aminoAcidIndex:h,sequenceIndex:p.start+m,fullCodon:!1,codonRange:p});if(g!==l.length)throw new Error("something went wrong!");return l}const ht=["features","warnings","assemblyPieces","lineageAnnotations","parts","cutsites","orfs","translations","primers","guides"],Cr=["features","assemblyPieces","lineageAnnotations","warnings","parts","translations","primers","guides"];function xo(a,n="",r){return a&&a.replace(new RegExp(`[^${r||`atgcyrswkmbvdhnu${n.split("").join("\\")}`}]`,"gi"),"")}function Eo(a,{sequenceData:n={},convertAnnotationsFromAAIndices:r,annotationType:o,provideNewIdsForAnnotations:f,doNotProvideIdsForAnnotations:i,messages:c=[],mutative:g,allowNonStandardGenbankTypes:l,featureTypes:p}){const{size:I,circular:h,isProtein:v}=n;if(!a||typeof a!="object")return c.push("Invalid annotation detected and removed"),!1;let m=a;if(g||(m=q.cloneDeep(a)),m.annotationTypePlural=o,(!m.name||typeof m.name!="string")&&(c.push('Unable to detect valid name for annotation, setting name to "Untitled annotation"'),m.name="Untitled annotation"),f&&(m.id=Vt().str),!m.id&&m.id!==0&&!i&&(m.id=Vt().str,c.push("Unable to detect valid ID for annotation, setting ID to "+m.id)),Co({isProtein:v,location:m,convertAnnotationsFromAAIndices:r,size:I,messages:c,circular:h,name:m.name}),m.locations&&m.locations.forEach(w=>{Co({isProtein:v,location:w,convertAnnotationsFromAAIndices:r,size:I,messages:c,circular:h,name:m.name})}),v||m.forward===!0||m.forward==="true"||m.strand===1||m.strand==="1"||m.strand==="+"?(m.forward=!0,m.strand=1):(m.forward=!1,m.strand=-1),(!m.type||typeof m.type!="string"||!q.some(p||on(),w=>w.toLowerCase()===m.type.toLowerCase()?(m.type=w,!0):!!(l||typeof window!="undefined"&&q.get(window,"tg_allowNonStandardGenbankTypes")||typeof global!="undefined"&&q.get(global,"tg_allowNonStandardGenbankTypes"))))&&(c.push("Invalid annotation type detected: "+m.type+" for "+m.name+". set type to misc_feature"),m.type="misc_feature"),m.notes&&typeof m.notes=="string")try{m.notes=JSON.parse(m.notes)}catch(w){console.info(`warning 33y00a0912 - couldn't parse notes for ${m.name||""} ${m.notes}:`,w)}return m.color||(m.color=As()[m.type]),m}function Co({location:a,convertAnnotationsFromAAIndices:n,size:r,isProtein:o,messages:f,circular:i,name:c}){a.start=parseInt(a.start,10),a.end=parseInt(a.end,10),n&&(a.start=a.start*3,a.end=a.end*3+2),(a.start<0||!(a.start<=r-1)||a.start>r-1)&&(f.push("Invalid annotation start: "+a.start+" detected for "+a.name+" and set to size: "+r),a.start=r-(o?3:1)),(a.end<0||!(a.end<=r-1)||a.end>r-1)&&(f.push("Invalid annotation end: "+a.end+" detected for "+a.name+" and set to seq size: "+r),a.end=r-1),a.start>a.end&&i===!1&&(f.push("Invalid circular annotation detected for "+c+". end set to 1"),a.end=r)}function Fo(a,n){return n=n||{},n.includeStopCodon?a.replace(/[^xtgalmfwkqespvicyhrndu.*]/gi,""):a.replace(/[^xtgalmfwkqespvicyhrndu]/gi,"")}function To(a){return a.split("").map(n=>nn[n.toLowerCase()]||"nnn").join("")}function Ue(a,n={}){const{annotationsAsObjects:r,logMessages:o,removeUnwantedChars:f,additionalValidChars:i,noTranslationData:c,charOverrides:g,doNotProvideIdsForAnnotations:l,proteinFilterOptions:p,noCdsTranslations:I,convertAnnotationsFromAAIndices:h}=n;let v=q.cloneDeep(a);const m={messages:[]};v||(v={}),v.sequence||(v.sequence=""),v.proteinSequence||(v.proteinSequence="");let w=!1;v.isProtein&&(v.circular=!1,!v.proteinSequence&&v.proteinSequence!==""&&(v.proteinSequence=v.sequence),(!v.sequence||v.sequence.length!==v.proteinSequence.length*3)&&(w=!0)),v.isRna&&(v.sequence=v.sequence.replace(/t/gi,"u")),f&&(v.isProtein?v.proteinSequence=Fo(v.proteinSequence,ie({includeStopCodon:!0},p)):v.sequence=xo(v.sequence,`${i||""}${v.isRna||v.isMixedRnaAndDna?"u":""}`,g)),v.isProtein&&(w&&(v.sequence=To(v.proteinSequence)),v.aminoAcidDataForEachBaseOfDNA=Er(v.proteinSequence,!0,null,!0)),v.size=v.noSequence?v.size:v.sequence.length,v.proteinSize=v.noSequence?v.proteinSize:v.proteinSequence.length,v.circular==="false"||v.circular==-1||v.circular===!1||!v.circular&&v.sequenceTypeCode!=="CIRCULAR_DNA"?v.circular=!1:v.circular=!0;const B=on();return ht.forEach(_=>{Array.isArray(v[_])||(typeof v[_]=="object"?v[_]=Object.keys(v[_]).map(C=>v[_][C]):v[_]=[]),v[_]=v[_].filter(C=>Eo(C,ye(ie({},n),{featureTypes:B,sequenceData:v,convertAnnotationsFromAAIndices:h,mutative:!0,annotationType:_})))}),c||(v.translations=q.flatMap(v.translations,_=>I&&_.translationType==="CDS Feature"?[]:(!_.aminoAcids&&!v.noSequence&&(_.aminoAcids=Er(v.sequence,_.forward,_)),_))),r&&ht.forEach(_=>{v[_]=v[_].reduce((C,N)=>{let F;return N.id||N.id===0?F=N.id:(F=Vt().str,l||(N.id=F)),C[F]=N,C},{})}),o&&m.messages.length>0&&console.info("tidyUpSequenceData messages:",m.messages),v}const tu=(a,n,{ignoreKeys:r=[]}={})=>(a=Ue(a,{annotationsAsObjects:!0,noTranslationData:!0}),n=Ue(n,{annotationsAsObjects:!0,noTranslationData:!0}),[a,n].forEach(o=>{["cutsites","orfs","filteredFeatures","size","fromFileUpload","description","materiallyAvailable",...r].forEach(f=>{delete o[f]}),o.translations&&q.forEach(o.translations,(f,i)=>{f.translationType&&f.translationType!=="User Created"?delete o.translations[i]:delete f.aminoAcids})}),Yl(a,n)),ru=(a,n,{ignoreKeys:r=[]}={})=>(r.forEach(o=>{delete n[o]}),Ql(Ue(q.cloneDeep(a),{annotationsAsObjects:!0}),n)),nu=a=>eu(a);function Mo(a){let n=[];a.forEach(o=>{const f=o.cigar.match(/([0-9]*[MDI])/g);for(let i=0;i<f.length;i++)if(f[i].slice(-1)==="I"){let c=o.pos;const g=Number(f[i].slice(0,-1));for(let p=0;p<i;p++)if(f[p].slice(-1)!=="I"){const I=Number(f[p].slice(0,-1));c+=I}let l={bpPos:c,number:g};n.push(l)}});let r=n.sort((o,f)=>o.bpPos-f.bpPos);for(let o=0;o<r.length-1;o++)r[o].bpPos===r[o+1].bpPos&&(r[o].number>r[o+1].number?(r.splice(o+1,1),o--):(r[o].number<r[o+1].number||r[o].number===r[o+1].number)&&(r.splice(o,1),o--));return r}function su({fullSeq:a,searchSeq:n}){const r=a.id||"fullSeqId",o=n.id||"searchSeqId",f=Mi({seqsToAnnotateById:{[r]:ye(ie({},a),{id:r})},annotationsToCheckById:{[o]:ye(ie({},n),{id:o})},compareName:!1});return f&&f[r]?{matches:f[r]}:{matches:[]}}const Ws={"-":"---",".":"...","*":"trr",a:"gcn",b:"ray",c:"ugy",d:"gay",e:"gar",f:"uuy",g:"ggn",h:"cay",i:"auh",j:"hun",k:"aar",l:"yun",m:"aug",n:"aay",o:"uag",p:"ccn",q:"car",r:"mgn",s:"wsn",t:"acn",u:"uga",v:"gun",w:"ugg",x:"nnn",y:"uay",z:"sar"};function au(a){return a.split("").map(n=>Ws[n.toLowerCase()]||"nnn").join("")}function iu({cutsites:a,sequenceLength:n,isCircular:r,computePartialDigest:o,computePartialDigestDisabled:f,computeDigestDisabled:i}){let c=[];const g=[],l=[],p=a.sort((I,h)=>I.topSnipPosition-h.topSnipPosition);return p.forEach((I,h)=>{o&&!f&&p.forEach((v,m)=>{l.push([I,p[m]])}),i||l.push([I,p[h+1]?p[h+1]:p[0]])}),l.forEach(([I,h])=>{const v=ae(I.topSnipPosition,n),m=ae(h.topSnipPosition-1,n);if(!r&&v>m){const w={start:v,end:n-1,cut1:I,cut2:{type:"endOfSeq",restrictionEnzyme:{name:"End Of Seq"}}},B={start:0,end:m,cut1:{type:"startOfSeq",restrictionEnzyme:{name:"Start Of Seq"}},cut2:h};c.push($s(w,n)),c.push($s(B,n))}else{const w={cut1:I,cut2:h,start:v,end:m};c.push($s(w,n))}}),c=c.filter(I=>I.size?!0:(g.push(I),!1)),{computePartialDigestDisabled:f,computeDigestDisabled:i,fragments:c,overlappingEnzymes:g}}function $s(a,n){const r=_e({start:a.start,end:a.end},n),o=`${q.get(a,"cut1.restrictionEnzyme.name","Untitled Cutsite")} -- ${q.get(a,"cut2.restrictionEnzyme.name","Untitled Cutsite")} ${r} bps`;return ye(ie({},a),{size:r,name:o,id:a.start+"-"+a.end+"-"+r+"-"})}function ou(a){return a.site.length<a.topSnipOffset||a.site.length<a.bottomSnipOffset}function Po(a,n){let r=a.split("");const o=Mo(n);for(let f=0;f<o.length;f++){const i=o[f].bpPos,c=o[f].number;let g="";for(let l=0;l<c;l++)g+="-";r.splice(i-1,0,g);for(let l=f+1;l<o.length;l++)o[l].bpPos+=1}return r.join("")}var fu=function(n,r,o,f){return n.slice(0,r)+(f||"")+n.slice(r+o)};const cu=Te(fu);function js(a,n="",r){let o=a;if(r&&r.start>-1){if(_e(r,a.length)===a.length)return n;const f=bt(al(r,a.length));o="",f.forEach((i,c)=>{o+=yt(i,a),f.length===1?Ai(0,i,a.length,!0,!0)?o=o+n:o=n+o:c===0&&(o+=n)})}else o=cu(a,r,0,n);return o}function Uo(a){return(a.match(/[cg]/gi)||[]).length/a.length*100||0}const ko={TABLE_BRESLAUER:"breslauer",TABLE_SUGIMOTO:"sugimoto",TABLE_UNIFIED:"unified",A:-10.8,R:1.987,C:5e-7,Na:.05,calculateTemperature:function(a,n,r,o,f,i){if(typeof n=="undefined")n=this.TABLE_BRESLAUER;else if(n!=this.TABLE_BRESLAUER&&n!=this.TABLE_UNIFIED&&n!=this.TABLE_SUGIMOTO)throw new Error("Invalid table type!");if(r||(r=this.A),o||(o=this.R),f||(f=this.C),i||(i=this.Na),a.length==0)return 0;const g=this.getDeltaHTable(n),l=this.getDeltaSTable(n),p=[];p.push(this.calculateReps(a,"aa")),p.push(this.calculateNumberOfOccurrences(a,"at")),p.push(this.calculateNumberOfOccurrences(a,"ac")),p.push(this.calculateNumberOfOccurrences(a,"ag")),p.push(this.calculateReps(a,"tt")),p.push(this.calculateNumberOfOccurrences(a,"ta")),p.push(this.calculateNumberOfOccurrences(a,"tc")),p.push(this.calculateNumberOfOccurrences(a,"tg")),p.push(this.calculateReps(a,"cc")),p.push(this.calculateNumberOfOccurrences(a,"ca")),p.push(this.calculateNumberOfOccurrences(a,"ct")),p.push(this.calculateNumberOfOccurrences(a,"cg")),p.push(this.calculateReps(a,"gg")),p.push(this.calculateNumberOfOccurrences(a,"ga")),p.push(this.calculateNumberOfOccurrences(a,"gt")),p.push(this.calculateNumberOfOccurrences(a,"gc"));let I=0,h=0;for(let m=0;m<16;m++)I=I+p[m]*g[m],h=h+p[m]*l[m];const v=-1e3*I/(r+-h+o*Math.log(f/4))-273.15+16.6*Math.LOG10E*Math.log(i);return v<0?0:v.toFixed(2)},getDeltaHTable:function(a){return a==this.TABLE_BRESLAUER?[9.1,8.6,6.5,7.8,9.1,6,5.6,5.8,11,5.8,7.8,11.9,11,5.6,6.5,11.1]:a==this.TABLE_SUGIMOTO?[8,5.6,6.5,7.8,8,5.6,5.6,5.8,10.9,8.2,6.6,11.8,10.9,6.6,9.4,11.9]:a==this.TABLE_UNIFIED?[7.9,7.2,8.4,7.8,7.9,7.2,8.2,8.5,8,8.5,7.8,10.6,8,8.2,8.4,9.8]:null},getDeltaSTable:function(a){return a==this.TABLE_BRESLAUER?[24,23.9,17.3,20.8,24,16.9,13.5,12.9,26.6,12.9,20.8,27.8,26.6,13.5,17.3,26.7]:a==this.TABLE_SUGIMOTO?[21.9,15.2,17.3,20.8,21.9,15.2,13.5,12.9,28.4,25.5,23.5,29,28.4,16.4,25.5,29]:a==this.TABLE_UNIFIED?[22.2,20.4,22.4,21,22.2,21.3,22.2,22.7,19.9,22.7,21,27.2,19.9,22.2,22.4,24.4]:null},calculateReps:function(a,n){const r=a.length;if(r==0)return 0;let o=0,f=0;for(;;){const i=a.indexOf(n,f);if(i==-1||(f=i+1,o++,f>r))break}return o},calculateNumberOfOccurrences:function(a,n){return a.length==0?0:a.split(n).length-1}},gu=ko.calculateTemperature.bind(ko);function Xs(a){return typeof a=="object"&&a!==null?Do(ye(ie({},a),{locations:a.locations?a.locations.map(Do):void 0})):lu(a)}function lu(a){return Math.floor(a/3)}function Do(a){return ye(ie({},a),{start:a.start>-1?Math.floor(a.start/3):a.start,end:a.end>-1?Math.floor(a.end-2)/3:a.end})}function Ho(a,n){return uu(a.split(""),n).join("")}function uu(a,n){return n-=a.length*Math.floor(n/a.length),a.push.apply(a,a.splice(0,n)),a}function No(a,n,r){const o=Ue(a,r);return o.sequence=Ho(o.sequence,n),Cr.forEach(f=>{o[f]=pu(o[f],n,o.sequence.length)}),o}function pu(a,n,r){return q.map(a,o=>ye(ie({},Ti(o,n,r)),{locations:o.locations?o.locations.map(f=>Ti(f,n,r)):void 0})).filter(o=>!!o)}function Rn(a,n,r){return q.map(a,o=>ie(ie({},Oi(o,n,r)),o.locations&&{locations:o.locations.map(f=>Oi(f,n,r))}))}function On(a,n,r,o={}){const{maintainOriginSplit:f}=o;let i=Ue(n,o);const c=Ue(a,o);let g=q.cloneDeep(i);const l=c.proteinSequence?c.proteinSequence.length*3:c.sequence.length;let p=r;const I=c.sequence.length===_e(r,i.sequence.length);if(r.start>-1&&_e(r,i.sequence.length)===i.sequence.length?(i=Ue(ye(ie(ie({},i),Cr.reduce((h,v)=>h[v]=[],{})),{sequence:"",proteinSequence:"",chromatogramData:void 0}),o),g.chromatogramData=void 0):g.chromatogramData&&g.chromatogramData.baseTraces&&(r&&r.start>-1&&(r.start>r.end?(g.chromatogramData=zs({chromatogramData:g.chromatogramData,range:{start:r.start,end:g.sequence.length},justBaseCalls:I}),g.chromatogramData=zs({chromatogramData:g.chromatogramData,range:{start:0,end:r.end},justBaseCalls:I})):g.chromatogramData=zs({chromatogramData:g.chromatogramData,range:{start:r.start,end:r.end},justBaseCalls:I})),c.sequence&&hu({chromatogramData:g.chromatogramData,caretPosition:r.start>-1?r.start:r,seqToInsert:c.sequence,justBaseCalls:I})),g.sequence=js(i.sequence,c.sequence,r),g.size=g.sequence.length,g.proteinSequence=js(i.proteinSequence,c.proteinSequence,Xs(r)),g.proteinSize=g.proteinSequence.length,Cr.forEach(h=>{let v=i[h];if(r&&r.start>-1){const m=r;p=m.start>m.end?0:m.start,v=Iu(v,m,i.sequence.length)}g[h]=[],g[h]=g[h].concat(Rn(v,p,l)),g[h]=g[h].concat(Rn(c[h],0,p))}),f&&r&&r.start>r.end){const h=i.sequence.length-r.start;return No(g,Math.min(h,l))}return g}function Iu(a,n,r){return q.map(a,o=>{const f=Ri(o,n,r),i=o.locations&&o.locations.map(c=>Ri(c,n,r)).filter(c=>!!c);return i&&i.length?ie(ye(ie({},f),{start:i[0].start,end:i[i.length-1].end}),i.length>1&&{locations:i}):f}).filter(o=>!!o)}function hu({chromatogramData:a,caretPosition:n,seqToInsert:r,justBaseCalls:o}){if(!r.length)return;if(a.baseCalls&&a.baseCalls.splice(n,0,...r.split("")),o)return a;let f=[],i=[];for(let c=0;c<r.length;c++){i.push(0);const g=[0,0,0,0,0,0,0,0,0,0,0];f.push({aTrace:g,cTrace:g,gTrace:g,tTrace:g})}return a.baseTraces&&a.baseTraces.splice(n,0,...f),a.qualNums&&a.qualNums.splice(n,0,...i),a}function zs({chromatogramData:a,range:{start:n,end:r},justBaseCalls:o}){return["baseCalls",...o?[]:["qualNums","baseTraces","basePos"]].forEach(f=>{a[f]&&a[f].splice(n,r-n+1)}),a}function du(a,n){return On({},a,n)}function vu(a){return a.topSnipOffset>a.site.length||a.bottomSnipOffset>a.site.length}const mu=[{aliases:["ErpI","Bme18I","BsrAI","SmuEI","FdiI","BmpI","VpaK11BI","CauI","Kzo49I","SinI","EagMI","HgiHIII","AvaII","BamNxI","AflI","FssI","Asp745I","BthAI","HgiCII","FspMSI","DsaIV","Eco47I","Csp68KI","BcuAI","HgiEI","HgiJI","HgiBI","Bme216I"],site:"ggwcc",forwardRegex:"g{2}[atw]c{2}",reverseRegex:"g{2}[atw]c{2}",topSnipOffset:1,bottomSnipOffset:4},{aliases:["Eco196I","Uba1126I","Pae17I","Ssp1725I","BacI","Eco104I","Bsp12I","Eco100I","EccI","Kpn19I","DrdFI","Cfr37I","DrdEI","DrdBI","DrdAI","DrdCI","Cfr45II","FscI","Cte1I","Pfl1108II","NlaSI","Ecl1I","Bac465I","Uba66I","NgoDIII","NgoJIII","Pae7I","Dsp1I","SseII","BscTI","MraI","Pae36I","SsmII","NlaDIII","Eco55I","Uba77I","Uba1364I","Uba1369I","Pae44I","Pae43I","Pae42I","Sfr382I","Ese3I","Ese6I","SfrI","Cfr43I","Cfr41I","Uba1234I","StaI","Uba90I","NgoKIII","Eco151I","Eco208I","Uba1306I","Ecl28I","Eco158I","TtoI","Uba1244I","Asp32HI","SboI","Eco134I","Eco135I","SenpCI","ShyI","TglI","UbaHKAI","NgoGIII","NgoMIII","Eco96I","SakI","Eco92I","Ssm5II","SaaI","SabI","Uba1111I","AosIII","Uba1113I","Eco182I","Eco99I","Uba1187I","Uba1095I","Uba1093I","Ecl37I","Uba1229I"],site:"ccgcgg",forwardRegex:"c{2}gcg{2}",reverseRegex:"c{2}gcg{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SplI","PpuAI","BvuBI","Pfl23II","PspLI","SunI","BsiWI","BpuB5I","MaeK81I"],site:"cgtacg",forwardRegex:"cgtacg",reverseRegex:"cgtacg",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Uba1366II","Bsh108AI","Uba1161I","Uba1379I","BfrAI","BscVI","Uba1145I","Uba1257I","Uba1144I","Bsp145I","Apu16I","Uba1138I","Uba1286I","Bth1202I","Uba1137I","Uba1133I","Bli576I","Bsp84I","Uba1427I","BstLVI","Uba1200I","Bsp127I","Bsp126I","Bsp125I","Uba1275I","Bli585I","BazI","Uba1412I","Uba1342I","Uba1416I","Uba1195I","Uba1197I","Uba1196I","Bth9415I","Uba1295I","Uba1096I","Bco79I","Bsp2I","Uba43I","Bsp4I","Uba34I","Asp86I","Asp14I","Uba1430I","Uba1100I","Csp4I","Uba1198I","Uba1199I","Uba30I","Asp123I","Uba1246I","Uba22I","Uba24I","Asp707I","BsrCI","Uba1168I","Uba1315I","Uba1394I","Asp37I","Uba1233I","Uba1238I","Asp130I","BtuI","Uba1451I","Uba1453I","Uba1380I"],site:"atcgat",forwardRegex:"atcgat",reverseRegex:"atcgat",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Bbv12I","MspV281I","BsiHKAI","Alw21I","Bsm6I","Bsh45I","AspHI","HgiAI"],site:"gwgcwc",forwardRegex:"g[atw]gc[atw]c",reverseRegex:"g[atw]gc[atw]c",topSnipOffset:5,bottomSnipOffset:1},{aliases:["SmiMII","NflAI","Rma495II","Bsc217I","Tsp273I","Eco17I","NanI","Eco178I","BshLI","Bsp16I","Pac1110II","BsoAI","PxyARI","UbaN4I","Rma497II","Rma496II","Uba1400I","BstRI","Pfl16I"],site:"gatatc",forwardRegex:"gatatc",reverseRegex:"gatatc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Uba1223I","MthTI","Bpa36I","Bce71I","NgoCII","SagI","Bal3006I","Uba9I","NlaI","Uba1449I","HhgI","Bsu1114I","Uba1336I","Bfi458I","Uba1228I","Bsp23I","Uba1097I","Uba1214I","Tsp266I","TteAI","Uba1210I","Afl83II","BmeU1594I","Uba1322I","Bme46I","Bsp2500I","Csp2I","UbaN8I","MniI","BshAI","BshDI","BshEI","Van91III","BshBI","BshCI","Bsp2013I","HpyF10V","NgoAII","SulI","BsiDI","BsiAI","Uba1169I","NgoNII","Uba1319I","BliI","BsiHI","Uba1392I","Uba1395I","Uba1231I","BsaRI","HpyF72I","Uba1235I","Uba1450I","Bsp1261I","Tsp132I","Uba1230I","FinSI","Tsp281I","Bsp2362I","BssCI","Uba1176I","Uba1175I","Uba1174I","Uba1179I","Uba1388I","Uba1178I","BspLRI","Psp29I","BspBDG2I","Bsu1076I","PaiI","TtnI","Bse126I","Bsp137I","BstJI","HpyF69II","Uba1150I","HpyF63I","Uba1152I","Bal475I","HpyF26II","Uba1153I","Uba1155I","BhaII","Uth557I","Tsp273II","Uba1408I","Uth555I","Bco33I","PpuI","BscQI","Uba1377I","Bme74I","HpyF33II","VniI","BstCI","BluII","AspTIII","Tsp560I","Uba1146I","HpyF57I","Uba1147I","HpyF53I","BseI","Uba1140I","Bsp881I","M.H2I","HpyF73III","Vha1168I","M.Csp68KV","TspZNI","HpyF49IV","Uth549I","BspBSE18I","HpyF42I","UbaN2I","Uba1288I","Uba1209I","Uba1208I","EsaWC1I","HpyF46V","Uba1207I","Asp742I","ClmI","Bse9I","Bsp44II","Uba1429I","BspCHE15I","Uba61I","OchI","NgoSII","Uba1422I","Hpy178VII","Uba1292I","SplIII","Uba1293I","Bsp1593I","MnnII","Bsp226I","BspBake1I","AcaIV","M.NgoGII","Uba1418I","VhaI","Uba54I","BspGHA1I","BspH106II","Psb9879I","Ple214I","NgoTII","AvrBI","HpyF29I"],site:"ggcc",forwardRegex:"g{2}c{2}",reverseRegex:"g{2}c{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["ErhB9I","Afa16RI","XorII","NblI","Ple19I","RshI","BpvUI","Afa22MI","PvuI","Psu161I","EagBI","MvrI","BspCI"],site:"cgatcg",forwardRegex:"cgatcg",reverseRegex:"cgatcg",topSnipOffset:4,bottomSnipOffset:2},{aliases:["BsmRI","Ssp4800I","Bsp1407I","BstAUI","BsrGI","SspBI","AauI"],site:"tgtaca",forwardRegex:"tgtaca",reverseRegex:"tgtaca",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Psp32I","Acs1422I","Acs1421I","BstZ16I","Acs1371I","Acs1372I","Acs1373I","CglAII","RhpI","RheI","Psp89I","XamI","RroI","RrhI","Uba89I","BtgAI","Psp33I","KoyI"],site:"gtcgac",forwardRegex:"gtcgac",reverseRegex:"gtcgac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Ecl136I","Scg2I","Bme2095I","Ecl1zII","Bsp56I","Esp2I","Eco70I","Eco71I","Eco206I","Asp2HI","Eco207I","Uba1181I","M.SPRI","Eco67I","Uba1185I","Uba13I","Acc38I","Uba11I","CfrS37I","BsaNI","Uba20I","Bsp44I","Ese6II","SflHK7462I","Cdi27I","Sau16I","Uba1171I","BsiUI","Uba1243I","BsiVI","UbaN16I","Bsp103I","Uba1218I","Eco128I","BspSI","SflHK7234I","SflHK2374I","Eco170I","Cfr11I","Esp24I","M.EcoKDcm","AcuII","EagKI","Cfr5I","Bsp317I","Ecl37kII","EcaII","Uba1118I","Bst7QII","Uba1189I","HhdI","Uba1114I","Uba1193I","SflHK8401I","BstGII","Sfl2bI","Uba1410I","Sfl2aI","Kpn16I","Kpn14I","Cfr35I","Eco38I","Kpn13I","MpsI","Ecl57kI","Cfr31I","Cfr30I","EclII","Uba1120I","Uba1121I","KspHK12I","KspHK14I","Eco256I","Kpn10I","TspAI","Eco254I","BsoGI","Eco193I","Cfr28I","Cfr29I","Uba1125I","MphI","Cfr27I","Cfr25I","Cfr24I","Ecl66I","EclS39I","Uba1428I","Cfr22I","Lla497I","Cfr20I","EspHK7I","Sgr20I","Mlu2300I","BspH43I","EspHK30I","Cfr58I","Kox165I","SflHK2731I","UbaN11II","Eco60I","Ecl54kI","Eco61I","Sth455I","SflHK10790I","SflHK6873I","BinSI","Psp39I","AtuBI","Uba82I","Uba81I","Ecl137II","Eco41I","Eco40I","AtuII","SflHK1794I","Atu1I","Pca17AI","M.Bbu297I","EspHK22I"],site:"ccwgg",forwardRegex:"c{2}[atw]g{2}",reverseRegex:"c{2}[atw]g{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SspCI","NaeI","SauLPI","SauSI","SauBMKI","RrhJ1I","SauHPI","CcoI","PdiI","SauNI","Slu1777I"],site:"gccggc",forwardRegex:"gc{2}g{2}c",reverseRegex:"gc{2}g{2}c",topSnipOffset:3,bottomSnipOffset:3},{aliases:["AflIV","BstMI","Uba1158I","LlaDI","VchO49I","NmeSI","PinI","Asp763I","BsoSI","Uba1094I","BshHI"],site:"agtact",forwardRegex:"agtact",reverseRegex:"agtact",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Eco190I","Uba1280I","Uba1347I","RshII","BspJ67I","Uba1424I","Uba1423I","SflHK11086I","Asp1I","SflHK11087I","BspF105I","SflHK10695I","Uba1372I","Uba1370I","Tmu1I","Uba1378I","Uba1401I","Uba1376I","Uba1389I","Bsp55I","SflHK11572I","HgiS21I","Uba1318I","Pae181I","Eco179I","UbaN11I","Eco121I","Hin3I","Bsp7I","Bsp8I","SflHK115731I","Uba42I","Uba41I","EciDI","Ssp2I"],site:"ccsgg",forwardRegex:"c{2}[cgs]g{2}",reverseRegex:"c{2}[cgs]g{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AgeI","CsiAI","AsiAI","AsiGI","PinAI","BshTI","CspAI"],site:"accggt",forwardRegex:"ac{2}g{2}t",reverseRegex:"ac{2}g{2}t",topSnipOffset:1,bottomSnipOffset:5},{aliases:["BtsI"],site:"gcagtg",forwardRegex:"gcagtg",reverseRegex:"cactgc",topSnipOffset:8,bottomSnipOffset:6,isType2S:!0},{aliases:["SteI","Eco147I","StuI","PceI","AatI","SarI","Pme55I","GdiI","Sru30DI","SseBI","Eco1524I","AspMI"],site:"aggcct",forwardRegex:"ag{2}c{2}t",reverseRegex:"ag{2}c{2}t",topSnipOffset:3,bottomSnipOffset:3},{aliases:["HpyF10I","HinS1I","HinS2I","Hin7I","BcaI","HinGUI","Hpy99III","Mho2965I","Csp1470I","MnnIV","CcoP95I","NgoEII"],site:"gcgc",forwardRegex:"gcgc",reverseRegex:"gcgc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BceBI","Bsp50I","BtkI","Bpu95I","Csp68KVI","BepI","MvnI","Bsh1236I","AccII","BstFNI","FnuDII","FalII","FauBII","Bsp123I","ThaI","BstUI","BspFNI","Bsu1532I"],site:"cgcg",forwardRegex:"cgcg",reverseRegex:"cgcg",topSnipOffset:2,bottomSnipOffset:2},{aliases:["TspBI","BstDSI","BtgI","DsaI"],site:"ccrygg",forwardRegex:"c{2}[agr][cty]g{2}",reverseRegex:"c{2}[agr][cty]g{2}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["BecAII","BspKI","HaeIII","PlaI","BshFI","BspBRI","BspRI","SuaI","PhoI","Pde133I","SbvI","NgoPII","PalI","PflKI","BteI","SfaI","Bsp211I","DsaII","Bme361I","BsuRI","BshI","BsnI","CltI","NspLKI","MchAII","EsaBC4I","BspANI","FnuDI","BseQI","Bim19II","MfoAI","BanAI","Pru2I"],site:"ggcc",forwardRegex:"g{2}c{2}",reverseRegex:"g{2}c{2}",topSnipOffset:2,bottomSnipOffset:2},{aliases:["CceI","Bsp116I","HpyF43I","Uba1355I","Asp748I","M.Csp68KIV","Uba1128I","Uba1267I","Pme35I","SecII","Uba1141I","Bsp48I","Bsp47I","HpyVIII","BsaZI","FinII","Hin5I","SfaGUI","Msp199I","MniII","Bsu1192I","Uba1338I","Bsp5I","Bsp1591II","BshMI","UbaN13I","Uba1439I"],site:"ccgg",forwardRegex:"c{2}g{2}",reverseRegex:"c{2}g{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Cfr10I","Bse634I","BssAI","Bco118I","Bse118I","BstB7SI","BsrFI"],site:"rccggy",forwardRegex:"[agr]c{2}g{2}[cty]",reverseRegex:"[agr]c{2}g{2}[cty]",topSnipOffset:1,bottomSnipOffset:5},{aliases:["BseRI"],isType2S:!0,site:"gaggag",forwardRegex:"gag{2}ag",reverseRegex:"ctc{2}tc",topSnipOffset:16,bottomSnipOffset:14},{aliases:["MmaI","XmaII","XorI","ScoAI","VpaK29AI","XveI","Pph2066I","Asp708I","Bsp43I","Uba1399I","Eco161I","Eco83I","BloHIII","Eco167I","Uba1184I","BsaQI","Pma44I","MkrI","Ali2882I","Uba1232I","Asp36I","Pph2059I","Ecl133I","EaePI","SkaII","Bsp268I","Psp28I","Uba1115I","PmaI","Uba1116I","Ssp12I","Uba1112I","Bth9411I","Uba46I","Bsp17I","Uba1225I","Uba1294II","Uba1296I","PspSI","Ecl1zI","AinI","Uba1337I","Uba1186I","Uba1119I","SriI","UbaHKBI","Uba1213I","Uba1212I","Uba1211I","Uba1328I","Bsp107I","Uba1215I","Uba1216I","Esp141I","NasI","PmyI","PshEI","Pae24I","Pae25I","Pae22I","Ecl593I","Pae26I","Pfl37I","Uba1287I","BbiI","ClcI","Bsp108I","MauI","VchO87I","Bsp81I","BspS122I","VpaK4AI","VpaK4BI","Pae14I","Pae15I","Uba1123I","GseII","Kpn12I","SgiI","Ecl699kI","Ecl77I","Uba1411I","Srl32DI","Bsp93I","Uba1417I","XorKII","Esp5II","Eco260I","Eco261I","Srl2DI","Uba1262I","Pae40I","Pae41I","YenDI","YenEI","YenBI","YenCI","Eco49I","YenAI","BscDI","TspGWII","Eco48I","Msp11I","VpaKutGI","AspTI","Pae39I","BsaNII","Srl1DI","Uba1256I","CauIII","Sal13I","Uba1149I","Bsp78I","Bce170I","Pae9I","Pae8I","Uba72I","Psp46I","Uba71I","BmeBI","SprLI","NgbI","NocI","XphI","MizI"],site:"ctgcag",forwardRegex:"ctgcag",reverseRegex:"ctgcag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Eco32I","HpyCI","HjaI","EcoRV","CeqI","NsiCI"],site:"gatatc",forwardRegex:"gatatc",reverseRegex:"gatatc",topSnipOffset:3,bottomSnipOffset:3},{aliases:["BspBS31I","BbsI","Bbv16II","BpiI","BstV2I","BspTS514I","BspIS4I","BstBS32I","Bsc91I","BbvII","BstTS5I","BpuAI"],isType2S:!0,site:"gaagac",forwardRegex:"ga{2}gac",reverseRegex:"gtct{2}c",topSnipOffset:8,bottomSnipOffset:12},{aliases:["BspJ64I","HpyHPK5II","Ssu212I","Ssu211I","R2.Ssu4109I","TrsSI","M.PhaTDam","Uba1204I","Bst1274I","NlaDI","TrsTI","M.Kpn43816Dam","UbaN1I","CtyI","Bth1997I","Bth1786I","AsuMBI","Mel7JI","Ssu220I","NciAI","BfiSHI","M.EcoT2Dam","SauCI","M.Ssp6803Dam","R1.Ssu11318I","SalAI","Bsp122I","SauFI","M.CjeEDam","SauGI","MspBI","SauDI","SauEI","Uba59I","SalHI","Msp67II","NmeAII","Bth1140I","BsmXII","Bth1141I","EsaLHCI","SsuRBI","NsuDI","NgoDXIV","Bsp91I","Bsp61I","Bsp60I","R2.SsuDAT1I","M.SmaII","NsiAI","Bsp65I","Bsp135I","Bsp64I","R1.SsuDAT1I","HpyAIII","Mel5TI","BthCanI","Bsp138I","Mel5OI","Bsp136I","Bsp66I","FtnUIV","BstEIII","Bth211I","Mel5JI","SinMI","M.HinHP1Dam","M.EcoEc67Dam","M.FspVDam","CcoP31I","R2.Ssu4961I","Bth84I","Cte1179I","PfaI","TruII","Uba1259I","Bsp72I","Bsp74I","Bsp147I","FnuAII","Bsp76I","Cte1180I","NflI","CdiCD6II","R1.Ssu4961I","Mel4OI","CcoP95II","Sau6782I","Bth221I","Uba1366I","Bth213I","M.HindDam","CpaPI","Mmu5I","Rlu1I","Bme2494I","BspI","CviHI","NanII","MnoIII","Sau15I","Mel3JI","R1.Ssu8074I","M.YpsADam","TdeI","BsrMI","Uba1317I","Vha44I","Bsp49I","M.HinHP2Dam","M.CviBII","R1.Ssu2479I","MthI","BsrPII","M.VvuDam","Pph288I","LlaDCHI","Tsp133I","Uba1183I","Pei9403I","Uba1182I","SmiMBI","M.StyDam","M.TpaI","M.PmuADam","MjaIII","Bth945I","Mel2TI","BsaPI","BssGII","M.NmaPhiCh1I","BtcI","Btu41I","NmeBL859I","Bsp58I","Bsp59I","M.CjeNIII","Bsp57I","Bsp54I","MmeII","Bsp52I","M.PgiI","Bsp51I","Uba1177I","NspAI","NflBI","Lsp1109II","M.EcoT1Dam","CcoP219I","Mth1047I","LlaKR2I","Cin1467I","CcoP76I","Gst1588II","M.EcoVT2Dam","NmuEI","R2.Ssu8074I","MmuP2I","Bsp18I","NmuDI","R1.Ssu4109I","Btu34I","R2.Ssu2479I","Uba4I","Btu33I","MosI","TrsKTI","Btu39I","Btu36I","M.EcoT4Dam","CjeP338I","M.Sty14028Dam","M.VchK139I","Bsp9I","Btu37I","NsuI","Uba1101I","Csp5I","R2.Ssu11318I","M.EcoP1Dam","M.StyLT2Dam","CcoP84I","Uba1323I","MeuI","M.EcoKDam","BstXII","CpfAI","M.PmuDam","Mph1103II","NflAII","MthAI"],site:"gatc",forwardRegex:"gatc",reverseRegex:"gatc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SmaAIII","EclJI","Pvu84I","Uba1129I","XorKI","DrdIII","Uba1139I","BmaDI","BmaCI","BmaBI","Cfr51I","RspI","Xgl3220I","Kpl79I","Xgl3216I","BmaI","XniI","Xgl3219I","Xgl3218I","Xgl3217I","PntI","BstZ8I","BmaAI","SplAIII","SpaPII","Cas2I","XmlAI","XmlI"],site:"cgatcg",forwardRegex:"cgatcg",reverseRegex:"cgatcg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BthII","Bth617I","BsrWI","BpuFI","Ral8I"],site:"ggatc",forwardRegex:"g{2}atc",reverseRegex:"gatc{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BfuAI","BspMI","Acc36I","BveI"],isType2S:!0,site:"acctgc",forwardRegex:"ac{2}tgc",reverseRegex:"gcag{2}t",topSnipOffset:10,bottomSnipOffset:14},{aliases:["Bst2BI","BssSI","BsiI","BauI"],site:"cacgag",forwardRegex:"cacgag",reverseRegex:"ctcgtg",topSnipOffset:1,bottomSnipOffset:5},{aliases:["NmuFI","Afa24RI","ApeAI","RluI","SaoI","AmeII","NasWI","AniMI","NmuI","Srl77DI","Esp5I","NspWI","Smo40529I","SkaI","MisI","PglI","Mlu9273II","NtaSII","NbrI","NbaI","BheI","Psp61I","AprI","SacAI","MauAI","SauAI","SalCI","Uba1122I"],site:"gccggc",forwardRegex:"gc{2}g{2}c",reverseRegex:"gc{2}g{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BthI","DdeII","PflNI","BbiIII","McaI","ScuI","PflWI","Pfl67I","Uba1237I","Uba1397I","SluI","Uba1166I","MecI","Sca1827I","Asp703I","Uba1248I","SdiAI","Sfu1762I","Msp23II","AhyAI","Psp4I","Asp15I","PspNI","Ssp4I","Uba1298I","Uba1448I","CjaI","Uba1335I","Sph1719I","DrdDI","SgoI","MpuI","Bsp92I","Sve194I","BadI","Uba1271I","MhaI","SpaI","Bsp129I","SgaI","AlwFII","Shy1766I","OcoI","AerAI","Uba1130I","BbfI","StaAI","Asp47I","Sgr1841I","Bsp140I","Bsp141I","SrifpI","Bsp142I","MrhI","BsuMI","SciBI","Uba1148I","Sci1831I","Eae2I","MscAI","Sal1974I","Uba1154I","SexI","BstLI","MsiI","BstHI","Bsp139I"],site:"ctcgag",forwardRegex:"ctcgag",reverseRegex:"ctcgag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Uba1382I","Uba1415I"],site:"gaatgc",forwardRegex:"ga{2}tgc",reverseRegex:"gcat{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Eco97I","Eco95I","Bli161I","Eco120I","Eco127I","Eco233I","Eco185I","Eco217I","Eco225I","Eco203I","Eco156I","Eco204I","Eco155I","Eco205I","Eco157I","PpaI","Eco162I","Uba1316I","SlbI","Eco129I","Sau12I","Eco51I","Bli49I","Bli5508I","Cfr56I","VpaKutHI","Eco71KI","Eco42I","VpaK57AI","Uba84I","Rle69I","Eco263I","Eco101I","VpaK57I","Uba1343I","Bli576II","Eco191I","Uba65I","Eco239I","Eco246I","Eco247I","Eco240I","Eco241I"],site:"ggtctc",forwardRegex:"g{2}tctc",reverseRegex:"gagac{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BmrI","BfiI","BmuI"],isType2S:!0,site:"actggg",forwardRegex:"actg{3}",reverseRegex:"c{3}agt",topSnipOffset:11,bottomSnipOffset:10},{aliases:["BstRZ246I","MspSWI","BstSWI","SmiI","SwaI"],site:"atttaaat",forwardRegex:"at{3}a{3}t",reverseRegex:"at{3}a{3}t",topSnipOffset:4,bottomSnipOffset:4},{aliases:["Srl76DI","Srl19I","Srl61DI"],site:"tttaaa",forwardRegex:"t{3}a{3}",reverseRegex:"t{3}a{3}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Tsp32I","Tsp32II","TaqI","PpaAII","TthHB8I"],site:"tcga",forwardRegex:"tcga",reverseRegex:"tcga",topSnipOffset:1,bottomSnipOffset:3},{aliases:["EcoPI"],isType2S:!0,site:"agacc",forwardRegex:"agac{2}",reverseRegex:"g{2}tct",topSnipOffset:30,bottomSnipOffset:32},{aliases:["OmiBII","DsaVI"],site:"gtmkac",forwardRegex:"gt[acm][gkt]ac",reverseRegex:"gt[acm][gkt]ac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BpuSI","BspLU11III","BstOZ616I","BslFI","FaqI","BsmFI"],isType2S:!0,site:"gggac",forwardRegex:"g{3}ac",reverseRegex:"gtc{3}",topSnipOffset:15,bottomSnipOffset:19},{aliases:["BspJ105I","VpaK13AI","Uba1314I","GspAI","Uba1249I","PolI","VpaK7AI","NspDII","BceSII","MliI","VpaK11DI","AspBII","VpaK11I","NspGI","BtiI","NspKI","VpaK11CI","Uba1304I","Bsp1260I","MfoI","Uba48I","UbaN15I","NmuAII","Uba1438I","Bsp100I","Tsp301I","BspF53I","Uba62I","ClmII","VpaK65I","AspDII","NspHII","Sgh1835I","Uba1131I","CliI","Asp697I","Uba1413I","Nli3877II","Uba1278I","Uba1272I","Bsp128I","NliII","MspAI","Bst4QI","SfnI","Uth554I","Uba1373I","Tru28I","Pfl19I","SinJI","SinHI","SinGI","SinFI","SinEI","SinDI","SinCI","SinBI","SinAI","Bsp133I","Bsp132I","SynI","TruI","Hsp2I","Bsp71I"],site:"ggwcc",forwardRegex:"g{2}[atw]c{2}",reverseRegex:"g{2}[atw]c{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["NtaSI","Uba1180I","SsvI","Uba1239I","Uba1170I","Ppu13I","VchO44I","ChyI","GobAI","Uba1217I","PluI","Uba40I","Uba1419I","Asp78I","Uba1371I","Uba1403I"],site:"aggcct",forwardRegex:"ag{2}c{2}t",reverseRegex:"ag{2}c{2}t",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BseGI","BstF5I","BtsCI"],site:"ggatg",forwardRegex:"g{2}atg",reverseRegex:"catc{2}",topSnipOffset:7,bottomSnipOffset:5,isType2S:!0},{aliases:["AvrII","AspA2I","XmaJI","BlnI","AvrBII","BspA2I"],site:"cctagg",forwardRegex:"c{2}tag{2}",reverseRegex:"c{2}tag{2}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["BspKT8I","SsbI","BspLAIII","LlaCI","BstFI","HindIII","HsuI","BbrI","EcoVIII"],site:"aagctt",forwardRegex:"a{2}gct{2}",reverseRegex:"a{2}gct{2}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["NsbI","Acc16I","PamI","Pun14627I","MstI","AosI","FspI","AviII","FdiII"],site:"tgcgca",forwardRegex:"tgcgca",reverseRegex:"tgcgca",topSnipOffset:3,bottomSnipOffset:3},{aliases:["Ecl136II","BpuAmI","MxaI","Eco53kI","EcoICRI"],site:"gagctc",forwardRegex:"gagctc",reverseRegex:"gagctc",topSnipOffset:3,bottomSnipOffset:3},{aliases:["TtmI","TspWAM8AI","HpyF74II","HpyF35II","TspIDSI","HpyF13III"],site:"acgt",forwardRegex:"acgt",reverseRegex:"acgt",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BseZI","Ksp632I","EarI","Eam1104I","Bsu6I","Bst6I","CatHI","Bco116I","Bco5I","BcoKI"],isType2S:!0,site:"ctcttc",forwardRegex:"ctct{2}c",reverseRegex:"ga{2}gag",topSnipOffset:7,bottomSnipOffset:10},{aliases:["Msp24I","BsaSI","HpyF73IV","MjaII","VpaK15I","TdeIII","Sau557I","Sau17I","GseI","Bfi105I","Eco201I","CfrNI","Sau13I","Sau14I","Bse54I","Eco196II","VpaK25I","Uba1164I","NlaDII","Cfr4I","Cfr8I","CdiCD6I","AhaB1I","MthBI","Pph1579I","Pph1773I","Hin5II","Sau32I","VpaK9AI","Sau33I","Uba1099I","NmuSI","SauBI","VchO85I","Sau5I","Cfr33I","Eco39I","Sau2I","ApuI","VchO90I","PspI","Uba1134I","BpsI","Cfr23I","MhoI","PseI","Eco47II","HpyF71II","VpaK19AI","VpaK19BI","SdyI","NmuEII","Cfr52I","Cfr54I","NspLII","VpaKutBI","CdiAI","VpaKutAI","Bsu5044I","HpyF66I","SelAI","Cfr46I","Cfr47I","Cfr45I","Uba1160I","VchO66I","VpaKutJI"],site:"ggncc",forwardRegex:"g{2}[abcdghkmnrstvwy]c{2}",reverseRegex:"g{2}[abcdghkmnrstvwy]c{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Cpa1150I","PflAI","TmaI","BceRI","FspMI","MvaAI","Uba1446I","Bsu1193I","EsaBS9I","HpyF52II","Bsu1192II","HpyF14I","HpyF15I","Uba1321I","HpyF64IV","SceAI","HpyF26I","BspJ76I","Bce31293I","BsuEII","Hin1056I","Uba1405I","Uba1404I","Bsu6633I","CpaAI","Bsp70I"],site:"cgcg",forwardRegex:"cgcg",reverseRegex:"cgcg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["TseI","ApeKI","AceI","Taq52I","SuiI"],site:"gcwgc",forwardRegex:"gc[atw]gc",reverseRegex:"gc[atw]gc",topSnipOffset:1,bottomSnipOffset:4},{aliases:["Asp27HI","Asp26HI","PctI","Asp40HI","BsaMI","BscCI","BsmI","BmaHI","Mva1269I","Asp50HI","Asp36HI","Asp35HI"],site:"gaatgc",forwardRegex:"ga{2}tgc",reverseRegex:"gcat{2}c",topSnipOffset:7,bottomSnipOffset:5},{aliases:["Uba51I","M.BamHII","Uba1414I","Uba1346I","Bsu8646I","AcaII","SpvI","BamNI","GdoI","UbaN3I","BamKI","Uba1205I","BamFI","BsuB519I","Bst2902I","Rlu4I","Ali12257I","Ali12258I","Uba1250I","RhsI","Psp56I","Uba1258I","Bsp144I","AinII","Bco10278I","Uba88I","Uba1402I","Bca1259I","Bsp90II","Bsp131I","Bsp130I","BstQI","MleI","Uba1383I","Uba1302I","GinI","Uba19I","Bst2464I","Uba1167I","GseIII","Uba1163I","BsaDI","Pac1110I","Bsp46I","Uba1398I","Uba1173I","Uba1242I","Uba1172I","NasBI","UbaN14I","GoxI","AaeI","Uba31I","DdsI","Uba1324I","Bsp30I","Uba1325I","AspTII","Uba38I","AacLI","Pae177I","Uba1098I","BsuB763I","Uba1339I","Uba1297I","Uba1334I","Bst1126I","Uba1224I","Atu1II","Bsu8565I","Bsu90I"],site:"ggatcc",forwardRegex:"g{2}atc{2}",reverseRegex:"g{2}atc{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SpaPIII","PvuHKUI","MziI","SciAII","SplAIV","Sol3335I","Bth2350I","GspI","Uba1245I","Uba1227I","SmaAIV","Psp3I","SbaI","Psp5I"],site:"cagctg",forwardRegex:"cagctg",reverseRegex:"cagctg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BspZEI","BscI","Bsa29I","PgaI","BspOVII","ClaI","BseCI","Bli41I","BavCI","BciBI","LplI","SpmI","Ssp27144I","ZhoI","BspDI","BanIII","BsuTUI","BshVI","BspXI","BstNZ169I","Bsu15I","BspJII","AagI","Bsp106I","Bli86I","BliAI","Bst28I","BbvAII","BsiXI","BcmI","BliRI","Bci29I","LcaI","Rme21I","BdiI"],site:"atcgat",forwardRegex:"atcgat",reverseRegex:"atcgat",topSnipOffset:2,bottomSnipOffset:4},{aliases:["BspJ74I","Bco35I","Bth1795I","Uba1444I","Bsp22I","Bsp28I","Uba1437I"],site:"ctggag",forwardRegex:"ctg{2}ag",reverseRegex:"ctc{2}ag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SolI","Bsp98I","Bce751I","Uba4009I","BamHI","RspLKII","SurI","BstI","OkrAI","ApaCI","Nsp29132II","BspAAIII","CelI","AliI","AsiI","GstI","Mlu23I","NspSAIV","Pfl8I","BnaI","AccEBI","Bsp4009I"],site:"ggatcc",forwardRegex:"g{2}atc{2}",reverseRegex:"g{2}atc{2}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["M.NgoHVIII","NgoMVIII","NgoJVIII","NgoBVIII","NgoDVIII"],site:"ggtga",forwardRegex:"g{2}tga",reverseRegex:"tcac{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["HpyF13I","HpyF1I","HpyF4I","HpyF6II","HpyF9I","HpyF31II","HpyF49II","HpyF51I","HpyF34II","HpyF48I","HpyF62III","HpyF40III","HpyF25II","Hpy99II","Hpy8II","HpyF35IV","HpyF36I"],site:"gtsac",forwardRegex:"gt[cgs]ac",reverseRegex:"gt[cgs]ac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["PsyI","BgiI","TelI","Tth111I","AspI","PflFI","AtsI"],site:"gacnnngtc",forwardRegex:"gac[abcdghkmnrstvwy]{3}gtc",reverseRegex:"gac[abcdghkmnrstvwy]{3}gtc",topSnipOffset:4,bottomSnipOffset:5},{aliases:["PfaAI","AccB1I","HgiHI","HgiCI","BspT107I","MspB4I","BanI","BshNI","Eco64I","BbvBI"],site:"ggyrcc",forwardRegex:"g{2}[cty][agr]c{2}",reverseRegex:"g{2}[cty][agr]c{2}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["BspMAI","CflI","Psp23I","BspBI","AliAJI","Srl5DI","MhaAI","CfrA4I","Ecl2zI","AjoI","Sag16I","PstI","Sag23I","Ecl37kI","Pfl21I","ApiI","Sst12I","SalPI","CstI","YenI","Bsp63I","BloHII","CfuII","PaePI","SflI","HalII","BsuBI","Asp713I"],site:"ctgcag",forwardRegex:"ctgcag",reverseRegex:"ctgcag",topSnipOffset:5,bottomSnipOffset:1},{aliases:["SvoI","PsuNI"],site:"crccggyg",forwardRegex:"c[agr]c{2}g{2}[cty]g",reverseRegex:"c[agr]c{2}g{2}[cty]g",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SphI","BbuI","PaeI","SpaHI","RspLKI","PfaAIII"],site:"gcatgc",forwardRegex:"gcatgc",reverseRegex:"gcatgc",topSnipOffset:5,bottomSnipOffset:1},{aliases:["PspN4I","BspLI","BmiI","AspNI","BscBI","NlaIV"],site:"ggnncc",forwardRegex:"g{2}[abcdghkmnrstvwy]{2}c{2}",reverseRegex:"g{2}[abcdghkmnrstvwy]{2}c{2}",topSnipOffset:3,bottomSnipOffset:3},{aliases:["HpyHPK5I","HpyF32I","HpyF34I","HpyHI","HpyF25I","HpyF27I","HpyF24II","HpyF37I","HpyF13II","HpyF60II","HpyF59I","HpyF68II","HpyF4II","Bpa36II","HpyF67I","HpyF41II","HpyF64V","Bst295I","BscPI","HpyF70I","HpyF5I","HpyF7I","HpyF66II","HpyF6III","HpyF72II","HpyF30II","HpyF11I","HpyF19I","HpyF22II","HpyCH4II","HpyF9II","HpyF21I"],site:"ctnag",forwardRegex:"ct[abcdghkmnrstvwy]ag",reverseRegex:"ct[abcdghkmnrstvwy]ag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["HpyF51II","HpyF74I","HpyF42II","HpyF35III","HpyF9III","HpyF64II","HpyF20I","HpyF22I","HpyF12I","HpyF41I","HpyF40I","HpyF46I","HpyF56I","HpyF58I","HpyF55I","HpyF54I","HpyF5II","HpyF48II","HpyF69I","HpyF68I","HpyF65I","HpyF62I"],site:"acngt",forwardRegex:"ac[abcdghkmnrstvwy]gt",reverseRegex:"ac[abcdghkmnrstvwy]gt",topSnipOffset:1,bottomSnipOffset:1},{aliases:["HpyF15II","HpyF17I","HpyF64III","HpyF50II","HpyF61I","HpyF11II","HpyF27II","HpyF12II","HpyF46IV","Hpy166I","HpyF42III","HpyF33I","HpyF28I","HpyF19II"],site:"tcnga",forwardRegex:"tc[abcdghkmnrstvwy]ga",reverseRegex:"tc[abcdghkmnrstvwy]ga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EclRI","TspMI","Pac25I","XmaCI","EaeAI","AhyI","XmaI","Cfr9I","PspAI","XcyI"],site:"cccggg",forwardRegex:"c{3}g{3}",reverseRegex:"c{3}g{3}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["XapI","CfaI","FsiI","ApoI","AcsI"],site:"raatty",forwardRegex:"[agr]a{2}t{2}[cty]",reverseRegex:"[agr]a{2}t{2}[cty]",topSnipOffset:1,bottomSnipOffset:5},{aliases:["SenPI","HpyNI","Bsp548I","LlaMI","Eco51II","Eco43I","BsoI","Bsp73I","Eco200I","Eco85I","BsaCI","Eco80I","Uba17I","Uba1391I","Eco153I","Bsp53I","Eco93I"],site:"ccngg",forwardRegex:"c{2}[abcdghkmnrstvwy]g{2}",reverseRegex:"c{2}[abcdghkmnrstvwy]g{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Tsp49I","TaiI","TscI"],site:"acgt",forwardRegex:"acgt",reverseRegex:"acgt",topSnipOffset:4,bottomSnipOffset:0},{aliases:["DraII","EcoO109I"],site:"rggnccy",forwardRegex:"[agr]g{2}[abcdghkmnrstvwy]c{2}[cty]",reverseRegex:"[agr]g{2}[abcdghkmnrstvwy]c{2}[cty]",topSnipOffset:2,bottomSnipOffset:5},{aliases:["Ssp34I","AcaI","Bsp151I","Uba1452I","Ssp48I","Ssp47I","BpuHI","NspJI","Uba1385I","Rma376I","NspFI","Ssp45I","NspBI","Ssp42I","Ssp43I","Ssp14I","Psc27I","Psc28I","BspH22I","Afl83I","Bsp101I","Ssp152I","Bsp102I","Bsp104I","Mva16I","Bsp241I","Rma523I","Bsp82I","Sgr1839I","OspI","Bsp90I","AviI","BspH106I","BspH103I","Bsp148I","Nsp29132I"],site:"ttcgaa",forwardRegex:"t{2}cga{2}",reverseRegex:"t{2}cga{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["CjuII"],site:"caynnnnnctc",forwardRegex:"ca[cty][abcdghkmnrstvwy]{5}ctc",reverseRegex:"gag[abcdghkmnrstvwy]{5}[agr]tg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["UbaN6II","BstNSII","Bst7QI","AspDI","AspBI","AvrI","EspHK29I","NspDI","NspEI","AcrI","Uba1205II","Gst1588I","BstZ4I","Uba1436I","BstBAII","Umi5I","NliI","NmuAI","Uba1440I"],site:"cycgrg",forwardRegex:"c[cty]cg[agr]g",reverseRegex:"c[cty]cg[agr]g",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AdeI","DraIII","BstIZ316I"],site:"cacnnngtg",forwardRegex:"cac[abcdghkmnrstvwy]{3}gtg",reverseRegex:"cac[abcdghkmnrstvwy]{3}gtg",topSnipOffset:6,bottomSnipOffset:3},{aliases:["Uba153AI","BavAI","BavBI","BspO4I","BamGI","BavI","EclI","Pvu84II","BspM39I","UbaM39I","NmeRI","PvuII","DmaI","Bsp153AI","Pun14627II","Cfr6I","Pae17kI"],site:"cagctg",forwardRegex:"cagctg",reverseRegex:"cagctg",topSnipOffset:3,bottomSnipOffset:3},{aliases:["Ava458I","Cfr38I","Cfr39I","KspHK15I","Cfr40I","EspHK24I","Cfr55I","EcoHAI","Cfr59I","Eco164I","EspHK16I","Uba1188I","EciBI","Eco90I","Uba1327I","Cfr14I","Uba36I"],site:"yggccr",forwardRegex:"[cty]g{2}c{2}[agr]",reverseRegex:"[cty]g{2}c{2}[agr]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MchAI","CspBI","NotI","CsiBI","CciNI"],site:"gcggccgc",forwardRegex:"gcg{2}c{2}gc",reverseRegex:"gcg{2}c{2}gc",topSnipOffset:2,bottomSnipOffset:6},{aliases:["BscKI","Rtr20I","BspVI","Bco102II","BsaVI"],site:"gaagac",forwardRegex:"ga{2}gac",reverseRegex:"gtct{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AspMDI","BfuCI","NlaII","HacI","CcyI","FnuEI","FnuCI","NdeII","RalF40I","BstMBI","Sth368I","SauMI","Kzo9I","MgoI","MboI","NphI","Bsp67I","BscFI","LlaAI","Bsp143I","DpnII","CviAI","Bme12I","PbrTI","CpfI","NmeCI","SsiBI","SsiAI","Bfi57I","Bst19II","BstENII","BssMI","MkrAI","BspAI","BspFI","BtkII","BspJI","CacI","Bsp2095I","BspKMI","Sau3AI","Bce243I","Bsp105I"],site:"gatc",forwardRegex:"gatc",reverseRegex:"gatc",topSnipOffset:0,bottomSnipOffset:4},{aliases:["EcoprrI"],site:"ccannnnnnnrtgc",forwardRegex:"c{2}a[abcdghkmnrstvwy]{7}[agr]tgc",reverseRegex:"gca[cty][abcdghkmnrstvwy]{7}tg{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Cfr48I","Ese4I","BscMI","Uba1409I","Eco262I","Uba1159I","Uba1264I","Uba1263I","Uba1363I","Uba1142I","Uba1357I","Uba1421I","Eco26I","Eco25I","Bsp117I","Uba1206I","Eco249I","Eco35I","Uba57I","Uba1124I","OmiAI","OmiBI","Eco113I","Eco215I","Eco216I","Eco180I","Uba1330I","EcoT88I","Uba1329I","Ppu20I","Eco232I","Uba39I","BstZ7I","Uba1307I","EcoT95I","EcoT93I","Eco68I","Psp31I","Eco211I"],site:"grgcyc",forwardRegex:"g[agr]gc[cty]c",reverseRegex:"g[agr]gc[cty]c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["PaeR7I","PanI","BluI","BssHI","TliI","Sol10179I","StrI","SauLPII","SlaI","AbrI","Sfr274I","EscI","Sbi68I","Sau3239I","MavI","CcrI","BspAAI","MlaAI","XpaI","BstVI","XhoI"],site:"ctcgag",forwardRegex:"ctcgag",reverseRegex:"ctcgag",topSnipOffset:1,bottomSnipOffset:5},{aliases:["MchI","Mly113I","NarI","NunII","SseAI","NdaI"],site:"ggcgcc",forwardRegex:"g{2}cgc{2}",reverseRegex:"g{2}cgc{2}",topSnipOffset:2,bottomSnipOffset:4},{aliases:["EgeI","Eco78I","DinI","SfoI","EheI"],site:"ggcgcc",forwardRegex:"g{2}cgc{2}",reverseRegex:"g{2}cgc{2}",topSnipOffset:3,bottomSnipOffset:3},{aliases:["M.AtuCI","HpyF72III","HpyF38I","HpyF44I","HpyAIV","M.BabI","HpyF55II","HpyF2II","HpyIV","NcaI","NsiHI","HpyF60I","CviEI","CviFI","CviCI","M.SmeI","CviDI","CviGI","HpyF10II","HpyF71III","Hpy87AI","HpyF18I","NovII"],site:"gantc",forwardRegex:"ga[abcdghkmnrstvwy]tc",reverseRegex:"ga[abcdghkmnrstvwy]tc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Bsp6I","SatI","Uur960I","ItaI","Fsp4HI","Fnu4HI","BisI","FbrI","GluI","BsoFI"],site:"gcngc",forwardRegex:"gc[abcdghkmnrstvwy]gc",reverseRegex:"gc[abcdghkmnrstvwy]gc",topSnipOffset:2,bottomSnipOffset:3},{aliases:["BsoDI","Tsp504I","TauII"],site:"cggccg",forwardRegex:"cg{2}c{2}g",reverseRegex:"cg{2}c{2}g",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Hpy178II","TceI","HpyAII","HpyII"],site:"gaaga",forwardRegex:"ga{2}ga",reverseRegex:"tct{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["PfeI","TfiI"],site:"gawtc",forwardRegex:"ga[atw]tc",reverseRegex:"ga[atw]tc",topSnipOffset:1,bottomSnipOffset:4},{aliases:["NspIII","BsoBI","AvaI","PunAI","NspSAI","BstSI","BcoI","BmeT110I","PlaAI","Bse15I","OfoI","AquI","Eco88I","BspLU4I","Ama87I","Eco27kI","BsiHKCI"],site:"cycgrg",forwardRegex:"c[cty]cg[agr]g",reverseRegex:"c[cty]cg[agr]g",topSnipOffset:1,bottomSnipOffset:5},{aliases:["SdeAI"],site:"cagrag",forwardRegex:"cag[agr]ag",reverseRegex:"ct[cty]ctg",topSnipOffset:27,bottomSnipOffset:25,isType2S:!0},{aliases:["BcoDI","BsoMAI","BsmAI","Alw26I","BstMAI"],site:"gtctc",forwardRegex:"gtctc",reverseRegex:"gagac",topSnipOffset:6,bottomSnipOffset:10,isType2S:!0},{aliases:["SauHI","Uba1294I","BseG73I","Uba1184II","PxyMZI","AsuSAI","SecIII","Bli643I","Eco76I","Bst29I","Eco110kI","BstZ6I","Eco118I","Bst30I","EciCI","Eco115I","Uba1333I","Uba1332I"],site:"cctnagg",forwardRegex:"c{2}t[abcdghkmnrstvwy]ag{2}",reverseRegex:"c{2}t[abcdghkmnrstvwy]ag{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["HpyF44IV","HpyCH4VI","HpyF16II","HpyF22III","HpyF19III","HpyNSH57II"],site:"tcnnga",forwardRegex:"tc[abcdghkmnrstvwy]{2}ga",reverseRegex:"tc[abcdghkmnrstvwy]{2}ga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["OtuI","MarI","OtuNI","Uba1433I","Uba1441I","Mho2111I","BsaLI","OxaI"],site:"agct",forwardRegex:"agct",reverseRegex:"agct",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BfoI","Bsp143II","BstH2I","AccB2I","HaeII"],site:"rgcgcy",forwardRegex:"[agr]gcgc[cty]",reverseRegex:"[agr]gcgc[cty]",topSnipOffset:5,bottomSnipOffset:1},{aliases:["Eco57I","BspKT5I","AcuI"],site:"ctgaag",forwardRegex:"ctga{2}g",reverseRegex:"ct{2}cag",topSnipOffset:22,bottomSnipOffset:20,isType2S:!0},{aliases:["Uba1276I","TdeII","VpaO5I","Bst158I","UbaN7I","BcrAI","VpaKutEI","VpaKutFI","BsrEI","Uba1192I","BcoSI"],site:"ctcttc",forwardRegex:"ctct{2}c",reverseRegex:"ga{2}gag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SsoII","StyD4I","BstSCI","Eco137kI","Ecl18kI","BstMZ611I","Eco13kI","BssKI","DsaV","Eco21kI","Kpn2kI"],site:"ccngg",forwardRegex:"c{2}[abcdghkmnrstvwy]g{2}",reverseRegex:"c{2}[abcdghkmnrstvwy]g{2}",topSnipOffset:0,bottomSnipOffset:5},{aliases:["BsmXI","BsmDI","BsmCI"],site:"acnnnnnctcc",forwardRegex:"ac[abcdghkmnrstvwy]{5}ctc{2}",reverseRegex:"g{2}ag[abcdghkmnrstvwy]{5}gt",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Uba1426I","Uba1420I","TrsTII","Uba1374I","BscLI","Uba1266I","VfiI","BsaFI","Uba1313I","Uba1312I","Uba1299I","Uba1331I","Uba1443I","Cfr92I"],site:"cttaag",forwardRegex:"ct{2}a{2}g",reverseRegex:"ct{2}a{2}g",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EcaI","BstEII","AspAI","Eci125I","BstT9I","Bse64I","AcrII","BstPI","BseT9I","NspSAII","BsiKI","EcoO128I","BstT10I","Eco91I","BseT10I","EcoO65I","PspEI"],site:"ggtnacc",forwardRegex:"g{2}t[abcdghkmnrstvwy]ac{2}",reverseRegex:"g{2}t[abcdghkmnrstvwy]ac{2}",topSnipOffset:1,bottomSnipOffset:6},{aliases:["HpyAV","Hin4II"],site:"ccttc",forwardRegex:"c{2}t{2}c",reverseRegex:"ga{2}g{2}",topSnipOffset:11,bottomSnipOffset:10,isType2S:!0},{aliases:["BseII","BsaKI","Uba1408II","MwhI"],site:"gttaac",forwardRegex:"gt{2}a{2}c",reverseRegex:"gt{2}a{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Sse8387I","SdaI","SbfI"],site:"cctgcagg",forwardRegex:"c{2}tgcag{2}",reverseRegex:"c{2}tgcag{2}",topSnipOffset:6,bottomSnipOffset:2},{aliases:["SacII","CscI","SpuI","PaeAI","GceI","SchZI","SstII","Cfr42I","PaeQI","Eae46I","Pae14kI","RaqI","Mpr154I","GalI","NgoAIII","GceGLI","Eco29kI","Sfr303I","Pae5kI","NgoPIII","SenPT14bI","SgrBI","KspI","SexBI","SexCI","Kpn378I"],site:"ccgcgg",forwardRegex:"c{2}gcg{2}",reverseRegex:"c{2}gcg{2}",topSnipOffset:4,bottomSnipOffset:2},{aliases:["BpuNI","FinI","BscWI"],site:"gggac",forwardRegex:"g{3}ac",reverseRegex:"gtc{3}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Uba1431I","SseI","Umi7I","Uba1447I","PovI","CpeI","BceDI","BmeTI","Bco102I","AtuSI","M.TaeII","Bst77I","BstKI","BstGI","SstIV","Uba1282I","CthI","Uba1283I","BstZ10II"],site:"tgatca",forwardRegex:"tgatca",reverseRegex:"tgatca",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MaeIII"],site:"gtnac",forwardRegex:"gt[abcdghkmnrstvwy]ac",reverseRegex:"gt[abcdghkmnrstvwy]ac",topSnipOffset:0,bottomSnipOffset:5},{aliases:["Eco646I","Eco1341I","Eco1413I","Eco1432I","Eco1424I","Eco1422I","Eco1383I"],site:"ccannnnnnncttc",forwardRegex:"c{2}a[abcdghkmnrstvwy]{7}ct{2}c",reverseRegex:"ga{2}g[abcdghkmnrstvwy]{7}tg{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MvaI","Bst1I","Bst2I","BsiLI","CthII","Sth302I","BshGI","BspNI","TaqXI","Bse17I","Bse16I","Bst2UI","Bse24I","Bst38I","SslI","BciBII","AglI","BthDI","BthEI","ApyI","ZanI","CbrI","BstM6I","BptI","AorI","ApaORI","BseBI","Fsp1604I","AeuI","Sth117I","SniI","Bst100I","BstOI","BstNI"],site:"ccwgg",forwardRegex:"c{2}[atw]g{2}",reverseRegex:"c{2}[atw]g{2}",topSnipOffset:2,bottomSnipOffset:3},{aliases:["Bco27I","CboI","MspI","BsuFI","BsiSI","Pde137I","HpaII","Sth134I","Hin2I","Bst40I","HapII","MnoI"],site:"ccgg",forwardRegex:"c{2}g{2}",reverseRegex:"c{2}g{2}",topSnipOffset:1,bottomSnipOffset:3},{aliases:["Uba1368I","Uba1156I","Uba1157I","Uba1202I","EciEI","Psp30I","Uba1165I","Uba1241I"],site:"gggccc",forwardRegex:"g{3}c{3}",reverseRegex:"g{3}c{3}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SduI","BsoCI","BspLS2I","MhlI","Bsp1286I","BmyI","NspII","AocII"],site:"gdgchc",forwardRegex:"g[adgkrtw]gc[achmtwy]c",reverseRegex:"g[adgkrtw]gc[achmtwy]c",topSnipOffset:5,bottomSnipOffset:1},{aliases:["KspAI","BstEZ359I","BstHPI","SsrI","HpaI"],site:"gttaac",forwardRegex:"gt{2}a{2}c",reverseRegex:"gt{2}a{2}c",topSnipOffset:3,bottomSnipOffset:3},{aliases:["SfiI","SdiI"],site:"ggccnnnnnggcc",forwardRegex:"g{2}c{2}[abcdghkmnrstvwy]{5}g{2}c{2}",reverseRegex:"g{2}c{2}[abcdghkmnrstvwy]{5}g{2}c{2}",topSnipOffset:8,bottomSnipOffset:5},{aliases:["LlaG2I","NheI","PstNHI","AsuNHI"],site:"gctagc",forwardRegex:"gctagc",reverseRegex:"gctagc",topSnipOffset:1,bottomSnipOffset:5},{aliases:["AluBI","AluI","MltI"],site:"agct",forwardRegex:"agct",reverseRegex:"agct",topSnipOffset:2,bottomSnipOffset:2},{aliases:["HpyF49V","HpyF36III","M.CviSI","HpyF48III","HpyJP26I","HpyF38II","HpyF45II","HpyF67II","Hpy26I"],site:"tgca",forwardRegex:"tgca",reverseRegex:"tgca",topSnipOffset:1,bottomSnipOffset:1},{aliases:["DraRI"],site:"caagnac",forwardRegex:"ca{2}g[abcdghkmnrstvwy]ac",reverseRegex:"gt[abcdghkmnrstvwy]ct{2}g",topSnipOffset:27,bottomSnipOffset:25,isType2S:!0},{aliases:["Eco1265I","Eco1441I","Eco1443I","Eco1447I","Eco1158I","Eco14444I","EcoBI"],site:"tgannnnnnnntgct",forwardRegex:"tga[abcdghkmnrstvwy]{8}tgct",reverseRegex:"agca[abcdghkmnrstvwy]{8}tca",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BbeAI","PmnI","McaAI","NamI","PatAI","MsaI"],site:"ggcgcc",forwardRegex:"g{2}cgc{2}",reverseRegex:"g{2}cgc{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BstC8I","Cac8I"],site:"gcnngc",forwardRegex:"gc[abcdghkmnrstvwy]{2}gc",reverseRegex:"gc[abcdghkmnrstvwy]{2}gc",topSnipOffset:3,bottomSnipOffset:3},{aliases:["EsaBC3I"],site:"tcga",forwardRegex:"tcga",reverseRegex:"tcga",topSnipOffset:2,bottomSnipOffset:2},{aliases:["Pfr12I","AmeI","Bsp146I","Uba1203I","Pfl23I","PliI","AaqI","DaqI","ScoNI","Uba1387I"],site:"gtgcac",forwardRegex:"gtgcac",reverseRegex:"gtgcac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AccIII","PinBII","CauB3I","MroI","Aor13HI","BseAI","Bsp13I","Kpn2I","PtaI","BspEI","Bsu23I","BsiMI","BlfI","BbvAIII","BspMII"],site:"tccgga",forwardRegex:"tc{2}g{2}a",reverseRegex:"tc{2}g{2}a",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Eco1342I","Eco1344I","EcoKI","Eco1394I"],site:"aacnnnnnngtgc",forwardRegex:"a{2}c[abcdghkmnrstvwy]{6}gtgc",reverseRegex:"gcac[abcdghkmnrstvwy]{6}gt{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["NgoJI","NgoGI","NgoMI","HinHI","NgoAI","NgoBI","M.NgoEI","NgoCI","NgoWI","Bst16I","Btu34II","Bst1473II","BsmHI"],site:"rgcgcy",forwardRegex:"[agr]gcgc[cty]",reverseRegex:"[agr]gcgc[cty]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MboII","NcuI"],site:"gaaga",forwardRegex:"ga{2}ga",reverseRegex:"tct{2}c",topSnipOffset:13,bottomSnipOffset:12,isType2S:!0},{aliases:["Eco188I","Eco98I","Uba1435I","Hin5III","Uba1219I","UbaN17I","SpaPIV","Eco231I","BstZ1II","Csp231I","Eco65I","HinbIII","ChuEI","Asp52I","Asp3065I","Uba83I","HinfII","MkiI","HinJCII","BsmGII","Hin1076III","HinSAFI","Hin173I","Uba1164II","BseHI","BbrAI","Bst170II","BpeI","Cfr32I"],site:"aagctt",forwardRegex:"a{2}gct{2}",reverseRegex:"a{2}gct{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["StsI"],site:"ggatg",forwardRegex:"g{2}atg",reverseRegex:"catc{2}",topSnipOffset:15,bottomSnipOffset:19,isType2S:!0},{aliases:["BstZ2I","Uba1191I","Uba1190I"],site:"gacnnnnngtc",forwardRegex:"gac[abcdghkmnrstvwy]{5}gtc",reverseRegex:"gac[abcdghkmnrstvwy]{5}gtc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Hin6I","HinP1I","HsoI","HspAI","SciNI","BbtI"],site:"gcgc",forwardRegex:"gcgc",reverseRegex:"gcgc",topSnipOffset:1,bottomSnipOffset:3},{aliases:["PmdI"],site:"cctcagc",forwardRegex:"c{2}tcagc",reverseRegex:"gctgag{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BcefI"],site:"acggc",forwardRegex:"acg{2}c",reverseRegex:"gc{2}gt",topSnipOffset:17,bottomSnipOffset:18,isType2S:!0},{aliases:["Eco52I","BstZI","EagI","XmaIII","BseX3I","EclXI","AaaI","SenPT16I"],site:"cggccg",forwardRegex:"cg{2}c{2}g",reverseRegex:"cg{2}c{2}g",topSnipOffset:1,bottomSnipOffset:5},{aliases:["BsaJI","SecI","BssECI","BseDI"],site:"ccnngg",forwardRegex:"c{2}[abcdghkmnrstvwy]{2}g{2}",reverseRegex:"c{2}[abcdghkmnrstvwy]{2}g{2}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["CciI","RspXI","BspHI","PagI","RcaI"],site:"tcatga",forwardRegex:"tcatga",reverseRegex:"tcatga",topSnipOffset:1,bottomSnipOffset:5},{aliases:["FseI","RigI"],site:"ggccggcc",forwardRegex:"g{2}c{2}g{2}c{2}",reverseRegex:"g{2}c{2}g{2}c{2}",topSnipOffset:6,bottomSnipOffset:2},{aliases:["BstMWI","HpyF10VI","Bce4I","BceCI","BspWI","MwoI"],site:"gcnnnnnnngc",forwardRegex:"gc[abcdghkmnrstvwy]{7}gc",reverseRegex:"gc[abcdghkmnrstvwy]{7}gc",topSnipOffset:7,bottomSnipOffset:4},{aliases:["HpyF10III","Uba1442I","HpyF67IV","BstZ10I","BsoKI","HpyF61II","Hpy99IV"],site:"ccnngg",forwardRegex:"c{2}[abcdghkmnrstvwy]{2}g{2}",reverseRegex:"c{2}[abcdghkmnrstvwy]{2}g{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Aor51HI","FunI","Eco47III","AitI","AfeI"],site:"agcgct",forwardRegex:"agcgct",reverseRegex:"agcgct",topSnipOffset:3,bottomSnipOffset:3},{aliases:["MlyI","SchI"],site:"gagtc",forwardRegex:"gagtc",reverseRegex:"gactc",topSnipOffset:10,bottomSnipOffset:10,isType2S:!0},{aliases:["BseB631I","VanI","Bpu86I","Tsp219I","BsoJI"],site:"gccnnnnnggc",forwardRegex:"gc{2}[abcdghkmnrstvwy]{5}g{2}c",reverseRegex:"gc{2}[abcdghkmnrstvwy]{5}g{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Bsp120I","PspOMI"],site:"gggccc",forwardRegex:"g{3}c{3}",reverseRegex:"g{3}c{3}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Csp6I","RsaNI","CviRII","CviQI"],site:"gtac",forwardRegex:"gtac",reverseRegex:"gtac",topSnipOffset:1,bottomSnipOffset:3},{aliases:["M.Phi3TI","Cac824I","Bpu1811I","M.NgoBXII","M.Rho11sI","CcoP216I","CcoP215I","Bli1904II","BssFI","BssXI","M.SPBetaI","LlaDII"],site:"gcngc",forwardRegex:"gc[abcdghkmnrstvwy]gc",reverseRegex:"gc[abcdghkmnrstvwy]gc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AflII","MspCI","Vha464I","Bst98I","BstAFI","Esp4I","BstPZ740I","BfrI","BspTI"],site:"cttaag",forwardRegex:"ct{2}a{2}g",reverseRegex:"ct{2}a{2}g",topSnipOffset:1,bottomSnipOffset:5},{aliases:["BthCI"],site:"gcngc",forwardRegex:"gc[abcdghkmnrstvwy]gc",reverseRegex:"gc[abcdghkmnrstvwy]gc",topSnipOffset:4,bottomSnipOffset:1},{aliases:["TfiTok6A1I","TspAK13D21I","TspVil3I","M.Rho11sII","Hpy26II","HpyF65II","TflI","HpyF16I","TfiTok4A2I","HpyF23I","HpyV","Tsp358I","HpyF71I","HpyF73II","TfiA3I","HpyF26III","TspAK16D24I","Tsc4aI","HpyF42IV","HpyF66IV","TspVi4AI","M.CviBIII","TthRQI","Tbr51I","HpyF52I","HpyF49I","Tth24I","M.Phi3TII","HpyF64I","CviSIII","HpyF40II","Taq20I","Tsp505I","HpyF35I","HpyF62II","HpyJP26II","HpyF30I","HpyF24I","HpyF59III","TspNI","Tsp510I","HpyF45I","HpyF14III"],site:"tcga",forwardRegex:"tcga",reverseRegex:"tcga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SthNI","SthBI","SthCI","SthDI","SthEI","SthAI","SthJI","SthKI","SthLI","SthMI","SthFI","SthGI","SthHI","Uba1201I","Uba76I","Uba86I","Uba85I","Uba87I","NmiI","KpnK14I","Eco149I","MvsAI","MvsDI","MvsEI","MvsBI","MvsCI","BspJ106I","Sau10I","Esp19I","MvsI"],site:"ggtacc",forwardRegex:"g{2}tac{2}",reverseRegex:"g{2}tac{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["M.NgoBIX"],site:"gtannnnnctc",forwardRegex:"gta[abcdghkmnrstvwy]{5}ctc",reverseRegex:"gag[abcdghkmnrstvwy]{5}tac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Asp29HI","HpyF65III","HpyF21II","HpyF59II","Hpy303I","HpyF10IV","HpyF66III","Hpy471I","Hpy423I","Hpy421I","HpyHII","Asp18HI","CcoP73I","HpyNSH57I","Hpy312I","HpyF53II","Asp17HI","HpyF44V","Hpy401I","HpyF13IV","HpyF31I","HpyF36II","Asp16HI","HpyF52III","Hpy501I","MjaV"],site:"gtac",forwardRegex:"gtac",reverseRegex:"gtac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Bsp19I","NcoI"],site:"ccatgg",forwardRegex:"c{2}atg{2}",reverseRegex:"c{2}atg{2}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Psp1406I","AclI"],site:"aacgtt",forwardRegex:"a{2}cgt{2}",reverseRegex:"a{2}cgt{2}",topSnipOffset:2,bottomSnipOffset:4},{aliases:["Uba1432I","Asp17I","Asp8HI","AitII","AitAI","BpuGI","Asp21HI","Asp22I","Asp1HI","Asp14HI","BscSI","Asp6HI"],site:"rgatcy",forwardRegex:"[agr]gatc[cty]",reverseRegex:"[agr]gatc[cty]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["RpaB5I"],site:"cgrggac",forwardRegex:"cg[agr]g{2}ac",reverseRegex:"gtc{2}[cty]cg",topSnipOffset:27,bottomSnipOffset:25,isType2S:!0},{aliases:["LweI","SfaNI","BspST5I","BmsI","PhaI"],site:"gcatc",forwardRegex:"gcatc",reverseRegex:"gatgc",topSnipOffset:10,bottomSnipOffset:14,isType2S:!0},{aliases:["EcoA4I","BspTNI","EcoO44I","Bso31I","BsaI","Eco31I","Bli736I"],isType2S:!0,site:"ggtctc",forwardRegex:"g{2}tctc",reverseRegex:"gagac{2}",topSnipOffset:7,bottomSnipOffset:11},{aliases:["Asi256I"],site:"gatc",forwardRegex:"gatc",reverseRegex:"gatc",topSnipOffset:1,bottomSnipOffset:3},{aliases:["Uba1362I","TseAI","Bka1125I","HpyF36IV","HpyF47I","Mlu40I","BstZ15I"],site:"gdgchc",forwardRegex:"g[adgkrtw]gc[achmtwy]c",reverseRegex:"g[adgkrtw]gc[achmtwy]c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Ppu21I","BsaAI","PsuAI","BstBAI","MspYI"],site:"yacgtr",forwardRegex:"[cty]acgt[agr]",reverseRegex:"[cty]acgt[agr]",topSnipOffset:3,bottomSnipOffset:3},{aliases:["Vsp2246I","Eco50I","Uba1127I","Eco195I","Bme05I","Eco173I","SspM1III","Eco171I","Esp25I","Esp22I","Esp21I","Esp15I","Esp9I","Esp14I","Esp13I","Esp12I","Esp11I","Esp10I","Esp1I","Esp6I","Pph14I","Eco169I","Eco168I"],site:"ggyrcc",forwardRegex:"g{2}[cty][agr]c{2}",reverseRegex:"g{2}[cty][agr]c{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Mlu1106I"],site:"rggwccy",forwardRegex:"[agr]g{2}[atw]c{2}[cty]",reverseRegex:"[agr]g{2}[atw]c{2}[cty]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Bst22I","BsiYI","BflI","Bsc107I","BseLI","AfiI","BslI","Bsc4I"],site:"ccnnnnnnngg",forwardRegex:"c{2}[abcdghkmnrstvwy]{7}g{2}",reverseRegex:"c{2}[abcdghkmnrstvwy]{7}g{2}",topSnipOffset:7,bottomSnipOffset:4},{aliases:["BstD102I","BsrBI","MbiI","AccBSI","Bst31NI"],site:"ccgctc",forwardRegex:"c{2}gctc",reverseRegex:"gagcg{2}",topSnipOffset:3,bottomSnipOffset:3},{aliases:["BsrXI","Msp23I","BspLU11II"],site:"tctaga",forwardRegex:"tctaga",reverseRegex:"tctaga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AclNI","BcuI","SpeI","AhlI"],site:"actagt",forwardRegex:"actagt",reverseRegex:"actagt",topSnipOffset:1,bottomSnipOffset:5},{aliases:["PunAII","AvoI","PauAI","NspHI","BstNSI","NspI","XceI"],site:"rcatgy",forwardRegex:"[agr]catg[cty]",reverseRegex:"[agr]catg[cty]",topSnipOffset:5,bottomSnipOffset:1},{aliases:["MscI","BalI","MluNI","MlsI","Mlu31I","Msp20I"],site:"tggcca",forwardRegex:"tg{2}c{2}a",reverseRegex:"tg{2}c{2}a",topSnipOffset:3,bottomSnipOffset:3},{aliases:["BmgI"],site:"gkgccc",forwardRegex:"g[gkt]gc{3}",reverseRegex:"g{3}c[acm]c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BglII","NcrI","Pae2kI","Pae18kI","NspMACI"],site:"agatct",forwardRegex:"agatct",reverseRegex:"agatct",topSnipOffset:1,bottomSnipOffset:5},{aliases:["FatII","M.CviSII","Hin8II"],site:"catg",forwardRegex:"catg",reverseRegex:"catg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["CglI","NgoFVII"],site:"gcsgc",forwardRegex:"gc[cgs]gc",reverseRegex:"gc[cgs]gc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SspM1II","NlaSII","SspJII","Uba1381I","Hin8I","SspM2II"],site:"grcgyc",forwardRegex:"g[agr]cg[cty]c",reverseRegex:"g[agr]cg[cty]c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["VchO68I","BscOI","PaeCI","Asp5HI","Bsp121I","Uba1226I","Uba1162I","CglAI","BtgAII","SpaXI"],site:"gcatgc",forwardRegex:"gcatgc",reverseRegex:"gcatgc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["XcaI","BstZ17I","BspM90I","BssNAI","BstBSI","Bst1107I"],site:"gtatac",forwardRegex:"gtatac",reverseRegex:"gtatac",topSnipOffset:3,bottomSnipOffset:3},{aliases:["Bme1580I","BstSLI","BseSI","BaeGI"],site:"gkgcmc",forwardRegex:"g[gkt]gc[acm]c",reverseRegex:"g[gkt]gc[acm]c",topSnipOffset:5,bottomSnipOffset:1},{aliases:["MthFI","Rma500I","Rma501I","Rma503I","FisI","Rma509I","Rma506I","Rma510I","MjaI","Rma515I","Rma516I","Rma517I","Rma518I","Rma519I","Rma496I","Rma495I","Rma522I","Rma497I","UbaN5I","Rma490I","Rma486I","Rma485I"],site:"ctag",forwardRegex:"ctag",reverseRegex:"ctag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SelI"],site:"cgcg",forwardRegex:"cgcg",reverseRegex:"cgcg",topSnipOffset:0,bottomSnipOffset:4},{aliases:["Mlu9273I","VchO70I","Sna3286I","SalDI","PspDI","Uba1117I","Uba1386I","AmaSI"],site:"tcgcga",forwardRegex:"tcgcga",reverseRegex:"tcgcga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Hsp92I","BbiII","Msp17I","HgiGI","HgiDI","AsuIII","PamII","BsaHI","BstACI","HgiHII","AcyI","BssNI","Hin1I","AhaII","AstWI","HgiI","AosII"],site:"grcgyc",forwardRegex:"g[agr]cg[cty]c",reverseRegex:"g[agr]cg[cty]c",topSnipOffset:2,bottomSnipOffset:4},{aliases:["BtgZI"],site:"gcgatg",forwardRegex:"gcgatg",reverseRegex:"catcgc",topSnipOffset:16,bottomSnipOffset:20,isType2S:!0},{aliases:["Bme142I","LpnI"],site:"rgcgcy",forwardRegex:"[agr]gcgc[cty]",reverseRegex:"[agr]gcgc[cty]",topSnipOffset:3,bottomSnipOffset:3},{aliases:["PlaAII","HpyBI","RsaI","AfaI"],site:"gtac",forwardRegex:"gtac",reverseRegex:"gtac",topSnipOffset:2,bottomSnipOffset:2},{aliases:["Tru201I","BloHI","BstX2I","MflI","BstYI","XhoII","PsuI","DsaIII"],site:"rgatcy",forwardRegex:"[agr]gatc[cty]",reverseRegex:"[agr]gatc[cty]",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Eco252I","Uba58I","Van91II","VchO2I","Eco159I","Hal22I","Eco82I","Eco228I","Eco237I","VchN100I"],site:"gaattc",forwardRegex:"ga{2}t{2}c",reverseRegex:"ga{2}t{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MluB2I","Bsp68I","RruI","SpoI","NruI","BtuMI","Sbo13I"],site:"tcgcga",forwardRegex:"tcgcga",reverseRegex:"tcgcga",topSnipOffset:3,bottomSnipOffset:3},{aliases:["AlwXI","Bst12I","BseKI","BbvI","Bst71I","BseXI","BstV1I","Bsp423I","Lsp1109I"],site:"gcagc",forwardRegex:"gcagc",reverseRegex:"gctgc",topSnipOffset:13,bottomSnipOffset:17,isType2S:!0},{aliases:["BspACI","SsiI","AciI"],site:"ccgc",forwardRegex:"c{2}gc",reverseRegex:"gcg{2}",topSnipOffset:1,bottomSnipOffset:3},{aliases:["EcoT38I","PaeHI","KoxII","SacNI","Eco24I","BpuI","FriOI","Bsu1854I","Eco75KI","BanII","BvuI","HgiJII","Bsp519I"],site:"grgcyc",forwardRegex:"g[agr]gc[cty]c",reverseRegex:"g[agr]gc[cty]c",topSnipOffset:5,bottomSnipOffset:1},{aliases:["PasI"],site:"cccwggg",forwardRegex:"c{3}[atw]g{3}",reverseRegex:"c{3}[atw]g{3}",topSnipOffset:2,bottomSnipOffset:5},{aliases:["MluCI","TseCI"],site:"aatt",forwardRegex:"a{2}t{2}",reverseRegex:"a{2}t{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["HpyF50I","HpyF49III","HpyF14II","HpyF7III","HpyF46III","MjaIV"],site:"gtnnac",forwardRegex:"gt[abcdghkmnrstvwy]{2}ac",reverseRegex:"gt[abcdghkmnrstvwy]{2}ac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Psp1009I","Tsp8EI","BglI"],site:"gccnnnnnggc",forwardRegex:"gc{2}[abcdghkmnrstvwy]{5}g{2}c",reverseRegex:"gc{2}[abcdghkmnrstvwy]{5}g{2}c",topSnipOffset:7,bottomSnipOffset:4},{aliases:["SruI","DraI","PauAII","AhaIII"],site:"tttaaa",forwardRegex:"t{3}a{3}",reverseRegex:"t{3}a{3}",topSnipOffset:3,bottomSnipOffset:3},{aliases:["AccI","XmiI","FblI"],site:"gtmkac",forwardRegex:"gt[acm][gkt]ac",reverseRegex:"gt[acm][gkt]ac",topSnipOffset:2,bottomSnipOffset:4},{aliases:["PmeI","MssI"],site:"gtttaaac",forwardRegex:"gt{3}a{3}c",reverseRegex:"gt{3}a{3}c",topSnipOffset:4,bottomSnipOffset:4},{aliases:["PshDI","PshCI","PspBI","Pgl34I","Psp38I","VpaK3AI","VpaK3BI","Bsp87I"],site:"cacgtg",forwardRegex:"cacgtg",reverseRegex:"cacgtg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AxyI","AocI","Lmu60I","BspR7I","OxaNI","CvnI","MstII","Bsu36I","Eco81I","SshAI","SauI","BliHKI","Bse21I"],site:"cctnagg",forwardRegex:"c{2}t[abcdghkmnrstvwy]ag{2}",reverseRegex:"c{2}t[abcdghkmnrstvwy]ag{2}",topSnipOffset:2,bottomSnipOffset:5},{aliases:["TsoI"],site:"tarcca",forwardRegex:"ta[agr]c{2}a",reverseRegex:"tg{2}[cty]ta",topSnipOffset:17,bottomSnipOffset:15,isType2S:!0},{aliases:["PlaII","LspI","SspRFI","BsiCI","Bpu14I","AcpI","FspII","MlaI","AsuII","Ssp1I","Asp10HI","NspV","Bsp119I","BspLAII","SviI","PpaAI","SfuI","CbiI","Bim19I","BstBI","BimI","Csp68KII","Csp45I","BspT104I"],site:"ttcgaa",forwardRegex:"t{2}cga{2}",reverseRegex:"t{2}cga{2}",topSnipOffset:2,bottomSnipOffset:4},{aliases:["EspHK26I","Bla7920I","Uba1375I","BspH226I","Cfr57I","Tsp514I","Bsp233I","Uba1136I","Uba1425I","Tsp507I","Bsp228I","Uba1279I","Bbf7411I","BstZ3I","Bsu22I","BstZ1I","BsiGI","BsiOI","Bsp508I"],site:"tccgga",forwardRegex:"tc{2}g{2}a",reverseRegex:"tc{2}g{2}a",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BpuEI","Bce83I"],site:"cttgag",forwardRegex:"ct{2}gag",reverseRegex:"ctca{2}g",topSnipOffset:22,bottomSnipOffset:20,isType2S:!0},{aliases:["AspS9I","AsuI","NspIV","BsiZI","Bsp1894I","BspF4I","Cfr13I","BshKI","BspBII","Pde12I","PspPI","MaeK81II","BavAII","Nsp7121I","BavBII","Bal228I","CcuI","Sau96I","AvcI","Bsu54I","Bce22I","Bac36I"],site:"ggncc",forwardRegex:"g{2}[abcdghkmnrstvwy]c{2}",reverseRegex:"g{2}[abcdghkmnrstvwy]c{2}",topSnipOffset:1,bottomSnipOffset:4},{aliases:["BstKTI","BspKT6I"],site:"gatc",forwardRegex:"gatc",reverseRegex:"gatc",topSnipOffset:3,bottomSnipOffset:1},{aliases:["BfmI","BdiSI","Srl56DI","BpcI","BthP35I","SfcI","BstSFI","LlaBI","SfeI"],site:"ctryag",forwardRegex:"ct[agr][cty]ag",reverseRegex:"ct[agr][cty]ag",topSnipOffset:1,bottomSnipOffset:5},{aliases:["MseI","Tru1I","Tru9I","SaqAI"],site:"ttaa",forwardRegex:"t{2}a{2}",reverseRegex:"t{2}a{2}",topSnipOffset:1,bottomSnipOffset:3},{aliases:["Sau96mI","Sau93I","Sau98I","Sau90I"],site:"ctyrag",forwardRegex:"ct[cty][agr]ag",reverseRegex:"ct[cty][agr]ag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["TrsSII"],site:"gacnnnnnngtc",forwardRegex:"gac[abcdghkmnrstvwy]{6}gtc",reverseRegex:"gac[abcdghkmnrstvwy]{6}gtc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["ParI","BsiQI","BclI","AbaI","FbaI","Ksp22I","BstT7I","BspXII"],site:"tgatca",forwardRegex:"tgatca",reverseRegex:"tgatca",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Eco255I","DpaI","BmcAI","ZrmI","ScaI","AssI","Bpa34I","Acc113I","RflFII"],site:"agtact",forwardRegex:"agtact",reverseRegex:"agtact",topSnipOffset:3,bottomSnipOffset:3},{aliases:["SplAII","TteI","TspI","TrsKTII","FsuI","SmaAII","NtaI","SplII","SpaPI","TtrI"],site:"gacnnngtc",forwardRegex:"gac[abcdghkmnrstvwy]{3}gtc",reverseRegex:"gac[abcdghkmnrstvwy]{3}gtc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AspLEI","HhaI","BspLAI","CfoI","BstHHI","FnuDIII"],site:"gcgc",forwardRegex:"gcgc",reverseRegex:"gcgc",topSnipOffset:3,bottomSnipOffset:1},{aliases:["StyLTI"],site:"cagag",forwardRegex:"cagag",reverseRegex:"ctctg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BsoEI","Uba1289I","Uba1290I","BstWI","Uba1309I","Uba1308I","Uba1310I","Bpu1268I"],site:"cctnnnnnagg",forwardRegex:"c{2}t[abcdghkmnrstvwy]{5}ag{2}",reverseRegex:"c{2}t[abcdghkmnrstvwy]{5}ag{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Eco826I","Eco1455I"],site:"gcannnnnnctga",forwardRegex:"gca[abcdghkmnrstvwy]{6}ctga",reverseRegex:"tcag[abcdghkmnrstvwy]{6}tgc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["ApaI","PpeI"],site:"gggccc",forwardRegex:"g{3}c{3}",reverseRegex:"g{3}c{3}",topSnipOffset:5,bottomSnipOffset:1},{aliases:["KpnBI"],site:"caaannnnnnrtca",forwardRegex:"ca{3}[abcdghkmnrstvwy]{6}[agr]tca",reverseRegex:"tga[cty][abcdghkmnrstvwy]{6}t{3}g",topSnipOffset:1,bottomSnipOffset:1},{aliases:["UnbI"],site:"ggncc",forwardRegex:"g{2}[abcdghkmnrstvwy]c{2}",reverseRegex:"g{2}[abcdghkmnrstvwy]c{2}",topSnipOffset:0,bottomSnipOffset:5},{aliases:["Uba1384I","SmuCI","AvaIII","Uba1353I","PxyJKI","Uba1367I","BfrCI","SrlII"],site:"atgcat",forwardRegex:"atgcat",reverseRegex:"atgcat",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BspMKI","XciI","SalI","HgiCIII","Rtr63I","Rrh4273I","RflFI","HgiDII","NopI","RtrI"],site:"gtcgac",forwardRegex:"gtcgac",reverseRegex:"gtcgac",topSnipOffset:1,bottomSnipOffset:5},{aliases:["EcoR124I"],site:"gaannnnnnrtcg",forwardRegex:"ga{2}[abcdghkmnrstvwy]{6}[agr]tcg",reverseRegex:"cga[cty][abcdghkmnrstvwy]{6}t{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SynII","Psc2I"],site:"gaannnnttc",forwardRegex:"ga{2}[abcdghkmnrstvwy]{4}t{2}c",reverseRegex:"ga{2}[abcdghkmnrstvwy]{4}t{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["CspI","Rsr2I","RsrII","CpoI"],site:"cggwccg",forwardRegex:"cg{2}[atw]c{2}g",reverseRegex:"cg{2}[atw]c{2}g",topSnipOffset:2,bottomSnipOffset:5},{aliases:["AscI","PalAI","SgsI"],site:"ggcgcgcc",forwardRegex:"g{2}cgcgc{2}",reverseRegex:"g{2}cgcgc{2}",topSnipOffset:2,bottomSnipOffset:6},{aliases:["Uba69I","TtmII","BscEI","BsrHI","Kpn30I","M.BssHIII","BssBI","Eco143I","Eco152I","Esp7I","Esp8I","CfrJ5I","BsoPI"],site:"gcgcgc",forwardRegex:"gcgcgc",reverseRegex:"gcgcgc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EclHKI","BspOVI","AhdI","AspEI","Eam1105I","NruGI","BmeRI","DriI"],site:"gacnnnnngtc",forwardRegex:"gac[abcdghkmnrstvwy]{5}gtc",reverseRegex:"gac[abcdghkmnrstvwy]{5}gtc",topSnipOffset:6,bottomSnipOffset:5},{aliases:["Uba1222I","Uba1221I","BpuGCI","Uba1320I","Uba1284I"],site:"gctnagc",forwardRegex:"gct[abcdghkmnrstvwy]agc",reverseRegex:"gct[abcdghkmnrstvwy]agc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BpuCI"],site:"ggcgga",forwardRegex:"g{2}cg{2}a",reverseRegex:"tc{2}gc{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EspI","BlpI","Bsp1720I","Bpu1102I","CelII"],site:"gctnagc",forwardRegex:"gct[abcdghkmnrstvwy]agc",reverseRegex:"gct[abcdghkmnrstvwy]agc",topSnipOffset:2,bottomSnipOffset:5},{aliases:["Eco1476I","Eco1427I","Eco1430I","Eco1323I","Eco377I","Eco1386I","Eco37I","Eco1344II","Eco1456I"],site:"ggannnnnnnnatgc",forwardRegex:"g{2}a[abcdghkmnrstvwy]{8}atgc",reverseRegex:"gcat[abcdghkmnrstvwy]{8}tc{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MnnI","Hin1160II","ChuEII","Hin1161II"],site:"gtyrac",forwardRegex:"gt[cty][agr]ac",reverseRegex:"gt[cty][agr]ac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SstI","SacI","Psp124BI"],site:"gagctc",forwardRegex:"gagctc",reverseRegex:"gagctc",topSnipOffset:5,bottomSnipOffset:1},{aliases:["SspD5II","NsiI","PinBI","Asi372I","Mph1103I","Csp68KIII","Zsp2I","SepI","EcoT22I","BfrBI"],site:"atgcat",forwardRegex:"atgcat",reverseRegex:"atgcat",topSnipOffset:5,bottomSnipOffset:1},{aliases:["AsnI","AseI","VspI","PshBI","Sru4DI","BpoAI"],site:"attaat",forwardRegex:"at{2}a{2}t",reverseRegex:"at{2}a{2}t",topSnipOffset:2,bottomSnipOffset:4},{aliases:["BmrFI","Msp67I","MspR9I","ScrFI","Bme1390I"],site:"ccngg",forwardRegex:"c{2}[abcdghkmnrstvwy]g{2}",reverseRegex:"c{2}[abcdghkmnrstvwy]g{2}",topSnipOffset:2,bottomSnipOffset:3},{aliases:["McrI","BsaOI","BsiEI","Bsh1285I","BstMCI"],site:"cgrycg",forwardRegex:"cg[agr][cty]cg",reverseRegex:"cg[agr][cty]cg",topSnipOffset:4,bottomSnipOffset:2},{aliases:["TspRI","TscAI"],site:"castgnn",forwardRegex:"ca[cgs]tg[abcdghkmnrstvwy]{2}",reverseRegex:"[abcdghkmnrstvwy]{2}ca[cgs]tg",topSnipOffset:7,bottomSnipOffset:0},{aliases:["BsmWI","SmaAI","SspKI","SplAI","PfuNI"],site:"cgtacg",forwardRegex:"cgtacg",reverseRegex:"cgtacg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["CdiI"],site:"catcg",forwardRegex:"catcg",reverseRegex:"cgatg",topSnipOffset:4,bottomSnipOffset:4},{aliases:["TrsKTIII"],site:"catatg",forwardRegex:"catatg",reverseRegex:"catatg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BseB631II"],site:"agatct",forwardRegex:"agatct",reverseRegex:"agatct",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Sth302II"],site:"ccgg",forwardRegex:"c{2}g{2}",reverseRegex:"c{2}g{2}",topSnipOffset:2,bottomSnipOffset:2},{aliases:["PbuJKI","Hpy178VI","HpyF67III","HinGUII","HpyF6I"],site:"ggatg",forwardRegex:"g{2}atg",reverseRegex:"catc{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["UbaF13I"],site:"gagnnnnnnctgg",forwardRegex:"gag[abcdghkmnrstvwy]{6}ctg{2}",reverseRegex:"c{2}ag[abcdghkmnrstvwy]{6}ctc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MreI","Sse232I"],site:"cgccggcg",forwardRegex:"cgc{2}g{2}cg",reverseRegex:"cgc{2}g{2}cg",topSnipOffset:2,bottomSnipOffset:6},{aliases:["BsaGI","HpyF7II","Pph3215I","Bfu1570I","BsmPI","HpyF46II","Hpy8III"],site:"gwgcwc",forwardRegex:"g[atw]gc[atw]c",reverseRegex:"g[atw]gc[atw]c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BceSIII","BceAI"],site:"acggc",forwardRegex:"acg{2}c",reverseRegex:"gc{2}gt",topSnipOffset:17,bottomSnipOffset:19,isType2S:!0},{aliases:["CstMI"],site:"aaggag",forwardRegex:"a{2}g{2}ag",reverseRegex:"ctc{2}t{2}",topSnipOffset:26,bottomSnipOffset:24,isType2S:!0},{aliases:["Acc65I","Asp718I","SthI","AhaB8I"],site:"ggtacc",forwardRegex:"g{2}tac{2}",reverseRegex:"g{2}tac{2}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["EacI","BinI","AlwI","Bst31TI","BspPI","AclWI","BstH9I"],site:"ggatc",forwardRegex:"g{2}atc",reverseRegex:"gatc{2}",topSnipOffset:9,bottomSnipOffset:10,isType2S:!0},{aliases:["BspGI"],site:"ctggac",forwardRegex:"ctg{2}ac",reverseRegex:"gtc{2}ag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BspCNI"],site:"ctcag",forwardRegex:"ctcag",reverseRegex:"ctgag",topSnipOffset:14,bottomSnipOffset:12,isType2S:!0},{aliases:["MunI","MfeI"],site:"caattg",forwardRegex:"ca{2}t{2}g",reverseRegex:"ca{2}t{2}g",topSnipOffset:1,bottomSnipOffset:5},{aliases:["StySENI","StySBLI"],site:"cgannnnnntacc",forwardRegex:"cga[abcdghkmnrstvwy]{6}tac{2}",reverseRegex:"g{2}ta[abcdghkmnrstvwy]{6}tcg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BfaI","MthZI","RmaI","FspBI","FgoI","MaeI","XspI"],site:"ctag",forwardRegex:"ctag",reverseRegex:"ctag",topSnipOffset:1,bottomSnipOffset:3},{aliases:["BseYI"],site:"cccagc",forwardRegex:"c{3}agc",reverseRegex:"gctg{3}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["SmlI","SmoI"],site:"ctyrag",forwardRegex:"ct[cty][agr]ag",reverseRegex:"ct[cty][agr]ag",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Tsp509I","Sse9I","TspEI","TasI"],site:"aatt",forwardRegex:"a{2}t{2}",reverseRegex:"a{2}t{2}",topSnipOffset:0,bottomSnipOffset:4},{aliases:["HgaI","CseI"],site:"gacgc",forwardRegex:"gacgc",reverseRegex:"gcgtc",topSnipOffset:10,bottomSnipOffset:15,isType2S:!0},{aliases:["PaeBI","PspALI","SmaI","CfrJ4I"],site:"cccggg",forwardRegex:"c{3}g{3}",reverseRegex:"c{3}g{3}",topSnipOffset:3,bottomSnipOffset:3},{aliases:["SnaBI","Eco105I","BstSNI"],site:"tacgta",forwardRegex:"tacgta",reverseRegex:"tacgta",topSnipOffset:3,bottomSnipOffset:3},{aliases:["Esp3I","BstGZ53I","BsmBI"],isType2S:!0,site:"cgtctc",forwardRegex:"cgtctc",reverseRegex:"gagacg",topSnipOffset:7,bottomSnipOffset:11},{aliases:["Bsp1591I","Cfr19I","Uba1291I","SciAI","KoxI","BstDI","Bse59I","Bst31I","Cfr7I"],site:"ggtnacc",forwardRegex:"g{2}t[abcdghkmnrstvwy]ac{2}",reverseRegex:"g{2}t[abcdghkmnrstvwy]ac{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["PstII"],site:"ctgatg",forwardRegex:"ctgatg",reverseRegex:"catcag",topSnipOffset:31,bottomSnipOffset:33,isType2S:!0},{aliases:["PflMI","PflBI","Asp10HII","BasI","Van91I","AcpII","Esp1396I","AccB7I"],site:"ccannnnntgg",forwardRegex:"c{2}a[abcdghkmnrstvwy]{5}tg{2}",reverseRegex:"c{2}a[abcdghkmnrstvwy]{5}tg{2}",topSnipOffset:7,bottomSnipOffset:4},{aliases:["RceI"],site:"catcgac",forwardRegex:"catcgac",reverseRegex:"gtcgatg",topSnipOffset:27,bottomSnipOffset:25,isType2S:!0},{aliases:["BstDEI","BstJZ301I","HpyF3I","DdeI"],site:"ctnag",forwardRegex:"ct[abcdghkmnrstvwy]ag",reverseRegex:"ct[abcdghkmnrstvwy]ag",topSnipOffset:1,bottomSnipOffset:4},{aliases:["UbaN6I","Bco631I","Bco63I","Bse631I"],site:"gatnnnnatc",forwardRegex:"gat[abcdghkmnrstvwy]{4}atc",reverseRegex:"gat[abcdghkmnrstvwy]{4}atc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["StySJI"],site:"gagnnnnnngtrc",forwardRegex:"gag[abcdghkmnrstvwy]{6}gt[agr]c",reverseRegex:"g[cty]ac[abcdghkmnrstvwy]{6}ctc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BchI","BsaUI","BsrVI","LfeI"],site:"gcagc",forwardRegex:"gcagc",reverseRegex:"gctgc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BscAI","Bst19I"],site:"gcatc",forwardRegex:"gcatc",reverseRegex:"gatgc",topSnipOffset:9,bottomSnipOffset:11,isType2S:!0},{aliases:["KteAI","Uba1393I","Uba1220I"],site:"cccggg",forwardRegex:"c{3}g{3}",reverseRegex:"c{3}g{3}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BctI"],site:"acggc",forwardRegex:"acg{2}c",reverseRegex:"gc{2}gt",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BsePI","PteI","BssHII","BstBZ153I","PauI"],site:"gcgcgc",forwardRegex:"gcgcgc",reverseRegex:"gcgcgc",topSnipOffset:1,bottomSnipOffset:5},{aliases:["StyLTIII"],site:"gagnnnnnnrtayg",forwardRegex:"gag[abcdghkmnrstvwy]{6}[agr]ta[cty]g",reverseRegex:"c[agr]ta[cty][abcdghkmnrstvwy]{6}ctc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["VpaK32I","PciSI","LguI","BspQI","SapI"],isType2S:!0,site:"gctcttc",forwardRegex:"gctct{2}c",reverseRegex:"ga{2}gagc",topSnipOffset:8,bottomSnipOffset:11},{aliases:["BniI"],site:"gcnngc",forwardRegex:"gc[abcdghkmnrstvwy]{2}gc",reverseRegex:"gc[abcdghkmnrstvwy]{2}gc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EcoDR2"],site:"tcannnnnngtcg",forwardRegex:"tca[abcdghkmnrstvwy]{6}gtcg",reverseRegex:"cgac[abcdghkmnrstvwy]{6}tga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["TssI"],site:"gagnnnctc",forwardRegex:"gag[abcdghkmnrstvwy]{3}ctc",reverseRegex:"gag[abcdghkmnrstvwy]{3}ctc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Tth111II"],site:"caarca",forwardRegex:"ca{2}[agr]ca",reverseRegex:"tg[cty]t{2}g",topSnipOffset:17,bottomSnipOffset:15,isType2S:!0},{aliases:["BbvCI","AbeI"],site:"cctcagc",forwardRegex:"c{2}tcagc",reverseRegex:"gctgag{2}",topSnipOffset:2,bottomSnipOffset:5},{aliases:["MluI","Bbi24I"],site:"acgcgt",forwardRegex:"acgcgt",reverseRegex:"acgcgt",topSnipOffset:1,bottomSnipOffset:5},{aliases:["MnlI"],site:"cctc",forwardRegex:"c{2}tc",reverseRegex:"gag{2}",topSnipOffset:11,bottomSnipOffset:10,isType2S:!0},{aliases:["SspD5I"],site:"ggtga",forwardRegex:"g{2}tga",reverseRegex:"tcac{2}",topSnipOffset:13,bottomSnipOffset:13,isType2S:!0},{aliases:["AspCNI"],site:"gccgc",forwardRegex:"gc{2}gc",reverseRegex:"gcg{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["TauI","BspUI"],site:"gcsgc",forwardRegex:"gc[cgs]gc",reverseRegex:"gc[cgs]gc",topSnipOffset:4,bottomSnipOffset:1},{aliases:["BinSII","BbeI"],site:"ggcgcc",forwardRegex:"g{2}cgc{2}",reverseRegex:"g{2}cgc{2}",topSnipOffset:5,bottomSnipOffset:1},{aliases:["BpmI","GsuI"],site:"ctggag",forwardRegex:"ctg{2}ag",reverseRegex:"ctc{2}ag",topSnipOffset:22,bottomSnipOffset:20,isType2S:!0},{aliases:["NciI","AhaI","AseII","Mgl14481I","AsuC2I","BpuMI","HgiS22I","CauII","BcnI"],site:"ccsgg",forwardRegex:"c{2}[cgs]g{2}",reverseRegex:"c{2}[cgs]g{2}",topSnipOffset:2,bottomSnipOffset:3},{aliases:["Eco1348I","Eco777I","Eco1412I"],site:"ggannnnnntatc",forwardRegex:"g{2}a[abcdghkmnrstvwy]{6}tatc",reverseRegex:"gata[abcdghkmnrstvwy]{6}tc{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AgsI"],site:"ttsaa",forwardRegex:"t{2}[cgs]a{2}",reverseRegex:"t{2}[cgs]a{2}",topSnipOffset:3,bottomSnipOffset:2},{aliases:["Pfl18I","Ssm4I","Ssm5I","NasSI","ScoI","Ecl137I"],site:"gagctc",forwardRegex:"gagctc",reverseRegex:"gagctc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["CfrBI","StyI","ErhB9II","Eco130I","ErhI","EcoT14I","BsmSI","BssT1I"],site:"ccwwgg",forwardRegex:"c{2}[atw]{2}g{2}",reverseRegex:"c{2}[atw]{2}g{2}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["AlwFI"],site:"gaaaynnnnnrtg",forwardRegex:"ga{3}[cty][abcdghkmnrstvwy]{5}[agr]tg",reverseRegex:"ca[cty][abcdghkmnrstvwy]{5}[agr]t{3}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["CviRI","HpyCH4V","HpyF44III"],site:"tgca",forwardRegex:"tgca",reverseRegex:"tgca",topSnipOffset:2,bottomSnipOffset:2},{aliases:["Bse19I","AteI","NspSAIII"],site:"ccatgg",forwardRegex:"c{2}atg{2}",reverseRegex:"c{2}atg{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Srl65DI","Srr17I","Srl55DII","CprJK722I","Srl8DI","PbuMZI"],site:"attaat",forwardRegex:"at{2}a{2}t",reverseRegex:"at{2}a{2}t",topSnipOffset:1,bottomSnipOffset:1},{aliases:["ClcII","GspAII","NspHIII","Bco6I","NspLI","NspMI","BsaTI","CliII","ApcTR183I","AcaIII"],site:"tgcgca",forwardRegex:"tgcgca",reverseRegex:"tgcgca",topSnipOffset:1,bottomSnipOffset:1},{aliases:["CsiI","MabI","SexAI"],site:"accwggt",forwardRegex:"ac{2}[atw]g{2}t",reverseRegex:"ac{2}[atw]g{2}t",topSnipOffset:1,bottomSnipOffset:6},{aliases:["HgiEII"],site:"accnnnnnnggt",forwardRegex:"ac{2}[abcdghkmnrstvwy]{6}g{2}t",reverseRegex:"ac{2}[abcdghkmnrstvwy]{6}g{2}t",topSnipOffset:1,bottomSnipOffset:1},{aliases:["TseDI","BscRI","Bsp21I"],site:"rccggy",forwardRegex:"[agr]c{2}g{2}[cty]",reverseRegex:"[agr]c{2}g{2}[cty]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Bse23I","BsmYI"],site:"ccnnnnnnngg",forwardRegex:"c{2}[abcdghkmnrstvwy]{7}g{2}",reverseRegex:"c{2}[abcdghkmnrstvwy]{7}g{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["NdeI","FauNDI","PfaAII"],site:"catatg",forwardRegex:"catatg",reverseRegex:"catatg",topSnipOffset:2,bottomSnipOffset:4},{aliases:["VneAI","Uba1326I"],site:"rggnccy",forwardRegex:"[agr]g{2}[abcdghkmnrstvwy]c{2}[cty]",reverseRegex:"[agr]g{2}[abcdghkmnrstvwy]c{2}[cty]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SrlI","NgoMIV","SceIII","NgoAIV","MroNI","Eco56I"],site:"gccggc",forwardRegex:"gc{2}g{2}c",reverseRegex:"gc{2}g{2}c",topSnipOffset:1,bottomSnipOffset:5},{aliases:["AsiSI","SfaAI","RgaI","SgfI"],site:"gcgatcgc",forwardRegex:"gcgatcgc",reverseRegex:"gcgatcgc",topSnipOffset:5,bottomSnipOffset:3},{aliases:["BtsPI","SaiI","ShaI"],site:"gggtc",forwardRegex:"g{3}tc",reverseRegex:"gac{3}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Pfl1108I"],site:"tcgtag",forwardRegex:"tcgtag",reverseRegex:"ctacga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EcoHK31I","Bfi89I","EaeI","CfrI","AcoI"],site:"yggccr",forwardRegex:"[cty]g{2}c{2}[agr]",reverseRegex:"[cty]g{2}c{2}[agr]",topSnipOffset:1,bottomSnipOffset:5},{aliases:["HphI","AsuHPI"],site:"ggtga",forwardRegex:"g{2}tga",reverseRegex:"tcac{2}",topSnipOffset:13,bottomSnipOffset:12,isType2S:!0},{aliases:["Uba1303I","BstZ5I","BscNI"],site:"cgrycg",forwardRegex:"cg[agr][cty]cg",reverseRegex:"cg[agr][cty]cg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Bsp6II","FsfI","BspD6II","Eco112I","Eco125I"],site:"ctgaag",forwardRegex:"ctga{2}g",reverseRegex:"ct{2}cag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BstXI","BstHZ55I"],site:"ccannnnnntgg",forwardRegex:"c{2}a[abcdghkmnrstvwy]{6}tg{2}",reverseRegex:"c{2}a[abcdghkmnrstvwy]{6}tg{2}",topSnipOffset:8,bottomSnipOffset:4},{aliases:["Ppu11I","Ppu6I"],site:"yacgtr",forwardRegex:"[cty]acgt[agr]",reverseRegex:"[cty]acgt[agr]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EcoT104I","SblAI","SblBI","SblCI","Uba1311I","Eco208II","Bst224I"],site:"ccwwgg",forwardRegex:"c{2}[atw]{2}g{2}",reverseRegex:"c{2}[atw]{2}g{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EcoR124II"],site:"gaannnnnnnrtcg",forwardRegex:"ga{2}[abcdghkmnrstvwy]{7}[agr]tcg",reverseRegex:"cga[cty][abcdghkmnrstvwy]{7}t{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MamI","BseJI","Bse8I","BsrBRI","BsiBI","BsaBI","Bsh1365I"],site:"gatnnnnatc",forwardRegex:"gat[abcdghkmnrstvwy]{4}atc",reverseRegex:"gat[abcdghkmnrstvwy]{4}atc",topSnipOffset:5,bottomSnipOffset:5},{aliases:["Ssp5230I","AatII"],site:"gacgtc",forwardRegex:"gacgtc",reverseRegex:"gacgtc",topSnipOffset:5,bottomSnipOffset:1},{aliases:["Uba1240I","Bpu1831I","SspM1I","SspM2I","EciAI","SspJI","Eco158II"],site:"tacgta",forwardRegex:"tacgta",reverseRegex:"tacgta",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MaqI"],site:"crttgac",forwardRegex:"c[agr]t{2}gac",reverseRegex:"gtca{2}[cty]g",topSnipOffset:28,bottomSnipOffset:26,isType2S:!0},{aliases:["CjeNII"],site:"gagnnnnngt",forwardRegex:"gag[abcdghkmnrstvwy]{5}gt",reverseRegex:"ac[abcdghkmnrstvwy]{5}ctc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["KpnAI"],site:"gaannnnnntgcc",forwardRegex:"ga{2}[abcdghkmnrstvwy]{6}tgc{2}",reverseRegex:"g{2}ca[abcdghkmnrstvwy]{6}t{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SleI","AjnI","Psp6I","PspGI","SspAI","EcoRII"],site:"ccwgg",forwardRegex:"c{2}[atw]g{2}",reverseRegex:"c{2}[atw]g{2}",topSnipOffset:0,bottomSnipOffset:5},{aliases:["BstFZ438I","Bme585I","SmuI","FauI"],site:"cccgc",forwardRegex:"c{3}gc",reverseRegex:"gcg{3}",topSnipOffset:9,bottomSnipOffset:11,isType2S:!0},{aliases:["HpyCH4IV","MaeII"],site:"acgt",forwardRegex:"acgt",reverseRegex:"acgt",topSnipOffset:1,bottomSnipOffset:3},{aliases:["TaqII"],site:"caccca",forwardRegex:"cac{3}a",reverseRegex:"tg{3}tg",topSnipOffset:17,bottomSnipOffset:15,isType2S:!0},{aliases:["UbaN9I"],site:"aacgtt",forwardRegex:"a{2}cgt{2}",reverseRegex:"a{2}cgt{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["DrdII"],site:"gaacca",forwardRegex:"ga{2}c{2}a",reverseRegex:"tg{2}t{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MalI","DpnI","CfuI"],site:"gatc",forwardRegex:"gatc",reverseRegex:"gatc",topSnipOffset:2,bottomSnipOffset:2},{aliases:["AarI"],isType2S:!0,site:"cacctgc",forwardRegex:"cac{2}tgc",reverseRegex:"gcag{2}tg",topSnipOffset:11,bottomSnipOffset:15},{aliases:["SrfI"],site:"gcccgggc",forwardRegex:"gc{3}g{3}c",reverseRegex:"gc{3}g{3}c",topSnipOffset:4,bottomSnipOffset:4},{aliases:["TatI"],site:"wgtacw",forwardRegex:"[atw]gtac[atw]",reverseRegex:"[atw]gtac[atw]",topSnipOffset:1,bottomSnipOffset:5},{aliases:["EcoDXXI"],site:"tcannnnnnnrttc",forwardRegex:"tca[abcdghkmnrstvwy]{7}[agr]t{2}c",reverseRegex:"ga{2}[cty][abcdghkmnrstvwy]{7}tga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["HindII","HincII","HinJCI"],site:"gtyrac",forwardRegex:"gt[cty][agr]ac",reverseRegex:"gt[cty][agr]ac",topSnipOffset:3,bottomSnipOffset:3},{aliases:["BseMI","Bse3DI","BsrDI"],site:"gcaatg",forwardRegex:"gca{2}tg",reverseRegex:"cat{2}gc",topSnipOffset:8,bottomSnipOffset:6,isType2S:!0},{aliases:["HalI","Srl32DII","FunII","Ppu111I","EcoRI","RsrI","Kpn49kI","SsoI","Srl55DI"],site:"gaattc",forwardRegex:"ga{2}t{2}c",reverseRegex:"ga{2}t{2}c",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Hpy166III"],site:"cctc",forwardRegex:"c{2}tc",reverseRegex:"gag{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["FspAI"],site:"rtgcgcay",forwardRegex:"[agr]tgcgca[cty]",reverseRegex:"[agr]tgcgca[cty]",topSnipOffset:4,bottomSnipOffset:4},{aliases:["Eco585I"],site:"gccnnnnnntgcg",forwardRegex:"gc{2}[abcdghkmnrstvwy]{6}tgcg",reverseRegex:"cgca[abcdghkmnrstvwy]{6}g{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["PlaDI"],site:"catcag",forwardRegex:"catcag",reverseRegex:"ctgatg",topSnipOffset:27,bottomSnipOffset:25,isType2S:!0},{aliases:["Hpy188I"],site:"tcnga",forwardRegex:"tc[abcdghkmnrstvwy]ga",reverseRegex:"tc[abcdghkmnrstvwy]ga",topSnipOffset:3,bottomSnipOffset:2},{aliases:["PciI","PscI","BspLU11I"],site:"acatgt",forwardRegex:"acatgt",reverseRegex:"acatgt",topSnipOffset:1,bottomSnipOffset:5},{aliases:["VchO25I","SnaI"],site:"gtatac",forwardRegex:"gtatac",reverseRegex:"gtatac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["TseBI","M.BbvSI","TneI"],site:"gcwgc",forwardRegex:"gc[atw]gc",reverseRegex:"gc[atw]gc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["OliI","AleI"],site:"cacnnnngtg",forwardRegex:"cac[abcdghkmnrstvwy]{4}gtg",reverseRegex:"cac[abcdghkmnrstvwy]{4}gtg",topSnipOffset:5,bottomSnipOffset:5},{aliases:["GlaI"],site:"gcgc",forwardRegex:"gcgc",reverseRegex:"gcgc",topSnipOffset:2,bottomSnipOffset:2},{aliases:["BssGI","BscJI","BstTI"],site:"ccannnnnntgg",forwardRegex:"c{2}a[abcdghkmnrstvwy]{6}tg{2}",reverseRegex:"c{2}a[abcdghkmnrstvwy]{6}tg{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Tsp4CI","Bst4CI","HpyCH4III","TaaI"],site:"acngt",forwardRegex:"ac[abcdghkmnrstvwy]gt",reverseRegex:"ac[abcdghkmnrstvwy]gt",topSnipOffset:3,bottomSnipOffset:2},{aliases:["AceIII"],site:"cagctc",forwardRegex:"cagctc",reverseRegex:"gagctg",topSnipOffset:13,bottomSnipOffset:17,isType2S:!0},{aliases:["BseNI","BsrI","Bse1I","Tsp1I","BsrSI","Bst11I"],site:"actgg",forwardRegex:"actg{2}",reverseRegex:"c{2}agt",topSnipOffset:6,bottomSnipOffset:4,isType2S:!0},{aliases:["FnuAI","HinfI","CviBI","HhaII","SscL1I"],site:"gantc",forwardRegex:"ga[abcdghkmnrstvwy]tc",reverseRegex:"ga[abcdghkmnrstvwy]tc",topSnipOffset:1,bottomSnipOffset:4},{aliases:["CjuI"],site:"caynnnnnrtg",forwardRegex:"ca[cty][abcdghkmnrstvwy]{5}[agr]tg",reverseRegex:"ca[cty][abcdghkmnrstvwy]{5}[agr]tg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["HpyF2I","Bco163I"],site:"ctryag",forwardRegex:"ct[agr][cty]ag",reverseRegex:"ct[agr][cty]ag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AanI","PsiI"],site:"ttataa",forwardRegex:"t{2}ata{2}",reverseRegex:"t{2}ata{2}",topSnipOffset:3,bottomSnipOffset:3},{aliases:["StySPI"],site:"aacnnnnnngtrc",forwardRegex:"a{2}c[abcdghkmnrstvwy]{6}gt[agr]c",reverseRegex:"g[cty]ac[abcdghkmnrstvwy]{6}gt{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BpuJI","BstDZ247I","BscGI"],site:"cccgt",forwardRegex:"c{3}gt",reverseRegex:"acg{3}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Hpy99I"],site:"cgwcg",forwardRegex:"cg[atw]cg",reverseRegex:"cg[atw]cg",topSnipOffset:5,bottomSnipOffset:0},{aliases:["BceSI"],site:"mmcgaag",forwardRegex:"[acm]{2}cga{2}g",reverseRegex:"ct{2}cg[gkt]{2}",topSnipOffset:32,bottomSnipOffset:34,isType2S:!0},{aliases:["HaeI"],site:"wggccw",forwardRegex:"[atw]g{2}c{2}[atw]",reverseRegex:"[atw]g{2}c{2}[atw]",topSnipOffset:3,bottomSnipOffset:3},{aliases:["PspPRI"],site:"ccycag",forwardRegex:"c{2}[cty]cag",reverseRegex:"ctg[agr]g{2}",topSnipOffset:21,bottomSnipOffset:19,isType2S:!0},{aliases:["FokI"],site:"ggatg",forwardRegex:"g{2}atg",reverseRegex:"catc{2}",topSnipOffset:14,bottomSnipOffset:18,isType2S:!0},{aliases:["NgoBV","NgoGV","Bsp29I","HpyF44II","Uba1445I","Uba1305I","HpyF73I","BsaEI","BcrI","Rlu3I","BssI"],site:"ggnncc",forwardRegex:"g{2}[abcdghkmnrstvwy]{2}c{2}",reverseRegex:"g{2}[abcdghkmnrstvwy]{2}c{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Bce1247I"],site:"gcnnnnnnngc",forwardRegex:"gc[abcdghkmnrstvwy]{7}gc",reverseRegex:"gc[abcdghkmnrstvwy]{7}gc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AasI","DrdI","DseDI"],site:"gacnnnnnngtc",forwardRegex:"gac[abcdghkmnrstvwy]{6}gtc",reverseRegex:"gac[abcdghkmnrstvwy]{6}gtc",topSnipOffset:7,bottomSnipOffset:5},{aliases:["M.SssI"],site:"cg",forwardRegex:"cg",reverseRegex:"cg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["HpyF61III"],site:"cgwcg",forwardRegex:"cg[atw]cg",reverseRegex:"cg[atw]cg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AflIII"],site:"acrygt",forwardRegex:"ac[agr][cty]gt",reverseRegex:"ac[agr][cty]gt",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Asp700I","BbvAI","MroXI","XmnI","PdmI"],site:"gaannnnttc",forwardRegex:"ga{2}[abcdghkmnrstvwy]{4}t{2}c",reverseRegex:"ga{2}[abcdghkmnrstvwy]{4}t{2}c",topSnipOffset:5,bottomSnipOffset:5},{aliases:["ChaI"],site:"gatc",forwardRegex:"gatc",reverseRegex:"gatc",topSnipOffset:4,bottomSnipOffset:0},{aliases:["EcoEI"],site:"gagnnnnnnnatgc",forwardRegex:"gag[abcdghkmnrstvwy]{7}atgc",reverseRegex:"gcat[abcdghkmnrstvwy]{7}ctc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BspAAII","XbaI"],site:"tctaga",forwardRegex:"tctaga",reverseRegex:"tctaga",topSnipOffset:1,bottomSnipOffset:5},{aliases:["Hpy188III","Hpy178III"],site:"tcnnga",forwardRegex:"tc[abcdghkmnrstvwy]{2}ga",reverseRegex:"tc[abcdghkmnrstvwy]{2}ga",topSnipOffset:2,bottomSnipOffset:4},{aliases:["McaTI"],site:"gcgcgc",forwardRegex:"gcgcgc",reverseRegex:"gcgcgc",topSnipOffset:4,bottomSnipOffset:2},{aliases:["BstZ9I","Uba6I","ApeI"],site:"acgcgt",forwardRegex:"acgcgt",reverseRegex:"acgcgt",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BspNCI"],site:"ccaga",forwardRegex:"c{2}aga",reverseRegex:"tctg{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EcoHI","Eco1831I","Kpn49kII"],site:"ccsgg",forwardRegex:"c{2}[cgs]g{2}",reverseRegex:"c{2}[cgs]g{2}",topSnipOffset:0,bottomSnipOffset:5},{aliases:["PpsI","PleI"],site:"gagtc",forwardRegex:"gagtc",reverseRegex:"gactc",topSnipOffset:9,bottomSnipOffset:10,isType2S:!0},{aliases:["BfuI","BciVI"],site:"gtatcc",forwardRegex:"gtatc{2}",reverseRegex:"g{2}atac",topSnipOffset:12,bottomSnipOffset:11,isType2S:!0},{aliases:["TthHB27I"],site:"caarca",forwardRegex:"ca{2}[agr]ca",reverseRegex:"tg[cty]t{2}g",topSnipOffset:1,bottomSnipOffset:1},{aliases:["PspXI"],site:"vctcgagb",forwardRegex:"[acgmrsv]ctcgag[bcgksty]",reverseRegex:"[acgmrsv]ctcgag[bcgksty]",topSnipOffset:2,bottomSnipOffset:6},{aliases:["Lsp1270I"],site:"rcatgy",forwardRegex:"[agr]catg[cty]",reverseRegex:"[agr]catg[cty]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["HpyC1I","BccI"],site:"ccatc",forwardRegex:"c{2}atc",reverseRegex:"gatg{2}",topSnipOffset:9,bottomSnipOffset:10,isType2S:!0},{aliases:["BseMII"],site:"ctcag",forwardRegex:"ctcag",reverseRegex:"ctgag",topSnipOffset:15,bottomSnipOffset:13,isType2S:!0},{aliases:["BstENI","EcoNI","XagI"],site:"cctnnnnnagg",forwardRegex:"c{2}t[abcdghkmnrstvwy]{5}ag{2}",reverseRegex:"c{2}t[abcdghkmnrstvwy]{5}ag{2}",topSnipOffset:5,bottomSnipOffset:6},{aliases:["EcoAI","Eco1446I"],site:"gagnnnnnnngtca",forwardRegex:"gag[abcdghkmnrstvwy]{7}gtca",reverseRegex:"tgac[abcdghkmnrstvwy]{7}ctc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MmeI"],site:"tccrac",forwardRegex:"tc{2}[agr]ac",reverseRegex:"gt[cty]g{2}a",topSnipOffset:26,bottomSnipOffset:24,isType2S:!0},{aliases:["AjiI","BmgBI","BtrI"],site:"cacgtc",forwardRegex:"cacgtc",reverseRegex:"gacgtg",topSnipOffset:3,bottomSnipOffset:3},{aliases:["BlsI"],site:"gcngc",forwardRegex:"gc[abcdghkmnrstvwy]gc",reverseRegex:"gc[abcdghkmnrstvwy]gc",topSnipOffset:3,bottomSnipOffset:2},{aliases:["Bst170I","BsmGI"],site:"tgtaca",forwardRegex:"tgtaca",reverseRegex:"tgtaca",topSnipOffset:1,bottomSnipOffset:1},{aliases:["HpyBII","Hpy166II","Hpy8I"],site:"gtnnac",forwardRegex:"gt[abcdghkmnrstvwy]{2}ac",reverseRegex:"gt[abcdghkmnrstvwy]{2}ac",topSnipOffset:3,bottomSnipOffset:3},{aliases:["StySKI"],site:"cgatnnnnnnngtta",forwardRegex:"cgat[abcdghkmnrstvwy]{7}gt{2}a",reverseRegex:"ta{2}c[abcdghkmnrstvwy]{7}atcg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Esp23I","Esp16I"],site:"cgtctc",forwardRegex:"cgtctc",reverseRegex:"gagacg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BmgT120I"],site:"ggncc",forwardRegex:"g{2}[abcdghkmnrstvwy]c{2}",reverseRegex:"g{2}[abcdghkmnrstvwy]c{2}",topSnipOffset:2,bottomSnipOffset:3},{aliases:["BcoAI","BbrPI","PmlI","PspCI","PmaCI","Eco72I","AcvI"],site:"cacgtg",forwardRegex:"cacgtg",reverseRegex:"cacgtg",topSnipOffset:3,bottomSnipOffset:3},{aliases:["CjeP338II","BscUI","BsmNI","BhaI"],site:"gcatc",forwardRegex:"gcatc",reverseRegex:"gatgc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["KasI","SspDI"],site:"ggcgcc",forwardRegex:"g{2}cgc{2}",reverseRegex:"g{2}cgc{2}",topSnipOffset:1,bottomSnipOffset:5},{aliases:["FmuI"],site:"ggncc",forwardRegex:"g{2}[abcdghkmnrstvwy]c{2}",reverseRegex:"g{2}[abcdghkmnrstvwy]c{2}",topSnipOffset:4,bottomSnipOffset:1},{aliases:["RseI","MslI","SmiMI"],site:"caynnnnrtg",forwardRegex:"ca[cty][abcdghkmnrstvwy]{4}[agr]tg",reverseRegex:"ca[cty][abcdghkmnrstvwy]{4}[agr]tg",topSnipOffset:5,bottomSnipOffset:5},{aliases:["NmuCI","Tsp45I","Hpy51I"],site:"gtsac",forwardRegex:"gt[cgs]ac",reverseRegex:"gt[cgs]ac",topSnipOffset:0,bottomSnipOffset:5},{aliases:["Psp5II","PpuMI","PpuXI","Pfl27I","PspPPI"],site:"rggwccy",forwardRegex:"[agr]g{2}[atw]c{2}[cty]",reverseRegex:"[agr]g{2}[atw]c{2}[cty]",topSnipOffset:2,bottomSnipOffset:5},{aliases:["Bba179I","Bst1473I","UbaN10I"],site:"wccggw",forwardRegex:"[atw]c{2}g{2}[atw]",reverseRegex:"[atw]c{2}g{2}[atw]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Eco912I"],site:"cacnnnnntggc",forwardRegex:"cac[abcdghkmnrstvwy]{5}tg{2}c",reverseRegex:"gc{2}a[abcdghkmnrstvwy]{5}gtg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SsmI"],site:"ctgatg",forwardRegex:"ctgatg",reverseRegex:"catcag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EsaSSI"],site:"gaccac",forwardRegex:"gac{2}ac",reverseRegex:"gtg{2}tc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EcoDI"],site:"ttannnnnnngtcy",forwardRegex:"t{2}a[abcdghkmnrstvwy]{7}gtc[cty]",reverseRegex:"[agr]gac[abcdghkmnrstvwy]{7}ta{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BsoHI","BscHI"],site:"actgg",forwardRegex:"actg{2}",reverseRegex:"c{2}agt",topSnipOffset:1,bottomSnipOffset:1},{aliases:["NmeBI"],site:"gacgc",forwardRegex:"gacgc",reverseRegex:"gcgtc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["NspBII","MspA1I"],site:"cmgckg",forwardRegex:"c[acm]gc[gkt]g",reverseRegex:"c[acm]gc[gkt]g",topSnipOffset:3,bottomSnipOffset:3},{aliases:["BmgAI"],site:"gkgcmc",forwardRegex:"g[gkt]gc[acm]c",reverseRegex:"g[gkt]gc[acm]c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["NmeAIII"],site:"gccgag",forwardRegex:"gc{2}gag",reverseRegex:"ctcg{2}c",topSnipOffset:27,bottomSnipOffset:25,isType2S:!0},{aliases:["DrdIV"],site:"tacgac",forwardRegex:"tacgac",reverseRegex:"gtcgta",topSnipOffset:26,bottomSnipOffset:24,isType2S:!0},{aliases:["BscQII"],site:"gtctc",forwardRegex:"gtctc",reverseRegex:"gagac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AbsI"],site:"cctcgagg",forwardRegex:"c{2}tcgag{2}",reverseRegex:"c{2}tcgag{2}",topSnipOffset:2,bottomSnipOffset:6},{aliases:["Psp03I"],site:"ggwcc",forwardRegex:"g{2}[atw]c{2}",reverseRegex:"g{2}[atw]c{2}",topSnipOffset:4,bottomSnipOffset:1},{aliases:["BmtI","BspOI","AceII"],site:"gctagc",forwardRegex:"gctagc",reverseRegex:"gctagc",topSnipOffset:5,bottomSnipOffset:1},{aliases:["GsaI"],site:"cccagc",forwardRegex:"c{3}agc",reverseRegex:"gctg{3}",topSnipOffset:5,bottomSnipOffset:1},{aliases:["UbaF9I"],site:"tacnnnnnrtgt",forwardRegex:"tac[abcdghkmnrstvwy]{5}[agr]tgt",reverseRegex:"aca[cty][abcdghkmnrstvwy]{5}gta",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Hin1II","NlaIII","FaeI","Hsp92II","HpyCH4I"],site:"catg",forwardRegex:"catg",reverseRegex:"catg",topSnipOffset:4,bottomSnipOffset:0},{aliases:["Bbr7I"],site:"gaagac",forwardRegex:"ga{2}gac",reverseRegex:"gtct{2}c",topSnipOffset:13,bottomSnipOffset:17,isType2S:!0},{aliases:["Kaz48kI","PssI"],site:"rggnccy",forwardRegex:"[agr]g{2}[abcdghkmnrstvwy]c{2}[cty]",reverseRegex:"[agr]g{2}[abcdghkmnrstvwy]c{2}[cty]",topSnipOffset:5,bottomSnipOffset:2},{aliases:["BoxI","BstPAI","PshAI"],site:"gacnnnngtc",forwardRegex:"gac[abcdghkmnrstvwy]{4}gtc",reverseRegex:"gac[abcdghkmnrstvwy]{4}gtc",topSnipOffset:5,bottomSnipOffset:5},{aliases:["SgrDI"],site:"cgtcgacg",forwardRegex:"cgtcgacg",reverseRegex:"cgtcgacg",topSnipOffset:2,bottomSnipOffset:6},{aliases:["BssIMI","SimI"],site:"gggtc",forwardRegex:"g{3}tc",reverseRegex:"gac{3}",topSnipOffset:2,bottomSnipOffset:5},{aliases:["RleAI"],site:"cccaca",forwardRegex:"c{3}aca",reverseRegex:"tgtg{3}",topSnipOffset:18,bottomSnipOffset:15,isType2S:!0},{aliases:["EciI"],site:"ggcgga",forwardRegex:"g{2}cg{2}a",reverseRegex:"tc{2}gc{2}",topSnipOffset:17,bottomSnipOffset:15,isType2S:!0},{aliases:["Eco57MI"],site:"ctgrag",forwardRegex:"ctg[agr]ag",reverseRegex:"ct[cty]cag",topSnipOffset:22,bottomSnipOffset:20,isType2S:!0},{aliases:["AspJI","Ppu1253I"],site:"gacgtc",forwardRegex:"gacgtc",reverseRegex:"gacgtc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["UbaF11I"],site:"tcgta",forwardRegex:"tcgta",reverseRegex:"tacga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SetI"],site:"asst",forwardRegex:"a[cgs]{2}t",reverseRegex:"a[cgs]{2}t",topSnipOffset:4,bottomSnipOffset:0},{aliases:["PspOMII"],site:"cgcccar",forwardRegex:"cgc{3}a[agr]",reverseRegex:"[cty]tg{3}cg",topSnipOffset:27,bottomSnipOffset:25,isType2S:!0},{aliases:["BsxI"],site:"actggg",forwardRegex:"actg{3}",reverseRegex:"c{3}agt",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Eco394I"],site:"gacnnnnnrtaay",forwardRegex:"gac[abcdghkmnrstvwy]{5}[agr]ta{2}[cty]",reverseRegex:"[agr]t{2}a[cty][abcdghkmnrstvwy]{5}gtc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["ApyPI"],site:"atcgac",forwardRegex:"atcgac",reverseRegex:"gtcgat",topSnipOffset:26,bottomSnipOffset:24,isType2S:!0},{aliases:["AlwNI","CaiI"],site:"cagnnnctg",forwardRegex:"cag[abcdghkmnrstvwy]{3}ctg",reverseRegex:"cag[abcdghkmnrstvwy]{3}ctg",topSnipOffset:6,bottomSnipOffset:3},{aliases:["TsuI"],site:"gcgac",forwardRegex:"gcgac",reverseRegex:"gtcgc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Bca77I","BsaWI","BetI"],site:"wccggw",forwardRegex:"[atw]c{2}g{2}[atw]",reverseRegex:"[atw]c{2}g{2}[atw]",topSnipOffset:1,bottomSnipOffset:5},{aliases:["EcoDR3"],site:"tcannnnnnnatcg",forwardRegex:"tca[abcdghkmnrstvwy]{7}atcg",reverseRegex:"cgat[abcdghkmnrstvwy]{7}tga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SgrAI"],site:"crccggyg",forwardRegex:"c[agr]c{2}g{2}[cty]g",reverseRegex:"c[agr]c{2}g{2}[cty]g",topSnipOffset:2,bottomSnipOffset:6},{aliases:["M.NgoMXV"],site:"gcchr",forwardRegex:"gc{2}[achmtwy][agr]",reverseRegex:"[cty][adgkrtw]g{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["EcoRD2"],site:"gaannnnnnrttc",forwardRegex:"ga{2}[abcdghkmnrstvwy]{6}[agr]t{2}c",reverseRegex:"ga{2}[cty][abcdghkmnrstvwy]{6}t{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["TspGWI"],site:"acgga",forwardRegex:"acg{2}a",reverseRegex:"tc{2}gt",topSnipOffset:16,bottomSnipOffset:14,isType2S:!0},{aliases:["CviAII"],site:"catg",forwardRegex:"catg",reverseRegex:"catg",topSnipOffset:1,bottomSnipOffset:3},{aliases:["XcmI"],site:"ccannnnnnnnntgg",forwardRegex:"c{2}a[abcdghkmnrstvwy]{9}tg{2}",reverseRegex:"c{2}a[abcdghkmnrstvwy]{9}tg{2}",topSnipOffset:8,bottomSnipOffset:7},{aliases:["EcoRD3"],site:"gaannnnnnnrttc",forwardRegex:"ga{2}[abcdghkmnrstvwy]{7}[agr]t{2}c",reverseRegex:"ga{2}[cty][abcdghkmnrstvwy]{7}t{2}c",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SpoDI"],site:"gcggrag",forwardRegex:"gcg{2}[agr]ag",reverseRegex:"ct[cty]c{2}gc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["UbaN12I"],site:"cacgag",forwardRegex:"cacgag",reverseRegex:"ctcgtg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["PspFI"],site:"cccagc",forwardRegex:"c{3}agc",reverseRegex:"gctg{3}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["PfoI"],site:"tccngga",forwardRegex:"tc{2}[abcdghkmnrstvwy]g{2}a",reverseRegex:"tc{2}[abcdghkmnrstvwy]g{2}a",topSnipOffset:1,bottomSnipOffset:6},{aliases:["Sse8647I"],site:"aggwcct",forwardRegex:"ag{2}[atw]c{2}t",reverseRegex:"ag{2}[atw]c{2}t",topSnipOffset:2,bottomSnipOffset:5},{aliases:["KflI","Sse1825I","SanDI"],site:"gggwccc",forwardRegex:"g{3}[atw]c{3}",reverseRegex:"g{3}[atw]c{3}",topSnipOffset:2,bottomSnipOffset:5},{aliases:["Sth132I"],site:"cccg",forwardRegex:"c{3}g",reverseRegex:"cg{3}",topSnipOffset:8,bottomSnipOffset:12,isType2S:!0},{aliases:["CdpI"],site:"gcggag",forwardRegex:"gcg{2}ag",reverseRegex:"ctc{2}gc",topSnipOffset:26,bottomSnipOffset:24,isType2S:!0},{aliases:["Asp90I"],site:"acrygt",forwardRegex:"ac[agr][cty]gt",reverseRegex:"ac[agr][cty]gt",topSnipOffset:1,bottomSnipOffset:1},{aliases:["M.CviPI"],site:"gc",forwardRegex:"gc",reverseRegex:"gc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["MauBI"],site:"cgcgcgcg",forwardRegex:"cgcgcgcg",reverseRegex:"cgcgcgcg",topSnipOffset:2,bottomSnipOffset:6},{aliases:["CfrAI"],site:"gcannnnnnnngtgg",forwardRegex:"gca[abcdghkmnrstvwy]{8}gtg{2}",reverseRegex:"c{2}ac[abcdghkmnrstvwy]{8}tgc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Eco851I"],site:"gtcannnnnntgay",forwardRegex:"gtca[abcdghkmnrstvwy]{6}tga[cty]",reverseRegex:"[agr]tca[abcdghkmnrstvwy]{6}tgac",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BsgI"],site:"gtgcag",forwardRegex:"gtgcag",reverseRegex:"ctgcac",topSnipOffset:22,bottomSnipOffset:20,isType2S:!0},{aliases:["AquIV"],site:"grggaag",forwardRegex:"g[agr]g{2}a{2}g",reverseRegex:"ct{2}c{2}[cty]c",topSnipOffset:26,bottomSnipOffset:24,isType2S:!0},{aliases:["SciI"],site:"ctcgag",forwardRegex:"ctcgag",reverseRegex:"ctcgag",topSnipOffset:3,bottomSnipOffset:3},{aliases:["VpaK11AI"],site:"ggwcc",forwardRegex:"g{2}[atw]c{2}",reverseRegex:"g{2}[atw]c{2}",topSnipOffset:0,bottomSnipOffset:5},{aliases:["CviKI","CviJI","CviKI-1"],site:"rgcy",forwardRegex:"[agr]gc[cty]",reverseRegex:"[agr]gc[cty]",topSnipOffset:2,bottomSnipOffset:2},{aliases:["SnoI","VneI","ApaLI","Alw44I"],site:"gtgcac",forwardRegex:"gtgcac",reverseRegex:"gtgcac",topSnipOffset:1,bottomSnipOffset:5},{aliases:["BspD6I"],site:"gactc",forwardRegex:"gactc",reverseRegex:"gagtc",topSnipOffset:9,bottomSnipOffset:11,isType2S:!0},{aliases:["FatI"],site:"catg",forwardRegex:"catg",reverseRegex:"catg",topSnipOffset:0,bottomSnipOffset:4},{aliases:["ZraI"],site:"gacgtc",forwardRegex:"gacgtc",reverseRegex:"gacgtc",topSnipOffset:3,bottomSnipOffset:3},{aliases:["HineI","HinfIII"],site:"cgaat",forwardRegex:"cga{2}t",reverseRegex:"at{2}cg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["UbaF12I"],site:"ctacnnngtc",forwardRegex:"ctac[abcdghkmnrstvwy]{3}gtc",reverseRegex:"gac[abcdghkmnrstvwy]{3}gtag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Ppu10I"],site:"atgcat",forwardRegex:"atgcat",reverseRegex:"atgcat",topSnipOffset:1,bottomSnipOffset:5},{aliases:["ApaBI"],site:"gcannnnntgc",forwardRegex:"gca[abcdghkmnrstvwy]{5}tgc",reverseRegex:"gca[abcdghkmnrstvwy]{5}tgc",topSnipOffset:8,bottomSnipOffset:3},{aliases:["NhaXI"],site:"caagrag",forwardRegex:"ca{2}g[agr]ag",reverseRegex:"ct[cty]ct{2}g",topSnipOffset:1,bottomSnipOffset:1},{aliases:["PabI"],site:"gtac",forwardRegex:"gtac",reverseRegex:"gtac",topSnipOffset:3,bottomSnipOffset:1},{aliases:["HindI"],site:"cac",forwardRegex:"cac",reverseRegex:"gtg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["M.PhiMx8I"],site:"ctssag",forwardRegex:"ct[cgs]{2}ag",reverseRegex:"ct[cgs]{2}ag",topSnipOffset:1,bottomSnipOffset:1},{aliases:["RhcI"],site:"tcatga",forwardRegex:"tcatga",reverseRegex:"tcatga",topSnipOffset:1,bottomSnipOffset:1},{aliases:["KpnI"],site:"ggtacc",forwardRegex:"g{2}tac{2}",reverseRegex:"g{2}tac{2}",topSnipOffset:5,bottomSnipOffset:1},{aliases:["BpuDI","Bpu10I"],site:"cctnagc",forwardRegex:"c{2}t[abcdghkmnrstvwy]agc",reverseRegex:"gct[abcdghkmnrstvwy]ag{2}",topSnipOffset:2,bottomSnipOffset:5},{aliases:["EcoP15I"],site:"cagcag",forwardRegex:"cagcag",reverseRegex:"ctgctg",topSnipOffset:31,bottomSnipOffset:33,isType2S:!0},{aliases:["Nli3877I"],site:"cycgrg",forwardRegex:"c[cty]cg[agr]g",reverseRegex:"c[cty]cg[agr]g",topSnipOffset:5,bottomSnipOffset:1},{aliases:["StySEAI"],site:"acannnnnntyca",forwardRegex:"aca[abcdghkmnrstvwy]{6}t[cty]ca",reverseRegex:"tg[agr]a[abcdghkmnrstvwy]{6}tgt",topSnipOffset:1,bottomSnipOffset:1},{aliases:["M.CviAIV"],site:"rgcb",forwardRegex:"[agr]gc[bcgksty]",reverseRegex:"[acgmrsv]gc[cty]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["Msp16I"],site:"tggcca",forwardRegex:"tg{2}c{2}a",reverseRegex:"tg{2}c{2}a",topSnipOffset:1,bottomSnipOffset:1},{aliases:["SasI"],site:"gaggag",forwardRegex:"gag{2}ag",reverseRegex:"ctc{2}tc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["AquIII"],site:"gaggag",forwardRegex:"gag{2}ag",reverseRegex:"ctc{2}tc",topSnipOffset:26,bottomSnipOffset:24,isType2S:!0},{aliases:["FaiI"],site:"yatr",forwardRegex:"[cty]at[agr]",reverseRegex:"[cty]at[agr]",topSnipOffset:2,bottomSnipOffset:2},{aliases:["BsbI"],site:"caacac",forwardRegex:"ca{2}cac",reverseRegex:"gtgt{2}g",topSnipOffset:27,bottomSnipOffset:25,isType2S:!0},{aliases:["NgoAV"],site:"gcannnnnnnntgc",forwardRegex:"gca[abcdghkmnrstvwy]{8}tgc",reverseRegex:"gca[abcdghkmnrstvwy]{8}tgc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["BstAPI"],site:"gcannnnntgc",forwardRegex:"gca[abcdghkmnrstvwy]{5}tgc",reverseRegex:"gca[abcdghkmnrstvwy]{5}tgc",topSnipOffset:7,bottomSnipOffset:4},{aliases:["BsmEI"],site:"gagtc",forwardRegex:"gagtc",reverseRegex:"gactc",topSnipOffset:1,bottomSnipOffset:1},{aliases:["NcuII"],site:"cccg",forwardRegex:"c{3}g",reverseRegex:"cg{3}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["CviMI","CviNI","CviLI","CviOI"],site:"rgcy",forwardRegex:"[agr]gc[cty]",reverseRegex:"[agr]gc[cty]",topSnipOffset:1,bottomSnipOffset:1},{aliases:["StySGI"],site:"taannnnnnrtcg",forwardRegex:"ta{2}[abcdghkmnrstvwy]{6}[agr]tcg",reverseRegex:"cga[cty][abcdghkmnrstvwy]{6}t{2}a",topSnipOffset:1,bottomSnipOffset:1},{aliases:["UbaF14I"],site:"ccannnnntcg",forwardRegex:"c{2}a[abcdghkmnrstvwy]{5}tcg",reverseRegex:"cga[abcdghkmnrstvwy]{5}tg{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["UbaPI"],site:"cgaacg",forwardRegex:"cga{2}cg",reverseRegex:"cgt{2}cg",topSnipOffset:1,bottomSnipOffset:1},{aliases:["TspDTI"],site:"atgaa",forwardRegex:"atga{2}",reverseRegex:"t{2}cat",topSnipOffset:16,bottomSnipOffset:14,isType2S:!0},{aliases:["SspI"],site:"aatatt",forwardRegex:"a{2}tat{2}",reverseRegex:"a{2}tat{2}",topSnipOffset:3,bottomSnipOffset:3},{aliases:["GdiII"],site:"cggccr",forwardRegex:"cg{2}c{2}[agr]",reverseRegex:"[cty]g{2}c{2}g",topSnipOffset:1,bottomSnipOffset:5},{aliases:["StySQI"],site:"aacnnnnnnrtayg",forwardRegex:"a{2}c[abcdghkmnrstvwy]{6}[agr]ta[cty]g",reverseRegex:"c[agr]ta[cty][abcdghkmnrstvwy]{6}gt{2}",topSnipOffset:1,bottomSnipOffset:1},{aliases:["NlaCI"],site:"catcac",forwardRegex:"catcac",reverseRegex:"gtgatg",topSnipOffset:25,bottomSnipOffset:23,isType2S:!0},{aliases:["PacI"],site:"ttaattaa",forwardRegex:"t{2}a{2}t{2}a{2}",reverseRegex:"t{2}a{2}t{2}a{2}",topSnipOffset:5,bottomSnipOffset:3},{aliases:["BarI"],isType2S:!0,site:"gaagnnnnnntac",forwardRegex:"ga{2}g[abcdghkmnrstvwy]{6}tac",reverseRegex:"gta[abcdghkmnrstvwy]{6}ct{2}c",topSnipOffset:25,bottomSnipOffset:20,cutType:1,usForward:25,usReverse:20},{aliases:["CspCI"],isType2S:!0,site:"caannnnngtgg",forwardRegex:"ca{2}[abcdghkmnrstvwy]{5}gtg{2}",reverseRegex:"c{2}ac[abcdghkmnrstvwy]{5}t{2}g",topSnipOffset:24,bottomSnipOffset:22,cutType:1,usForward:24,usReverse:22},{aliases:["NmeDI"],site:"rccggy",forwardRegex:"[agr]c{2}g{2}[cty]",reverseRegex:"[agr]c{2}g{2}[cty]",topSnipOffset:13,bottomSnipOffset:18,cutType:1,usForward:13,usReverse:18,isType2S:!0},{aliases:["CjePI"],site:"ccannnnnnntc",forwardRegex:"c{2}a[abcdghkmnrstvwy]{7}tc",reverseRegex:"ga[abcdghkmnrstvwy]{7}tg{2}",topSnipOffset:26,bottomSnipOffset:20,cutType:1,usForward:26,usReverse:20,isType2S:!0},{aliases:["CjeI"],site:"ccannnnnngt",forwardRegex:"c{2}a[abcdghkmnrstvwy]{6}gt",reverseRegex:"ac[abcdghkmnrstvwy]{6}tg{2}",topSnipOffset:26,bottomSnipOffset:20,cutType:1,usForward:26,usReverse:20,isType2S:!0},{aliases:["PsrI"],site:"gaacnnnnnntac",forwardRegex:"ga{2}c[abcdghkmnrstvwy]{6}tac",reverseRegex:"gta[abcdghkmnrstvwy]{6}gt{2}c",topSnipOffset:25,bottomSnipOffset:20,cutType:1,usForward:25,usReverse:20,isType2S:!0},{aliases:["ArsI"],site:"gacnnnnnnttyg",forwardRegex:"gac[abcdghkmnrstvwy]{6}t{2}[cty]g",reverseRegex:"c[agr]a{2}[abcdghkmnrstvwy]{6}gtc",topSnipOffset:24,bottomSnipOffset:19,cutType:1,usForward:24,usReverse:19,isType2S:!0},{aliases:["TstI"],site:"cacnnnnnntcc",forwardRegex:"cac[abcdghkmnrstvwy]{6}tc{2}",reverseRegex:"g{2}a[abcdghkmnrstvwy]{6}gtg",topSnipOffset:24,bottomSnipOffset:19,cutType:1,usForward:24,usReverse:19,isType2S:!0},{aliases:["Bsp24I"],site:"gacnnnnnntgg",forwardRegex:"gac[abcdghkmnrstvwy]{6}tg{2}",reverseRegex:"c{2}a[abcdghkmnrstvwy]{6}gtc",topSnipOffset:24,bottomSnipOffset:19,cutType:1,usForward:24,usReverse:19,isType2S:!0},{aliases:["AloI"],site:"gaacnnnnnntcc",forwardRegex:"ga{2}c[abcdghkmnrstvwy]{6}tc{2}",reverseRegex:"g{2}a[abcdghkmnrstvwy]{6}gt{2}c",topSnipOffset:25,bottomSnipOffset:20,cutType:1,usForward:25,usReverse:20,isType2S:!0},{aliases:["FalI"],site:"aagnnnnnctt",forwardRegex:"a{2}g[abcdghkmnrstvwy]{5}ct{2}",reverseRegex:"a{2}g[abcdghkmnrstvwy]{5}ct{2}",topSnipOffset:24,bottomSnipOffset:19,cutType:1,usForward:24,usReverse:19,isType2S:!0},{aliases:["AjuI"],site:"gaannnnnnnttgg",forwardRegex:"ga{2}[abcdghkmnrstvwy]{7}t{2}g{2}",reverseRegex:"c{2}a{2}[abcdghkmnrstvwy]{7}t{2}c",topSnipOffset:25,bottomSnipOffset:20,cutType:1,usForward:25,usReverse:20,isType2S:!0},{aliases:["AlfI"],site:"gcannnnnntgc",forwardRegex:"gca[abcdghkmnrstvwy]{6}tgc",reverseRegex:"gca[abcdghkmnrstvwy]{6}tgc",topSnipOffset:24,bottomSnipOffset:22,cutType:1,usForward:24,usReverse:22,isType2S:!0},{aliases:["NgoAVIII"],site:"gacnnnnntga",forwardRegex:"gac[abcdghkmnrstvwy]{5}tga",reverseRegex:"tca[abcdghkmnrstvwy]{5}gtc",topSnipOffset:24,bottomSnipOffset:22,cutType:1,usForward:24,usReverse:22,isType2S:!0},{aliases:["HaeIV"],site:"gaynnnnnrtc",forwardRegex:"ga[cty][abcdghkmnrstvwy]{5}[agr]tc",reverseRegex:"ga[cty][abcdghkmnrstvwy]{5}[agr]tc",topSnipOffset:25,bottomSnipOffset:20,cutType:1,usForward:25,usReverse:20,isType2S:!0},{aliases:["BdaI"],site:"tgannnnnntca",forwardRegex:"tga[abcdghkmnrstvwy]{6}tca",reverseRegex:"tga[abcdghkmnrstvwy]{6}tca",topSnipOffset:24,bottomSnipOffset:22,cutType:1,usForward:24,usReverse:22,isType2S:!0},{aliases:["PpiI"],site:"gaacnnnnnctc",forwardRegex:"ga{2}c[abcdghkmnrstvwy]{5}ctc",reverseRegex:"gag[abcdghkmnrstvwy]{5}gt{2}c",topSnipOffset:25,bottomSnipOffset:20,cutType:1,usForward:25,usReverse:20,isType2S:!0},{aliases:["BcgI"],site:"cgannnnnntgc",forwardRegex:"cga[abcdghkmnrstvwy]{6}tgc",reverseRegex:"gca[abcdghkmnrstvwy]{6}tcg",topSnipOffset:24,bottomSnipOffset:22,cutType:1,usForward:24,usReverse:22,isType2S:!0},{aliases:["BplI"],site:"gagnnnnnctc",forwardRegex:"gag[abcdghkmnrstvwy]{5}ctc",reverseRegex:"gag[abcdghkmnrstvwy]{5}ctc",topSnipOffset:24,bottomSnipOffset:19,cutType:1,usForward:24,usReverse:19,isType2S:!0},{aliases:["BsaXI"],site:"acnnnnnctcc",forwardRegex:"ac[abcdghkmnrstvwy]{5}ctc{2}",reverseRegex:"g{2}ag[abcdghkmnrstvwy]{5}gt",topSnipOffset:21,bottomSnipOffset:18,cutType:1,usForward:21,usReverse:18,isType2S:!0},{aliases:["Hin4I"],site:"gaynnnnnvtc",forwardRegex:"ga[cty][abcdghkmnrstvwy]{5}[acgmrsv]tc",reverseRegex:"ga[bcgksty][abcdghkmnrstvwy]{5}[agr]tc",topSnipOffset:24,bottomSnipOffset:19,cutType:1,usForward:24,usReverse:19,isType2S:!0},{aliases:["BaeI"],site:"acnnnngtayc",forwardRegex:"ac[abcdghkmnrstvwy]{4}gta[cty]c",reverseRegex:"g[agr]tac[abcdghkmnrstvwy]{4}gt",topSnipOffset:23,bottomSnipOffset:18,cutType:1,usForward:23,usReverse:18,isType2S:!0},{aliases:["SdeOSI"],site:"gacnnnnrtga",forwardRegex:"gac[abcdghkmnrstvwy]{4}[agr]tga",reverseRegex:"tca[cty][abcdghkmnrstvwy]{4}gtc",topSnipOffset:23,bottomSnipOffset:21,cutType:1,usForward:23,usReverse:21,isType2S:!0}],Js={};mu.forEach(a=>{a.aliases.forEach(n=>{Js[n.toLowerCase()]=ye(ie({},a),{name:n})})});const Su=["aari","aatii","aaui","accebi","acci","accii","acciii","acsi","afai","aflii","alui","aor13hi","aor51hi","apai","apali","asci","asisi","asp35hi","asp713i","aspmi","atsi","atu1i","atu1ii","avrbi","avrii","bali","bamhi","banii","bari","baui","bbvbi","bcni","bcoki","bdii","bgli","bglii","blni","bme216i","bmet110i","bmgt120i","bmui","bnai","bpu1102i","bpuai","bpub5i","bsai","bsavi","bseri","bsgi","bshhi","bsiwi","bsmbi","bsmfi","bsofi","bsp105i","bsp1286i","bsp139i","bsp1407i","bsp4009i","bsp70i","bsp71i","bspa2i","bspci","bspfni","bspt104i","bspt107i","bsrfi","bsshii","bst1107i","bstb7si","bsthi","bstiz316i","bstli","bstpi","bstri","bstxi","bsu1532i","bsu8565i","bsu90i","btgai","btsci","btsi","bvei","ccini","ccop95i","ceqi","cfr10i","cfr45i","cfr47i","cfr6i","cjuii","clai","cpaai","cpoi","cspai","cspci","ddei","dpni","drai","dsai","dsavi","eaei","eagi","eam1105i","ecidi","ecl37i","eco211i","eco240i","eco241i","eco246i","eco247i","eco52i","eco68i","eco81i","eco93i","ecoicri","ecoo109i","ecoo65i","ecopi","ecoprri","ecori","ecorv","ecot14i","ecot22i","ecoviii","ehei","esphk22i","fbai","fdiii","foki","fsei","haeii","haeiii","hapii","hgiai","hgibi","hhai","hin1i","hincii","hindiii","hinfi","hpai","hpyf13iii","hpyf19ii","hpyf21i","hpyf28i","hpyf29i","hpyf36i","hpyf62i","hpyf65i","hpyii","koyi","kpni","m.bbu297i","m.pmudam","maek81i","mboi","mboii","mfli","mizi","mlui","mph1103ii","msei","msii","mspi","mthai","muni","naei","ncoi","ndai","ndei","nflaii","ngbi","ngobviii","ngodviii","ngoeii","ngotii","nhei","nlaiv","noci","noti","novii","nrui","nsbi","nsici","nsp29132i","paci","pae17ki","pca17ai","pfaaiii","pfl16i","ple214i","pmaci","pmei","pru2i","psb9879i","pshai","pshbi","psp1406i","psp31i","psp33i","psp5i","psti","psuni","pvui","pvuii","ral8i","rsplki","saci","sacii","sali","sapi","sau3ai","sauni","sbai","sbfi","scai","sfii","sflhk115731i","slu1777i","smai","smii","snabi","spei","sphi","srfi","srl61di","sse8387i","ssp2i","sspi","stui","suii","swai","taqi","tauii","tsci","tth111i","tthhb8i","uba1093i","uba1095i","uba1122i","uba1160i","uba1229i","uba1371i","uba1380i","uba1403i","uba1415i","uba1437i","uba1439i","uba1440i","uba36i","uba41i","uba42i","uba89i","uban13i","van91i","vcho66i","vpak11bi","vpakutji","xbai","xcyi","xhoi","xmai","xmli","xphi","xspi"],Lo={};Su.forEach(a=>{Lo[a]=Js[a]});function Fr(a,n,r,o){const f={};for(let i=0;i<a;i++){const c=bu(n,r,o);f[c.id]=c}return f}function bu(a,n,r){const o=nl(a,n,r);return ye(ie({},o),{name:yu(0,1e5).toString(),type:"misc_feature",id:Vt().str,forward:Math.random()>.5,notes:{}})}function yu(a,n){return Math.floor(Math.random()*(n-a))+a}function wu({isProtein:a,sequenceLength:n=1e3,numFeatures:r,numParts:o,numPrimers:f,numTranslations:i}={}){const c=a&&Go(n,!0),g=!a&&Go(n);return{circular:a?!1:Math.random()>.5,name:"p-"+Math.floor(Math.random*100),description:"",isProtein:a,sequence:g,proteinSequence:c,translations:a?void 0:Fr(i||5,0,n-1,n/3),features:Fr(r||10,0,n-1,n/3),primers:a?void 0:Fr(f||10,0,n-1,50),parts:Fr(o||10,0,n-1,n/3)}}function Go(a=9,n){let r="";const o=n?"":"gatc";for(let f=0;f<a;f++)r+=o.charAt(Math.floor(Math.random()*o.length));return r}function Ru(a,n,r,o){if(r||(r=0),a.length<n.length)return null;const f=new RegExp(n,"ig");let i,c,g=1/0;for(;(i=f.exec(a+(o?"":a)))&&!(i.index>a.length);){let l=Math.abs(i.index-r);if(l=o?l:Math.min(l,Math.abs(l-a.length)),l>g)break;c=i.index,g=l}return _i({start:c,end:c+n.length-1},a.length)}function Zs(a){let n=a.sequence;const r=a.minimumOrfSize,o=a.forward,f=a.circular,i=a.useAdditionalOrfStartCodons,c=n.length;o||(n=wt(n)),f&&(n+=n);const g=i?/(?=((?:A[TU]G|G[TU]G|C[TU]G)(?:.{3})*?(?:[TU]AG|[TU]AA|[TU]GA)))/gi:/(?=((?:A[TU]G)(?:.{3})*?(?:[TU]AG|[TU]AA|[TU]GA)))/gi;let l;const p=[];for(;(l=g.exec(n))!==null;){l.index===g.lastIndex&&g.lastIndex++;const v=l[1].length;if(v>=r){const m=l.index;let w=v+m-1;w>=c&&(w-=c),m<c&&p.push({start:m,end:w,length:l[1].length,internalStartCodonIndices:[],frame:m%3,forward:o,annotationTypePlural:"orfs",isOrf:!0,id:Vt().str})}}const I={};return p.forEach((v,m)=>{const w=I[v.end];if(typeof w!="undefined"){let B=v,_=p[w];_.length<B.length&&(B=p[w],_=v,I[v.end]=m);const C=o?B.start:c-B.start-1;_.internalStartCodonIndices=[..._.internalStartCodonIndices,...B.internalStartCodonIndices,C],B.remove=!0}else if(I[v.end]=m,!o){const B=v.end;v.end=c-v.start-1,v.start=c-B-1}}),p.filter(v=>!v.remove)}function Ou(a,n,r,o){const f=Zs({sequence:a,minimumOrfSize:r,forward:!0,circular:n,useAdditionalOrfStartCodons:o}),i=Zs({sequence:a,minimumOrfSize:r,forward:!1,circular:n,useAdditionalOrfStartCodons:o});return f.concat(i)}var Bu=/[|\\{}()[\]^$+*?.]/g,Au=function(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(Bu,"\\$&")};const _u=Te(Au);function cr(a){const n=Er(a,!0),r=[];let o="";return n.forEach(f=>{f.fullCodon&&(r[f.aminoAcidIndex]=f.aminoAcid.value)}),o=r.join(""),o}function xu(a,n,r={}){let o=Ko(a,n,r);const{searchReverseStrand:f}=r;if(f){const i=a.length;let c;c=wt(a);const l=Ko(c,n,r).map(p=>ye(ie({},el(p,{start:0,end:i-1},i)),{bottomStrand:!0}));o=[...o,...l]}return o}function Ko(a,n,r={}){const{isCircular:o,isAmbiguous:f,isProteinSequence:i,isProteinSearch:c}=r;let g=_u(n);if(f&&(c||i?g=Vo(g,!0):g=Vo(g)),!g)return[];let l=a;o&&(l=l+l);let p=[{seqToCheck:l,offset:0}];c&&(p=[{seqToCheck:cr(l),offset:0},{seqToCheck:cr(l.substr(1)),offset:1},{seqToCheck:cr(l.substr(2)),offset:2}]);let I=[];return p.forEach(({seqToCheck:h,offset:v})=>{const m=new RegExp(g,"ig");let w,B;for(;(w=m.exec(h))!==null;)B={start:w.index,end:w.index+n.length-1},c&&(B.start=B.start*3+v,B.end=B.end*3+2+v),I.push(fl(B,a.length)),m.lastIndex=w.index+1}),q.uniqBy(I,h=>h.start+"-"+h.end)}function Vo(a,n){return q.reduce(a,(r,o)=>{const f=n?wi[o.toUpperCase()]:rn[o.toUpperCase()];return f&&(f.length===1?r+=f:r+=`[${f}]`),r},"")}function Eu(a,n,r,o){const f=r[o-1];if(f&&f.aminoAcidIndex===n.aminoAcidIndex){const i=r[o-2];return i&&i.aminoAcidIndex===n.aminoAcidIndex?{start:a-2,end:a}:n.fullCodon===!0?{start:a-1,end:a+1}:{start:a-1,end:a}}else{if(n.fullCodon===!0)return{start:a,end:a+2};{const i=r[o-2];return i&&i.aminoAcidIndex===n.aminoAcidIndex?{start:a,end:a+1}:{start:a,end:a+1}}}}function Cu(a){return cr(a).split("").reverse().join("")}function Tr(a){let n="";for(let r=0;r<a.length;r++){let o=Os[a[r]];o||(o=a[r]),n+=o}return n}function Bn(a,n,r={}){if(!n)return a;const{exclude:o={},excludePartial:f={}}=r,i=Ue(a,r);ht.forEach(g=>{delete i[`filtered${q.startCase(g)}`]});const c=q.extend({},i,{circular:i.sequence.length===_e(n,a.sequence.length)?i.circular:!1,sequence:yt(n,i.sequence),proteinSequence:yt(Xs(n),i.proteinSequence)},ht.reduce((g,l)=>o[l]?(g[l]=[],g):(g[l]=qo(i[l],n,i.sequence.length,f[l]),g),{}));if(n.overlapsSelf){const g=On({sequence:c.sequence},i,n.start),l=Bn(g,{start:n.end+1,end:n.end},r);return ht.forEach(p=>{q.forEach(l[p],I=>{I.overlapsSelf&&I.start===0&&_e(I,i.sequence.length)===_e(n,i.sequence.length)&&(I.overlapsSelf=!1,I.end=l.sequence.length-1)})}),Ue(l,r)}return Ue(c,r)}function qo(a,n,r,o){return q.flatMap(a,f=>{f.locations&&f.locations.length&&(f.locations=qo(f.locations,n,r,o));const i=ul(f,n,r).map(c=>q.extend({},f,c));if(o){if(i.length>1)return[];if(i[0]&&_e(i[0],r)!==_e(f,r))return[]}return i}).map(f=>(f.locations&&f.locations.length&&(f.start=f.locations[0].start,f.end=f.locations[f.locations.length-1].end,f.locations.length===1&&delete f.locations),f))}function Fu(a,n={}){const r=Ue(Bn(a,n.range),n),o=Object.assign({},r,{sequence:Tr(r.sequence)});return Ue(o,n)}function Tu(a){const{topSnipOffset:n,bottomSnipOffset:r}=a;return n===r?"blunt":n<r?"5' overhang":"3' overhang"}function Mu(a,n,r){return n.start>-1?[an(n.start,r),an(n.end+2,r)]:a>-1?[an(a,r),an(a+1,r)]:[r,1]}function Pu(a,n,r){let o={leftHandSide:"",rightHandSide:""};return Ai(n,a)?(o.leftHandSide=yt({start:a.start,end:ae(n-1,r.length)},r),o.rightHandSide=yt({start:n,end:a.end},r)):ol(n,a,r.length)?o.rightHandSide=yt(a,r):o.leftHandSide=yt(a,r),o}function Uu(a,n,r){n=n.toLowerCase(),a=a.toLowerCase();const f=(n+n).indexOf(a);return f>-1?{start:f,end:Fi(f+a.length-1,{start:0,end:n.length-1})}:null}function ku(a,n){n=n.length?n:[n];let r=a.sequence,o=r.length,f=a.circular,i=[];n.forEach(g=>{let l=fn(r,f,g);i=i.concat(l)});let c=[];return i.length<1?c:i.length===1?(c.push(Ys(i[0],i[0],o)),c):($o(i).forEach(l=>{let p=l[0],I=l[1],h=Ys(p,I,o),v=Ys(I,p,o);(f||!(h.start>h.end))&&c.push(h),(f||!(v.start>v.end))&&c.push(v)}),c)}function Ys(a,n,r){let o=Wo(a.restrictionEnzyme),f=Wo(n.restrictionEnzyme),i=a.topSnipBeforeBottom?a.topSnipPosition:a.bottomSnipPosition,c=ae((n.topSnipBeforeBottom?n.bottomSnipPosition:n.topSnipPosition)-1,r);return{start:i,start1Based:i+1,end:c,end1Based:c+1,firstCut:a,firstCutOffset:o,firstCutOverhang:a.overhangBps,firstCutOverhangTop:o>0?a.overhangBps:"",firstCutOverhangBottom:o<0?Tr(a.overhangBps):"",secondCut:n,secondCutOffset:f,secondCutOverhang:n.overhangBps,secondCutOverhangTop:f<0?n.overhangBps:"",secondCutOverhangBottom:f>0?Tr(n.overhangBps):""}}function Wo(a){return a.bottomSnipOffset-a.topSnipOffset}function $o(a){if(a.length<2)return[];let n=a[0],r=a.slice(1);return r.map(f=>[n,f]).concat($o(r))}function Du(a){const n=Er(a,!1),r=[];let o="";return n.forEach(f=>{f.fullCodon&&(r[f.aminoAcidIndex]=f.aminoAcid.value)}),o=r.join(""),o}function Hu(a){return cr(wt(a))}function jo(a,n){return Object.assign({},a,{start:n-(a.end+1),end:n-(a.start+1),forward:!a.forward,strand:a.strand===1?-1:1})}function Nu(a,n={}){const r=Ue(Bn(a,n.range),n),o=Object.assign({},r,{sequence:wt(r.sequence)},ht.reduce((f,i)=>(r[i]&&(f[i]=q.map(r[i],c=>jo(c,r.sequence.length))),f),{}));return Ue(o,n)}function Lu(a){let n="";for(let r=a.length-1;r>=0;r--){let o=a[r];o||(o=a[r]),n+=o}return n}function Gu(a,n={}){const{threshold:r=.9,loose:o}=n,i=(n.dnaLetters||o?[...yi.split(""),"U"]:["G","A","T","C","U"]).reduce((g,l)=>(g[l.toUpperCase()]=!0,g),{});let c=0;if(!a||!a.length)return!0;for(let g=0;g<a.length;g++){const l=a[g];i[l.toUpperCase()]&&(c=c+1)}return c/a.length>r}function Xo(a,n,r,{splitForwardReverse:o}={}){const f={},i={},c={};return q.each(a,g=>{const l=!!(g.locations&&g.locations.length);g.overlapsSelf&&(c[g.id]||(Qs({wrappedAnnotations:c,annotation:{start:0,end:n-1,id:`__tempAnnRemoveMe__${g.id}`},sequenceLength:n,bpsPerRow:r,annotationsToRowsMap:f,yOffsetLevelMap:i,containsLocations:l,splitForwardReverse:o}),c[g.id]=!0)),Qs({wrappedAnnotations:c,annotation:g,sequenceLength:n,bpsPerRow:r,annotationsToRowsMap:f,yOffsetLevelMap:i,containsLocations:l,splitForwardReverse:o}),l&&g.locations.forEach(p=>{Qs({wrappedAnnotations:c,annotation:g,sequenceLength:n,bpsPerRow:r,annotationsToRowsMap:f,yOffsetLevelMap:i,location:p,splitForwardReverse:o})})}),q.forEach(f,(g,l)=>{f[l]=q.filter(g,p=>!q.startsWith(p.id,"__tempAnnRemoveMe__"))}),f}function Qs({wrappedAnnotations:a,annotation:n,sequenceLength:r,bpsPerRow:o,annotationsToRowsMap:f,yOffsetLevelMap:i,location:c,containsLocations:g,splitForwardReverse:l}){bt(c||n,r).forEach((I,h)=>{const v=Math.floor(I.start/o),m=Math.floor(I.end/o);for(let w=v;w<=m;w++){f[w]||(f[w]=[]);const B=l?n.forward?w+"_forward":w+"_reverse":w,_=f[w];i[B]||(i[B]=[]);let C;const N=i[B],F=w===v?I.start:w*o,L=w===m?I.end:w*o+o-1;n.overlapsSelf?_.forEach(x=>{x.id===`__tempAnnRemoveMe__${n.id}`&&(C=x.yOffset)}):c?_.forEach(x=>{x.id===n.id&&(C=x.yOffset)}):(h>0&&_.length&&_[_.length-1].annotation===n?C=_[_.length-1].yOffset:C=Ci(n,N),N[C]||(N[C]=[]),N[C].push({start:F,end:L})),_.push(ye(ie(ie({id:n.id,annotation:n,start:F,end:L},g&&{containsLocations:g}),c&&{isJoinedLocation:!!c}),{yOffset:C,enclosingRangeType:I.type}))}})}function Ku(a){const n=q.cloneDeep(a);return ht.forEach(r=>{if(r!=="cutsites"){const o=sl(n[r]).maxYOffset;n[r].maxYOffset=o}}),n}function Vu(a,n){const r=a.sequence.length,o=Math.ceil(r/n)||1,f=[],i={};ht.forEach(c=>{i[c]=Xo(a[c],r,n,{splitForwardReverse:c==="primers"})});for(let c=0;c<o;c++){const g={};g.rowNumber=c,g.start=c*n,g.end=(c+1)*n-1<r?(c+1)*n-1:r-1,g.end<0&&(g.end=0),ht.forEach(l=>{g[l]=i[l][c]||[]}),g.sequence=a.sequence.slice(g.start,g.end+1),f[c]=g}return f}function qu(a,n){let r=[];const o=a.toLowerCase().split(""),f=n.toLowerCase().split(""),i=n.length,c=n.replace(/^-+/g,""),g=n.replace(/-+$/g,""),l=i-c.length,p=i-(i-g.length);for(let I=0;I<o.length;I++)I<l||I>=p?r.push("W"):o[I]===f[I]&&o[I]!=="-"&&f[I]!=="-"?r.push("G"):o[I]!==f[I]&&o[I]!=="-"&&f[I]!=="-"||f[I]==="-"||o[I]==="-"&&o[I-1]!=="-"&&I!==o.length-1&&o[I+1]==="-"?r.push("R"):o[I]==="-"&&o[I-1]!=="-"&&I!==o.length-1&&o[I+1]!=="-"?(r.push("R"),I++):I===o.length-1&&o[I]==="-"&&o[I-1]==="-"?r.splice(-2,1):I===o.length-1&&o[I]==="-"&&o[I-1]!=="-"?(r.pop(),r.push("R")):o[I]==="-"&&o[I-1]==="-"&&o[I+1]!=="-"?I++:o[I]==="-"&&o[I-1]==="-"||console.error("should not reach this step!");return r.join("")}function Wu(a,n){for(let g=0;g<n.length;g++)n[g].cigar===null&&n.splice(g,1);const r=Po(a.sequence,n),o=[{name:a.name,sequence:r.toUpperCase()}];n.forEach(g=>{const l=[];n.forEach(x=>{const U=x.cigar.match(/([0-9]*[SMDI])/g);let G=q.cloneDeep(x.pos);if(U[0].slice(-1)==="S"){const $=U[0].slice(0,-1);G=x.pos-$}for(let $=0;$<U.length;$++)if(U[$].slice(-1)==="I"){let J=G;const ve=Number(U[$].slice(0,-1));for(let ce=0;ce<$;ce++)if(U[ce].slice(-1)!=="I"){const xe=Number(U[ce].slice(0,-1));J+=xe}const oe={bpPos:J,number:ve};l.push(oe)}});const p=g.cigar.match(/([0-9]*[SMDI])/g);let I=q.cloneDeep(g.pos);if(p[0].slice(-1)==="S"){const x=p[0].slice(0,-1);I=g.pos-x}let h=g.seq.split("");I>0&&h.unshift("-".repeat(I-1)),h=h.join("").split("");const v=[];for(let x=0;x<p.length;x++)if(p[x].slice(-1)==="D"){let U=I;const G=Number(p[x].slice(0,-1));for(let J=0;J<x;J++){const ve=Number(p[J].slice(0,-1));U+=ve}const $={bpPos:U,number:G};v.push($)}const m=v.sort((x,U)=>x.bpPos-U.bpPos);for(let x=0;x<m.length;x++){const U=m[x].bpPos,G=m[x].number;let $="";for(let J=0;J<G;J++)$+="-";h.splice(U-1,0,$),h=h.join("").split("")}h=h.join("").split("");const w=[],B=[];for(let x=0;x<p.length;x++)if(p[x].slice(-1)==="I"){let U=I;const G=Number(p[x].slice(0,-1)),$=[];for(let oe=0;oe<x;oe++){const ce=Number(p[oe].slice(0,-1));U+=ce}for(let oe=0;oe<G;oe++)$.push(h[U-1+oe]);const J={bpPos:U,number:G},ve={bpPos:U,number:G,nucleotides:$};w.push(J),B.push(ve)}const _=JSON.parse(JSON.stringify(w)),C=w.sort((x,U)=>x.bpPos-U.bpPos),N=B.sort((x,U)=>x.bpPos-U.bpPos);for(let x=0;x<C.length;x++){const U=C[x].bpPos,G=C[x].number;for(let $=0;$<G;$++)h.splice(U-1,1);for(let $=x+1;$<C.length;$++)C[$].bpPos-=G}let F=l.sort((x,U)=>x.bpPos-U.bpPos);F=F.filter((x,U)=>U===F.findIndex(G=>JSON.stringify(G)===JSON.stringify(x)));for(let x=0;x<F.length-1;x++)for(;F[x].bpPos===F[x+1].bpPos;)F[x].number>F[x+1].number?F.splice(x+1,1):(F[x].number<F[x+1].number||F[x].number===F[x+1].number)&&F.splice(x,1);for(let x=0;x<_.length;x++){const U=F.findIndex(G=>G.bpPos===_[x].bpPos);U!==-1&&(F[U].number>_[x].number?F[U].number=F[U].number-_[x].number:F[U].number<=_[x].number&&(F.splice(U,1),x--))}for(let x=0;x<C.length;x++){const U=F.findIndex(G=>G.bpPos===C[x].bpPos);U!==-1&&(F[U].number>C[x].number?F[U].number=F[U].number-C[x].number:F[U].number<=C[x].number&&(F.splice(U,1),x--))}const L=JSON.parse(JSON.stringify(N));for(let x=0;x<L.length;x++){let U=0;for(let G=0;G<x;G++)U+=L[G].number-1;L[x].bpPos=L[x].bpPos-U,N[x].bpPos=N[x].bpPos-U}for(let x=0;x<F.length;x++)for(let U=0;U<L.length;U++)F[x].bpPos<=N[U].bpPos&&(L[U].bpPos+=1);for(let x=0;x<F.length&&F[x].bpPos<=h.length;x++){const U=F[x].bpPos,G=F[x].number;let $="";for(let J=0;J<G;J++)$+="-";h.splice(U-1,0,$);for(let J=x+1;J<F.length;J++)F[J].bpPos+=1}for(let x=0;x<L.length;x++){const U=L[x].bpPos,G=L[x].nucleotides.join("");h.splice(U-1,0,G)}h=h.join("").split(""),h.length<r.length&&h.push("-".repeat(r.length-h.length)),o.push({name:g.name,sequence:h.join(""),reversed:g.reversed,cigar:g.cigar})});const f=[];n.forEach(g=>{const l=g.cigar.match(/([0-9]*[SMDI])/g);let p=q.cloneDeep(g.pos);if(l[0].slice(-1)==="S"){const I=l[0].slice(0,-1);p=g.pos-I,p<0&&f.push(Math.abs(p))}});let i=0;for(let g=1;g<o.length;g++){const l=o[g].sequence.split(""),p=n[g-1].cigar.match(/([0-9]*[SMDI])/g);let I=q.cloneDeep(n[g-1].pos);if(f.length>0&&(i=Math.max(...f)),p[0].slice(-1)==="S"){const h=p[0].slice(0,-1);I=n[g-1].pos-h,I>0?(i>0&&l.unshift("-".repeat(i+1)),o[g].sequence=l.join("")):I<0&&(i>0&&l.unshift("-".repeat(i-Math.abs(I))),o[g].sequence=l.join(""))}else i>0&&l.unshift("-".repeat(i+1)),o[g].sequence=l.join("")}if(i>0){const g=o[0].sequence.split("");g.unshift("-".repeat(i+1)),o[0].sequence=g.join("")}const c=[];for(let g=1;g<o.length;g++){const l=o[0];o[g].sequence.length>l.sequence.length&&c.push(o[g].sequence.length)}if(c.length>0){const g=Math.max(...c);for(let l=0;l<o.length;l++)o[l].sequence.length<g&&(o[l].sequence+="-".repeat(g-o[l].sequence.length))}for(let g=1;g<o.length;g++){const l=o[0];o[g].sequence.length<l.sequence.length&&(o[g].sequence+="-".repeat(l.sequence.length-o[g].sequence.length))}return o}function zo(a,n,{monovalentCationConc:r}={}){try{if(/[^atgc]/i.test(a))throw new Error(`Degenerate bases prohibited in Tm calculation of sequence ${a}`);const f=a.toUpperCase().split("");let i=0,c=0,g=0,l=0;const p=1.987,I=-273.15,h=273.15,v=1e3,m={"AA/TT":-7.9,"AT/TA":-7.2,"TA/AT":-7.2,"CA/GT":-8.5,"GT/CA":-8.4,"CT/GA":-7.8,"GA/CT":-8.2,"CG/GC":-10.6,"GC/CG":-9.8,"GG/CC":-8,"TT/AA":-7.9,"TG/AC":-8.5,"AC/TG":-8.4,"AG/TC":-7.8,"TC/AG":-8.2,"CC/GG":-8,initiationWithTerminalGC:.1,initiationWithTerminalAT:2.3},w={"AA/TT":-22.2,"AT/TA":-20.4,"TA/AT":-21.3,"CA/GT":-22.7,"GT/CA":-22.4,"CT/GA":-21,"GA/CT":-22.2,"CG/GC":-27.2,"GC/CG":-24.4,"GG/CC":-19.9,"TT/AA":-22.2,"TG/AC":-22.7,"AC/TG":-22.4,"AG/TC":-21,"TC/AG":-22.2,"CC/GG":-19.9,initiationWithTerminalGC:-2.8,initiationWithTerminalAT:4.1};for(let L=0;L<f.length;L++)if((L===0||L===f.length-1)&&(f[L]==="G"||f[L]==="C"?(g+=m.initiationWithTerminalGC,l+=w.initiationWithTerminalGC):(f[L]==="A"||f[L]==="T")&&(g+=m.initiationWithTerminalAT,l+=w.initiationWithTerminalAT)),L<f.length-1){const x=f[L]+f[L+1],U=Tr(x).toUpperCase(),G=`${x}/${U}`;if(!m[G]||!w[G])throw new Error(`Could not find value for ${G} of sequence ${a}`);i+=m[G],c+=w[G]}const B=i+g,_=c+l,C=B*v,N=_+p*Math.log(n),F=C/N+I;if(r){const L=Math.log(r),G=(4.29*(Uo(a)/100)-3.95)*Math.pow(10,-5)*L+Math.pow(9.4,-6)*Math.pow(L,2);return 1/(1/(F+h)+G)+I}else return F}catch(o){return`Error calculating Tm for sequence ${a}: ${o}`}}function $u(a,n,{monovalentCationConc:r,polymerase:o}={}){try{if(a.length!==2)throw new Error(`${a.length} sequences received when 2 primers were expected`);const f=a.map(g=>zo(g,n,{monovalentCationConc:r}));f.sort((g,l)=>g-l);const i=f[0];let c;return o==="Q5"?(c=i+1,c>72&&(c=72)):c=i-3,c}catch(f){return`Error calculating annealing temperature: ${f}`}}function Jo(a,n,r,o={}){const f=[],i=[];if(!r.length)return[];let c=r.sort((g,l)=>g.topSnipPosition-l.topSnipPosition);return n||(c=[{topSnipPosition:0,bottomSnipPosition:0,overhangSize:0,type:"START_OR_END_OF_SEQ",name:"START_OF_SEQ"},...c,{topSnipPosition:a,bottomSnipPosition:a,overhangSize:0,type:"START_OR_END_OF_SEQ",name:"END_OF_SEQ"}]),c.forEach((g,l)=>{!n&&!c[l+1]||(o.computePartialDigests&&c.forEach((p,I)=>{I===l+1||I===0||i.push([g,c[I]])}),i.push([g,c[l+1]?c[l+1]:c[0]]))}),i.forEach(([g,l])=>{const p=ae(g.topSnipPosition,a),I=ae(l.topSnipPosition-1,a),h={start:p,end:I},v=_e(h,a),m=p+"-"+I+"-"+v+"-";f.push(ye(ie({cut1:ye(ie({},g),{isOverhangIncludedInFragmentSize:g.type!=="START_OR_END_OF_SEQ"&&g.overhangSize>0&&g.topSnipBeforeBottom}),cut2:ye(ie({},l),{isOverhangIncludedInFragmentSize:l.type!=="START_OR_END_OF_SEQ"&&l.overhangSize>0&&!l.topSnipBeforeBottom})},h),{size:v,id:m}))}),f.filter(g=>!!g.size),f}function ju(a,n,r,o){const f=Array.isArray(r)?r:[r],i=q.flatMap(f,c=>fn(a,n,c));return Jo(a.length,n,i,o)}function Xu(a){return typeof a=="object"&&a!==null?Zo(ye(ie({},a),{locations:a.locations?a.locations.map(Zo):void 0})):zu(a)}function zu(a){return a*3}function Zo(a){return ye(ie({},a),{start:a.start>-1?a.start*3:a.start,end:a.end>-1?a.end*3+2:a.end})}const Ju=q.invert(Ws);function Zu(a,n=2,r=!1){let o=0;for(let f=0;f<a.length;f++)o+=k[a[f]].mass;return r&&(o/=3),Math.round(o*Oe(10,n))/Oe(10,n)}function Yu({seqData:a,caretPosition:n,insertLength:r}){Cr.forEach(o=>{const f=a[o];a[o]=Rn(f,n,r)})}const Qu=on(),ep=As();D.DNAComplementMap=Os,D.FeatureTypes=Qu,D.addGapsToSeqReads=Wu,D.adjustAnnotationsToInsert=Rn,D.adjustBpsToReplaceOrInsert=js,D.aliasedEnzymesByName=Js,D.aminoAcidToDegenerateDnaMap=nn,D.aminoAcidToDegenerateRnaMap=Ws,D.annotateSingleSeq=su,D.annotationTypes=ht,D.autoAnnotate=Mi,D.bioData=Xg,D.calculateNebTa=$u,D.calculateNebTm=zo,D.calculatePercentGC=Uo,D.calculateTm=gu,D.computeDigestFragments=Gi,D.condensePairwiseAlignmentDifferences=qu,D.convertAACaretPositionOrRangeToDna=Xu,D.convertApELikeRegexToRegex=pl,D.convertDnaCaretPositionOrRangeToAA=Xs,D.convertProteinSeqToDNAIupac=Il,D.cutSequenceByRestrictionEnzyme=fn,D.defaultEnzymesByName=Lo,D.degenerateDnaToAminoAcidMap=_o,D.degenerateRnaToAminoAcidMap=Ju,D.deleteSequenceDataAtRange=du,D.doesEnzymeChopOutsideOfRecognitionSite=vu,D.featureColors=ep,D.filterAminoAcidSequenceString=Fo,D.filterSequenceString=xo,D.findNearestRangeOfSequenceOverlapToPosition=Ru,D.findOrfsInPlasmid=Ou,D.findSequenceMatches=xu,D.genbankFeatureTypes=Ui,D.generateAnnotations=Fr,D.generateSequenceData=wu,D.getAllInsertionsInSeqReads=Mo,D.getAminoAcidDataForEachBaseOfDna=Er,D.getAminoAcidFromSequenceTriplet=wn,D.getAminoAcidStringFromSequenceString=cr,D.getCodonRangeForAASliver=Eu,D.getComplementAminoAcidStringFromSequenceString=Cu,D.getComplementSequenceAndAnnotations=Fu,D.getComplementSequenceString=Tr,D.getCutsiteType=Tu,D.getCutsitesFromSequence=Li,D.getDegenerateDnaStringFromAAString=To,D.getDegenerateRnaStringFromAAString=au,D.getDiffFromSeqs=tu,D.getDigestFragmentsForCutsites=Jo,D.getDigestFragmentsForRestrictionEnzymes=ju,D.getDigestFragsForSeqAndEnzymes=bl,D.getFeatureToColorMap=As,D.getFeatureTypes=on,D.getInsertBetweenVals=Mu,D.getLeftAndRightOfSequenceInRangeGivenPosition=Pu,D.getMassOfAaString=Zu,D.getMergedFeatureMap=Bs,D.getOrfsFromSequence=Zs,D.getOverlapBetweenTwoSequences=Uu,D.getPossiblePartsFromSequenceAndEnzymes=ku,D.getReverseAminoAcidStringFromSequenceString=Du,D.getReverseComplementAminoAcidStringFromSequenceString=Hu,D.getReverseComplementAnnotation=jo,D.getReverseComplementSequenceAndAnnotations=Nu,D.getReverseComplementSequenceString=wt,D.getReverseSequenceString=Lu,D.getSequenceDataBetweenRange=Bn,D.getVirtualDigest=iu,D.guessIfSequenceIsDnaAndNotProtein=Gu,D.insertGapsIntoRefSeq=Po,D.insertSequenceDataAtPosition=On,D.insertSequenceDataAtPositionOrRange=On,D.isEnzymeType2S=ou,D.mapAnnotationsToRows=Xo,D.modifiableTypes=Cr,D.patchSeqWithDiff=ru,D.prepareCircularViewData=Ku,D.prepareRowData=Vu,D.proteinAlphabet=k,D.reverseSeqDiff=nu,D.rotateBpsToPosition=Ho,D.rotateSequenceDataToPosition=No,D.shiftAnnotationsByLen=Yu,D.threeLetterSequenceStringToAminoAcidMap=Ao,D.tidyUpAnnotation=Eo,D.tidyUpSequenceData=Ue,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|