Sleazy Fork is available in English.

rule34utils

2024-09-05T13:20:34.365Z

// ==UserScript==
// @name        rule34utils 
// @namespace   rule34utils
// @match       https://rule34.xxx/index.php*
// @grant       none
// @version     0.0.1
// @author      TheArmagan
// @license     GPL-3.0-only
// @description 2024-09-05T13:20:34.365Z
// ==/UserScript==
(()=>{var Ug=Object.create;var wa=Object.defineProperty;var Mg=Object.getOwnPropertyDescriptor;var Wg=Object.getOwnPropertyNames;var Fg=Object.getPrototypeOf,qg=Object.prototype.hasOwnProperty;var Bg=(u,v)=>()=>(v||u((v={exports:{}}).exports,v),v.exports);var Ng=(u,v,m,q)=>{if(v&&typeof v=="object"||typeof v=="function")for(let x of Wg(v))!qg.call(u,x)&&x!==m&&wa(u,x,{get:()=>v[x],enumerable:!(q=Mg(v,x))||q.enumerable});return u};var sr=(u,v,m)=>(m=u!=null?Ug(Fg(u)):{},Ng(v||!u||!u.__esModule?wa(m,"default",{value:u,enumerable:!0}):m,u));var ht=Bg((ke,pt)=>{(function(){var u,v="4.17.21",m=200,q="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",x="Expected a function",T="Invalid `variable` option passed into `_.template`",en="__lodash_hash_undefined__",dn=500,tn="__lodash_placeholder__",W=1,Z=2,D=4,K=1,an=2,rn=1,j=2,qn=4,gn=8,Zn=16,X=32,J=64,Xn=128,He=256,vr=512,qa=30,Ba="...",Na=800,Da=16,$i=1,$a=2,ka=3,_e=1/0,oe=9007199254740991,Ha=17976931348623157e292,gt=NaN,Gn=4294967295,Ga=Gn-1,za=Gn>>>1,Ka=[["ary",Xn],["bind",rn],["bindKey",j],["curry",gn],["curryRight",Zn],["flip",vr],["partial",X],["partialRight",J],["rearg",He]],Re="[object Arguments]",vt="[object Array]",Ya="[object AsyncFunction]",Ge="[object Boolean]",ze="[object Date]",Za="[object DOMException]",_t="[object Error]",mt="[object Function]",ki="[object GeneratorFunction]",Bn="[object Map]",Ke="[object Number]",Xa="[object Null]",Jn="[object Object]",Hi="[object Promise]",Ja="[object Proxy]",Ye="[object RegExp]",Nn="[object Set]",Ze="[object String]",xt="[object Symbol]",Qa="[object Undefined]",Xe="[object WeakMap]",Va="[object WeakSet]",Je="[object ArrayBuffer]",Ce="[object DataView]",_r="[object Float32Array]",mr="[object Float64Array]",xr="[object Int8Array]",wr="[object Int16Array]",br="[object Int32Array]",yr="[object Uint8Array]",Sr="[object Uint8ClampedArray]",Lr="[object Uint16Array]",Ar="[object Uint32Array]",ja=/\b__p \+= '';/g,ns=/\b(__p \+=) '' \+/g,es=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gi=/&(?:amp|lt|gt|quot|#39);/g,zi=/[&<>"']/g,ts=RegExp(Gi.source),rs=RegExp(zi.source),is=/<%-([\s\S]+?)%>/g,us=/<%([\s\S]+?)%>/g,Ki=/<%=([\s\S]+?)%>/g,os=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/,ss=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Er=/[\\^$.*+?()[\]{}|]/g,ls=RegExp(Er.source),Rr=/^\s+/,fs=/\s/,cs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ps=/\{\n\/\* \[wrapped with (.+)\] \*/,hs=/,? & /,ds=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gs=/[()=,{}\[\]\/\s]/,vs=/\\(\\)?/g,_s=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yi=/\w*$/,ms=/^[-+]0x[0-9a-f]+$/i,xs=/^0b[01]+$/i,ws=/^\[object .+?Constructor\]$/,bs=/^0o[0-7]+$/i,ys=/^(?:0|[1-9]\d*)$/,Ss=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,Ls=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",As="\\u0300-\\u036f",Es="\\ufe20-\\ufe2f",Rs="\\u20d0-\\u20ff",Zi=As+Es+Rs,Xi="\\u2700-\\u27bf",Ji="a-z\\xdf-\\xf6\\xf8-\\xff",Cs="\\xac\\xb1\\xd7\\xf7",Ts="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Is="\\u2000-\\u206f",Ps=" \\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",Qi="A-Z\\xc0-\\xd6\\xd8-\\xde",Vi="\\ufe0e\\ufe0f",ji=Cs+Ts+Is+Ps,Cr="['\u2019]",Os="["+bt+"]",nu="["+ji+"]",yt="["+Zi+"]",eu="\\d+",Us="["+Xi+"]",tu="["+Ji+"]",ru="[^"+bt+ji+eu+Xi+Ji+Qi+"]",Tr="\\ud83c[\\udffb-\\udfff]",Ms="(?:"+yt+"|"+Tr+")",iu="[^"+bt+"]",Ir="(?:\\ud83c[\\udde6-\\uddff]){2}",Pr="[\\ud800-\\udbff][\\udc00-\\udfff]",Te="["+Qi+"]",uu="\\u200d",ou="(?:"+tu+"|"+ru+")",Ws="(?:"+Te+"|"+ru+")",au="(?:"+Cr+"(?:d|ll|m|re|s|t|ve))?",su="(?:"+Cr+"(?:D|LL|M|RE|S|T|VE))?",lu=Ms+"?",fu="["+Vi+"]?",Fs="(?:"+uu+"(?:"+[iu,Ir,Pr].join("|")+")"+fu+lu+")*",qs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cu=fu+lu+Fs,Ns="(?:"+[Us,Ir,Pr].join("|")+")"+cu,Ds="(?:"+[iu+yt+"?",yt,Ir,Pr,Os].join("|")+")",$s=RegExp(Cr,"g"),ks=RegExp(yt,"g"),Or=RegExp(Tr+"(?="+Tr+")|"+Ds+cu,"g"),Hs=RegExp([Te+"?"+tu+"+"+au+"(?="+[nu,Te,"$"].join("|")+")",Ws+"+"+su+"(?="+[nu,Te+ou,"$"].join("|")+")",Te+"?"+ou+"+"+au,Te+"+"+su,Bs,qs,eu,Ns].join("|"),"g"),Gs=RegExp("["+uu+bt+Zi+Vi+"]"),zs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ks=["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"],Ys=-1,H={};H[_r]=H[mr]=H[xr]=H[wr]=H[br]=H[yr]=H[Sr]=H[Lr]=H[Ar]=!0,H[Re]=H[vt]=H[Je]=H[Ge]=H[Ce]=H[ze]=H[_t]=H[mt]=H[Bn]=H[Ke]=H[Jn]=H[Ye]=H[Nn]=H[Ze]=H[Xe]=!1;var k={};k[Re]=k[vt]=k[Je]=k[Ce]=k[Ge]=k[ze]=k[_r]=k[mr]=k[xr]=k[wr]=k[br]=k[Bn]=k[Ke]=k[Jn]=k[Ye]=k[Nn]=k[Ze]=k[xt]=k[yr]=k[Sr]=k[Lr]=k[Ar]=!0,k[_t]=k[mt]=k[Xe]=!1;var Zs={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Xs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Js={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Qs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vs=parseFloat,js=parseInt,pu=typeof global=="object"&&global&&global.Object===Object&&global,nl=typeof self=="object"&&self&&self.Object===Object&&self,sn=pu||nl||Function("return this")(),Ur=typeof ke=="object"&&ke&&!ke.nodeType&&ke,me=Ur&&typeof pt=="object"&&pt&&!pt.nodeType&&pt,hu=me&&me.exports===Ur,Mr=hu&&pu.process,Tn=function(){try{var f=me&&me.require&&me.require("util").types;return f||Mr&&Mr.binding&&Mr.binding("util")}catch{}}(),du=Tn&&Tn.isArrayBuffer,gu=Tn&&Tn.isDate,vu=Tn&&Tn.isMap,_u=Tn&&Tn.isRegExp,mu=Tn&&Tn.isSet,xu=Tn&&Tn.isTypedArray;function Sn(f,h,p){switch(p.length){case 0:return f.call(h);case 1:return f.call(h,p[0]);case 2:return f.call(h,p[0],p[1]);case 3:return f.call(h,p[0],p[1],p[2])}return f.apply(h,p)}function el(f,h,p,b){for(var E=-1,F=f==null?0:f.length;++E<F;){var un=f[E];h(b,un,p(un),f)}return b}function In(f,h){for(var p=-1,b=f==null?0:f.length;++p<b&&h(f[p],p,f)!==!1;);return f}function tl(f,h){for(var p=f==null?0:f.length;p--&&h(f[p],p,f)!==!1;);return f}function wu(f,h){for(var p=-1,b=f==null?0:f.length;++p<b;)if(!h(f[p],p,f))return!1;return!0}function ae(f,h){for(var p=-1,b=f==null?0:f.length,E=0,F=[];++p<b;){var un=f[p];h(un,p,f)&&(F[E++]=un)}return F}function St(f,h){var p=f==null?0:f.length;return!!p&&Ie(f,h,0)>-1}function Wr(f,h,p){for(var b=-1,E=f==null?0:f.length;++b<E;)if(p(h,f[b]))return!0;return!1}function G(f,h){for(var p=-1,b=f==null?0:f.length,E=Array(b);++p<b;)E[p]=h(f[p],p,f);return E}function se(f,h){for(var p=-1,b=h.length,E=f.length;++p<b;)f[E+p]=h[p];return f}function Fr(f,h,p,b){var E=-1,F=f==null?0:f.length;for(b&&F&&(p=f[++E]);++E<F;)p=h(p,f[E],E,f);return p}function rl(f,h,p,b){var E=f==null?0:f.length;for(b&&E&&(p=f[--E]);E--;)p=h(p,f[E],E,f);return p}function qr(f,h){for(var p=-1,b=f==null?0:f.length;++p<b;)if(h(f[p],p,f))return!0;return!1}var il=Br("length");function ul(f){return f.split("")}function ol(f){return f.match(ds)||[]}function bu(f,h,p){var b;return p(f,function(E,F,un){if(h(E,F,un))return b=F,!1}),b}function Lt(f,h,p,b){for(var E=f.length,F=p+(b?1:-1);b?F--:++F<E;)if(h(f[F],F,f))return F;return-1}function Ie(f,h,p){return h===h?ml(f,h,p):Lt(f,yu,p)}function al(f,h,p,b){for(var E=p-1,F=f.length;++E<F;)if(b(f[E],h))return E;return-1}function yu(f){return f!==f}function Su(f,h){var p=f==null?0:f.length;return p?Dr(f,h)/p:gt}function Br(f){return function(h){return h==null?u:h[f]}}function Nr(f){return function(h){return f==null?u:f[h]}}function Lu(f,h,p,b,E){return E(f,function(F,un,$){p=b?(b=!1,F):h(p,F,un,$)}),p}function sl(f,h){var p=f.length;for(f.sort(h);p--;)f[p]=f[p].value;return f}function Dr(f,h){for(var p,b=-1,E=f.length;++b<E;){var F=h(f[b]);F!==u&&(p=p===u?F:p+F)}return p}function $r(f,h){for(var p=-1,b=Array(f);++p<f;)b[p]=h(p);return b}function ll(f,h){return G(h,function(p){return[p,f[p]]})}function Au(f){return f&&f.slice(0,Tu(f)+1).replace(Rr,"")}function Ln(f){return function(h){return f(h)}}function kr(f,h){return G(h,function(p){return f[p]})}function Qe(f,h){return f.has(h)}function Eu(f,h){for(var p=-1,b=f.length;++p<b&&Ie(h,f[p],0)>-1;);return p}function Ru(f,h){for(var p=f.length;p--&&Ie(h,f[p],0)>-1;);return p}function fl(f,h){for(var p=f.length,b=0;p--;)f[p]===h&&++b;return b}var cl=Nr(Zs),pl=Nr(Xs);function hl(f){return"\\"+Qs[f]}function dl(f,h){return f==null?u:f[h]}function Pe(f){return Gs.test(f)}function gl(f){return zs.test(f)}function vl(f){for(var h,p=[];!(h=f.next()).done;)p.push(h.value);return p}function Hr(f){var h=-1,p=Array(f.size);return f.forEach(function(b,E){p[++h]=[E,b]}),p}function Cu(f,h){return function(p){return f(h(p))}}function le(f,h){for(var p=-1,b=f.length,E=0,F=[];++p<b;){var un=f[p];(un===h||un===tn)&&(f[p]=tn,F[E++]=p)}return F}function At(f){var h=-1,p=Array(f.size);return f.forEach(function(b){p[++h]=b}),p}function _l(f){var h=-1,p=Array(f.size);return f.forEach(function(b){p[++h]=[b,b]}),p}function ml(f,h,p){for(var b=p-1,E=f.length;++b<E;)if(f[b]===h)return b;return-1}function xl(f,h,p){for(var b=p+1;b--;)if(f[b]===h)return b;return b}function Oe(f){return Pe(f)?bl(f):il(f)}function Dn(f){return Pe(f)?yl(f):ul(f)}function Tu(f){for(var h=f.length;h--&&fs.test(f.charAt(h)););return h}var wl=Nr(Js);function bl(f){for(var h=Or.lastIndex=0;Or.test(f);)++h;return h}function yl(f){return f.match(Or)||[]}function Sl(f){return f.match(Hs)||[]}var Ll=function f(h){h=h==null?sn:fe.defaults(sn.Object(),h,fe.pick(sn,Ks));var p=h.Array,b=h.Date,E=h.Error,F=h.Function,un=h.Math,$=h.Object,Gr=h.RegExp,Al=h.String,Pn=h.TypeError,Et=p.prototype,El=F.prototype,Ue=$.prototype,Rt=h["__core-js_shared__"],Ct=El.toString,N=Ue.hasOwnProperty,Rl=0,Iu=function(){var n=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Tt=Ue.toString,Cl=Ct.call($),Tl=sn._,Il=Gr("^"+Ct.call(N).replace(Er,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),It=hu?h.Buffer:u,ce=h.Symbol,Pt=h.Uint8Array,Pu=It?It.allocUnsafe:u,Ot=Cu($.getPrototypeOf,$),Ou=$.create,Uu=Ue.propertyIsEnumerable,Ut=Et.splice,Mu=ce?ce.isConcatSpreadable:u,Ve=ce?ce.iterator:u,xe=ce?ce.toStringTag:u,Mt=function(){try{var n=Le($,"defineProperty");return n({},"",{}),n}catch{}}(),Pl=h.clearTimeout!==sn.clearTimeout&&h.clearTimeout,Ol=b&&b.now!==sn.Date.now&&b.now,Ul=h.setTimeout!==sn.setTimeout&&h.setTimeout,Wt=un.ceil,Ft=un.floor,zr=$.getOwnPropertySymbols,Ml=It?It.isBuffer:u,Wu=h.isFinite,Wl=Et.join,Fl=Cu($.keys,$),on=un.max,pn=un.min,ql=b.now,Bl=h.parseInt,Fu=un.random,Nl=Et.reverse,Kr=Le(h,"DataView"),je=Le(h,"Map"),Yr=Le(h,"Promise"),Me=Le(h,"Set"),nt=Le(h,"WeakMap"),et=Le($,"create"),qt=nt&&new nt,We={},Dl=Ae(Kr),$l=Ae(je),kl=Ae(Yr),Hl=Ae(Me),Gl=Ae(nt),Bt=ce?ce.prototype:u,tt=Bt?Bt.valueOf:u,qu=Bt?Bt.toString:u;function o(n){if(Y(n)&&!R(n)&&!(n instanceof U)){if(n instanceof On)return n;if(N.call(n,"__wrapped__"))return No(n)}return new On(n)}var Fe=function(){function n(){}return function(e){if(!z(e))return{};if(Ou)return Ou(e);n.prototype=e;var t=new n;return n.prototype=u,t}}();function Nt(){}function On(n,e){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=u}o.templateSettings={escape:is,evaluate:us,interpolate:Ki,variable:"",imports:{_:o}},o.prototype=Nt.prototype,o.prototype.constructor=o,On.prototype=Fe(Nt.prototype),On.prototype.constructor=On;function U(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Gn,this.__views__=[]}function zl(){var n=new U(this.__wrapped__);return n.__actions__=xn(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=xn(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=xn(this.__views__),n}function Kl(){if(this.__filtered__){var n=new U(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Yl(){var n=this.__wrapped__.value(),e=this.__dir__,t=R(n),r=e<0,i=t?n.length:0,a=oc(0,i,this.__views__),s=a.start,l=a.end,c=l-s,d=r?l:s-1,g=this.__iteratees__,_=g.length,w=0,y=pn(c,this.__takeCount__);if(!t||!r&&i==c&&y==c)return ao(n,this.__actions__);var L=[];n:for(;c--&&w<y;){d+=e;for(var I=-1,A=n[d];++I<_;){var O=g[I],M=O.iteratee,Rn=O.type,mn=M(A);if(Rn==$a)A=mn;else if(!mn){if(Rn==$i)continue n;break n}}L[w++]=A}return L}U.prototype=Fe(Nt.prototype),U.prototype.constructor=U;function we(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}function Zl(){this.__data__=et?et(null):{},this.size=0}function Xl(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}function Jl(n){var e=this.__data__;if(et){var t=e[n];return t===en?u:t}return N.call(e,n)?e[n]:u}function Ql(n){var e=this.__data__;return et?e[n]!==u:N.call(e,n)}function Vl(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=et&&e===u?en:e,this}we.prototype.clear=Zl,we.prototype.delete=Xl,we.prototype.get=Jl,we.prototype.has=Ql,we.prototype.set=Vl;function Qn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}function jl(){this.__data__=[],this.size=0}function nf(n){var e=this.__data__,t=Dt(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():Ut.call(e,t,1),--this.size,!0}function ef(n){var e=this.__data__,t=Dt(e,n);return t<0?u:e[t][1]}function tf(n){return Dt(this.__data__,n)>-1}function rf(n,e){var t=this.__data__,r=Dt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}Qn.prototype.clear=jl,Qn.prototype.delete=nf,Qn.prototype.get=ef,Qn.prototype.has=tf,Qn.prototype.set=rf;function Vn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}function uf(){this.size=0,this.__data__={hash:new we,map:new(je||Qn),string:new we}}function of(n){var e=Vt(this,n).delete(n);return this.size-=e?1:0,e}function af(n){return Vt(this,n).get(n)}function sf(n){return Vt(this,n).has(n)}function lf(n,e){var t=Vt(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}Vn.prototype.clear=uf,Vn.prototype.delete=of,Vn.prototype.get=af,Vn.prototype.has=sf,Vn.prototype.set=lf;function be(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Vn;++e<t;)this.add(n[e])}function ff(n){return this.__data__.set(n,en),this}function cf(n){return this.__data__.has(n)}be.prototype.add=be.prototype.push=ff,be.prototype.has=cf;function $n(n){var e=this.__data__=new Qn(n);this.size=e.size}function pf(){this.__data__=new Qn,this.size=0}function hf(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function df(n){return this.__data__.get(n)}function gf(n){return this.__data__.has(n)}function vf(n,e){var t=this.__data__;if(t instanceof Qn){var r=t.__data__;if(!je||r.length<m-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Vn(r)}return t.set(n,e),this.size=t.size,this}$n.prototype.clear=pf,$n.prototype.delete=hf,$n.prototype.get=df,$n.prototype.has=gf,$n.prototype.set=vf;function Bu(n,e){var t=R(n),r=!t&&Ee(n),i=!t&&!r&&ve(n),a=!t&&!r&&!i&&De(n),s=t||r||i||a,l=s?$r(n.length,Al):[],c=l.length;for(var d in n)(e||N.call(n,d))&&!(s&&(d=="length"||i&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||te(d,c)))&&l.push(d);return l}function Nu(n){var e=n.length;return e?n[ii(0,e-1)]:u}function _f(n,e){return jt(xn(n),ye(e,0,n.length))}function mf(n){return jt(xn(n))}function Zr(n,e,t){(t!==u&&!kn(n[e],t)||t===u&&!(e in n))&&jn(n,e,t)}function rt(n,e,t){var r=n[e];(!(N.call(n,e)&&kn(r,t))||t===u&&!(e in n))&&jn(n,e,t)}function Dt(n,e){for(var t=n.length;t--;)if(kn(n[t][0],e))return t;return-1}function xf(n,e,t,r){return pe(n,function(i,a,s){e(r,i,t(i),s)}),r}function Du(n,e){return n&&Kn(e,ln(e),n)}function wf(n,e){return n&&Kn(e,bn(e),n)}function jn(n,e,t){e=="__proto__"&&Mt?Mt(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Xr(n,e){for(var t=-1,r=e.length,i=p(r),a=n==null;++t<r;)i[t]=a?u:Ti(n,e[t]);return i}function ye(n,e,t){return n===n&&(t!==u&&(n=n<=t?n:t),e!==u&&(n=n>=e?n:e)),n}function Un(n,e,t,r,i,a){var s,l=e&W,c=e&Z,d=e&D;if(t&&(s=i?t(n,r,i,a):t(n)),s!==u)return s;if(!z(n))return n;var g=R(n);if(g){if(s=sc(n),!l)return xn(n,s)}else{var _=hn(n),w=_==mt||_==ki;if(ve(n))return fo(n,l);if(_==Jn||_==Re||w&&!i){if(s=c||w?{}:Io(n),!l)return c?Qf(n,wf(s,n)):Jf(n,Du(s,n))}else{if(!k[_])return i?n:{};s=lc(n,_,l)}}a||(a=new $n);var y=a.get(n);if(y)return y;a.set(n,s),ua(n)?n.forEach(function(A){s.add(Un(A,e,t,A,n,a))}):ra(n)&&n.forEach(function(A,O){s.set(O,Un(A,e,t,O,n,a))});var L=d?c?gi:di:c?bn:ln,I=g?u:L(n);return In(I||n,function(A,O){I&&(O=A,A=n[O]),rt(s,O,Un(A,e,t,O,n,a))}),s}function bf(n){var e=ln(n);return function(t){return $u(t,n,e)}}function $u(n,e,t){var r=t.length;if(n==null)return!r;for(n=$(n);r--;){var i=t[r],a=e[i],s=n[i];if(s===u&&!(i in n)||!a(s))return!1}return!0}function ku(n,e,t){if(typeof n!="function")throw new Pn(x);return ft(function(){n.apply(u,t)},e)}function it(n,e,t,r){var i=-1,a=St,s=!0,l=n.length,c=[],d=e.length;if(!l)return c;t&&(e=G(e,Ln(t))),r?(a=Wr,s=!1):e.length>=m&&(a=Qe,s=!1,e=new be(e));n:for(;++i<l;){var g=n[i],_=t==null?g:t(g);if(g=r||g!==0?g:0,s&&_===_){for(var w=d;w--;)if(e[w]===_)continue n;c.push(g)}else a(e,_,r)||c.push(g)}return c}var pe=vo(zn),Hu=vo(Qr,!0);function yf(n,e){var t=!0;return pe(n,function(r,i,a){return t=!!e(r,i,a),t}),t}function $t(n,e,t){for(var r=-1,i=n.length;++r<i;){var a=n[r],s=e(a);if(s!=null&&(l===u?s===s&&!En(s):t(s,l)))var l=s,c=a}return c}function Sf(n,e,t,r){var i=n.length;for(t=C(t),t<0&&(t=-t>i?0:i+t),r=r===u||r>i?i:C(r),r<0&&(r+=i),r=t>r?0:aa(r);t<r;)n[t++]=e;return n}function Gu(n,e){var t=[];return pe(n,function(r,i,a){e(r,i,a)&&t.push(r)}),t}function cn(n,e,t,r,i){var a=-1,s=n.length;for(t||(t=cc),i||(i=[]);++a<s;){var l=n[a];e>0&&t(l)?e>1?cn(l,e-1,t,r,i):se(i,l):r||(i[i.length]=l)}return i}var Jr=_o(),zu=_o(!0);function zn(n,e){return n&&Jr(n,e,ln)}function Qr(n,e){return n&&zu(n,e,ln)}function kt(n,e){return ae(e,function(t){return re(n[t])})}function Se(n,e){e=de(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[Yn(e[t++])];return t&&t==r?n:u}function Ku(n,e,t){var r=e(n);return R(n)?r:se(r,t(n))}function vn(n){return n==null?n===u?Qa:Xa:xe&&xe in $(n)?uc(n):mc(n)}function Vr(n,e){return n>e}function Lf(n,e){return n!=null&&N.call(n,e)}function Af(n,e){return n!=null&&e in $(n)}function Ef(n,e,t){return n>=pn(e,t)&&n<on(e,t)}function jr(n,e,t){for(var r=t?Wr:St,i=n[0].length,a=n.length,s=a,l=p(a),c=1/0,d=[];s--;){var g=n[s];s&&e&&(g=G(g,Ln(e))),c=pn(g.length,c),l[s]=!t&&(e||i>=120&&g.length>=120)?new be(s&&g):u}g=n[0];var _=-1,w=l[0];n:for(;++_<i&&d.length<c;){var y=g[_],L=e?e(y):y;if(y=t||y!==0?y:0,!(w?Qe(w,L):r(d,L,t))){for(s=a;--s;){var I=l[s];if(!(I?Qe(I,L):r(n[s],L,t)))continue n}w&&w.push(L),d.push(y)}}return d}function Rf(n,e,t,r){return zn(n,function(i,a,s){e(r,t(i),a,s)}),r}function ut(n,e,t){e=de(e,n),n=Mo(n,e);var r=n==null?n:n[Yn(Wn(e))];return r==null?u:Sn(r,n,t)}function Yu(n){return Y(n)&&vn(n)==Re}function Cf(n){return Y(n)&&vn(n)==Je}function Tf(n){return Y(n)&&vn(n)==ze}function ot(n,e,t,r,i){return n===e?!0:n==null||e==null||!Y(n)&&!Y(e)?n!==n&&e!==e:If(n,e,t,r,ot,i)}function If(n,e,t,r,i,a){var s=R(n),l=R(e),c=s?vt:hn(n),d=l?vt:hn(e);c=c==Re?Jn:c,d=d==Re?Jn:d;var g=c==Jn,_=d==Jn,w=c==d;if(w&&ve(n)){if(!ve(e))return!1;s=!0,g=!1}if(w&&!g)return a||(a=new $n),s||De(n)?Ro(n,e,t,r,i,a):rc(n,e,c,t,r,i,a);if(!(t&K)){var y=g&&N.call(n,"__wrapped__"),L=_&&N.call(e,"__wrapped__");if(y||L){var I=y?n.value():n,A=L?e.value():e;return a||(a=new $n),i(I,A,t,r,a)}}return w?(a||(a=new $n),ic(n,e,t,r,i,a)):!1}function Pf(n){return Y(n)&&hn(n)==Bn}function ni(n,e,t,r){var i=t.length,a=i,s=!r;if(n==null)return!a;for(n=$(n);i--;){var l=t[i];if(s&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++i<a;){l=t[i];var c=l[0],d=n[c],g=l[1];if(s&&l[2]){if(d===u&&!(c in n))return!1}else{var _=new $n;if(r)var w=r(d,g,c,n,e,_);if(!(w===u?ot(g,d,K|an,r,_):w))return!1}}return!0}function Zu(n){if(!z(n)||hc(n))return!1;var e=re(n)?Il:ws;return e.test(Ae(n))}function Of(n){return Y(n)&&vn(n)==Ye}function Uf(n){return Y(n)&&hn(n)==Nn}function Mf(n){return Y(n)&&ur(n.length)&&!!H[vn(n)]}function Xu(n){return typeof n=="function"?n:n==null?yn:typeof n=="object"?R(n)?Vu(n[0],n[1]):Qu(n):ma(n)}function ei(n){if(!lt(n))return Fl(n);var e=[];for(var t in $(n))N.call(n,t)&&t!="constructor"&&e.push(t);return e}function Wf(n){if(!z(n))return _c(n);var e=lt(n),t=[];for(var r in n)r=="constructor"&&(e||!N.call(n,r))||t.push(r);return t}function ti(n,e){return n<e}function Ju(n,e){var t=-1,r=wn(n)?p(n.length):[];return pe(n,function(i,a,s){r[++t]=e(i,a,s)}),r}function Qu(n){var e=_i(n);return e.length==1&&e[0][2]?Oo(e[0][0],e[0][1]):function(t){return t===n||ni(t,n,e)}}function Vu(n,e){return xi(n)&&Po(e)?Oo(Yn(n),e):function(t){var r=Ti(t,n);return r===u&&r===e?Ii(t,n):ot(e,r,K|an)}}function Ht(n,e,t,r,i){n!==e&&Jr(e,function(a,s){if(i||(i=new $n),z(a))Ff(n,e,s,t,Ht,r,i);else{var l=r?r(bi(n,s),a,s+"",n,e,i):u;l===u&&(l=a),Zr(n,s,l)}},bn)}function Ff(n,e,t,r,i,a,s){var l=bi(n,t),c=bi(e,t),d=s.get(c);if(d){Zr(n,t,d);return}var g=a?a(l,c,t+"",n,e,s):u,_=g===u;if(_){var w=R(c),y=!w&&ve(c),L=!w&&!y&&De(c);g=c,w||y||L?R(l)?g=l:Q(l)?g=xn(l):y?(_=!1,g=fo(c,!0)):L?(_=!1,g=co(c,!0)):g=[]:ct(c)||Ee(c)?(g=l,Ee(l)?g=sa(l):(!z(l)||re(l))&&(g=Io(c))):_=!1}_&&(s.set(c,g),i(g,c,r,a,s),s.delete(c)),Zr(n,t,g)}function ju(n,e){var t=n.length;if(t)return e+=e<0?t:0,te(e,t)?n[e]:u}function no(n,e,t){e.length?e=G(e,function(a){return R(a)?function(s){return Se(s,a.length===1?a[0]:a)}:a}):e=[yn];var r=-1;e=G(e,Ln(S()));var i=Ju(n,function(a,s,l){var c=G(e,function(d){return d(a)});return{criteria:c,index:++r,value:a}});return sl(i,function(a,s){return Xf(a,s,t)})}function qf(n,e){return eo(n,e,function(t,r){return Ii(n,r)})}function eo(n,e,t){for(var r=-1,i=e.length,a={};++r<i;){var s=e[r],l=Se(n,s);t(l,s)&&at(a,de(s,n),l)}return a}function Bf(n){return function(e){return Se(e,n)}}function ri(n,e,t,r){var i=r?al:Ie,a=-1,s=e.length,l=n;for(n===e&&(e=xn(e)),t&&(l=G(n,Ln(t)));++a<s;)for(var c=0,d=e[a],g=t?t(d):d;(c=i(l,g,c,r))>-1;)l!==n&&Ut.call(l,c,1),Ut.call(n,c,1);return n}function to(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==a){var a=i;te(i)?Ut.call(n,i,1):ai(n,i)}}return n}function ii(n,e){return n+Ft(Fu()*(e-n+1))}function Nf(n,e,t,r){for(var i=-1,a=on(Wt((e-n)/(t||1)),0),s=p(a);a--;)s[r?a:++i]=n,n+=t;return s}function ui(n,e){var t="";if(!n||e<1||e>oe)return t;do e%2&&(t+=n),e=Ft(e/2),e&&(n+=n);while(e);return t}function P(n,e){return yi(Uo(n,e,yn),n+"")}function Df(n){return Nu($e(n))}function $f(n,e){var t=$e(n);return jt(t,ye(e,0,t.length))}function at(n,e,t,r){if(!z(n))return n;e=de(e,n);for(var i=-1,a=e.length,s=a-1,l=n;l!=null&&++i<a;){var c=Yn(e[i]),d=t;if(c==="__proto__"||c==="constructor"||c==="prototype")return n;if(i!=s){var g=l[c];d=r?r(g,c,l):u,d===u&&(d=z(g)?g:te(e[i+1])?[]:{})}rt(l,c,d),l=l[c]}return n}var ro=qt?function(n,e){return qt.set(n,e),n}:yn,kf=Mt?function(n,e){return Mt(n,"toString",{configurable:!0,enumerable:!1,value:Oi(e),writable:!0})}:yn;function Hf(n){return jt($e(n))}function Mn(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var a=p(i);++r<i;)a[r]=n[r+e];return a}function Gf(n,e){var t;return pe(n,function(r,i,a){return t=e(r,i,a),!t}),!!t}function Gt(n,e,t){var r=0,i=n==null?r:n.length;if(typeof e=="number"&&e===e&&i<=za){for(;r<i;){var a=r+i>>>1,s=n[a];s!==null&&!En(s)&&(t?s<=e:s<e)?r=a+1:i=a}return i}return oi(n,e,yn,t)}function oi(n,e,t,r){var i=0,a=n==null?0:n.length;if(a===0)return 0;e=t(e);for(var s=e!==e,l=e===null,c=En(e),d=e===u;i<a;){var g=Ft((i+a)/2),_=t(n[g]),w=_!==u,y=_===null,L=_===_,I=En(_);if(s)var A=r||L;else d?A=L&&(r||w):l?A=L&&w&&(r||!y):c?A=L&&w&&!y&&(r||!I):y||I?A=!1:A=r?_<=e:_<e;A?i=g+1:a=g}return pn(a,Ga)}function io(n,e){for(var t=-1,r=n.length,i=0,a=[];++t<r;){var s=n[t],l=e?e(s):s;if(!t||!kn(l,c)){var c=l;a[i++]=s===0?0:s}}return a}function uo(n){return typeof n=="number"?n:En(n)?gt:+n}function An(n){if(typeof n=="string")return n;if(R(n))return G(n,An)+"";if(En(n))return qu?qu.call(n):"";var e=n+"";return e=="0"&&1/n==-_e?"-0":e}function he(n,e,t){var r=-1,i=St,a=n.length,s=!0,l=[],c=l;if(t)s=!1,i=Wr;else if(a>=m){var d=e?null:ec(n);if(d)return At(d);s=!1,i=Qe,c=new be}else c=e?[]:l;n:for(;++r<a;){var g=n[r],_=e?e(g):g;if(g=t||g!==0?g:0,s&&_===_){for(var w=c.length;w--;)if(c[w]===_)continue n;e&&c.push(_),l.push(g)}else i(c,_,t)||(c!==l&&c.push(_),l.push(g))}return l}function ai(n,e){return e=de(e,n),n=Mo(n,e),n==null||delete n[Yn(Wn(e))]}function oo(n,e,t,r){return at(n,e,t(Se(n,e)),r)}function zt(n,e,t,r){for(var i=n.length,a=r?i:-1;(r?a--:++a<i)&&e(n[a],a,n););return t?Mn(n,r?0:a,r?a+1:i):Mn(n,r?a+1:0,r?i:a)}function ao(n,e){var t=n;return t instanceof U&&(t=t.value()),Fr(e,function(r,i){return i.func.apply(i.thisArg,se([r],i.args))},t)}function si(n,e,t){var r=n.length;if(r<2)return r?he(n[0]):[];for(var i=-1,a=p(r);++i<r;)for(var s=n[i],l=-1;++l<r;)l!=i&&(a[i]=it(a[i]||s,n[l],e,t));return he(cn(a,1),e,t)}function so(n,e,t){for(var r=-1,i=n.length,a=e.length,s={};++r<i;){var l=r<a?e[r]:u;t(s,n[r],l)}return s}function li(n){return Q(n)?n:[]}function fi(n){return typeof n=="function"?n:yn}function de(n,e){return R(n)?n:xi(n,e)?[n]:Bo(B(n))}var zf=P;function ge(n,e,t){var r=n.length;return t=t===u?r:t,!e&&t>=r?n:Mn(n,e,t)}var lo=Pl||function(n){return sn.clearTimeout(n)};function fo(n,e){if(e)return n.slice();var t=n.length,r=Pu?Pu(t):new n.constructor(t);return n.copy(r),r}function ci(n){var e=new n.constructor(n.byteLength);return new Pt(e).set(new Pt(n)),e}function Kf(n,e){var t=e?ci(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Yf(n){var e=new n.constructor(n.source,Yi.exec(n));return e.lastIndex=n.lastIndex,e}function Zf(n){return tt?$(tt.call(n)):{}}function co(n,e){var t=e?ci(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function po(n,e){if(n!==e){var t=n!==u,r=n===null,i=n===n,a=En(n),s=e!==u,l=e===null,c=e===e,d=En(e);if(!l&&!d&&!a&&n>e||a&&s&&c&&!l&&!d||r&&s&&c||!t&&c||!i)return 1;if(!r&&!a&&!d&&n<e||d&&t&&i&&!r&&!a||l&&t&&i||!s&&i||!c)return-1}return 0}function Xf(n,e,t){for(var r=-1,i=n.criteria,a=e.criteria,s=i.length,l=t.length;++r<s;){var c=po(i[r],a[r]);if(c){if(r>=l)return c;var d=t[r];return c*(d=="desc"?-1:1)}}return n.index-e.index}function ho(n,e,t,r){for(var i=-1,a=n.length,s=t.length,l=-1,c=e.length,d=on(a-s,0),g=p(c+d),_=!r;++l<c;)g[l]=e[l];for(;++i<s;)(_||i<a)&&(g[t[i]]=n[i]);for(;d--;)g[l++]=n[i++];return g}function go(n,e,t,r){for(var i=-1,a=n.length,s=-1,l=t.length,c=-1,d=e.length,g=on(a-l,0),_=p(g+d),w=!r;++i<g;)_[i]=n[i];for(var y=i;++c<d;)_[y+c]=e[c];for(;++s<l;)(w||i<a)&&(_[y+t[s]]=n[i++]);return _}function xn(n,e){var t=-1,r=n.length;for(e||(e=p(r));++t<r;)e[t]=n[t];return e}function Kn(n,e,t,r){var i=!t;t||(t={});for(var a=-1,s=e.length;++a<s;){var l=e[a],c=r?r(t[l],n[l],l,t,n):u;c===u&&(c=n[l]),i?jn(t,l,c):rt(t,l,c)}return t}function Jf(n,e){return Kn(n,mi(n),e)}function Qf(n,e){return Kn(n,Co(n),e)}function Kt(n,e){return function(t,r){var i=R(t)?el:xf,a=e?e():{};return i(t,n,S(r,2),a)}}function qe(n){return P(function(e,t){var r=-1,i=t.length,a=i>1?t[i-1]:u,s=i>2?t[2]:u;for(a=n.length>3&&typeof a=="function"?(i--,a):u,s&&_n(t[0],t[1],s)&&(a=i<3?u:a,i=1),e=$(e);++r<i;){var l=t[r];l&&n(e,l,r,a)}return e})}function vo(n,e){return function(t,r){if(t==null)return t;if(!wn(t))return n(t,r);for(var i=t.length,a=e?i:-1,s=$(t);(e?a--:++a<i)&&r(s[a],a,s)!==!1;);return t}}function _o(n){return function(e,t,r){for(var i=-1,a=$(e),s=r(e),l=s.length;l--;){var c=s[n?l:++i];if(t(a[c],c,a)===!1)break}return e}}function Vf(n,e,t){var r=e&rn,i=st(n);function a(){var s=this&&this!==sn&&this instanceof a?i:n;return s.apply(r?t:this,arguments)}return a}function mo(n){return function(e){e=B(e);var t=Pe(e)?Dn(e):u,r=t?t[0]:e.charAt(0),i=t?ge(t,1).join(""):e.slice(1);return r[n]()+i}}function Be(n){return function(e){return Fr(va(ga(e).replace($s,"")),n,"")}}function st(n){return function(){var e=arguments;switch(e.length){case 0:return new n;case 1:return new n(e[0]);case 2:return new n(e[0],e[1]);case 3:return new n(e[0],e[1],e[2]);case 4:return new n(e[0],e[1],e[2],e[3]);case 5:return new n(e[0],e[1],e[2],e[3],e[4]);case 6:return new n(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new n(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=Fe(n.prototype),r=n.apply(t,e);return z(r)?r:t}}function jf(n,e,t){var r=st(n);function i(){for(var a=arguments.length,s=p(a),l=a,c=Ne(i);l--;)s[l]=arguments[l];var d=a<3&&s[0]!==c&&s[a-1]!==c?[]:le(s,c);if(a-=d.length,a<t)return So(n,e,Yt,i.placeholder,u,s,d,u,u,t-a);var g=this&&this!==sn&&this instanceof i?r:n;return Sn(g,this,s)}return i}function xo(n){return function(e,t,r){var i=$(e);if(!wn(e)){var a=S(t,3);e=ln(e),t=function(l){return a(i[l],l,i)}}var s=n(e,t,r);return s>-1?i[a?e[s]:s]:u}}function wo(n){return ee(function(e){var t=e.length,r=t,i=On.prototype.thru;for(n&&e.reverse();r--;){var a=e[r];if(typeof a!="function")throw new Pn(x);if(i&&!s&&Qt(a)=="wrapper")var s=new On([],!0)}for(r=s?r:t;++r<t;){a=e[r];var l=Qt(a),c=l=="wrapper"?vi(a):u;c&&wi(c[0])&&c[1]==(Xn|gn|X|He)&&!c[4].length&&c[9]==1?s=s[Qt(c[0])].apply(s,c[3]):s=a.length==1&&wi(a)?s[l]():s.thru(a)}return function(){var d=arguments,g=d[0];if(s&&d.length==1&&R(g))return s.plant(g).value();for(var _=0,w=t?e[_].apply(this,d):g;++_<t;)w=e[_].call(this,w);return w}})}function Yt(n,e,t,r,i,a,s,l,c,d){var g=e&Xn,_=e&rn,w=e&j,y=e&(gn|Zn),L=e&vr,I=w?u:st(n);function A(){for(var O=arguments.length,M=p(O),Rn=O;Rn--;)M[Rn]=arguments[Rn];if(y)var mn=Ne(A),Cn=fl(M,mn);if(r&&(M=ho(M,r,i,y)),a&&(M=go(M,a,s,y)),O-=Cn,y&&O<d){var V=le(M,mn);return So(n,e,Yt,A.placeholder,t,M,V,l,c,d-O)}var Hn=_?t:this,ue=w?Hn[n]:n;return O=M.length,l?M=xc(M,l):L&&O>1&&M.reverse(),g&&c<O&&(M.length=c),this&&this!==sn&&this instanceof A&&(ue=I||st(ue)),ue.apply(Hn,M)}return A}function bo(n,e){return function(t,r){return Rf(t,n,e(r),{})}}function Zt(n,e){return function(t,r){var i;if(t===u&&r===u)return e;if(t!==u&&(i=t),r!==u){if(i===u)return r;typeof t=="string"||typeof r=="string"?(t=An(t),r=An(r)):(t=uo(t),r=uo(r)),i=n(t,r)}return i}}function pi(n){return ee(function(e){return e=G(e,Ln(S())),P(function(t){var r=this;return n(e,function(i){return Sn(i,r,t)})})})}function Xt(n,e){e=e===u?" ":An(e);var t=e.length;if(t<2)return t?ui(e,n):e;var r=ui(e,Wt(n/Oe(e)));return Pe(e)?ge(Dn(r),0,n).join(""):r.slice(0,n)}function nc(n,e,t,r){var i=e&rn,a=st(n);function s(){for(var l=-1,c=arguments.length,d=-1,g=r.length,_=p(g+c),w=this&&this!==sn&&this instanceof s?a:n;++d<g;)_[d]=r[d];for(;c--;)_[d++]=arguments[++l];return Sn(w,i?t:this,_)}return s}function yo(n){return function(e,t,r){return r&&typeof r!="number"&&_n(e,t,r)&&(t=r=u),e=ie(e),t===u?(t=e,e=0):t=ie(t),r=r===u?e<t?1:-1:ie(r),Nf(e,t,r,n)}}function Jt(n){return function(e,t){return typeof e=="string"&&typeof t=="string"||(e=Fn(e),t=Fn(t)),n(e,t)}}function So(n,e,t,r,i,a,s,l,c,d){var g=e&gn,_=g?s:u,w=g?u:s,y=g?a:u,L=g?u:a;e|=g?X:J,e&=~(g?J:X),e&qn||(e&=~(rn|j));var I=[n,e,i,y,_,L,w,l,c,d],A=t.apply(u,I);return wi(n)&&Wo(A,I),A.placeholder=r,Fo(A,n,e)}function hi(n){var e=un[n];return function(t,r){if(t=Fn(t),r=r==null?0:pn(C(r),292),r&&Wu(t)){var i=(B(t)+"e").split("e"),a=e(i[0]+"e"+(+i[1]+r));return i=(B(a)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return e(t)}}var ec=Me&&1/At(new Me([,-0]))[1]==_e?function(n){return new Me(n)}:Wi;function Lo(n){return function(e){var t=hn(e);return t==Bn?Hr(e):t==Nn?_l(e):ll(e,n(e))}}function ne(n,e,t,r,i,a,s,l){var c=e&j;if(!c&&typeof n!="function")throw new Pn(x);var d=r?r.length:0;if(d||(e&=~(X|J),r=i=u),s=s===u?s:on(C(s),0),l=l===u?l:C(l),d-=i?i.length:0,e&J){var g=r,_=i;r=i=u}var w=c?u:vi(n),y=[n,e,t,r,i,g,_,a,s,l];if(w&&vc(y,w),n=y[0],e=y[1],t=y[2],r=y[3],i=y[4],l=y[9]=y[9]===u?c?0:n.length:on(y[9]-d,0),!l&&e&(gn|Zn)&&(e&=~(gn|Zn)),!e||e==rn)var L=Vf(n,e,t);else e==gn||e==Zn?L=jf(n,e,l):(e==X||e==(rn|X))&&!i.length?L=nc(n,e,t,r):L=Yt.apply(u,y);var I=w?ro:Wo;return Fo(I(L,y),n,e)}function Ao(n,e,t,r){return n===u||kn(n,Ue[t])&&!N.call(r,t)?e:n}function Eo(n,e,t,r,i,a){return z(n)&&z(e)&&(a.set(e,n),Ht(n,e,u,Eo,a),a.delete(e)),n}function tc(n){return ct(n)?u:n}function Ro(n,e,t,r,i,a){var s=t&K,l=n.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var d=a.get(n),g=a.get(e);if(d&&g)return d==e&&g==n;var _=-1,w=!0,y=t&an?new be:u;for(a.set(n,e),a.set(e,n);++_<l;){var L=n[_],I=e[_];if(r)var A=s?r(I,L,_,e,n,a):r(L,I,_,n,e,a);if(A!==u){if(A)continue;w=!1;break}if(y){if(!qr(e,function(O,M){if(!Qe(y,M)&&(L===O||i(L,O,t,r,a)))return y.push(M)})){w=!1;break}}else if(!(L===I||i(L,I,t,r,a))){w=!1;break}}return a.delete(n),a.delete(e),w}function rc(n,e,t,r,i,a,s){switch(t){case Ce:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Je:return!(n.byteLength!=e.byteLength||!a(new Pt(n),new Pt(e)));case Ge:case ze:case Ke:return kn(+n,+e);case _t:return n.name==e.name&&n.message==e.message;case Ye:case Ze:return n==e+"";case Bn:var l=Hr;case Nn:var c=r&K;if(l||(l=At),n.size!=e.size&&!c)return!1;var d=s.get(n);if(d)return d==e;r|=an,s.set(n,e);var g=Ro(l(n),l(e),r,i,a,s);return s.delete(n),g;case xt:if(tt)return tt.call(n)==tt.call(e)}return!1}function ic(n,e,t,r,i,a){var s=t&K,l=di(n),c=l.length,d=di(e),g=d.length;if(c!=g&&!s)return!1;for(var _=c;_--;){var w=l[_];if(!(s?w in e:N.call(e,w)))return!1}var y=a.get(n),L=a.get(e);if(y&&L)return y==e&&L==n;var I=!0;a.set(n,e),a.set(e,n);for(var A=s;++_<c;){w=l[_];var O=n[w],M=e[w];if(r)var Rn=s?r(M,O,w,e,n,a):r(O,M,w,n,e,a);if(!(Rn===u?O===M||i(O,M,t,r,a):Rn)){I=!1;break}A||(A=w=="constructor")}if(I&&!A){var mn=n.constructor,Cn=e.constructor;mn!=Cn&&"constructor"in n&&"constructor"in e&&!(typeof mn=="function"&&mn instanceof mn&&typeof Cn=="function"&&Cn instanceof Cn)&&(I=!1)}return a.delete(n),a.delete(e),I}function ee(n){return yi(Uo(n,u,ko),n+"")}function di(n){return Ku(n,ln,mi)}function gi(n){return Ku(n,bn,Co)}var vi=qt?function(n){return qt.get(n)}:Wi;function Qt(n){for(var e=n.name+"",t=We[e],r=N.call(We,e)?t.length:0;r--;){var i=t[r],a=i.func;if(a==null||a==n)return i.name}return e}function Ne(n){var e=N.call(o,"placeholder")?o:n;return e.placeholder}function S(){var n=o.iteratee||Ui;return n=n===Ui?Xu:n,arguments.length?n(arguments[0],arguments[1]):n}function Vt(n,e){var t=n.__data__;return pc(e)?t[typeof e=="string"?"string":"hash"]:t.map}function _i(n){for(var e=ln(n),t=e.length;t--;){var r=e[t],i=n[r];e[t]=[r,i,Po(i)]}return e}function Le(n,e){var t=dl(n,e);return Zu(t)?t:u}function uc(n){var e=N.call(n,xe),t=n[xe];try{n[xe]=u;var r=!0}catch{}var i=Tt.call(n);return r&&(e?n[xe]=t:delete n[xe]),i}var mi=zr?function(n){return n==null?[]:(n=$(n),ae(zr(n),function(e){return Uu.call(n,e)}))}:Fi,Co=zr?function(n){for(var e=[];n;)se(e,mi(n)),n=Ot(n);return e}:Fi,hn=vn;(Kr&&hn(new Kr(new ArrayBuffer(1)))!=Ce||je&&hn(new je)!=Bn||Yr&&hn(Yr.resolve())!=Hi||Me&&hn(new Me)!=Nn||nt&&hn(new nt)!=Xe)&&(hn=function(n){var e=vn(n),t=e==Jn?n.constructor:u,r=t?Ae(t):"";if(r)switch(r){case Dl:return Ce;case $l:return Bn;case kl:return Hi;case Hl:return Nn;case Gl:return Xe}return e});function oc(n,e,t){for(var r=-1,i=t.length;++r<i;){var a=t[r],s=a.size;switch(a.type){case"drop":n+=s;break;case"dropRight":e-=s;break;case"take":e=pn(e,n+s);break;case"takeRight":n=on(n,e-s);break}}return{start:n,end:e}}function ac(n){var e=n.match(ps);return e?e[1].split(hs):[]}function To(n,e,t){e=de(e,n);for(var r=-1,i=e.length,a=!1;++r<i;){var s=Yn(e[r]);if(!(a=n!=null&&t(n,s)))break;n=n[s]}return a||++r!=i?a:(i=n==null?0:n.length,!!i&&ur(i)&&te(s,i)&&(R(n)||Ee(n)))}function sc(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&N.call(n,"index")&&(t.index=n.index,t.input=n.input),t}function Io(n){return typeof n.constructor=="function"&&!lt(n)?Fe(Ot(n)):{}}function lc(n,e,t){var r=n.constructor;switch(e){case Je:return ci(n);case Ge:case ze:return new r(+n);case Ce:return Kf(n,t);case _r:case mr:case xr:case wr:case br:case yr:case Sr:case Lr:case Ar:return co(n,t);case Bn:return new r;case Ke:case Ze:return new r(n);case Ye:return Yf(n);case Nn:return new r;case xt:return Zf(n)}}function fc(n,e){var t=e.length;if(!t)return n;var r=t-1;return e[r]=(t>1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(cs,`{
/* [wrapped with `+e+`] */
`)}function cc(n){return R(n)||Ee(n)||!!(Mu&&n&&n[Mu])}function te(n,e){var t=typeof n;return e=e??oe,!!e&&(t=="number"||t!="symbol"&&ys.test(n))&&n>-1&&n%1==0&&n<e}function _n(n,e,t){if(!z(t))return!1;var r=typeof e;return(r=="number"?wn(t)&&te(e,t.length):r=="string"&&e in t)?kn(t[e],n):!1}function xi(n,e){if(R(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||En(n)?!0:as.test(n)||!os.test(n)||e!=null&&n in $(e)}function pc(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function wi(n){var e=Qt(n),t=o[e];if(typeof t!="function"||!(e in U.prototype))return!1;if(n===t)return!0;var r=vi(t);return!!r&&n===r[0]}function hc(n){return!!Iu&&Iu in n}var dc=Rt?re:qi;function lt(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Ue;return n===t}function Po(n){return n===n&&!z(n)}function Oo(n,e){return function(t){return t==null?!1:t[n]===e&&(e!==u||n in $(t))}}function gc(n){var e=rr(n,function(r){return t.size===dn&&t.clear(),r}),t=e.cache;return e}function vc(n,e){var t=n[1],r=e[1],i=t|r,a=i<(rn|j|Xn),s=r==Xn&&t==gn||r==Xn&&t==He&&n[7].length<=e[8]||r==(Xn|He)&&e[7].length<=e[8]&&t==gn;if(!(a||s))return n;r&rn&&(n[2]=e[2],i|=t&rn?0:qn);var l=e[3];if(l){var c=n[3];n[3]=c?ho(c,l,e[4]):l,n[4]=c?le(n[3],tn):e[4]}return l=e[5],l&&(c=n[5],n[5]=c?go(c,l,e[6]):l,n[6]=c?le(n[5],tn):e[6]),l=e[7],l&&(n[7]=l),r&Xn&&(n[8]=n[8]==null?e[8]:pn(n[8],e[8])),n[9]==null&&(n[9]=e[9]),n[0]=e[0],n[1]=i,n}function _c(n){var e=[];if(n!=null)for(var t in $(n))e.push(t);return e}function mc(n){return Tt.call(n)}function Uo(n,e,t){return e=on(e===u?n.length-1:e,0),function(){for(var r=arguments,i=-1,a=on(r.length-e,0),s=p(a);++i<a;)s[i]=r[e+i];i=-1;for(var l=p(e+1);++i<e;)l[i]=r[i];return l[e]=t(s),Sn(n,this,l)}}function Mo(n,e){return e.length<2?n:Se(n,Mn(e,0,-1))}function xc(n,e){for(var t=n.length,r=pn(e.length,t),i=xn(n);r--;){var a=e[r];n[r]=te(a,t)?i[a]:u}return n}function bi(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var Wo=qo(ro),ft=Ul||function(n,e){return sn.setTimeout(n,e)},yi=qo(kf);function Fo(n,e,t){var r=e+"";return yi(n,fc(r,wc(ac(r),t)))}function qo(n){var e=0,t=0;return function(){var r=ql(),i=Da-(r-t);if(t=r,i>0){if(++e>=Na)return arguments[0]}else e=0;return n.apply(u,arguments)}}function jt(n,e){var t=-1,r=n.length,i=r-1;for(e=e===u?r:e;++t<e;){var a=ii(t,i),s=n[a];n[a]=n[t],n[t]=s}return n.length=e,n}var Bo=gc(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(ss,function(t,r,i,a){e.push(i?a.replace(vs,"$1"):r||t)}),e});function Yn(n){if(typeof n=="string"||En(n))return n;var e=n+"";return e=="0"&&1/n==-_e?"-0":e}function Ae(n){if(n!=null){try{return Ct.call(n)}catch{}try{return n+""}catch{}}return""}function wc(n,e){return In(Ka,function(t){var r="_."+t[0];e&t[1]&&!St(n,r)&&n.push(r)}),n.sort()}function No(n){if(n instanceof U)return n.clone();var e=new On(n.__wrapped__,n.__chain__);return e.__actions__=xn(n.__actions__),e.__index__=n.__index__,e.__values__=n.__values__,e}function bc(n,e,t){(t?_n(n,e,t):e===u)?e=1:e=on(C(e),0);var r=n==null?0:n.length;if(!r||e<1)return[];for(var i=0,a=0,s=p(Wt(r/e));i<r;)s[a++]=Mn(n,i,i+=e);return s}function yc(n){for(var e=-1,t=n==null?0:n.length,r=0,i=[];++e<t;){var a=n[e];a&&(i[r++]=a)}return i}function Sc(){var n=arguments.length;if(!n)return[];for(var e=p(n-1),t=arguments[0],r=n;r--;)e[r-1]=arguments[r];return se(R(t)?xn(t):[t],cn(e,1))}var Lc=P(function(n,e){return Q(n)?it(n,cn(e,1,Q,!0)):[]}),Ac=P(function(n,e){var t=Wn(e);return Q(t)&&(t=u),Q(n)?it(n,cn(e,1,Q,!0),S(t,2)):[]}),Ec=P(function(n,e){var t=Wn(e);return Q(t)&&(t=u),Q(n)?it(n,cn(e,1,Q,!0),u,t):[]});function Rc(n,e,t){var r=n==null?0:n.length;return r?(e=t||e===u?1:C(e),Mn(n,e<0?0:e,r)):[]}function Cc(n,e,t){var r=n==null?0:n.length;return r?(e=t||e===u?1:C(e),e=r-e,Mn(n,0,e<0?0:e)):[]}function Tc(n,e){return n&&n.length?zt(n,S(e,3),!0,!0):[]}function Ic(n,e){return n&&n.length?zt(n,S(e,3),!0):[]}function Pc(n,e,t,r){var i=n==null?0:n.length;return i?(t&&typeof t!="number"&&_n(n,e,t)&&(t=0,r=i),Sf(n,e,t,r)):[]}function Do(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=t==null?0:C(t);return i<0&&(i=on(r+i,0)),Lt(n,S(e,3),i)}function $o(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=r-1;return t!==u&&(i=C(t),i=t<0?on(r+i,0):pn(i,r-1)),Lt(n,S(e,3),i,!0)}function ko(n){var e=n==null?0:n.length;return e?cn(n,1):[]}function Oc(n){var e=n==null?0:n.length;return e?cn(n,_e):[]}function Uc(n,e){var t=n==null?0:n.length;return t?(e=e===u?1:C(e),cn(n,e)):[]}function Mc(n){for(var e=-1,t=n==null?0:n.length,r={};++e<t;){var i=n[e];r[i[0]]=i[1]}return r}function Ho(n){return n&&n.length?n[0]:u}function Wc(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=t==null?0:C(t);return i<0&&(i=on(r+i,0)),Ie(n,e,i)}function Fc(n){var e=n==null?0:n.length;return e?Mn(n,0,-1):[]}var qc=P(function(n){var e=G(n,li);return e.length&&e[0]===n[0]?jr(e):[]}),Bc=P(function(n){var e=Wn(n),t=G(n,li);return e===Wn(t)?e=u:t.pop(),t.length&&t[0]===n[0]?jr(t,S(e,2)):[]}),Nc=P(function(n){var e=Wn(n),t=G(n,li);return e=typeof e=="function"?e:u,e&&t.pop(),t.length&&t[0]===n[0]?jr(t,u,e):[]});function Dc(n,e){return n==null?"":Wl.call(n,e)}function Wn(n){var e=n==null?0:n.length;return e?n[e-1]:u}function $c(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=r;return t!==u&&(i=C(t),i=i<0?on(r+i,0):pn(i,r-1)),e===e?xl(n,e,i):Lt(n,yu,i,!0)}function kc(n,e){return n&&n.length?ju(n,C(e)):u}var Hc=P(Go);function Go(n,e){return n&&n.length&&e&&e.length?ri(n,e):n}function Gc(n,e,t){return n&&n.length&&e&&e.length?ri(n,e,S(t,2)):n}function zc(n,e,t){return n&&n.length&&e&&e.length?ri(n,e,u,t):n}var Kc=ee(function(n,e){var t=n==null?0:n.length,r=Xr(n,e);return to(n,G(e,function(i){return te(i,t)?+i:i}).sort(po)),r});function Yc(n,e){var t=[];if(!(n&&n.length))return t;var r=-1,i=[],a=n.length;for(e=S(e,3);++r<a;){var s=n[r];e(s,r,n)&&(t.push(s),i.push(r))}return to(n,i),t}function Si(n){return n==null?n:Nl.call(n)}function Zc(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&_n(n,e,t)?(e=0,t=r):(e=e==null?0:C(e),t=t===u?r:C(t)),Mn(n,e,t)):[]}function Xc(n,e){return Gt(n,e)}function Jc(n,e,t){return oi(n,e,S(t,2))}function Qc(n,e){var t=n==null?0:n.length;if(t){var r=Gt(n,e);if(r<t&&kn(n[r],e))return r}return-1}function Vc(n,e){return Gt(n,e,!0)}function jc(n,e,t){return oi(n,e,S(t,2),!0)}function np(n,e){var t=n==null?0:n.length;if(t){var r=Gt(n,e,!0)-1;if(kn(n[r],e))return r}return-1}function ep(n){return n&&n.length?io(n):[]}function tp(n,e){return n&&n.length?io(n,S(e,2)):[]}function rp(n){var e=n==null?0:n.length;return e?Mn(n,1,e):[]}function ip(n,e,t){return n&&n.length?(e=t||e===u?1:C(e),Mn(n,0,e<0?0:e)):[]}function up(n,e,t){var r=n==null?0:n.length;return r?(e=t||e===u?1:C(e),e=r-e,Mn(n,e<0?0:e,r)):[]}function op(n,e){return n&&n.length?zt(n,S(e,3),!1,!0):[]}function ap(n,e){return n&&n.length?zt(n,S(e,3)):[]}var sp=P(function(n){return he(cn(n,1,Q,!0))}),lp=P(function(n){var e=Wn(n);return Q(e)&&(e=u),he(cn(n,1,Q,!0),S(e,2))}),fp=P(function(n){var e=Wn(n);return e=typeof e=="function"?e:u,he(cn(n,1,Q,!0),u,e)});function cp(n){return n&&n.length?he(n):[]}function pp(n,e){return n&&n.length?he(n,S(e,2)):[]}function hp(n,e){return e=typeof e=="function"?e:u,n&&n.length?he(n,u,e):[]}function Li(n){if(!(n&&n.length))return[];var e=0;return n=ae(n,function(t){if(Q(t))return e=on(t.length,e),!0}),$r(e,function(t){return G(n,Br(t))})}function zo(n,e){if(!(n&&n.length))return[];var t=Li(n);return e==null?t:G(t,function(r){return Sn(e,u,r)})}var dp=P(function(n,e){return Q(n)?it(n,e):[]}),gp=P(function(n){return si(ae(n,Q))}),vp=P(function(n){var e=Wn(n);return Q(e)&&(e=u),si(ae(n,Q),S(e,2))}),_p=P(function(n){var e=Wn(n);return e=typeof e=="function"?e:u,si(ae(n,Q),u,e)}),mp=P(Li);function xp(n,e){return so(n||[],e||[],rt)}function wp(n,e){return so(n||[],e||[],at)}var bp=P(function(n){var e=n.length,t=e>1?n[e-1]:u;return t=typeof t=="function"?(n.pop(),t):u,zo(n,t)});function Ko(n){var e=o(n);return e.__chain__=!0,e}function yp(n,e){return e(n),n}function nr(n,e){return e(n)}var Sp=ee(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(a){return Xr(a,n)};return e>1||this.__actions__.length||!(r instanceof U)||!te(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:nr,args:[i],thisArg:u}),new On(r,this.__chain__).thru(function(a){return e&&!a.length&&a.push(u),a}))});function Lp(){return Ko(this)}function Ap(){return new On(this.value(),this.__chain__)}function Ep(){this.__values__===u&&(this.__values__=oa(this.value()));var n=this.__index__>=this.__values__.length,e=n?u:this.__values__[this.__index__++];return{done:n,value:e}}function Rp(){return this}function Cp(n){for(var e,t=this;t instanceof Nt;){var r=No(t);r.__index__=0,r.__values__=u,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Tp(){var n=this.__wrapped__;if(n instanceof U){var e=n;return this.__actions__.length&&(e=new U(this)),e=e.reverse(),e.__actions__.push({func:nr,args:[Si],thisArg:u}),new On(e,this.__chain__)}return this.thru(Si)}function Ip(){return ao(this.__wrapped__,this.__actions__)}var Pp=Kt(function(n,e,t){N.call(n,t)?++n[t]:jn(n,t,1)});function Op(n,e,t){var r=R(n)?wu:yf;return t&&_n(n,e,t)&&(e=u),r(n,S(e,3))}function Up(n,e){var t=R(n)?ae:Gu;return t(n,S(e,3))}var Mp=xo(Do),Wp=xo($o);function Fp(n,e){return cn(er(n,e),1)}function qp(n,e){return cn(er(n,e),_e)}function Bp(n,e,t){return t=t===u?1:C(t),cn(er(n,e),t)}function Yo(n,e){var t=R(n)?In:pe;return t(n,S(e,3))}function Zo(n,e){var t=R(n)?tl:Hu;return t(n,S(e,3))}var Np=Kt(function(n,e,t){N.call(n,t)?n[t].push(e):jn(n,t,[e])});function Dp(n,e,t,r){n=wn(n)?n:$e(n),t=t&&!r?C(t):0;var i=n.length;return t<0&&(t=on(i+t,0)),or(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Ie(n,e,t)>-1}var $p=P(function(n,e,t){var r=-1,i=typeof e=="function",a=wn(n)?p(n.length):[];return pe(n,function(s){a[++r]=i?Sn(e,s,t):ut(s,e,t)}),a}),kp=Kt(function(n,e,t){jn(n,t,e)});function er(n,e){var t=R(n)?G:Ju;return t(n,S(e,3))}function Hp(n,e,t,r){return n==null?[]:(R(e)||(e=e==null?[]:[e]),t=r?u:t,R(t)||(t=t==null?[]:[t]),no(n,e,t))}var Gp=Kt(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function zp(n,e,t){var r=R(n)?Fr:Lu,i=arguments.length<3;return r(n,S(e,4),t,i,pe)}function Kp(n,e,t){var r=R(n)?rl:Lu,i=arguments.length<3;return r(n,S(e,4),t,i,Hu)}function Yp(n,e){var t=R(n)?ae:Gu;return t(n,ir(S(e,3)))}function Zp(n){var e=R(n)?Nu:Df;return e(n)}function Xp(n,e,t){(t?_n(n,e,t):e===u)?e=1:e=C(e);var r=R(n)?_f:$f;return r(n,e)}function Jp(n){var e=R(n)?mf:Hf;return e(n)}function Qp(n){if(n==null)return 0;if(wn(n))return or(n)?Oe(n):n.length;var e=hn(n);return e==Bn||e==Nn?n.size:ei(n).length}function Vp(n,e,t){var r=R(n)?qr:Gf;return t&&_n(n,e,t)&&(e=u),r(n,S(e,3))}var jp=P(function(n,e){if(n==null)return[];var t=e.length;return t>1&&_n(n,e[0],e[1])?e=[]:t>2&&_n(e[0],e[1],e[2])&&(e=[e[0]]),no(n,cn(e,1),[])}),tr=Ol||function(){return sn.Date.now()};function nh(n,e){if(typeof e!="function")throw new Pn(x);return n=C(n),function(){if(--n<1)return e.apply(this,arguments)}}function Xo(n,e,t){return e=t?u:e,e=n&&e==null?n.length:e,ne(n,Xn,u,u,u,u,e)}function Jo(n,e){var t;if(typeof e!="function")throw new Pn(x);return n=C(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=u),t}}var Ai=P(function(n,e,t){var r=rn;if(t.length){var i=le(t,Ne(Ai));r|=X}return ne(n,r,e,t,i)}),Qo=P(function(n,e,t){var r=rn|j;if(t.length){var i=le(t,Ne(Qo));r|=X}return ne(e,r,n,t,i)});function Vo(n,e,t){e=t?u:e;var r=ne(n,gn,u,u,u,u,u,e);return r.placeholder=Vo.placeholder,r}function jo(n,e,t){e=t?u:e;var r=ne(n,Zn,u,u,u,u,u,e);return r.placeholder=jo.placeholder,r}function na(n,e,t){var r,i,a,s,l,c,d=0,g=!1,_=!1,w=!0;if(typeof n!="function")throw new Pn(x);e=Fn(e)||0,z(t)&&(g=!!t.leading,_="maxWait"in t,a=_?on(Fn(t.maxWait)||0,e):a,w="trailing"in t?!!t.trailing:w);function y(V){var Hn=r,ue=i;return r=i=u,d=V,s=n.apply(ue,Hn),s}function L(V){return d=V,l=ft(O,e),g?y(V):s}function I(V){var Hn=V-c,ue=V-d,xa=e-Hn;return _?pn(xa,a-ue):xa}function A(V){var Hn=V-c,ue=V-d;return c===u||Hn>=e||Hn<0||_&&ue>=a}function O(){var V=tr();if(A(V))return M(V);l=ft(O,I(V))}function M(V){return l=u,w&&r?y(V):(r=i=u,s)}function Rn(){l!==u&&lo(l),d=0,r=c=i=l=u}function mn(){return l===u?s:M(tr())}function Cn(){var V=tr(),Hn=A(V);if(r=arguments,i=this,c=V,Hn){if(l===u)return L(c);if(_)return lo(l),l=ft(O,e),y(c)}return l===u&&(l=ft(O,e)),s}return Cn.cancel=Rn,Cn.flush=mn,Cn}var eh=P(function(n,e){return ku(n,1,e)}),th=P(function(n,e,t){return ku(n,Fn(e)||0,t)});function rh(n){return ne(n,vr)}function rr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Pn(x);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=t.cache;if(a.has(i))return a.get(i);var s=n.apply(this,r);return t.cache=a.set(i,s)||a,s};return t.cache=new(rr.Cache||Vn),t}rr.Cache=Vn;function ir(n){if(typeof n!="function")throw new Pn(x);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function ih(n){return Jo(2,n)}var uh=zf(function(n,e){e=e.length==1&&R(e[0])?G(e[0],Ln(S())):G(cn(e,1),Ln(S()));var t=e.length;return P(function(r){for(var i=-1,a=pn(r.length,t);++i<a;)r[i]=e[i].call(this,r[i]);return Sn(n,this,r)})}),Ei=P(function(n,e){var t=le(e,Ne(Ei));return ne(n,X,u,e,t)}),ea=P(function(n,e){var t=le(e,Ne(ea));return ne(n,J,u,e,t)}),oh=ee(function(n,e){return ne(n,He,u,u,u,e)});function ah(n,e){if(typeof n!="function")throw new Pn(x);return e=e===u?e:C(e),P(n,e)}function sh(n,e){if(typeof n!="function")throw new Pn(x);return e=e==null?0:on(C(e),0),P(function(t){var r=t[e],i=ge(t,0,e);return r&&se(i,r),Sn(n,this,i)})}function lh(n,e,t){var r=!0,i=!0;if(typeof n!="function")throw new Pn(x);return z(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),na(n,e,{leading:r,maxWait:e,trailing:i})}function fh(n){return Xo(n,1)}function ch(n,e){return Ei(fi(e),n)}function ph(){if(!arguments.length)return[];var n=arguments[0];return R(n)?n:[n]}function hh(n){return Un(n,D)}function dh(n,e){return e=typeof e=="function"?e:u,Un(n,D,e)}function gh(n){return Un(n,W|D)}function vh(n,e){return e=typeof e=="function"?e:u,Un(n,W|D,e)}function _h(n,e){return e==null||$u(n,e,ln(e))}function kn(n,e){return n===e||n!==n&&e!==e}var mh=Jt(Vr),xh=Jt(function(n,e){return n>=e}),Ee=Yu(function(){return arguments}())?Yu:function(n){return Y(n)&&N.call(n,"callee")&&!Uu.call(n,"callee")},R=p.isArray,wh=du?Ln(du):Cf;function wn(n){return n!=null&&ur(n.length)&&!re(n)}function Q(n){return Y(n)&&wn(n)}function bh(n){return n===!0||n===!1||Y(n)&&vn(n)==Ge}var ve=Ml||qi,yh=gu?Ln(gu):Tf;function Sh(n){return Y(n)&&n.nodeType===1&&!ct(n)}function Lh(n){if(n==null)return!0;if(wn(n)&&(R(n)||typeof n=="string"||typeof n.splice=="function"||ve(n)||De(n)||Ee(n)))return!n.length;var e=hn(n);if(e==Bn||e==Nn)return!n.size;if(lt(n))return!ei(n).length;for(var t in n)if(N.call(n,t))return!1;return!0}function Ah(n,e){return ot(n,e)}function Eh(n,e,t){t=typeof t=="function"?t:u;var r=t?t(n,e):u;return r===u?ot(n,e,u,t):!!r}function Ri(n){if(!Y(n))return!1;var e=vn(n);return e==_t||e==Za||typeof n.message=="string"&&typeof n.name=="string"&&!ct(n)}function Rh(n){return typeof n=="number"&&Wu(n)}function re(n){if(!z(n))return!1;var e=vn(n);return e==mt||e==ki||e==Ya||e==Ja}function ta(n){return typeof n=="number"&&n==C(n)}function ur(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=oe}function z(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function Y(n){return n!=null&&typeof n=="object"}var ra=vu?Ln(vu):Pf;function Ch(n,e){return n===e||ni(n,e,_i(e))}function Th(n,e,t){return t=typeof t=="function"?t:u,ni(n,e,_i(e),t)}function Ih(n){return ia(n)&&n!=+n}function Ph(n){if(dc(n))throw new E(q);return Zu(n)}function Oh(n){return n===null}function Uh(n){return n==null}function ia(n){return typeof n=="number"||Y(n)&&vn(n)==Ke}function ct(n){if(!Y(n)||vn(n)!=Jn)return!1;var e=Ot(n);if(e===null)return!0;var t=N.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Ct.call(t)==Cl}var Ci=_u?Ln(_u):Of;function Mh(n){return ta(n)&&n>=-oe&&n<=oe}var ua=mu?Ln(mu):Uf;function or(n){return typeof n=="string"||!R(n)&&Y(n)&&vn(n)==Ze}function En(n){return typeof n=="symbol"||Y(n)&&vn(n)==xt}var De=xu?Ln(xu):Mf;function Wh(n){return n===u}function Fh(n){return Y(n)&&hn(n)==Xe}function qh(n){return Y(n)&&vn(n)==Va}var Bh=Jt(ti),Nh=Jt(function(n,e){return n<=e});function oa(n){if(!n)return[];if(wn(n))return or(n)?Dn(n):xn(n);if(Ve&&n[Ve])return vl(n[Ve]());var e=hn(n),t=e==Bn?Hr:e==Nn?At:$e;return t(n)}function ie(n){if(!n)return n===0?n:0;if(n=Fn(n),n===_e||n===-_e){var e=n<0?-1:1;return e*Ha}return n===n?n:0}function C(n){var e=ie(n),t=e%1;return e===e?t?e-t:e:0}function aa(n){return n?ye(C(n),0,Gn):0}function Fn(n){if(typeof n=="number")return n;if(En(n))return gt;if(z(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=z(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Au(n);var t=xs.test(n);return t||bs.test(n)?js(n.slice(2),t?2:8):ms.test(n)?gt:+n}function sa(n){return Kn(n,bn(n))}function Dh(n){return n?ye(C(n),-oe,oe):n===0?n:0}function B(n){return n==null?"":An(n)}var $h=qe(function(n,e){if(lt(e)||wn(e)){Kn(e,ln(e),n);return}for(var t in e)N.call(e,t)&&rt(n,t,e[t])}),la=qe(function(n,e){Kn(e,bn(e),n)}),ar=qe(function(n,e,t,r){Kn(e,bn(e),n,r)}),kh=qe(function(n,e,t,r){Kn(e,ln(e),n,r)}),Hh=ee(Xr);function Gh(n,e){var t=Fe(n);return e==null?t:Du(t,e)}var zh=P(function(n,e){n=$(n);var t=-1,r=e.length,i=r>2?e[2]:u;for(i&&_n(e[0],e[1],i)&&(r=1);++t<r;)for(var a=e[t],s=bn(a),l=-1,c=s.length;++l<c;){var d=s[l],g=n[d];(g===u||kn(g,Ue[d])&&!N.call(n,d))&&(n[d]=a[d])}return n}),Kh=P(function(n){return n.push(u,Eo),Sn(fa,u,n)});function Yh(n,e){return bu(n,S(e,3),zn)}function Zh(n,e){return bu(n,S(e,3),Qr)}function Xh(n,e){return n==null?n:Jr(n,S(e,3),bn)}function Jh(n,e){return n==null?n:zu(n,S(e,3),bn)}function Qh(n,e){return n&&zn(n,S(e,3))}function Vh(n,e){return n&&Qr(n,S(e,3))}function jh(n){return n==null?[]:kt(n,ln(n))}function nd(n){return n==null?[]:kt(n,bn(n))}function Ti(n,e,t){var r=n==null?u:Se(n,e);return r===u?t:r}function ed(n,e){return n!=null&&To(n,e,Lf)}function Ii(n,e){return n!=null&&To(n,e,Af)}var td=bo(function(n,e,t){e!=null&&typeof e.toString!="function"&&(e=Tt.call(e)),n[e]=t},Oi(yn)),rd=bo(function(n,e,t){e!=null&&typeof e.toString!="function"&&(e=Tt.call(e)),N.call(n,e)?n[e].push(t):n[e]=[t]},S),id=P(ut);function ln(n){return wn(n)?Bu(n):ei(n)}function bn(n){return wn(n)?Bu(n,!0):Wf(n)}function ud(n,e){var t={};return e=S(e,3),zn(n,function(r,i,a){jn(t,e(r,i,a),r)}),t}function od(n,e){var t={};return e=S(e,3),zn(n,function(r,i,a){jn(t,i,e(r,i,a))}),t}var ad=qe(function(n,e,t){Ht(n,e,t)}),fa=qe(function(n,e,t,r){Ht(n,e,t,r)}),sd=ee(function(n,e){var t={};if(n==null)return t;var r=!1;e=G(e,function(a){return a=de(a,n),r||(r=a.length>1),a}),Kn(n,gi(n),t),r&&(t=Un(t,W|Z|D,tc));for(var i=e.length;i--;)ai(t,e[i]);return t});function ld(n,e){return ca(n,ir(S(e)))}var fd=ee(function(n,e){return n==null?{}:qf(n,e)});function ca(n,e){if(n==null)return{};var t=G(gi(n),function(r){return[r]});return e=S(e),eo(n,t,function(r,i){return e(r,i[0])})}function cd(n,e,t){e=de(e,n);var r=-1,i=e.length;for(i||(i=1,n=u);++r<i;){var a=n==null?u:n[Yn(e[r])];a===u&&(r=i,a=t),n=re(a)?a.call(n):a}return n}function pd(n,e,t){return n==null?n:at(n,e,t)}function hd(n,e,t,r){return r=typeof r=="function"?r:u,n==null?n:at(n,e,t,r)}var pa=Lo(ln),ha=Lo(bn);function dd(n,e,t){var r=R(n),i=r||ve(n)||De(n);if(e=S(e,4),t==null){var a=n&&n.constructor;i?t=r?new a:[]:z(n)?t=re(a)?Fe(Ot(n)):{}:t={}}return(i?In:zn)(n,function(s,l,c){return e(t,s,l,c)}),t}function gd(n,e){return n==null?!0:ai(n,e)}function vd(n,e,t){return n==null?n:oo(n,e,fi(t))}function _d(n,e,t,r){return r=typeof r=="function"?r:u,n==null?n:oo(n,e,fi(t),r)}function $e(n){return n==null?[]:kr(n,ln(n))}function md(n){return n==null?[]:kr(n,bn(n))}function xd(n,e,t){return t===u&&(t=e,e=u),t!==u&&(t=Fn(t),t=t===t?t:0),e!==u&&(e=Fn(e),e=e===e?e:0),ye(Fn(n),e,t)}function wd(n,e,t){return e=ie(e),t===u?(t=e,e=0):t=ie(t),n=Fn(n),Ef(n,e,t)}function bd(n,e,t){if(t&&typeof t!="boolean"&&_n(n,e,t)&&(e=t=u),t===u&&(typeof e=="boolean"?(t=e,e=u):typeof n=="boolean"&&(t=n,n=u)),n===u&&e===u?(n=0,e=1):(n=ie(n),e===u?(e=n,n=0):e=ie(e)),n>e){var r=n;n=e,e=r}if(t||n%1||e%1){var i=Fu();return pn(n+i*(e-n+Vs("1e-"+((i+"").length-1))),e)}return ii(n,e)}var yd=Be(function(n,e,t){return e=e.toLowerCase(),n+(t?da(e):e)});function da(n){return Pi(B(n).toLowerCase())}function ga(n){return n=B(n),n&&n.replace(Ss,cl).replace(ks,"")}function Sd(n,e,t){n=B(n),e=An(e);var r=n.length;t=t===u?r:ye(C(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function Ld(n){return n=B(n),n&&rs.test(n)?n.replace(zi,pl):n}function Ad(n){return n=B(n),n&&ls.test(n)?n.replace(Er,"\\$&"):n}var Ed=Be(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Rd=Be(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),Cd=mo("toLowerCase");function Td(n,e,t){n=B(n),e=C(e);var r=e?Oe(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return Xt(Ft(i),t)+n+Xt(Wt(i),t)}function Id(n,e,t){n=B(n),e=C(e);var r=e?Oe(n):0;return e&&r<e?n+Xt(e-r,t):n}function Pd(n,e,t){n=B(n),e=C(e);var r=e?Oe(n):0;return e&&r<e?Xt(e-r,t)+n:n}function Od(n,e,t){return t||e==null?e=0:e&&(e=+e),Bl(B(n).replace(Rr,""),e||0)}function Ud(n,e,t){return(t?_n(n,e,t):e===u)?e=1:e=C(e),ui(B(n),e)}function Md(){var n=arguments,e=B(n[0]);return n.length<3?e:e.replace(n[1],n[2])}var Wd=Be(function(n,e,t){return n+(t?"_":"")+e.toLowerCase()});function Fd(n,e,t){return t&&typeof t!="number"&&_n(n,e,t)&&(e=t=u),t=t===u?Gn:t>>>0,t?(n=B(n),n&&(typeof e=="string"||e!=null&&!Ci(e))&&(e=An(e),!e&&Pe(n))?ge(Dn(n),0,t):n.split(e,t)):[]}var qd=Be(function(n,e,t){return n+(t?" ":"")+Pi(e)});function Bd(n,e,t){return n=B(n),t=t==null?0:ye(C(t),0,n.length),e=An(e),n.slice(t,t+e.length)==e}function Nd(n,e,t){var r=o.templateSettings;t&&_n(n,e,t)&&(e=u),n=B(n),e=ar({},e,r,Ao);var i=ar({},e.imports,r.imports,Ao),a=ln(i),s=kr(i,a),l,c,d=0,g=e.interpolate||wt,_="__p += '",w=Gr((e.escape||wt).source+"|"+g.source+"|"+(g===Ki?_s:wt).source+"|"+(e.evaluate||wt).source+"|$","g"),y="//# sourceURL="+(N.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ys+"]")+`
`;n.replace(w,function(A,O,M,Rn,mn,Cn){return M||(M=Rn),_+=n.slice(d,Cn).replace(Ls,hl),O&&(l=!0,_+=`' +
__e(`+O+`) +
'`),mn&&(c=!0,_+=`';
`+mn+`;
__p += '`),M&&(_+=`' +
((__t = (`+M+`)) == null ? '' : __t) +
'`),d=Cn+A.length,A}),_+=`';
`;var L=N.call(e,"variable")&&e.variable;if(!L)_=`with (obj) {
`+_+`
}
`;else if(gs.test(L))throw new E(T);_=(c?_.replace(ja,""):_).replace(ns,"$1").replace(es,"$1;"),_="function("+(L||"obj")+`) {
`+(L?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+_+`return __p
}`;var I=_a(function(){return F(a,y+"return "+_).apply(u,s)});if(I.source=_,Ri(I))throw I;return I}function Dd(n){return B(n).toLowerCase()}function $d(n){return B(n).toUpperCase()}function kd(n,e,t){if(n=B(n),n&&(t||e===u))return Au(n);if(!n||!(e=An(e)))return n;var r=Dn(n),i=Dn(e),a=Eu(r,i),s=Ru(r,i)+1;return ge(r,a,s).join("")}function Hd(n,e,t){if(n=B(n),n&&(t||e===u))return n.slice(0,Tu(n)+1);if(!n||!(e=An(e)))return n;var r=Dn(n),i=Ru(r,Dn(e))+1;return ge(r,0,i).join("")}function Gd(n,e,t){if(n=B(n),n&&(t||e===u))return n.replace(Rr,"");if(!n||!(e=An(e)))return n;var r=Dn(n),i=Eu(r,Dn(e));return ge(r,i).join("")}function zd(n,e){var t=qa,r=Ba;if(z(e)){var i="separator"in e?e.separator:i;t="length"in e?C(e.length):t,r="omission"in e?An(e.omission):r}n=B(n);var a=n.length;if(Pe(n)){var s=Dn(n);a=s.length}if(t>=a)return n;var l=t-Oe(r);if(l<1)return r;var c=s?ge(s,0,l).join(""):n.slice(0,l);if(i===u)return c+r;if(s&&(l+=c.length-l),Ci(i)){if(n.slice(l).search(i)){var d,g=c;for(i.global||(i=Gr(i.source,B(Yi.exec(i))+"g")),i.lastIndex=0;d=i.exec(g);)var _=d.index;c=c.slice(0,_===u?l:_)}}else if(n.indexOf(An(i),l)!=l){var w=c.lastIndexOf(i);w>-1&&(c=c.slice(0,w))}return c+r}function Kd(n){return n=B(n),n&&ts.test(n)?n.replace(Gi,wl):n}var Yd=Be(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Pi=mo("toUpperCase");function va(n,e,t){return n=B(n),e=t?u:e,e===u?gl(n)?Sl(n):ol(n):n.match(e)||[]}var _a=P(function(n,e){try{return Sn(n,u,e)}catch(t){return Ri(t)?t:new E(t)}}),Zd=ee(function(n,e){return In(e,function(t){t=Yn(t),jn(n,t,Ai(n[t],n))}),n});function Xd(n){var e=n==null?0:n.length,t=S();return n=e?G(n,function(r){if(typeof r[1]!="function")throw new Pn(x);return[t(r[0]),r[1]]}):[],P(function(r){for(var i=-1;++i<e;){var a=n[i];if(Sn(a[0],this,r))return Sn(a[1],this,r)}})}function Jd(n){return bf(Un(n,W))}function Oi(n){return function(){return n}}function Qd(n,e){return n==null||n!==n?e:n}var Vd=wo(),jd=wo(!0);function yn(n){return n}function Ui(n){return Xu(typeof n=="function"?n:Un(n,W))}function ng(n){return Qu(Un(n,W))}function eg(n,e){return Vu(n,Un(e,W))}var tg=P(function(n,e){return function(t){return ut(t,n,e)}}),rg=P(function(n,e){return function(t){return ut(n,t,e)}});function Mi(n,e,t){var r=ln(e),i=kt(e,r);t==null&&!(z(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=kt(e,ln(e)));var a=!(z(t)&&"chain"in t)||!!t.chain,s=re(n);return In(i,function(l){var c=e[l];n[l]=c,s&&(n.prototype[l]=function(){var d=this.__chain__;if(a||d){var g=n(this.__wrapped__),_=g.__actions__=xn(this.__actions__);return _.push({func:c,args:arguments,thisArg:n}),g.__chain__=d,g}return c.apply(n,se([this.value()],arguments))})}),n}function ig(){return sn._===this&&(sn._=Tl),this}function Wi(){}function ug(n){return n=C(n),P(function(e){return ju(e,n)})}var og=pi(G),ag=pi(wu),sg=pi(qr);function ma(n){return xi(n)?Br(Yn(n)):Bf(n)}function lg(n){return function(e){return n==null?u:Se(n,e)}}var fg=yo(),cg=yo(!0);function Fi(){return[]}function qi(){return!1}function pg(){return{}}function hg(){return""}function dg(){return!0}function gg(n,e){if(n=C(n),n<1||n>oe)return[];var t=Gn,r=pn(n,Gn);e=S(e),n-=Gn;for(var i=$r(r,e);++t<n;)e(t);return i}function vg(n){return R(n)?G(n,Yn):En(n)?[n]:xn(Bo(B(n)))}function _g(n){var e=++Rl;return B(n)+e}var mg=Zt(function(n,e){return n+e},0),xg=hi("ceil"),wg=Zt(function(n,e){return n/e},1),bg=hi("floor");function yg(n){return n&&n.length?$t(n,yn,Vr):u}function Sg(n,e){return n&&n.length?$t(n,S(e,2),Vr):u}function Lg(n){return Su(n,yn)}function Ag(n,e){return Su(n,S(e,2))}function Eg(n){return n&&n.length?$t(n,yn,ti):u}function Rg(n,e){return n&&n.length?$t(n,S(e,2),ti):u}var Cg=Zt(function(n,e){return n*e},1),Tg=hi("round"),Ig=Zt(function(n,e){return n-e},0);function Pg(n){return n&&n.length?Dr(n,yn):0}function Og(n,e){return n&&n.length?Dr(n,S(e,2)):0}return o.after=nh,o.ary=Xo,o.assign=$h,o.assignIn=la,o.assignInWith=ar,o.assignWith=kh,o.at=Hh,o.before=Jo,o.bind=Ai,o.bindAll=Zd,o.bindKey=Qo,o.castArray=ph,o.chain=Ko,o.chunk=bc,o.compact=yc,o.concat=Sc,o.cond=Xd,o.conforms=Jd,o.constant=Oi,o.countBy=Pp,o.create=Gh,o.curry=Vo,o.curryRight=jo,o.debounce=na,o.defaults=zh,o.defaultsDeep=Kh,o.defer=eh,o.delay=th,o.difference=Lc,o.differenceBy=Ac,o.differenceWith=Ec,o.drop=Rc,o.dropRight=Cc,o.dropRightWhile=Tc,o.dropWhile=Ic,o.fill=Pc,o.filter=Up,o.flatMap=Fp,o.flatMapDeep=qp,o.flatMapDepth=Bp,o.flatten=ko,o.flattenDeep=Oc,o.flattenDepth=Uc,o.flip=rh,o.flow=Vd,o.flowRight=jd,o.fromPairs=Mc,o.functions=jh,o.functionsIn=nd,o.groupBy=Np,o.initial=Fc,o.intersection=qc,o.intersectionBy=Bc,o.intersectionWith=Nc,o.invert=td,o.invertBy=rd,o.invokeMap=$p,o.iteratee=Ui,o.keyBy=kp,o.keys=ln,o.keysIn=bn,o.map=er,o.mapKeys=ud,o.mapValues=od,o.matches=ng,o.matchesProperty=eg,o.memoize=rr,o.merge=ad,o.mergeWith=fa,o.method=tg,o.methodOf=rg,o.mixin=Mi,o.negate=ir,o.nthArg=ug,o.omit=sd,o.omitBy=ld,o.once=ih,o.orderBy=Hp,o.over=og,o.overArgs=uh,o.overEvery=ag,o.overSome=sg,o.partial=Ei,o.partialRight=ea,o.partition=Gp,o.pick=fd,o.pickBy=ca,o.property=ma,o.propertyOf=lg,o.pull=Hc,o.pullAll=Go,o.pullAllBy=Gc,o.pullAllWith=zc,o.pullAt=Kc,o.range=fg,o.rangeRight=cg,o.rearg=oh,o.reject=Yp,o.remove=Yc,o.rest=ah,o.reverse=Si,o.sampleSize=Xp,o.set=pd,o.setWith=hd,o.shuffle=Jp,o.slice=Zc,o.sortBy=jp,o.sortedUniq=ep,o.sortedUniqBy=tp,o.split=Fd,o.spread=sh,o.tail=rp,o.take=ip,o.takeRight=up,o.takeRightWhile=op,o.takeWhile=ap,o.tap=yp,o.throttle=lh,o.thru=nr,o.toArray=oa,o.toPairs=pa,o.toPairsIn=ha,o.toPath=vg,o.toPlainObject=sa,o.transform=dd,o.unary=fh,o.union=sp,o.unionBy=lp,o.unionWith=fp,o.uniq=cp,o.uniqBy=pp,o.uniqWith=hp,o.unset=gd,o.unzip=Li,o.unzipWith=zo,o.update=vd,o.updateWith=_d,o.values=$e,o.valuesIn=md,o.without=dp,o.words=va,o.wrap=ch,o.xor=gp,o.xorBy=vp,o.xorWith=_p,o.zip=mp,o.zipObject=xp,o.zipObjectDeep=wp,o.zipWith=bp,o.entries=pa,o.entriesIn=ha,o.extend=la,o.extendWith=ar,Mi(o,o),o.add=mg,o.attempt=_a,o.camelCase=yd,o.capitalize=da,o.ceil=xg,o.clamp=xd,o.clone=hh,o.cloneDeep=gh,o.cloneDeepWith=vh,o.cloneWith=dh,o.conformsTo=_h,o.deburr=ga,o.defaultTo=Qd,o.divide=wg,o.endsWith=Sd,o.eq=kn,o.escape=Ld,o.escapeRegExp=Ad,o.every=Op,o.find=Mp,o.findIndex=Do,o.findKey=Yh,o.findLast=Wp,o.findLastIndex=$o,o.findLastKey=Zh,o.floor=bg,o.forEach=Yo,o.forEachRight=Zo,o.forIn=Xh,o.forInRight=Jh,o.forOwn=Qh,o.forOwnRight=Vh,o.get=Ti,o.gt=mh,o.gte=xh,o.has=ed,o.hasIn=Ii,o.head=Ho,o.identity=yn,o.includes=Dp,o.indexOf=Wc,o.inRange=wd,o.invoke=id,o.isArguments=Ee,o.isArray=R,o.isArrayBuffer=wh,o.isArrayLike=wn,o.isArrayLikeObject=Q,o.isBoolean=bh,o.isBuffer=ve,o.isDate=yh,o.isElement=Sh,o.isEmpty=Lh,o.isEqual=Ah,o.isEqualWith=Eh,o.isError=Ri,o.isFinite=Rh,o.isFunction=re,o.isInteger=ta,o.isLength=ur,o.isMap=ra,o.isMatch=Ch,o.isMatchWith=Th,o.isNaN=Ih,o.isNative=Ph,o.isNil=Uh,o.isNull=Oh,o.isNumber=ia,o.isObject=z,o.isObjectLike=Y,o.isPlainObject=ct,o.isRegExp=Ci,o.isSafeInteger=Mh,o.isSet=ua,o.isString=or,o.isSymbol=En,o.isTypedArray=De,o.isUndefined=Wh,o.isWeakMap=Fh,o.isWeakSet=qh,o.join=Dc,o.kebabCase=Ed,o.last=Wn,o.lastIndexOf=$c,o.lowerCase=Rd,o.lowerFirst=Cd,o.lt=Bh,o.lte=Nh,o.max=yg,o.maxBy=Sg,o.mean=Lg,o.meanBy=Ag,o.min=Eg,o.minBy=Rg,o.stubArray=Fi,o.stubFalse=qi,o.stubObject=pg,o.stubString=hg,o.stubTrue=dg,o.multiply=Cg,o.nth=kc,o.noConflict=ig,o.noop=Wi,o.now=tr,o.pad=Td,o.padEnd=Id,o.padStart=Pd,o.parseInt=Od,o.random=bd,o.reduce=zp,o.reduceRight=Kp,o.repeat=Ud,o.replace=Md,o.result=cd,o.round=Tg,o.runInContext=f,o.sample=Zp,o.size=Qp,o.snakeCase=Wd,o.some=Vp,o.sortedIndex=Xc,o.sortedIndexBy=Jc,o.sortedIndexOf=Qc,o.sortedLastIndex=Vc,o.sortedLastIndexBy=jc,o.sortedLastIndexOf=np,o.startCase=qd,o.startsWith=Bd,o.subtract=Ig,o.sum=Pg,o.sumBy=Og,o.template=Nd,o.times=gg,o.toFinite=ie,o.toInteger=C,o.toLength=aa,o.toLower=Dd,o.toNumber=Fn,o.toSafeInteger=Dh,o.toString=B,o.toUpper=$d,o.trim=kd,o.trimEnd=Hd,o.trimStart=Gd,o.truncate=zd,o.unescape=Kd,o.uniqueId=_g,o.upperCase=Yd,o.upperFirst=Pi,o.each=Yo,o.eachRight=Zo,o.first=Ho,Mi(o,function(){var n={};return zn(o,function(e,t){N.call(o.prototype,t)||(n[t]=e)}),n}(),{chain:!1}),o.VERSION=v,In(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){o[n].placeholder=o}),In(["drop","take"],function(n,e){U.prototype[n]=function(t){t=t===u?1:on(C(t),0);var r=this.__filtered__&&!e?new U(this):this.clone();return r.__filtered__?r.__takeCount__=pn(t,r.__takeCount__):r.__views__.push({size:pn(t,Gn),type:n+(r.__dir__<0?"Right":"")}),r},U.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),In(["filter","map","takeWhile"],function(n,e){var t=e+1,r=t==$i||t==ka;U.prototype[n]=function(i){var a=this.clone();return a.__iteratees__.push({iteratee:S(i,3),type:t}),a.__filtered__=a.__filtered__||r,a}}),In(["head","last"],function(n,e){var t="take"+(e?"Right":"");U.prototype[n]=function(){return this[t](1).value()[0]}}),In(["initial","tail"],function(n,e){var t="drop"+(e?"":"Right");U.prototype[n]=function(){return this.__filtered__?new U(this):this[t](1)}}),U.prototype.compact=function(){return this.filter(yn)},U.prototype.find=function(n){return this.filter(n).head()},U.prototype.findLast=function(n){return this.reverse().find(n)},U.prototype.invokeMap=P(function(n,e){return typeof n=="function"?new U(this):this.map(function(t){return ut(t,n,e)})}),U.prototype.reject=function(n){return this.filter(ir(S(n)))},U.prototype.slice=function(n,e){n=C(n);var t=this;return t.__filtered__&&(n>0||e<0)?new U(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==u&&(e=C(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},U.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},U.prototype.toArray=function(){return this.take(Gn)},zn(U.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=o[r?"take"+(e=="last"?"Right":""):e],a=r||/^find/.test(e);i&&(o.prototype[e]=function(){var s=this.__wrapped__,l=r?[1]:arguments,c=s instanceof U,d=l[0],g=c||R(s),_=function(O){var M=i.apply(o,se([O],l));return r&&w?M[0]:M};g&&t&&typeof d=="function"&&d.length!=1&&(c=g=!1);var w=this.__chain__,y=!!this.__actions__.length,L=a&&!w,I=c&&!y;if(!a&&g){s=I?s:new U(this);var A=n.apply(s,l);return A.__actions__.push({func:nr,args:[_],thisArg:u}),new On(A,w)}return L&&I?n.apply(this,l):(A=this.thru(_),L?r?A.value()[0]:A.value():A)})}),In(["pop","push","shift","sort","splice","unshift"],function(n){var e=Et[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);o.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var a=this.value();return e.apply(R(a)?a:[],i)}return this[t](function(s){return e.apply(R(s)?s:[],i)})}}),zn(U.prototype,function(n,e){var t=o[e];if(t){var r=t.name+"";N.call(We,r)||(We[r]=[]),We[r].push({name:e,func:t})}}),We[Yt(u,j).name]=[{name:"wrapper",func:u}],U.prototype.clone=zl,U.prototype.reverse=Kl,U.prototype.value=Yl,o.prototype.at=Sp,o.prototype.chain=Lp,o.prototype.commit=Ap,o.prototype.next=Ep,o.prototype.plant=Cp,o.prototype.reverse=Tp,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=Ip,o.prototype.first=o.prototype.head,Ve&&(o.prototype[Ve]=Rp),o},fe=Ll();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(sn._=fe,define(function(){return fe})):me?((me.exports=fe)._=fe,Ur._=fe):sn._=fe}).call(ke)});var N0=sr(ht());var Ra=sr(ht());var Dg=`.r34u--post-list-content {
  display: flex;
  gap: 8px;
  padding: 0 8px;
  padding-bottom: 8px;
  width: 100%;
}
.r34u--post-list-content .r34u--post-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 4px;
  width: 100%;
}
.r34u--post-list-content .r34u--post-list > .posts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px;
}
.r34u--post-list-content .r34u--post-list > .posts .post-item {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  width: fit-content;
}
.r34u--post-list-content .r34u--post-list > .posts .post-item > .preview-container {
  background-color: rgba(255, 255, 255, 0.1);
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  contain: content;
  border-radius: 4px;
}
.r34u--post-list-content .r34u--post-list > .posts .post-item > .preview-container > .video-indicator {
  display: flex;
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 24px;
  color: whitesmoke;
}
.r34u--post-list-content .r34u--post-list > .posts .post-item > .preview-container img,
.r34u--post-list-content .r34u--post-list > .posts .post-item > .preview-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.r34u--post-list-content .r34u--post-list > .posts .post-item > .tags {
  display: flex;
  flex-wrap: wrap;
  padding: 8px;
  gap: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  width: 200px;
  contain: content;
  overflow-y: auto;
  overflow-x: hidden;
  height: 56px;
}
.r34u--post-list-content .r34u--post-list > .posts .post-item > .tags .tag {
  text-decoration: none;
  color: whitesmoke;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.r34u--post-list-content .r34u--post-list > .posts .post-item > .tags .tag .count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.r34u--post-list-content .r34u--post-list > .posts .post-item > .tags .tag:hover {
  background-color: rgba(255, 255, 255, 0.5);
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Dg));var $g=new DOMParser;function Bi(u){return $g.parseFromString(u,"text/html")}function fn(u){let v=document.createElement("div");return v.innerHTML=u,v.firstElementChild}function lr(u){return new Option(u).innerHTML}function fr(u){return u.replace(/(?:^|\s)\S/g,v=>v.toUpperCase())}function cr(u){return fr(u.replace(/_/g," "))}async function ba(u){return(await fetch(`https://ac.rule34.xxx/autocomplete.php?q=${encodeURIComponent(u.trim().toLowerCase())}`).then(m=>m.json())).map(m=>({name:m.value,count:parseInt(m.label.split(" ")[1].slice(1,-1)),type:m.type}))}function Ni(u,v){return u.replace(new RegExp(`(${v.split(" ").map(m=>m.replace(/^-/,"")).join("|")})`,"gi"),"<mark>$1</mark>")}function dt(u){return u<1e3?u:u<1e6?`${(u/1e3).toFixed(2)}k`:u<1e9?`${(u/1e6).toFixed(2)}m`:`${(u/1e9).toFixed(2)}b`}var nn=new URL(location.href);function ya(u,v){let m=new URLSearchParams(location.hash.slice(1));v?m.set(u,v):m.delete(u),location.hash=m.toString(),nn.hash=location.hash,history.replaceState(null,"",nn.href)}function Sa(u){return new URLSearchParams(location.hash.slice(1)).get(u)}var pr=u=>{if(u)return parseInt(new URL(u).searchParams.get("pid"))};function hr(u){return[...u.querySelectorAll('[class*="tag-type-"]')].map(kg)}function kg(u){return{type:u.className.split(" ")[0].slice(9),count:parseInt(u.querySelector(".tag-count").textContent),name:u.querySelector('a[href^="index.php?page=post"]').textContent.trim().replace(/ /g,"_")}}function Hg(u,v=[]){let m=u.querySelector("img"),q=u.querySelector("a").href,x=m.alt.trim().split(" "),T=`${m.alt} `,en=T.includes("video "),dn=T.includes("animated "),tn=null,W=null;return{id:parseInt(u.id.slice(1)),url:q,thumbnail_img:m.src,is_video:en,is_animation:dn,tags:x.map(Z=>v.find(D=>D.name===Z)||{type:"general",count:0,name:Z}),async fetchVideoURL(){if(!en||tn==="NotFound")return null;if(tn)return tn;let Z=await fetch(q).then(K=>K.text()),D=Bi(Z);return D.querySelector("#content source")?tn=D.querySelector("#content source").src:tn="NotFound",tn==="NotFound"?null:tn},async fetchAnimationURL(){if(!dn||W==="NotFound")return null;if(W)return W;let Z=await fetch(q).then(K=>K.text()),D=Bi(Z);return D.querySelector("#fit-to-screen img[alt]")?W=D.querySelector("#fit-to-screen img[alt]").src:W="NotFound",W==="NotFound"?null:W}}}function La(u){let v=u.querySelector("#tag-sidebar")?hr(u.querySelector("#tag-sidebar")):[];return{tags:v,posts:[...u.querySelectorAll(".thumb")].map(m=>Hg(m,v)),pagination:Gg(u.querySelector("#paginator"))}}function Gg(u){if(!document.querySelector('a[href^="?page="]'))return null;let v=parseInt(u.querySelector("b")?.textContent||1),m=u.querySelector('a[alt="next"]');return{current_page:{number:v,pid:nn.searchParams.get("pid")?parseInt(nn.searchParams.get("pid")):0},next_page:m?{number:v+1,pid:m?pr(m.href):0}:null}}var Aa=sr(ht());var zg=`.r34u--sidebar {
  width: 200px;
  min-width: 200px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r34u--sidebar > .search-container {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 4px;
}
.r34u--sidebar > .search-container > .search-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 8px;
}
.r34u--sidebar > .search-container > .search-bar i {
  color: whitesmoke;
  font-size: 18px;
}
.r34u--sidebar > .search-container > .search-bar input {
  background-color: transparent;
  border: none;
  color: whitesmoke;
  font-size: 16px;
  width: 100%;
}
.r34u--sidebar > .search-container > .buttons {
  display: flex;
  gap: 4px;
}
.r34u--sidebar > .search-container > .buttons > .button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  color: whitesmoke;
}
.r34u--sidebar > .search-container > .buttons > .button:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.r34u--sidebar > .search-container > .filter-sections {
  width: 100%;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 4px;
  display: none;
}
.r34u--sidebar > .search-container > .filter-sections.visible {
  display: flex;
}
.r34u--sidebar > .search-container > .filter-sections .filter-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.r34u--sidebar > .search-container > .filter-sections .filter-section > .header {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.r34u--sidebar > .search-container > .filter-sections .filter-section > .filters {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.r34u--sidebar > .search-container > .filter-sections .filter-section > .filters .filter {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}
.r34u--sidebar > .search-container > .search-results {
  position: absolute;
  top: calc(100% + 8px);
  width: 100%;
  background-color: #23232f;
  border-radius: 4px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.r34u--sidebar > .search-container > .search-results.visible {
  display: flex;
}
.r34u--sidebar > .search-container > .search-results .search-result {
  text-decoration: none;
  color: whitesmoke;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2px;
  flex-wrap: wrap;
  font-size: 14px;
}
.r34u--sidebar > .search-container > .search-results .search-result .name {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.r34u--sidebar > .search-container > .search-results .search-result mark {
  background-color: rgba(255, 255, 255, 0.5);
  color: black;
}
.r34u--sidebar > .search-container > .search-results .search-result .count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.r34u--sidebar > .search-container > .search-results .search-result:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.r34u--sidebar > .tag-sections {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r34u--sidebar > .tag-sections .tag-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.r34u--sidebar > .tag-sections .tag-section > .header {
  font-size: 18px;
  font-weight: 600;
}
.r34u--sidebar > .tag-sections .tag-section > .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.r34u--sidebar > .tag-sections .tag-section > .tags .tag {
  text-decoration: none;
  color: whitesmoke;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.r34u--sidebar > .tag-sections .tag-section > .tags .tag .count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.r34u--sidebar > .tag-sections .tag-section > .tags .tag:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.r34u--pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 4px;
}
.r34u--pagination .icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.r34u--pagination .icon.disabled {
  pointer-events: none;
  opacity: 0.5;
}
.r34u--pagination .icon i {
  font-size: 24px;
  color: whitesmoke;
}
.r34u--pagination .icon:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.r34u--pagination input[type=number] {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: whitesmoke;
  font-size: 16px;
  width: 64px;
  text-align: center;
  border-radius: 4px;
  height: 32px;
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(zg));function Di(u){return v=>{v.preventDefault();let m=new URL("https://rule34.xxx/index.php?page=post&s=list");m.searchParams.set("pid",0);let q=(nn.searchParams.get("tags")||localStorage.getItem("r34u--last-search-tags")||"").split(" ").filter(x=>x!==u.name&&x!==`-${u.name}`);v.ctrlKey?m.searchParams.set("tags",`${q.join(" ")} ${u.name}`):v.shiftKey?m.searchParams.set("tags",`${q.join(" ")} -${u.name}`):m.searchParams.set("tags",u.name),location.href=m.href}}function dr(u){let v=fn(`
    <div class="r34u--sidebar">
      <div class="search-container">
        <div class="search-bar">
          <i class="ri-search-2-line"></i>
          <input type="text" placeholder="Search tags..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
        </div>
        <div class="buttons">
          <div class="filters-button button">
            <i class="ri-filter-3-line"></i>
            Filters
          </div>
          <div class="search-button button">
            <i class="ri-search-2-line"></i>
            Search
          </div>
        </div>
        <div class="filter-sections">
          <div class="filter-section" data-key="rating" data-allow-multiple-values="false">
            <div class="header">Rating</div>
            <div class="filters">
              <div class="filter" data-value="safe" data-type="+-_">
                <i class="ri-checkbox-blank-line"></i>
                <span>Safe</span>
              </div>
              <div class="filter" data-value="questionable" data-type="+-_">
                <i class="ri-checkbox-blank-line"></i>
                <span>Questionable</span>
              </div>
              <div class="filter" data-value="explicit" data-type="+-_">
                <i class="ri-checkbox-blank-line"></i>
                <span>Explicit</span>
              </div>
              <div class="filter" data-value="[none]" data-type="+-_">
                <i class="ri-checkbox-blank-line"></i>
                <span>All</span>
              </div>
            </div>
          </div>
          <div class="filter-section" data-key="sort" data-allow-multiple-values="false">
            <div class="header">Storting</div>
            <div class="filters">
              <div class="filter" data-value="score" data-type="+-">
                <i class="ri-checkbox-blank-line"></i>
                <span>Score</span>
              </div>
              <div class="filter" data-value="updated" data-type="+-">
                <i class="ri-checkbox-blank-line"></i>
                <span>Updated</span>
              </div>
              <div class="filter" data-value="[none]" data-type="+-">
                <i class="ri-checkbox-blank-line"></i>
                <span>Unsorted</span>
              </div>
            </div>
          </div>
        </div>
        <div class="search-results"></div>
      </div>
      <div class="tag-sections"></div>
    </div>
  `);return Kg(v.querySelector(".search-container")),Yg(v.querySelector(".tag-sections"),u),v}function Kg(u){let v=u.querySelector("input"),m=u.querySelector(".search-results"),q=u.querySelector(".search-button"),x=u.querySelector(".filters-button"),T=[];v.value=(nn.searchParams.get("tags")||localStorage.getItem("r34u--last-search-tags")||"").replace(/(-?)(\w+):(\w+)/g,"").trim(),v.value==="all"&&(v.value="");let en=u.querySelector(".filter-sections");localStorage.getItem("r34u--show-filters")==="true"&&en.classList.add("visible"),x.addEventListener("click",()=>{en.classList.toggle("visible"),localStorage.setItem("r34u--show-filters",en.classList.contains("visible"))}),[...(nn.searchParams.get("tags")||"").matchAll(/(-?)(\w+):(\w+)/g)].forEach(([,D,K,an])=>{T.push({key:K,value:an,negate:!!D})}),[...u.querySelectorAll(".filter-section")].forEach(D=>{let K=D.dataset.key,an=D.dataset.allowMultipleValues==="true",rn=[...D.querySelectorAll(".filter")];rn.forEach(j=>{let qn=j.dataset.value,gn=j.dataset.type,Zn=T.find(X=>X.key===K&&X.value===qn);Zn&&(j.querySelector("i").className=Zn.negate?"ri-checkbox-indeterminate-line":"ri-add-box-line"),j.addEventListener("click",()=>{let X=T.find(J=>J.key===K&&J.value===qn);if(an||(T=T.filter(J=>J.key!==K),rn.forEach(J=>J.querySelector("i").className="ri-checkbox-blank-line")),qn==="[none]"){T=T.filter(J=>J.key!==K),rn.forEach(J=>J.querySelector("i").className="ri-checkbox-blank-line"),j.querySelector("i").className="ri-add-box-line";return}switch(gn){case"+-_":{if(!X){T.push({key:K,value:qn,negate:!1}),j.querySelector("i").className="ri-add-box-line";break}if(X?.negate===!1){an?X.negate=!0:T.push({key:K,value:qn,negate:!0}),j.querySelector("i").className="ri-checkbox-indeterminate-line";break}if(X){T=T.filter(J=>J!==X),j.querySelector("i").className="ri-checkbox-blank-line";break}break}case"+-":{X?(T=T.filter(J=>J!==X),j.querySelector("i").className="ri-checkbox-blank-line"):(T.push({key:K,value:qn,negate:!1}),j.querySelector("i").className="ri-add-box-line");break}}})})});function dn(){let W=new URL("https://rule34.xxx/index.php?page=post&s=list");W.searchParams.set("tags",`${v.value!=="all"?v.value:""} ${T.filter(Z=>Z.value!=="[none]").map(Z=>`${Z.negate?"-":""}${Z.key}:${Z.value}`).join(" ")}`.trim()),W.searchParams.set("pid",0),location.href=W.href}let tn=Aa.default.debounce(async()=>{let W=v.value.replaceAll("-","").trim();W==="all"&&(W="");let Z=W.indexOf(" ",v.selectionStart),D=W.slice(v.selectionStart||0,Z===-1?W.length:Z+1).trim();D||(D=W.split(" ").pop());let K=await ba(D);m.replaceChildren(...K.map(an=>{let rn=fn(`
        <button class="search-result" title="${fr(an.type)}: ${an.name} (${an.count.toLocaleString()})">
          <span class="name">${Ni(an.name,D)}</span>
          <span class="count">${dt(an.count)}</span>
        </button>
      `);return rn.addEventListener("click",j=>{let qn=v.value.split(" ").slice(0,-1).filter(gn=>gn!==an.name&&gn!==`-${an.name}`);v.value=`${qn.join(" ")} ${j.shiftKey?"-":""}${an.name}`.trim()}),rn})),acceptTab=!0},500);document.body.addEventListener("click",W=>{u.contains(W.target)||m.classList.remove("visible")}),q.addEventListener("click",dn),v.addEventListener("focus",()=>{m.classList.add("visible")}),v.addEventListener("keydown",W=>{let Z=v.value;if(m.querySelectorAll(".search-result .name").forEach(D=>{D.innerHTML=Ni(D.textContent,Z)}),W.key!=="Shift"){if(W.key==="Enter"){dn();return}tn()}}),v.addEventListener("mouseup",()=>{tn()}),tn()}function Yg(u,v){Object.entries(Object.groupBy(v,m=>m.type)).forEach(([m,q])=>{let x=fn(`
      <div class="tag-section">
        <div class="header">${fr(m)}</div>
        <div class="tags"></div>
      </div>  
    `);x.querySelector(".tags").replaceChildren(...q.map(en=>{let dn=fn(`
        <div class="tag" title="Click to set tag, ctrl+click to add tag or shift+click to exclude tag.">
          <span class="name">${cr(en.name)}</span>
          ${en.count?`<span class="count">${dt(en.count)}</span>`:""}
        </div>  
      `);return dn.addEventListener("click",Di(en)),dn})),u.appendChild(x)})}function gr(u,v={}){let m=fn(`
    <div class="r34u--pagination">
      <div class="icon prev ${u.current_page.number<=1?"disabled":""}">
        <i class="ri-arrow-left-s-line"></i>
      </div>
      <input type="number" value="${u.current_page.number}" min="1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
      <div class="icon next ${u.next_page?"":"disabled"}">
        <i class="ri-arrow-right-s-line"></i>
      </div>
    </div>
  `),q=m.querySelector(".prev"),x=m.querySelector(".next"),T=m.querySelector("input");return T.addEventListener("keydown",en=>{en.key==="Enter"&&v.input(Math.max(T.value,0))}),q.addEventListener("click",()=>{v.prev()}),x.addEventListener("click",()=>{v.next()}),m}var Zg=Ra.default.debounce(async(u,v)=>{if(v.classList.contains("preview-patched"))return;v.classList.add("preview-patched");let m=v.querySelector(".video-indicator");if(m.classList.add("loading-rotate"),m.innerHTML='<i class="ri-loader-4-line"></i>',u.is_video){let q=await u.fetchVideoURL();if(!q){m.remove();return}m.classList.remove("loading-rotate"),m.innerHTML='<i class="ri-play-fill"></i>';let x=fn(`<video src="${q}" loop muted></video>`),T=v.querySelector("img");x.addEventListener("mouseleave",()=>{x.replaceWith(T),x.pause()}),T.addEventListener("mouseenter",()=>{T.replaceWith(x),x.play()}),x.addEventListener("loadeddata",()=>{x.play(),T.replaceWith(x)})}else if(u.is_animation){let q=await u.fetchAnimationURL();if(!q){m.remove();return}m.classList.remove("loading-rotate"),m.innerHTML='<i class="ri-play-fill"></i>';let x=fn(`<img src="${q}" />`),T=v.querySelector("img");x.addEventListener("mouseleave",()=>{x.replaceWith(T)}),T.addEventListener("mouseenter",()=>{T.replaceWith(x)}),x.addEventListener("load",()=>{T.replaceWith(x)})}},500);function Ca(){if(!(nn.searchParams.get("page")==="post"&&nn.searchParams.get("s")==="list"))return;localStorage.setItem("r34u--last-search-tags",nn.searchParams.get("tags")||"");let u=La(document.querySelector("#content"));console.log("Post List Page",u),document.querySelector("#content").remove();let v=fn(`
    <div class="r34u--post-list-content">
      <div class="r34u--post-list">
        <div class="posts ${u.posts.length===0?"hidden":""}"></div>
      </div>
    </div>
  `);v.prepend(dr(u.tags)),Xg(v.querySelector(".r34u--post-list"),u),document.body.appendChild(v)}function Xg(u,v){Jg(u.querySelector(".posts"),v),v.pagination&&(u.prepend(Ea(v.pagination)),u.appendChild(Ea(v.pagination)))}function Ea(u){return gr(u,{input(v){let m=new URL(location.href);m.searchParams.set("pid",Math.max(v-1,0)*42),location.href=m.href},prev(){let v=new URL(location.href);v.searchParams.set("pid",Math.max(u.current_page.pid-42,0)),location.href=v.href},next(){let v=new URL(location.href);v.searchParams.set("pid",u.current_page.pid+42),location.href=v.href}})}function Jg(u,v){v.posts.forEach(m=>{let q=fn(`
      <a class="post-item" href="${m.url}">
        <div class="preview-container">
          ${m.is_video||m.is_animation?'<div class="video-indicator"><i class="ri-play-fill"></i></div>':""}
        </div>
        <div class="tags"></div>
      </a>
    `),x=q.querySelector(".preview-container"),T=fn(`<img src="${m.thumbnail_img}" />`);x.appendChild(T),(m.is_video||m.is_animation)&&x.addEventListener("mouseenter",()=>Zg(m,x));let en=q.querySelector(".tags");m.tags.forEach(dn=>{let tn=fn(`
        <span class="tag" title="Click to set tag, ctrl+click to add tag or shift+click to exclude tag.">
          <span class="name">${cr(dn.name)}</span>
          ${dn.count?`<span class="count">${dt(dn.count)}</span>`:""}
        </span>
      `);tn.addEventListener("click",Di(dn)),en.appendChild(tn)}),u.appendChild(q)})}var Ta=sr(ht());function Ia(){window.addEventListener("scroll",Ta.default.debounce(()=>{ya("scrollY",window.scrollY)},100))}function Pa(){setTimeout(()=>{let u=Sa("scrollY");u&&window.scrollTo(0,parseInt(u))},100)}function Oa(u){let v=hr(u.querySelector("#tag-sidebar"));return{tags:v,content:Qg(u,v),comments:Vg(u.querySelector("#post-comments"))}}function Qg(u,v){return{id:parseInt(nn.searchParams.get("id")),is_video:v.some(m=>m.name==="video"),is_animation:v.some(m=>m.name==="animated"),url:u.querySelector("source")?.src??u.querySelector("#fit-to-screen img[alt]")?.src}}function Vg(u){let v=u.querySelector("#comment-list");return{total_count:parseInt(v.childNodes[2].textContent.split(" ")[0].trim())||0,items:[...v.querySelectorAll("& > div[id]")].map(m=>({id:parseInt(m.id.slice(1)),author:m.querySelector(".col1 > a").textContent,date:new Date(m.querySelector(".col1 > b").childNodes[0].textContent.split(/ |\n/).slice(3,5).join(" ")),score:parseInt(m.querySelector(".col1 > b > a[id]").textContent),content:m.querySelector(".col2").textContent.trim()})),pagination:jg(u.querySelector("#paginator"))}}function jg(u){let v=parseInt(u.querySelector("b")?.textContent||1),m=u.querySelector('a[alt="next"]');return{current_page:{number:v,pid:nn.searchParams.get("pid")?parseInt(nn.searchParams.get("pid")):0},next_page:m?{number:v+1,pid:m?pr(m.href):0}:null}}var n0=`.r34u--post-view-content {
  display: flex;
  gap: 8px;
  padding: 0 8px;
  padding-bottom: 8px;
  width: 100%;
}
.r34u--post-view-content .r34u--post-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 4px;
  width: 100%;
}
.r34u--post-view-content .r34u--post-view > .media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80vh;
  max-height: 80vh;
  background-color: rgba(255, 255, 255, 0.1);
  contain: content;
  border-radius: 4px;
}
.r34u--post-view-content .r34u--post-view > .media img,
.r34u--post-view-content .r34u--post-view > .media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.r34u--post-view-content .r34u--post-view > .comments-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 4px;
  width: 100%;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .header {
  display: flex;
  flex-direction: column;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .header > .title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .header > .subtext {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.75;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .comments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 4px;
  width: 100%;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .comments .comment {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 4px;
  width: 100%;
  position: relative;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .comments .comment > .date {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.75;
  position: absolute;
  top: 8px;
  right: 8px;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .comments .comment > .about {
  display: flex;
  gap: 8px;
  align-items: center;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .comments .comment > .about > .author {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: whitesmoke !important;
  text-decoration: none;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .comments .comment > .about > .author:hover {
  text-decoration: underline;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .comments .comment > .about > .score {
  display: flex;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  align-items: center;
  gap: 4px;
  line-height: 1;
  padding: 4px;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .comments .comment > .about > .score > .icon {
  font-size: 14px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.r34u--post-view-content .r34u--post-view > .comments-container > .comments .comment > .about > .score > .value {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(n0));function Ua(){if(!(nn.searchParams.get("page")==="post"&&nn.searchParams.get("s")==="view"))return;let u=Oa(document.querySelector("#content"));console.log("Post View Page",u),(()=>{let x=document.querySelector("#gelcomVideoContainer");x&&(x.remove(),x.setAttribute("style","display: none;"),document.body.append(x))})(),document.querySelector("#content").remove();let v=fn(`
    <div class="r34u--post-view-content">
      <div class="r34u--post-view">
        <div class="media"></div>

        <div class="comments-container">
          <div class="header">
            <div class="title">Comments</div>
            <div class="subtext">Total ${u.comments.total_count} comments</div>
          </div>
          <div class="comments"></div>
        </div>
      </div>
    </div>
  `);v.prepend(dr(u.tags));let m=v.querySelector(".media");if(u.content.is_video){let x=fn("<video controls loop playsinline></video>");x.src=u.content.url,x.volume=parseFloat(localStorage.getItem("r34u--video-volume")||"0.25"),x.addEventListener("volumechange",()=>{localStorage.setItem("r34u--video-volume",x.volume.toFixed(2))}),m.appendChild(x)}else{let x=fn("<img />");x.src=u.content.url,m.appendChild(x)}let q=v.querySelector(".comments-container");q.appendChild(gr(u.comments.pagination,{input(x){let T=new URL(location.href);T.searchParams.set("pid",Math.max(x-1,0)*10),location.href=T.href},prev(){let x=new URL(location.href);x.searchParams.set("pid",Math.max(u.comments.pagination.current_page.pid-10,0)),location.href=x.href},next(){let x=new URL(location.href);x.searchParams.set("pid",u.comments.pagination.current_page.pid+10),location.href=x.href}})),q.querySelector(".comments").replaceChildren(...u.comments.items.map(x=>fn(`
        <div class="comment">
          <div class="date">${x.date.toLocaleString()}</div>
          <div class="about">
            <a class="author" href="/index.php?page=account&s=profile&uname=${lr(x.author)}">${lr(x.author)}</a>
            <div class="score">
              <div class="icon">
                <i class="ri-arrow-up-s-line"></i>
              </div>
              <div class="value">${x.score}</div>
            </div>
          </div>
          <div class="content">
            ${lr(x.content)}
          </div>
        </div>
      `))),document.body.appendChild(v),Pa()}function Ma(){Ca(),Ua()}function Wa(){Ma()}var e0=`@import url("https://cdn.jsdelivr.net/npm/remixicon@4.3.0/fonts/remixicon.css");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
@keyframes rotate360 {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif !important;
  outline: none;
  user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(111.4deg, rgb(7, 7, 9) 6.5%, rgb(27, 24, 113) 93.2%);
  background-attachment: fixed;
  color: whitesmoke;
}

.hidden {
  display: none !important;
}

.loading-rotate {
  animation: rotate360 1s linear infinite;
}

#subnavbar {
  background-color: rgba(255, 255, 255, 0.25) !important;
}

a {
  color: rgb(230, 230, 255) !important;
}
a:hover {
  color: rgb(255, 255, 255) !important;
}

.current-page {
  background-color: rgba(255, 255, 255, 0.25) !important;
  background-image: none !important;
  border-radius: 8px;
  padding: 8px;
}

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 11px 11px rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 0 11px 11px rgba(0, 0, 0, 0.05);
  border: solid 2px transparent;
  border-radius: 11px;
}

::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 11px 11px rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 11px 11px rgba(0, 0, 0, 0.1);
  border: solid 2px transparent;
  border-radius: 11px;
}

::-webkit-scrollbar-thumb:hover {
  -webkit-box-shadow: inset 0 0 11px 11px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 11px 11px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-button {
  display: none;
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(e0));function Fa(){Ia()}setTimeout(()=>{console.log("Loading rule34utils..."),Fa(),Wa()},0);})();
/*! Bundled license information:

lodash/lodash.js:
  (**
   * @license
   * Lodash <https://lodash.com/>
   * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
   * Released under MIT license <https://lodash.com/license>
   * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
   * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
   *)
*/