PageSourceSearch

https://iftuk.com/build/assets/app-BAFuchQu.js

js iftuk.com collected 2026-09-24 13:24:48 UTC 892,777 bytes, 115 lines download raw bytes

vendor: 8,556 bytes, lines 1-2
1function Fg(n,l){return function(){return n.apply(l,arguments)}}const{toString:py}=Object.prototype,{getPrototypeOf:Aa}=Object,{iterator:Zs,toStringTag:Og}=Symbol,su=(({hasOwnProperty:n})=>(l,c)=>n.call(l,c))(Object.prototype),Us=(n,l)=>{let c=n;const s=[];for(;c!=null&&c!==Object.prototype;){if(s.indexOf(c)!==-1)return!1;if(s.push(c),su(c,l))return!0;c=Aa(c)}return!1},gy=(n,l)=>n!=null&&Us(n,l)?n[l]:void 0,Pf=(n=>l=>{const c=py.call(l);return n[c]||(n[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),In=n=>(n=n.toLowerCase(),l=>Pf(l)===n),wu=n=>l=>typeof l===n,{isArray:ko}=Array,To=wu("undefined");function Ta(n){return n!==null&&!To(n)&&n.constructor!==null&&!To(n.constructor)&&yn(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Lg=In("ArrayBuffer");function my(n){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(n):l=n&&n.buffer&&Lg(n.buffer),l}const vy=wu("string"),yn=wu("function"),Mg=wu("number"),Fa=n=>n!==null&&typeof n=="object",yy=n=>n===!0||n===!1,Kl=n=>{if(!Fa(n))return!1;const l=Aa(n);return(l===null||l===Object.prototype||Aa(l)===null)&&!Us(n,Og)&&!Us(n,Zs)},by=n=>{if(!Fa(n)||Ta(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},xy=In("Date"),wy=In("File"),Cy=n=>!!(n&&typeof n.uri<"u"),Ey=n=>n&&typeof n.getParts<"u",Sy=In("Blob"),Dy=In("FileList"),Ay=In("Set"),_y=n=>Fa(n)&&yn(n.pipe);function ky(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Bh=ky(),Nh=typeof Bh.FormData<"u"?Bh.FormData:void 0,Ty=n=>{if(!n)return!1;if(Nh&&n instanceof Nh)return!0;const l=Aa(n);if(!l||l===Object.prototype||!yn(n.append))return!1;const c=Pf(n);return c==="formdata"||c==="object"&&yn(n.toString)&&n.toString()==="[object FormData]"},Fy=In("URLSearchParams"),[Oy,Ly,My,Iy]=["ReadableStream","Request","Response","Headers"].map(In),Ry=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qs(n,l,{allOwnKeys:c=!1}={}){if(n===null||typeof n>"u")return;let s,r;if(typeof n!="object"&&(n=[n]),ko(n))for(s=0,r=n.length;s<r;s++)l.call(null,n[s],s,n);else{if(Ta(n))return;const t=c?Object.getOwnPropertyNames(n):Object.keys(n),i=t.length;let o;for(s=0;s<i;s++)o=t[s],l.call(null,n[o],o,n)}}function Ig(n,l){if(Ta(n))return null;l=l.toLowerCase();const c=Object.keys(n);let s=c.length,r;for(;s-- >0;)if(r=c[s],l===r.toLowerCase())return r;return null}const xo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rg=n=>!To(n)&&n!==xo;function ef(...n){const{caseless:l,skipUndefined:c}=Rg(this)&&this||{},s={},r=(t,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=l&&typeof i=="string"&&Ig(s,i)||i,u=su(s,o)?s[o]:void 0;Kl(u)&&Kl(t)?s[o]=ef(u,t):Kl(t)?s[o]=ef({},t):ko(t)?s[o]=t.slice():(!c||!To(t))&&(s[o]=t)};for(let t=0,i=n.length;t<i;t++){const o=n[t];if(!o||Ta(o)||(Qs(o,r),typeof o!="object"||ko(o)))continue;const u=Object.getOwnPropertySymbols(o);for(let f=0;f<u.length;f++){const p=u[f];Xy.call(o,p)&&r(o[p],p)}}return s}const Py=(n,l,c,{allOwnKeys:s}={})=>(Qs(l,(r,t)=>{c&&yn(r)?Object.defineProperty(n,t,{__proto__:null,value:Fg(r,c),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,t,{__proto__:null,value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),n),By=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Ny=(n,l,c,s)=>{n.prototype=Object.create(l.prototype,s),Object.defineProperty(n.prototype,"constructor",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{__proto__:null,value:l.prototype}),c&&Object.assign(n.prototype,c)},Hy=(n,l,c,s)=>{let r,t,i;const o={};if(l=l||{},n==null)return l;do{for(r=Object.getOwnPropertyNames(n),t=r.length;t-- >0;)i=r[t],(!s||s(i,n,l))&&!o[i]&&(l[i]=n[i],o[i]=!0);n=c!==!1&&Aa(n)}while(n&&(!c||c(n,l))&&n!==Object.prototype);return l},zy=(n,l,c)=>{n=String(n),(c===void 0||c>n.length)&&(c=n.length),c-=l.length;const s=n.indexOf(l,c);return s!==-1&&s===c},jy=n=>{if(!n)return null;if(ko(n))return n;let l=n.length;if(!Mg(l))return null;const c=new Array(l);for(;l-- >0;)c[l]=n[l];return c},Wy=(n=>l=>n&&l instanceof n)(typeof Uint8Array<"u"&&Aa(Uint8Array)),$y=(n,l)=>{const s=(n&&n[Zs]).call(n);let r;for(;(r=s.next())&&!r.done;){const t=r.value;l.call(n,t[0],t[1])}},qy=(n,l)=>{let c;const s=[];for(;(c=n.exec(l))!==null;)s.push(c);return s},Uy=In("HTMLFormElement"),Gy=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(c,s,r){return s.toUpperCase()+r}),{propertyIsEnumerable:Xy}=Object.prototype,Yy=In("RegExp"),Pg=(n,l)=>{const c=Object.getOwnPropertyDescriptors(n),s={};Qs(c,(r,t)=>{let i;(i=l(r,t,n))!==!1&&(s[t]=i||r)}),Object.defineProperties(n,s)},Ky=n=>{Pg(n,(l,c)=>{if(yn(n)&&["arguments","caller","callee"].includes(c))return!1;const s=n[c];if(yn(s)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+c+"'")})}})},Vy=(n,l)=>{const c={},s=r=>{r.forEach(t=>{c[t]=!0})};return ko(n)?s(n):s(String(n).split(l)),c},Zy=()=>{},Qy=(n,l)=>n!=null&&Number.isFinite(n=+n)?n:l;function Jy(n){return!!(n&&yn(n.append)&&n[Og]==="FormData"&&n[Zs])}const eb=n=>{const l=new WeakSet,c=s=>{if(Fa(s)){if(l.has(s))return;if(Ta(s))return s;if(!("toJSON"in s)){l.add(s);let r;if(Ay(s)){r=[];for(const t of s){const i=c(t);!To(i)&&r.push(i)}}else r=ko(s)?[]:{},Qs(s,(t,i)=>{const o=c(t);!To(o)&&(r[i]=o)});return l.delete(s),r}}return s};return c(n)},tb=In("AsyncFunction"),ib=n=>n&&(Fa(n)||yn(n))&&yn(n.then)&&yn(n.catch),Bg=((n,l)=>n?setImmediate:l?((c,s)=>(xo.addEventListener("message",({source:r,data:t})=>{r===xo&&t===c&&s.length&&s.shift()()},!1),r=>{s.push(r),xo.postMessage(c,"*")}))(`axios@${Math.random()}`,[]):c=>setTimeout(c))(typeof setImmediate=="function",yn(xo.postMessage)),nb=typeof queueMicrotask<"u"?queueMicrotask.bind(xo):typeof process<"u"&&process.nextTick||Bg,Ng=n=>n!=null&&yn(n[Zs]),rb=n=>n!=null&&Us(n,Zs)&&Ng(n),he={isArray:ko,isArrayBuffer:Lg,isBuffer:Ta,isFormData:Ty,isArrayBufferView:my,isString:vy,isNumber:Mg,isBoolean:yy,isObject:Fa,isPlainObject:Kl,isEmptyObject:by,isReadableStream:Oy,isRequest:Ly,isResponse:My,isHeaders:Iy,isUndefined:To,isDate:xy,isFile:wy,isReactNativeBlob:Cy,isReactNative:Ey,isBlob:Sy,isRegExp:Yy,isFunction:yn,isStream:_y,isURLSearchParams:Fy,isTypedArray:Wy,isFileList:Dy,forEach:Qs,merge:ef,extend:Py,trim:Ry,stripBOM:By,inherits:Ny,toFlatObject:Hy,kindOf:Pf,kindOfTest:In,endsWith:zy,toArray:jy,forEachEntry:$y,matchAll:qy,isHTMLForm:Uy,hasOwnProperty:su,hasOwnProp:su,hasOwnInPrototypeChain:Us,getSafeProp:gy,reduceDescriptors:Pg,freezeMethods:Ky,toObjectSet:Vy,toCamelCase:Gy,noop:Zy,toFiniteNumber:Qy,findKey:Ig,global:xo,isContextDefined:Rg,isSpecCompliantForm:Jy,toJSONObject:eb,isAsyncFn:tb,isThenable:ib,setImmediate:Bg,asap:nb,isIterable:Ng,isSafeIterable:rb},ob=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ab=n=>{const l={};let c,s,r;return n&&n.split(`
2`).forEach(function(i){r=i.indexOf(":"),c=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim();const o=he.hasOwnProp(l,c);!c||o&&he.hasOwnProp(ob,c)||(c==="set-cookie"?o?l[c].push(s):l[c]=[s]:l[c]=o?l[c]+", "+s:s)}),l};function sb(n){let l=0,c=n.length;for(;l<c;){const s=n.charCodeAt(l);if(s!==9&&s!==32)break;l+=1}for(;c>l;){const s=n.charCodeAt(c-1);if(s!==9&&s!==32)break;c-=1}return l===0&&c===n.length?n:n.slice(l,c)}const lb=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ub=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Bf(n,l){return he.isArray(n)?n.map(c=>Bf(c,l)):sb(String(n).replace(l,""))}const cb=n=>Bf(n,lb),fb=n=>Bf(n,ub);function Hg(n){const l=Object.create(null);return he.forEach(n.toJSON(),(c,s)=>{l[s]=fb(c)}),l}const Hh=Symbol("internals");function Ds(n){return n&&String(n).trim().toLowerCase()}function Vl(n){return n===!1||n==null?n:he.isArray(n)?n.map(Vl):cb(String(n))}function db(n){const l=Object.create(null),c=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=c.exec(n);)l[s[1]]=s[2];return l}const hb=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function vc(n){let l=0,c=n.length;for(;l<c;){const s=n.charCodeAt(l);if(s!==9&&s!==32)break;l+=1}for(;c>l;){const s=n.charCodeAt(c-1);if(s!==9&&s!==32)break;c-=1}return l===0&&c===n.length?n:n.slice(l,c)}function pb(n){const l=n.length-1;
2if(l<1||n.charCodeAt(0)!==34||n.charCodeAt(l)!==34)return n;let c="";for(let s=1;s<l;s++){const r=n.charCodeAt(s);if(r===34||r===92&&(s+=1,s>=l))return n;c+=n[s]}return c}function gb(n){const l=Object.create(null),c=String(n);let s=0,r=!1,t=!1;function i(o){const u=vc(c.slice(s,o)),f=u.indexOf("=");if(f<1)return;const p=vc(u.slice(0,f));if(!hb.test(p))return;const v=p.toLowerCase();if(v==="__proto__"||v==="constructor"||v==="prototype")return;const y=vc(u.slice(f+1));l[v]=pb(y)}for(let o=0;o<c.length;o++){const u=c.charCodeAt(o);r?t?t=!1:u===92?t=!0:u===34&&(r=!1):u===34?r=!0:(u===44||u===59)&&(i(o),s=o+1)}return i(c.length),l}const mb=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function yc(n,l,c,s,r){if(he.isFunction(s))return s.call(this,l,c);if(r&&(l=c),!!he.isString(l)){if(he.isString(s))return l.indexOf(s)!==-1;if(he.isRegExp(s))return s.test(l)}}function vb(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(l,c,s)=>c.toUpperCase()+s)}function yb(n,l){const c=he.toCamelCase(" "+l);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+c,{__proto__:null,value:function(r,t,i){return this[s].call(this,l,r,t,i)},configurable:!0})})}let Qi=class{constructor(l){l&&this.set(l)}set(l,c,s){const r=this;function t(o,u,f){const p=Ds(u);if(!p)return;const v=he.findKey(r,p);(!v||r[v]===void 0||f===!0||f===void 0&&r[v]!==!1)&&(r[v||u]=Vl(o))}const i=(o,u)=>he.forEach(o,(f,p)=>t(f,p,u));if(he.isPlainObject(l)||l instanceof this.constructor)i(l,c);else if(he.isString(l)&&(l=l.trim())&&!mb(l))i(ab(l),c);else if(he.isObject(l)&&he.isSafeIterable(l)){let o=Object.create(null),u,f;for(const p of l){if(!he.isArray(p))throw new TypeError("Object iterator must return a key-value pair");f=p[0],he.hasOwnProp(o,f)?(u=o[f],o[f]=he.isArray(u)?[...u,p[1]]:[u,p[1]]):o[f]=p[1]}i(o,c)}else l!=null&&t(c,l,s);return this}get(l,c){if(l=Ds(l),l){const s=he.findKey(this,l);if(s){const r=this[s];if(!c)return r;if(c===!0)return db(r);if(he.isFunction(c))return c.call(this,r,s);if(he.isRegExp(c))return c.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(l,c){if(l=Ds(l),l){const s=he.findKey(this,l);return!!(s&&this[s]!==void 0&&(!c||yc(this,this[s],s,c)))}return!1}delete(l,c){const s=this;let r=!1;function t(i){if(i=Ds(i),i){const o=he.findKey(s,i);o&&(!c||yc(s,s[o],o,c))&&(delete s[o],r=!0)}}return he.isArray(l)?l.forEach(t):t(l),r}clear(l){const c=Object.keys(this);let s=c.length,r=!1;for(;s--;){const t=c[s];(!l||yc(this,this[t],t,l,!0))&&(delete this[t],r=!0)}return r}normalize(l){const c=this,s={};return he.forEach(this,(r,t)=>{const i=he.findKey(s,t);if(i){c[i]=Vl(r),delete c[t];return}const o=l?vb(t):String(t).trim();o!==t&&delete c[t],c[o]=Vl(r),s[o]=!0}),this}concat(...l){return this.constructor.concat(this,...l)}toJSON(l){const c=Object.create(null);return he.forEach(this,(s,r)=>{s!=null&&s!==!1&&(c[r]=l&&he.isArray(s)?s.join(", "):s)}),c}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([l,c])=>l+": "+c).join(`
3`)}getSetCookie(){const l=this.get("set-cookie");return he.isArray(l)?l:l==null||l===!1?[]:[l]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(l){return l instanceof this?l:new this(l)}static parseParameters(l){return gb(l)}static concat(l,...c){const s=new this(l);return c.forEach(r=>s.set(r)),s}static accessor(l){const s=(this[Hh]=this[Hh]={accessors:{}}).accessors,r=this.prototype;function t(i){const o=Ds(i);s[o]||(yb(r,i),s[o]=!0)}return he.isArray(l)?l.forEach(t):t(l),this}};Qi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);he.reduceDescriptors(Qi.prototype,({value:n},l)=>{let c=l[0].toUpperCase()+l.slice(1);return{get:()=>n,set(s){this[c]=s}}});he.freezeMethods(Qi);const lu="[REDACTED ****]";function bb(n){if(he.hasOwnProp(n,"toJSON"))return!0;let l=Object.getPrototypeOf(n);for(;l&&l!==Object.prototype;){if(he.hasOwnProp(l,"toJSON"))return!0;l=Object.getPrototypeOf(l)}return!1}function xb(n,l){const c=new Set(l.map(t=>String(t).toLowerCase())),s=[],r=t=>{if(t===null||typeof t!="object"||he.isBuffer(t))return t;if(s.indexOf(t)!==-1)return;t instanceof Qi&&(t=t.toJSON()),s.push(t);let i;if(he.isArray(t))i=[],t.forEach((o,u)=>{const f=r(o);he.isUndefined(f)||(i[u]=f)});else{if(!he.isPlainObject(t)&&bb(t))return s.pop(),t;i=Object.create(null);for(const[o,u]of Object.entries(t)){const f=c.has(o.toLowerCase())?lu:r(u);he.isUndefined(f)||(i[o]=f)}}return s.pop(),i};return r(n)}function zh(n){try{return String(n)}catch{return""}}function wb(n){return n.errors.map(c=>{try{return c&&c.message?zh(c.message):zh(c)}catch{return""}}
vendor: 8,000 bytes, line 3
3).filter(Boolean).join("; ")||n.name||"AggregateError"}let et=class zg extends Error{static from(l,c,s,r,t,i){let o=l.message;!o&&he.isArray(l.errors)&&l.errors.length&&(o=wb(l));const u=new zg(o,c||l.code,s,r,t);return Object.defineProperty(u,"cause",{__proto__:null,value:l,writable:!0,enumerable:!1,configurable:!0}),u.name=l.name,l.status!=null&&u.status==null&&(u.status=l.status),i&&Object.assign(u,i),u}constructor(l,c,s,r,t){super(l),Object.defineProperty(this,"message",{__proto__:null,value:l,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,c&&(this.code=c),s&&(this.config=s),r&&(this.request=r),t&&(this.response=t,this.status=t.status)}toJSON(){const l=this.config,c=l&&he.hasOwnProp(l,"redact")?l.redact:void 0,s=he.isArray(c)&&c.length>0?xb(l,c):he.toJSONObject(l);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};et.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";et.ERR_BAD_OPTION="ERR_BAD_OPTION";et.ECONNABORTED="ECONNABORTED";et.ETIMEDOUT="ETIMEDOUT";et.ECONNREFUSED="ECONNREFUSED";et.ERR_NETWORK="ERR_NETWORK";et.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";et.ERR_DEPRECATED="ERR_DEPRECATED";et.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";et.ERR_BAD_REQUEST="ERR_BAD_REQUEST";et.ERR_CANCELED="ERR_CANCELED";et.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";et.ERR_INVALID_URL="ERR_INVALID_URL";et.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Cb=null,jg=100;function tf(n){return he.isPlainObject(n)||he.isArray(n)}function Wg(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function bc(n,l,c){return n?n.concat(l).map(function(r,t){return r=Wg(r),!c&&t?"["+r+"]":r}).join(c?".":""):l}function Eb(n){return he.isArray(n)&&!n.some(tf)}const Sb=he.toFlatObject(he,{},null,function(l){return/^is[A-Z]/.test(l)});function Cu(n,l,c){if(!he.isObject(n))throw new TypeError("target must be an object");l=l||new FormData,c=he.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(L,H){return!he.isUndefined(H[L])});const s=c.metaTokens,r=c.visitor||D,t=c.dots,i=c.indexes,o=c.Blob||typeof Blob<"u"&&Blob,u=c.maxDepth===void 0?jg:c.maxDepth,f=o&&he.isSpecCompliantForm(l),p=[];if(!he.isFunction(r))throw new TypeError("visitor must be a function");function v(A){if(A===null)return"";if(he.isDate(A))return A.toISOString();if(he.isBoolean(A))return A.toString();if(!f&&he.isBlob(A))throw new et("Blob is not supported. Use a Buffer instead.");if(he.isArrayBuffer(A)||he.isTypedArray(A)){if(f&&typeof o=="function")return new o([A]);throw new et("Blob is not supported. Use a Buffer instead.",et.ERR_NOT_SUPPORT)}return A}function y(A){if(A>u)throw new et("Object is too deeply nested ("+A+" levels). Max depth: "+u,et.ERR_FORM_DATA_DEPTH_EXCEEDED)}function S(A,L){if(u===1/0)return JSON.stringify(A);const H=[];return JSON.stringify(A,function(ee,Z){if(!he.isObject(Z))return Z;for(;H.length&&H[H.length-1]!==this;)H.pop();return H.push(Z),y(L+H.length-1),Z})}function D(A,L,H){let U=A;if(he.isReactNative(l)&&he.isReactNativeBlob(A))return l.append(bc(H,L,t),v(A)),!1;if(A&&!H&&typeof A=="object"){if(he.endsWith(L,"{}"))L=s?L:L.slice(0,-2),A=S(A,1);else if(he.isArray(A)&&Eb(A)||(he.isFileList(A)||he.endsWith(L,"[]"))&&(U=he.toArray(A)))return L=Wg(L),U.forEach(function(Z,w){!(he.isUndefined(Z)||Z===null)&&l.append(i===!0?bc([L],w,t):i===null?L:L+"[]",v(Z))}),!1}return tf(A)?!0:(l.append(bc(H,L,t),v(A)),!1)}const F=Object.assign(Sb,{defaultVisitor:D,convertValue:v,isVisitable:tf});function M(A,L,H=0){if(!he.isUndefined(A)){if(y(H),p.indexOf(A)!==-1)throw new Error("Circular reference detected in "+L.join("."));p.push(A),he.forEach(A,function(ee,Z){(!(he.isUndefined(ee)||ee===null)&&r.call(l,ee,he.isString(Z)?Z.trim():Z,L,F))===!0&&M(ee,L?L.concat(Z):[Z],H+1)}),p.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return M(n),l}function jh(n){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace(/[!'()~]|%20/g,function(s){return l[s]})}function Nf(n,l){this._pairs=[],n&&Cu(n,this,l)}const $g=Nf.prototype;$g.append=function(l,c){this._pairs.push([l,c])};$g.toString=function(l){const c=l?s=>l.call(this,s,jh):jh;return this._pairs.map(function(r){return c(r[0])+"="+c(r[1])},"").join("&")};function Db(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function qg(n,l,c){if(!l)return n;n=n||"";const s=he.isFunction(c)?{serialize:c}:c,r=he.getSafeProp(s,"encode")||Db,t=he.getSafeProp(s,"serialize");let i;if(t?i=t(l,s):i=he.isURLSearchParams(l)?l.toString():new Nf(l,s).toString(r),i){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}class Wh{constructor(){this.handlers=[]}use(l,c,s){return this.handlers.push({fulfilled:l,rejected:c,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(l){this.handlers[l]&&(this.handlers[l]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(l){he.forEach(this.handlers,function(s){s!==null&&l(s)})}}const Hf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Ab=typeof URLSearchParams<"u"?URLSearchParams:Nf,_b=typeof FormData<"u"?FormData:null,kb=typeof Blob<"u"?Blob:null,Tb={isBrowser:!0,classes:{URLSearchParams:Ab,FormData:_b,Blob:kb},protocols:["http","https","file","blob","url","data"]},zf=typeof window<"u"&&typeof document<"u",nf=typeof navigator=="object"&&navigator||void 0,Fb=zf&&(!nf||["ReactNative","NativeScript","NS"].indexOf(nf.product)<0),Ob=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lb=zf&&window.location.href||"http://localhost",Mb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zf,hasStandardBrowserEnv:Fb,hasStandardBrowserWebWorkerEnv:Ob,navigator:nf,origin:Lb},Symbol.toStringTag,{value:"Module"})),Ui={...Mb,...Tb};function Ib(n,l){return Cu(n,new Ui.classes.URLSearchParams,{visitor:function(c,s,r,t){return Ui.isNode&&he.isBuffer(c)?(this.append(s,c.toString("base64")),!1):t.defaultVisitor.apply(this,arguments)},...l})}const $h=jg;function Ug(n){if(n>$h)throw new et("FormData field is too deeply nested ("+n+" levels). Max depth: "+$h,et.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Rb(n){const l=[],c=/[^.[\]]+|\[([^.[\]]*)]/g;let s;for(;(s=c.exec(n))!==null;)Ug(l.length),l.push(s[0]==="[]"?"":s[1]||s[0]);return l}function Pb(n){const l={},c=Object.keys(n);let s;const r=c.length;let t;for(s=0;s<r;s++)t=c[s],l[t]=n[t];return l}function Gg(n){function l(c,s,r,t){Ug(t);let i=c[t++];if(i==="__proto__")return!0;const o=Number.isFinite(+i),u=t>=c.length;return i=!i&&he.isArray(r)?r.length:i,u?(he.hasOwnProp(r,i)?r[i]=he.isArray(r[i])?r[i].concat(s):[r[i],s]:r[i]=s,!o):((!he.hasOwnProp(r,i)||!he.isObject(r[i]))&&(r[i]=[]),l(c,s,r[i],t)&&he.isArray(r[i])&&(r[i]=Pb(r[i])),!o)}if(he.isFormData(n)&&he.isFunction(n.entries)){const c={};return he.forEachEntry(n,(s,r)=>{l(Rb(s),r,c,0)}),c}return null}const ha=(n,l)=>n!=null&&he.hasOwnProp(n,l)?n[l]:void 0;function Bb(n,l,c){if(he.isString(n))try{return(l||JSON.parse)(n),he.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(c||JSON.stringify)(n)}const Js={transitional:Hf,adapter:["xhr","http","fetch"],transformRequest:[function(l,c){const s=c.getContentType()||"",r=s.indexOf("application/json")>-1,t=he.isObject(l);if(t&&he.isHTMLForm(l)&&(l=new FormData(l)),he.isFormData(l))return r?JSON.stringify(Gg(l)):l;if(he.isArrayBuffer(l)||he.isBuffer(l)||he.isStream(l)||he.isFile(l)||he.isBlob(l)||he.isReadableStream(l))return l;if(he.isArrayBufferView(l))return l.buffer;if(he.isURLSearchParams(l))return c.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let o;
3if(t){const u=ha(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return Ib(l,u).toString();if((o=he.isFileList(l))||s.indexOf("multipart/form-data")>-1){const f=ha(this,"env"),p=f&&f.FormData;return Cu(o?{"files[]":l}:l,p&&new p,u)}}return t||r?(c.setContentType("application/json",!1),Bb(l)):l}],transformResponse:[function(l){const c=ha(this,"transitional")||Js.transitional,s=c&&c.forcedJSONParsing,r=ha(this,"responseType"),t=r==="json";if(he.isResponse(l)||he.isReadableStream(l))return l;if(l&&he.isString(l)&&(s&&!r||t)){const o=!(c&&c.silentJSONParsing)&&t;try{return JSON.parse(l,ha(this,"parseReviver"))}catch(u){if(o)throw u.name==="SyntaxError"?et.from(u,et.ERR_BAD_RESPONSE,this,null,ha(this,"response")):u}}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ui.classes.FormData,Blob:Ui.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch","query"],n=>{Js.headers[n]={}});function xc(n,l){const c=this||Js,s=l||c,r=Qi.from(s.headers);let t=s.data;return he.forEach(n,function(o){t=o.call(c,t,r.normalize(),l?l.status:void 0)}),r.normalize(),t}function Xg(n){return!!(n&&n.__CANCEL__)}let el=class extends et{constructor(l,c,s){super(l??"canceled",et.ERR_CANCELED,c,s),this.name="CanceledError",this.__CANCEL__=!0}};function Yg(n,l,c){const s=c.config.validateStatus;!c.status||!s||s(c.status)?n(c):l(new et("Request failed with status code "+c.status,c.status>=400&&c.status<500?et.ERR_BAD_REQUEST:et.ERR_BAD_RESPONSE,c.config,c.request,c))}function Nb(n){const l=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n);return l&&l[1]||""}function Hb(n,l){n=n||10;const c=new Array(n),s=new Array(n);let r=0,t=0,i;return l=l!==void 0?l:1e3,function(u){const f=Date.now(),p=s[t];i||(i=f),c[r]=u,s[r]=f;let v=t,y=0;for(;v!==r;)y+=c[v++],v=v%n;if(r=(r+1)%n,r===t&&(t=(t+1)%n),f-i<l)return;const S=p&&f-p;return S?Math.round(y*1e3/S):void 0}}function zb(n,l){let c=0,s=1e3/l,r,t;const i=(f,p=Date.now())=>{c=p,r=null,t&&(clearTimeout(t),t=null),n(...f)};return[(...f)=>{const p=Date.now(),v=p-c;v>=s?i(f,p):(r=f,t||(t=setTimeout(()=>{t=null,i(r)},s-v)))},()=>r&&i(r)]}const uu=(n,l,c=3)=>{let s=0;const r=Hb(50,250);return zb(t=>{if(!t||typeof t.loaded!="number")return;const i=t.loaded,o=t.lengthComputable?t.total:void 0,u=Math.max(0,o!=null?Math.min(i,o):i),f=Math.max(0,u-s),p=r(f);s=Math.max(s,u);const v={loaded:u,total:o,progress:o?u/o:void 0,bytes:f,rate:p||void 0,estimated:p&&o?(o-u)/p:void 0,event:t,lengthComputable:o!=null,[l?"download":"upload"]:!0};n(v)},c)},qh=(n,l)=>{const c=n!=null;return[s=>l[0]({lengthComputable:c,total:n,loaded:s}),l[1]]},Uh=(n,l=he.asap)=>(...c)=>l(()=>n(...c)),jb=Ui.hasStandardBrowserEnv?((n,l)=>c=>(c=new URL(c,Ui.origin),n.protocol===c.protocol&&n.host===c.host&&(l||n.port===c.port)))(new URL(Ui.origin),Ui.navigator&&/(msie|trident)/i.test(Ui.navigator.userAgent)):()=>!0,Wb=Ui.hasStandardBrowserEnv?{write(n,l,c,s,r,t,i){if(typeof document>"u")return;const o=[`${n}=${encodeURIComponent(l)}`];he.isNumber(c)&&o.push(`expires=${new Date(c).toUTCString()}`),he.isString(s)&&o.push(`path=${s}`),he.isString(r)&&o.push(`domain=${r}`),t===!0&&o.push("secure"),he.isString(i)&&o.push(`SameSite=${i}`),document.cookie=o.join("; ")},read(n){if(typeof document>"u")return null;const l=document.cookie.split(";");for(let c=0;c<l.length;c++){const s=l[c].replace(/^\s+/,""),r=s.indexOf("=");if(r!==-1&&s.slice(0,r)===n)try{return decodeURIComponent(s.slice(r+1))}catch{return s.slice(r+1)}}return null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function $b(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function qb(n,l){if(!l)return n;let c=n.length;for(;c>0&&n.charCodeAt(c-1)===47;)c--;return n.slice(0,c)+"/"+l.replace(/^\/+/,"")}const Ub=/^https?:(?!\/\/)/i,Gb=/[\t\n\r]/g;function Xb(n){let l=0;for(;l<n.length&&n.charCodeAt(l)<=32;)l++;return n.slice(l)}function Yb(n){return Xb(n).replace(Gb,"")}function Kb(n){return n&&n.replace(/(^|&)([^=&]*=)?[^&]+/g,(l,c,s="")=>`${c}${s}${lu}`)}function Vb(n){const l=n.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${lu}@`),c=l.indexOf("#"),r=(c===-1?l:l.slice(0,c)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${lu}`);return c===-1?r:`${r}#${Kb(l.slice(c+1))}`}function Gh(n,l){if(typeof n=="string"){const c=Yb(n);if(Ub.test(c))throw new et(`Invalid URL ${JSON.stringify(Vb(c))}: missing "//" after protocol`,et.ERR_INVALID_URL,l)}}function Kg(n,l,c,s){Gh(l,s);let r=!$b(l);return n&&(r||c===!1)?(Gh(n,s),qb(n,l)):l}const Xh=n=>n instanceof Qi?{...n}:n,Zb=n=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(l=>Object.getOwnPropertyDescriptor(n,l).enumerable)):Object.keys(n);function Fo(n,l){n=n||{},l=l||{};const c=Object.create(null);Object.defineProperty(c,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(p,v,y,S){return he.isPlainObject(p)&&he.isPlainObject(v)?he.merge.call({caseless:S},p,v):he.isPlainObject(v)?he.merge({},v):he.isArray(v)?v.slice():v}
vendor: 18,430 bytes, lines 3-9
3function r(p,v,y,S){if(he.isUndefined(v)){if(!he.isUndefined(p))return s(void 0,p,y,S)}else return s(p,v,y,S)}function t(p,v){if(!he.isUndefined(v))return s(void 0,v)}function i(p,v){if(he.isUndefined(v)){if(!he.isUndefined(p))return s(void 0,p)}else return s(void 0,v)}function o(p){const v=he.hasOwnProp(l,"transitional")?l.transitional:void 0;if(!he.isUndefined(v))if(he.isPlainObject(v)){if(he.hasOwnProp(v,p))return v[p]}else return;const y=he.hasOwnProp(n,"transitional")?n.transitional:void 0;if(he.isPlainObject(y)&&he.hasOwnProp(y,p))return y[p]}function u(p,v,y){if(he.hasOwnProp(l,y))return s(p,v);if(he.hasOwnProp(n,y))return s(void 0,p)}const f={url:t,method:t,data:t,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:u,headers:(p,v,y)=>r(Xh(p),Xh(v),y,!0)};return he.forEach(Zb({...n,...l}),function(v){if(v==="__proto__"||v==="constructor"||v==="prototype")return;const y=he.hasOwnProp(f,v)?f[v]:r,S=he.hasOwnProp(n,v)?n[v]:void 0,D=he.hasOwnProp(l,v)?l[v]:void 0,F=y(S,D,v);he.isUndefined(F)&&y!==u||(c[v]=F)}),he.hasOwnProp(l,"validateStatus")&&he.isUndefined(l.validateStatus)&&o("validateStatusUndefinedResolves")===!1&&(he.hasOwnProp(n,"validateStatus")?c.validateStatus=s(void 0,n.validateStatus):delete c.validateStatus),c}const Qb=["content-type","content-length"];function Jb(n,l,c){if(c!=="content-only"){n.set(l);return}Object.entries(l||{}).forEach(([s,r])=>{Qb.includes(s.toLowerCase())&&n.set(s,r)})}const ex=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(l,c)=>String.fromCharCode(parseInt(c,16)));function Vg(n){const l=Fo({},n),c=y=>he.hasOwnProp(l,y)?l[y]:void 0,s=c("data");let r=c("withXSRFToken");const t=c("xsrfHeaderName"),i=c("xsrfCookieName");let o=c("headers");const u=c("auth"),f=c("baseURL"),p=c("allowAbsoluteUrls"),v=c("url");if(l.headers=o=Qi.from(o),l.url=qg(Kg(f,v,p,l),c("params"),c("paramsSerializer")),u){const y=he.getSafeProp(u,"username")||"",S=he.getSafeProp(u,"password")||"";try{o.set("Authorization","Basic "+btoa(y+":"+(S?ex(S):"")))}catch(D){throw et.from(D,et.ERR_BAD_OPTION_VALUE,n)}}if(he.isFormData(s)&&(Ui.hasStandardBrowserEnv||Ui.hasStandardBrowserWebWorkerEnv||he.isReactNative(s)?o.setContentType(void 0):he.isFunction(s.getHeaders)&&Jb(o,s.getHeaders(),c("formDataHeaderPolicy"))),Ui.hasStandardBrowserEnv&&(he.isFunction(r)&&(r=r(l)),r===!0||r==null&&jb(l.url))){const S=t&&i&&Wb.read(i);S&&o.set(t,S)}return l}const tx=typeof XMLHttpRequest<"u",ix=tx&&function(n){return new Promise(function(c,s){const r=Vg(n);let t=r.data;const i=Qi.from(r.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:f}=r,p,v,y,S,D;function F(){S&&S(),D&&D(),r.cancelToken&&r.cancelToken.unsubscribe(p),r.signal&&r.signal.removeEventListener("abort",p)}let M=new XMLHttpRequest;M.open(r.method.toUpperCase(),r.url,!0),M.timeout=r.timeout;function A(){if(!M)return;const H=Qi.from("getAllResponseHeaders"in M&&M.getAllResponseHeaders()),ee={data:!o||o==="text"||o==="json"?M.responseText:M.response,status:M.status,statusText:M.statusText,headers:H,config:n,request:M};Yg(function(w){c(w),F()},function(w){s(w),F()},ee),M=null}"onloadend"in M?M.onloadend=A:M.onreadystatechange=function(){!M||M.readyState!==4||M.status===0&&!(M.responseURL&&M.responseURL.startsWith("file:"))||setTimeout(A)},M.onabort=function(){M&&(s(new et("Request aborted",et.ECONNABORTED,n,M)),F(),M=null)},M.onerror=function(U){const ee=U&&U.message?U.message:"Network Error",Z=new et(ee,et.ERR_NETWORK,n,M);Z.event=U||null,s(Z),F(),M=null},M.ontimeout=function(){let U=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const ee=r.transitional||Hf;r.timeoutErrorMessage&&(U=r.timeoutErrorMessage),s(new et(U,ee.clarifyTimeoutError?et.ETIMEDOUT:et.ECONNABORTED,n,M)),F(),M=null},t===void 0&&i.setContentType(null),"setRequestHeader"in M&&he.forEach(Hg(i),function(U,ee){M.setRequestHeader(ee,U)}),he.isUndefined(r.withCredentials)||(M.withCredentials=!!r.withCredentials),o&&o!=="json"&&(M.responseType=r.responseType),f&&([y,D]=uu(f,!0),M.addEventListener("progress",y)),u&&M.upload&&([v,S]=uu(u),M.upload.addEventListener("progress",v),M.upload.addEventListener("loadend",S)),(r.cancelToken||r.signal)&&(p=H=>{M&&(s(!H||H.type?new el(null,n,M):H),M.abort(),F(),M=null)},r.cancelToken&&r.cancelToken.subscribe(p),r.signal&&(r.signal.aborted?p():r.signal.addEventListener("abort",p)));const L=Nb(r.url);if(L&&!Ui.protocols.includes(L)){s(new et("Unsupported protocol "+L+":",et.ERR_BAD_REQUEST,n)),F();return}M.send(t||null)})},nx=(n,l)=>{if(n=n?n.filter(Boolean):[],!l&&!n.length)return;const c=new AbortController;let s=!1;const r=function(u){if(!s){s=!0,i();const f=u instanceof Error?u:this.reason;c.abort(f instanceof et?f:new el(f instanceof Error?f.message:f))}};let t=l&&setTimeout(()=>{t=null,r(new et(`timeout of ${l}ms exceeded`,et.ETIMEDOUT))},l);const i=()=>{n&&(t&&clearTimeout(t),t=null,n.forEach(u=>{u.unsubscribe?u.unsubscribe(r):u.removeEventListener("abort",r)}),n=null)};n.forEach(u=>{if(!s){if(u.aborted){r.call(u);return}u.addEventListener("abort",r,{once:!0})}});const{signal:o}=c;return o.unsubscribe=()=>he.asap(i),o},rx=function*(n,l){let c=n.byteLength;if(c<l){yield n;return}let s=0,r;for(;s<c;)r=s+l,yield n.slice(s,r),s=r},ox=async function*(n,l){for await(const c of ax(n))yield*rx(c,l)},ax=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const l=n.getReader();try{for(;;){const{done:c,value:s}=await l.read();if(c)break;yield s}}finally{await l.cancel()}},Yh=(n,l,c,s)=>{const r=ox(n,l);let t=0,i,o=u=>{i||(i=!0,s&&s(u))};return new ReadableStream({async pull(u){try{const{done:f,value:p}=await r.next();if(f){o(),u.close();return}let v=p.byteLength;if(c){let y=t+=v;c(y)}u.enqueue(new Uint8Array(p))}catch(f){throw o(f),f}},cancel(u){return o(u),r.return()}},{highWaterMark:2})},Kh=n=>n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102,Zg=(n,l,c)=>l+2<c&&Kh(n.charCodeAt(l+1))&&Kh(n.charCodeAt(l+2)),Vh=n=>n<=57?n-48:(n&223)-55,sx=n=>n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||n===43||n===47||n===45||n===95,lx=n=>n===9||n===10||n===12||n===13||n===32,ux=n=>{const l=Math.floor(n/4),c=n%4;return l*3+(c===2?1:c===3?2:0)},cx=n=>{const l=n.length;let c=0;return l>0&&n.charCodeAt(l-1)===61&&(c++,l>1&&n.charCodeAt(l-2)===61&&c++),Math.floor((l-c)*3/4)},fx=n=>{const l=n.length;let c=0,s=0,r=!1;for(let t=0;t<l;t++){let i=n.charCodeAt(t);if(i===37&&Zg(n,t,l)&&(i=Vh(n.charCodeAt(t+1))*16+Vh(n.charCodeAt(t+2)),t+=2),!lx(i)){if(i===61){s++;continue}if(!sx(i)||s>0){r=!0;continue}c++}}return r||s>2||s>0&&(c+s)%4!==0||c%4===1?cx(n):ux(c)},dx=(n,l)=>{if(!n||typeof n!="string"||!n.startsWith("data:"))return 0;const c=n.indexOf(",");if(c<0)return 0;const s=n.slice(5,c),r=n.slice(c+1);if(/;base64/i.test(s))return l(r);let i=0;for(let o=0,u=r.length;o<u;o++){const f=r.charCodeAt(o);if(f===37&&Zg(r,o,u))i+=1,o+=2;else if(f<128)i+=1;else if(f<2048)i+=2;else if(f>=55296&&f<=56319&&o+1<u){const p=r.charCodeAt(o+1);p>=56320&&p<=57343?(i+=4,o++):i+=3}else i+=3}return i};function hx(n){const l=typeof n=="string"?n.indexOf("#"):-1;return dx(l===-1?n:n.slice(0,l),fx)}const jf="1.19.0",Zh=64*1024,{isFunction:Pl}=he,px=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(l,c)=>String.fromCharCode(parseInt(c,16))),Qh=n=>{if(!he.isString(n))return n;try{return decodeURIComponent(n)}catch{return n}},Jh=(n,...l)=>{try{return!!n(...l)}catch{return!1}},gx=n=>{const l=n.indexOf("://");let c=n;return l!==-1&&(c=c.slice(l+3)),c.includes("@")||c.includes(":")},mx=n=>{const l=he.global!==void 0&&he.global!==null?he.global:globalThis,{ReadableStream:c,TextEncoder:s}=l;n=he.merge.call({skipUndefined:!0},{Request:l.Request,Response:l.Response},n);const{fetch:r,Request:t,Response:i}=n,o=r?Pl(r):typeof fetch=="function",u=Pl(t),f=Pl(i);if(!o)return!1;const p=o&&Pl(c),v=o&&(typeof s=="function"?(A=>L=>A.encode(L))(new s):async A=>new Uint8Array(await new t(A).arrayBuffer())),y=u&&p&&Jh(()=>{let A=!1;const L=new t(Ui.origin,{body:new c,method:"POST",get duplex(){return A=!0,"half"}}),H=L.headers.has("Content-Type");return L.body!=null&&L.body.cancel(),A&&!H}),S=f&&p&&Jh(()=>he.isReadableStream(new i("").body)),D={stream:S&&(A=>A.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(A=>{!D[A]&&(D[A]=(L,H)=>{let U=L&&L[A];if(U)return U.call(L);throw new et(`Response type '${A}' is not supported`,et.ERR_NOT_SUPPORT,H)})});const F=async A=>{if(A==null)return 0;if(he.isBlob(A))return A.size;if(he.isSpecCompliantForm(A))return(await new t(Ui.origin,{method:"POST",body:A}).arrayBuffer()).byteLength;if(he.isArrayBufferView(A)||he.isArrayBuffer(A))return A.byteLength;if(he.isURLSearchParams(A)&&(A=A+""),he.isString(A))return(await v(A)).byteLength},M=async(A,L)=>{const H=he.toFiniteNumber(A.getContentLength());return H??F(L)};return async A=>{let{url:L,method:H,data:U,signal:ee,cancelToken:Z,timeout:w,onDownloadProgress:xe,onUploadProgress:De,responseType:Ke,headers:ye,withCredentials:_e="same-origin",fetchOptions:ie,maxContentLength:me,maxBodyLength:Y}=Vg(A);const Ee=he.isNumber(me)&&me>-1,we=he.isNumber(Y)&&Y>-1,Ie=Re=>he.hasOwnProp(A,Re)?A[Re]:void 0;let nt=r||fetch;Ke=Ke?(Ke+"").toLowerCase():"text";let at=nx([ee,Z&&Z.toAbortSignal()],w),ut=null;const j=at&&at.unsubscribe&&(()=>{at.unsubscribe()});let I,pe=null;const ze=()=>new et("Request body larger than maxBodyLength limit",et.ERR_BAD_REQUEST,A,ut);try{let Re;const We=Ie("auth");if(We){const rt=he.getSafeProp(We,"username")||"",Ht=he.getSafeProp(We,"password")||"";Re={username:rt,password:Ht}}if(gx(L)){const rt=new URL(L,Ui.origin);if(!Re&&(rt.username||rt.password)){const Ht=Qh(rt.username),Xt=Qh(rt.password);Re={username:Ht,password:Xt}}(rt.username||rt.password)&&(rt.username="",rt.password="",L=rt.href)}if(Re&&(ye.delete("authorization"),ye.set("Authorization","Basic "+btoa(px((Re.username||"")+":"+(Re.password||""))))),Ee&&typeof L=="string"&&L.startsWith("data:")&&hx(L)>me)throw new et("maxContentLength size of "+me+" exceeded",et.ERR_BAD_RESPONSE,A,ut);if(we&&H!=="get"&&H!=="head"){const rt=await F(U);if(typeof rt=="number"&&isFinite(rt)&&(I=rt,rt>Y))throw ze()}const ct=we&&(he.isReadableStream(U)||he.isStream(U)),ft=(rt,Ht,Xt)=>Yh(rt,Zh,Qt=>{if(we&&Qt>Y)throw pe=ze();Ht&&Ht(Qt)},Xt);if(y&&H!=="get"&&H!=="head"&&(De||ct)){if(I=I??await M(ye,U),I!==0||ct){let rt=new t(L,{method:"POST",body:U,duplex:"half"}),Ht;if(he.isFormData(U)&&(Ht=rt.headers.get("content-type"))&&ye.setContentType(Ht),rt.body){const[Xt,Qt]=De&&qh(I,uu(Uh(De)))||[];U=ft(rt.body,Xt,Qt)}}}else if(ct&&!u&&p&&H!=="get"&&H!=="head")U=ft(U);else if(ct&&u&&!y&&H!=="get"&&H!=="head")throw new et("Stream request bodies are not supported by the current fetch implementation",et.ERR_NOT_SUPPORT,A,ut);he.isString(_e)||(_e=_e?"include":"omit");const St=u&&"credentials"in t.prototype;if(he.isFormData(U)){const rt=ye.getContentType();rt&&/^multipart\/form-data/i.test(rt)&&!/boundary=/i.test(rt)&&ye.delete("content-type")}ye.set("User-Agent","axios/"+jf,!1);const vt={...ie,signal:at,method:H.toUpperCase(),headers:Hg(ye.normalize()),body:U,duplex:"half",credentials:St?_e:void 0};ut=u&&new t(L,vt);let ot=await(u?nt(ut,ie):nt(L,vt));const pt=Qi.from(ot.headers);if(Ee){const rt=he.toFiniteNumber(pt.getContentLength());if(rt!=null&&rt>me)throw new et("maxContentLength size of "+me+" exceeded",et.ERR_BAD_RESPONSE,A,ut)}const gt=S&&(Ke==="stream"||Ke==="response");if(S&&ot.body&&(xe||Ee||gt&&j)){const rt={};["status","statusText","headers"].forEach(Yt=>{rt[Yt]=ot[Yt]});const Ht=he.toFiniteNumber(pt.getContentLength()),[Xt,Qt]=xe&&qh(Ht,uu(Uh(xe),!0))||[];let Tt=0;const Ft=Yt=>{if(Ee&&(Tt=Yt,Tt>me))throw new et("maxContentLength size of "+me+" exceeded",et.ERR_BAD_RESPONSE,A,ut);Xt&&Xt(Yt)};ot=new i(Yh(ot.body,Zh,Ft,()=>{Qt&&Qt(),j&&j()}),rt)}Ke=Ke||"text";let $e=await D[he.findKey(D,Ke)||"text"](ot,A);if(Ee&&!S&&!gt){let rt;if($e!=null&&(typeof $e.byteLength=="number"?rt=$e.byteLength:typeof $e.size=="number"?rt=$e.size:typeof $e=="string"&&(rt=typeof s=="function"?new s().encode($e).byteLength:$e.length)),typeof rt=="number"&&rt>me)throw new et("maxContentLength size of "+me+" exceeded",et.ERR_BAD_RESPONSE,A,ut)}return!gt&&j&&j(),await new Promise((rt,Ht)=>{Yg(rt,Ht,{data:$e,headers:Qi.from(ot.headers),status:ot.status,statusText:ot.statusText,config:A,request:ut})})}catch(Re){if(j&&j(),at&&at.aborted&&at.reason instanceof et){const We=at.reason;throw We.config=A,ut&&(We.request=ut),Re!==We&&Object.defineProperty(We,"cause",{__proto__:null,value:Re,writable:!0,enumerable:!1,configurable:!0}),We}if(pe)throw ut&&!pe.request&&(pe.request=ut),pe;if(Re instanceof et)throw ut&&!Re.request&&(Re.request=ut),Re;if(Re&&Re.name==="TypeError"&&/Load failed|fetch/i.test(Re.message)){const We=new et("Network Error",et.ERR_NETWORK,A,ut,Re&&Re.response);throw Object.defineProperty(We,"cause",{__proto__:null,value:Re.cause||Re,writable:!0,enumerable:!1,configurable:!0}),We}throw et.from(Re,Re&&Re.code,A,ut,Re&&Re.response)}}},vx=new Map,Qg=n=>{let l=n&&n.env||{};const{fetch:c,Request:s,Response:r}=l,t=[s,r,c];let i=t.length,o=i,u,f,p=vx;for(;o--;)u=t[o],f=p.get(u),f===void 0&&p.set(u,f=o?new Map:mx(l)),p=f;return f};Qg();const Wf={http:Cb,xhr:ix,fetch:{get:Qg}};he.forEach(Wf,(n,l)=>{if(n){try{Object.defineProperty(n,"name",{__proto__:null,value:l})}catch{}Object.defineProperty(n,"adapterName",{__proto__:null,value:l})}});const ep=n=>`- ${n}`,yx=n=>he.isFunction(n)||n===null||n===!1;function bx(n,l){n=he.isArray(n)?n:[n];const{length:c}=n;let s,r;const t={};for(let i=0;i<c;i++){s=n[i];let o;if(r=s,!yx(s)&&(r=Wf[(o=String(s)).toLowerCase()],r===void 0))throw new et(`Unknown adapter '${o}'`);if(r&&(he.isFunction(r)||(r=r.get(l))))break;t[o||"#"+i]=r}if(!r){const i=Object.entries(t).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let o=c?i.length>1?`since :
4`+i.map(ep).join(`
5`):" "+ep(i[0]):"as no adapter specified";throw new et("There is no suitable adapter to dispatch the request "+o,et.ERR_NOT_SUPPORT)}return r}const Jg={getAdapter:bx,adapters:Wf};function wc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new el(null,n)}function Cc(n){return wc(n),n.headers=Qi.from(n.headers),n.data=xc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Jg.getAdapter(n.adapter||Js.adapter,n)(n).then(function(s){wc(n),n.response=s;try{s.data=xc.call(n,n.transformResponse,s)}finally{delete n.response}return s.headers=Qi.from(s.headers),s},function(s){if(!Xg(s)&&(wc(n),s&&s.response)){n.response=s.response;try{s.response.data=xc.call(n,n.transformResponse,s.response)}finally{delete n.response}s.response.headers=Qi.from(s.response.headers)}return Promise.reject(s)})}const Eu={};["object","boolean","number","function","string","symbol"].forEach((n,l)=>{Eu[n]=function(s){return typeof s===n||"a"+(l<1?"n ":" ")+n}});const tp={};Eu.transitional=function(l,c,s){function r(t,i){return"[Axios v"+jf+"] Transitional option '"+t+"'"+i+(s?". "+s:"")}return(t,i,o)=>{if(l===!1)throw new et(r(i," has been removed"+(c?" in "+c:"")),et.ERR_DEPRECATED);return c&&!tp[i]&&(tp[i]=!0,console.warn(r(i," has been deprecated since v"+c+" and will be removed in the near future"))),l?l(t,i,o):!0}};Eu.spelling=function(l){return(c,s)=>(console.warn(`${s} is likely a misspelling of ${l}`),!0)};function xx(n,l,c){if(typeof n!="object"||n===null)throw new et("options must be an object",et.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let r=s.length;for(;r-- >0;){const t=s[r],i=Object.prototype.hasOwnProperty.call(l,t)?l[t]:void 0;if(i){const o=n[t],u=o===void 0||i(o,t,n);if(u!==!0)throw new et("option "+t+" must be "+u,et.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new et("Unknown option "+t,et.ERR_BAD_OPTION)}}const Zl={assertOptions:xx,validators:Eu},Vi=Zl.validators;let Eo=class{constructor(l){this.defaults=l||{},this.interceptors={request:new Wh,response:new Wh}}async request(l,c){try{return await this._request(l,c)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const t=(()=>{if(!r.stack)return"";const i=r.stack.indexOf(`
6`);return i===-1?"":r.stack.slice(i+1)})();try{if(!s.stack)s.stack=t;else if(t){const i=t.indexOf(`
7`),o=i===-1?-1:t.indexOf(`
8`,i+1),u=o===-1?"":t.slice(o+1);String(s.stack).endsWith(u)||(s.stack+=`
9`+t)}}catch{}}throw s}}_request(l,c){typeof l=="string"?(c=c||{},c.url=l):c=l||{},c=Fo(this.defaults,c);const{transitional:s,paramsSerializer:r,headers:t}=c;s!==void 0&&Zl.assertOptions(s,{silentJSONParsing:Vi.transitional(Vi.boolean),forcedJSONParsing:Vi.transitional(Vi.boolean),clarifyTimeoutError:Vi.transitional(Vi.boolean),legacyInterceptorReqResOrdering:Vi.transitional(Vi.boolean),advertiseZstdAcceptEncoding:Vi.transitional(Vi.boolean),validateStatusUndefinedResolves:Vi.transitional(Vi.boolean)},!1),r!=null&&(he.isFunction(r)?c.paramsSerializer={serialize:r}:Zl.assertOptions(r,{encode:Vi.function,serialize:Vi.function},!0)),c.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?c.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:c.allowAbsoluteUrls=!0),Zl.assertOptions(c,{baseUrl:Vi.spelling("baseURL"),withXsrfToken:Vi.spelling("withXSRFToken")},!0),c.method=(c.method||this.defaults.method||"get").toLowerCase();let i=t&&he.merge(t.common,t[c.method]);t&&he.forEach(["delete","get","head","post","put","patch","query","common"],D=>{delete t[D]}),c.headers=Qi.concat(i,t);const o=[];let u=!0;this.interceptors.request.forEach(function(F){if(typeof F.runWhen=="function"&&F.runWhen(c)===!1)return;u=u&&F.synchronous;const M=c.transitional||Hf;M&&M.legacyInterceptorReqResOrdering?o.unshift(F.fulfilled,F.rejected):o.push(F.fulfilled,F.rejected)});const f=[];this.interceptors.response.forEach(function(F){f.push(F.fulfilled,F.rejected)});let p,v=0,y;if(!u){const D=[Cc.bind(this),void 0];for(D.unshift(...o),D.push(...f),y=D.length,p=Promise.resolve(c);v<y;)p=p.then(D[v++],D[v++]);return p}y=o.length;let S=c;for(;v<y;){const D=o[v++],F=o[v++];try{S=D?D(S):S}
9catch(M){if(!F){p=Promise.reject(M);break}try{const A=F.call(this,M);he.isThenable(A)&&(p=Promise.resolve(A).then(()=>Cc.call(this,S)))}catch(A){p=Promise.reject(A)}break}}if(!p)try{p=Cc.call(this,S)}catch(D){p=Promise.reject(D)}for(v=0,y=f.length;v<y;)p=p.then(f[v++],f[v++]);return p}getUri(l){l=Fo(this.defaults,l);const c=Kg(l.baseURL,l.url,l.allowAbsoluteUrls,l);return qg(c,l.params,l.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(l){Eo.prototype[l]=function(c,s){return this.request(Fo(s||{},{method:l,url:c,data:s&&he.hasOwnProp(s,"data")?s.data:void 0}))}});he.forEach(["post","put","patch","query"],function(l){function c(s){return function(t,i,o){return this.request(Fo(o||{},{method:l,headers:s?{"Content-Type":"multipart/form-data"}:{},url:t,data:i}))}}Eo.prototype[l]=c(),l!=="query"&&(Eo.prototype[l+"Form"]=c(!0))});let wx=class em{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(t){c=t});const s=this;this.promise.then(r=>{if(!s._listeners)return;let t=s._listeners.length;for(;t-- >0;)s._listeners[t](r);s._listeners=null}),this.promise.then=r=>{let t;const i=new Promise(o=>{s.subscribe(o),t=o}).then(r);return i.cancel=function(){s.unsubscribe(t)},i},l(function(t,i,o){s.reason||(s.reason=new el(t,i,o),c(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const c=this._listeners.indexOf(l);c!==-1&&this._listeners.splice(c,1)}toAbortSignal(){const l=new AbortController,c=s=>{l.abort(s)};return this.subscribe(c),l.signal.unsubscribe=()=>this.unsubscribe(c),l.signal}static source(){let l;return{token:new em(function(r){l=r}),cancel:l}}};function Cx(n){return function(c){return n.apply(null,c)}}function Ex(n){return he.isObject(n)&&n.isAxiosError===!0}const rf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
9alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rf).forEach(([n,l])=>{rf[l]=n});function tm(n){const l=new Eo(n),c=Fg(Eo.prototype.request,l);return he.extend(c,Eo.prototype,l,{allOwnKeys:!0}),he.extend(c,l,null,{allOwnKeys:!0}),c.create=function(r){return tm(Fo(n,r))},c}const Ci=tm(Js);Ci.Axios=Eo;Ci.CanceledError=el;Ci.CancelToken=wx;Ci.isCancel=Xg;Ci.VERSION=jf;Ci.toFormData=Cu;Ci.AxiosError=et;Ci.Cancel=Ci.CanceledError;Ci.all=function(l){return Promise.all(l)};Ci.spread=Cx;Ci.isAxiosError=Ex;Ci.mergeConfig=Fo;Ci.AxiosHeaders=Qi;Ci.formToJSON=n=>Gg(he.isHTMLForm(n)?new FormData(n):n);Ci.getAdapter=Jg.getAdapter;Ci.HttpStatusCode=rf;Ci.default=Ci;const{Axios:VE,AxiosError:ZE,CanceledError:QE,isCancel:JE,CancelToken:eS,VERSION:tS,all:iS,Cancel:nS,isAxiosError:rS,spread:oS,toFormData:aS,AxiosHeaders:sS,HttpStatusCode:lS,formToJSON:uS,getAdapter:cS,mergeConfig:fS,create:dS}=Ci;window.axios=Ci;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";function Oa(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Sx(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var l=n.default;if(typeof l=="function"){var c=function s(){var r=!1;try{r=this instanceof s}catch{}return r?Reflect.construct(l,arguments,this.constructor):l.apply(this,arguments)};c.prototype=l.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.keys(n).forEach(function(s){var r=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(c,s,r.get?r:{enumerable:!0,get:function(){return n[s]}})}),c}var Ql={exports:{}};var Dx=Ql.exports,ip;function cu(){return ip||(ip=1,(function(n){(function(l,c){n.exports=l.document?c(l,!0):function(s){if(!s.document)throw new Error("jQuery requires a window with a document");return c(s)}})(typeof window<"u"?window:Dx,function(l,c){var s=[],r=Object.getPrototypeOf,t=s.slice,i=s.flat?function(m){return s.flat.call(m)}:function(m){return s.concat.apply([],m)},o=s.push,u=s.indexOf,f={},p=f.toString,v=f.hasOwnProperty,y=v.toString,S=y.call(Object),D={},F=function(b){return typeof b=="function"&&typeof b.nodeType!="number"&&typeof b.item!="function"},M=function(b){return b!=null&&b===b.window},A=l.document,L={type:!0,src:!0,nonce:!0,noModule:!0};function H(m,b,C){C=C||A;var k,R,P=C.createElement("script");if(P.text=m,b)for(k in L)R=b[k]||b.getAttribute&&b.getAttribute(k),R&&P.setAttribute(k,R);C.head.appendChild(P).parentNode.removeChild(P)}function U(m){return m==null?m+"":typeof m=="object"||typeof m=="function"?f[p.call(m)]||"object":typeof m}var ee="3.7.1",Z=/HTML$/i,w=function(m,b){return new w.fn.init(m,b)};w.fn=w.prototype={jquery:ee,constructor:w,length:0,toArray:function(){return t.call(this)},get:function(m){return m==null?t.call(this):m<0?this[m+this.length]:this[m]},pushStack:function(m){var b=w.merge(this.constructor(),m);return b.prevObject=this,b},each:function(m){return w.each(this,m)},map:function(m){return this.pushStack(w.map(this,function(b,C){return m.call(b,C,b)}))},slice:function(){return this.pushStack(t.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(m,b){return(b
9+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(m,b){return b%2}))},eq:function(m){var b=this.length,C=+m+(m<0?b:0);return this.pushStack(C>=0&&C<b?[this[C]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:s.sort,splice:s.splice},w.extend=w.fn.extend=function(){var m,b,C,k,R,P,z=arguments[0]||{},ae=1,ne=arguments.length,ge=!1;for(typeof z=="boolean"&&(ge=z,z=arguments[ae]||{},ae++),typeof z!="object"&&!F(z)&&(z={}),ae===ne&&(z=this,ae--);ae<ne;ae++)if((m=arguments[ae])!=null)for(b in m)k=m[b],!(b==="__proto__"||z===k)&&(ge&&k&&(w.isPlainObject(k)||(R=Array.isArray(k)))?(C=z[b],R&&!Array.isArray(C)?P=[]:!R&&!w.isPlainObject(C)?P={}:P=C,R=!1,z[b]=w.extend(ge,P,k)):k!==void 0&&(z[b]=k));return z},w.extend({expando:"jQuery"+(ee+Math.random()).replace(/\D/g,""),isReady:!0,error:function(m){throw new Error(m)},noop:function(){},isPlainObject:function(m){var b,C;return!m||p.call(m)!=="[object Object]"?!1:(b=r(m),b?(C=v.call(b,"constructor")&&b.constructor,typeof C=="function"&&y.call(C)===S):!0)},isEmptyObject:function(m){var b;for(b in m)return!1;return!0},globalEval:function(m,b,C){H(m,{nonce:b&&b.nonce},C)},each:function(m,b){var C,k=0;if(xe(m))for(C=m.length;k<C&&b.call(m[k],k,m[k])!==!1;k++);else for(k in m)if(b.call(m[k],k,m[k])===!1)break;return m},text:function(m){var b,C="",k=0,R=m.nodeType;if(!R)for(;b=m[k++];)C+=w.text(b);return R===1||R===11?m.textContent:R===9?m.documentElement.textContent:R===3||R===4?m.nodeValue:C},makeArray:function(m,b){var C=b||[];return m!=null&&(xe(Object(m))?w.merge(C,typeof m=="string"?[m]:m):o.call(C,m)),C},inArray:function(m,b,C){return b==null?-1:u.call(b,m,C)},isXMLDoc:function(m){var b=m&&m.namespaceURI,C=m&&(m.ownerDocument||m).documentElement;return!Z.test(b||C&&C.nodeName||"HTML")},merge:function(m,b){for(var C=+b.length,k=0,R=m.length;k<C;k++)m[R++]=b[k];return m.length=R,m},grep:function(m,b,C){for(var k,R=[],P=0,z=m.length,ae=!C;P<z;P++)k=!b(m[P],P),k!==ae&&R.push(m[P]);return R},map:function(m,b,C){var k,R,P=0,z=[];if(xe(m))for(k=m.length;P<k;P++)R=b(m[P],P,C),R!=null&&z.push(R);else for(P in m)R=b(m[P],P,C),R!=null&&z.push(R);return i(z)},guid:1,support:D}),typeof Symbol=="function"&&(w.fn[Symbol.iterator]=s[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(m,b){f["[object "+b+"]"]=b.toLowerCase()});function xe(m){var b=!!m&&"length"in m&&m.length,C=U(m);return F(m)||M(m)?!1:C==="array"||b===0||typeof b=="number"&&b>0&&b-1 in m}function De(m,b){return m.nodeName&&m.nodeName.toLowerCase()===b.toLowerCase()}var Ke=s.pop,ye=s.sort,_e=s.splice,ie="[\\x20\\t\\r\\n\\f]",me=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g");w.contains=function(m,b){var C=b&&b.parentNode;return m===C||!!(C&&C.nodeType===1&&(m.contains?m.contains(C):m.compareDocumentPosition&&m.compareDocumentPosition(C)&16))};var Y=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Ee(m,b){return b?m==="\0"?"�":m.slice(0,-1)+"\\"+m.charCodeAt(m.length-1).toString(16)+" ":"\\"+m}w.escapeSelector=function(m){return(m+"").replace(Y,Ee)};var we=A,Ie=o;(function(){var m,b,C,k,R,P=Ie,z,ae,ne,ge,Fe,Le=w.expando,Ae=0,He=0,Dt=pr(),qt=pr(),Mt=pr(),Si=pr(),si=function(V,fe){return V===fe&&(R=!0),0},zi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",kn="(?:\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",$t="\\["+ie+"*("+kn+")(?:"+ie+"*([*^$|!~]?=)"+ie+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+kn+"))|)"+ie+"*\\]",hr=":("+kn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+$t+")*)|.*)\\)|)",zt=new RegExp(ie+"+","g"),It=new RegExp("^"+ie+"*,"+ie+"*"),io=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),Xo=new RegExp(ie+"|>"),Gi=new RegExp(hr),no=new RegExp("^"+kn+"$"),wn={ID:new RegExp("^#("+kn+")"),CLASS:new RegExp("^\\.("+kn+")"),TAG:new RegExp("^("+kn+"|[*])"),ATTR:new RegExp("^"+$t),PSEUDO:new RegExp("^"+hr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+zi+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},tr=/^(?:input|select|textarea|button)$/i,Tn=/^h\d$/i,Ji=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,es=/[+~]/,zn=new RegExp("\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\([^\\r\\n\\f])","g"),Fn=function(V,fe){var Se="0x"+V.slice(1)-65536;return fe||(Se<0?String.fromCharCode(Se+65536):String.fromCharCode(Se>>10|55296,Se&1023|56320))},hl=function(){ir()},zu=tn(function(V){return V.disabled===!0&&De(V,"fieldset")},{dir:"parentNode",next:"legend"});function ro(){try{return z.activeElement}catch{}}try{P.apply(s=t.call(we.childNodes),we.childNodes),s[we.childNodes.length].nodeType}catch{P={apply:function(fe,Se){Ie.apply(fe,t.call(Se))}
9,call:function(fe){Ie.apply(fe,t.call(arguments,1))}}}function jt(V,fe,Se,ke){var Oe,Ue,Ye,lt,Je,Pt,Ct,At=fe&&fe.ownerDocument,Bt=fe?fe.nodeType:9;if(Se=Se||[],typeof V!="string"||!V||Bt!==1&&Bt!==9&&Bt!==11)return Se;if(!ke&&(ir(fe),fe=fe||z,ne)){if(Bt!==11&&(Je=Ji.exec(V)))if(Oe=Je[1]){if(Bt===9)if(Ye=fe.getElementById(Oe)){if(Ye.id===Oe)return P.call(Se,Ye),Se}else return Se;else if(At&&(Ye=At.getElementById(Oe))&&jt.contains(fe,Ye)&&Ye.id===Oe)return P.call(Se,Ye),Se}else{if(Je[2])return P.apply(Se,fe.getElementsByTagName(V)),Se;if((Oe=Je[3])&&fe.getElementsByClassName)return P.apply(Se,fe.getElementsByClassName(Oe)),Se}if(!Si[V+" "]&&(!ge||!ge.test(V))){if(Ct=V,At=fe,Bt===1&&(Xo.test(V)||io.test(V))){for(At=es.test(V)&&Ko(fe.parentNode)||fe,(At!=fe||!D.scope)&&((lt=fe.getAttribute("id"))?lt=w.escapeSelector(lt):fe.setAttribute("id",lt=Le)),Pt=yr(V),Ue=Pt.length;Ue--;)Pt[Ue]=(lt?"#"+lt:":scope")+" "+jn(Pt[Ue]);Ct=Pt.join(",")}try{return P.apply(Se,At.querySelectorAll(Ct)),Se}catch{Si(V,!0)}finally{lt===Le&&fe.removeAttribute("id")}}}return Ir(V.replace(me,"$1"),fe,Se,ke)}function pr(){var V=[];function fe(Se,ke){return V.push(Se+" ")>b.cacheLength&&delete fe[V.shift()],fe[Se+" "]=ke}return fe}function en(V){return V[Le]=!0,V}function gr(V){var fe=z.createElement("fieldset");try{return!!V(fe)}catch{return!1}finally{fe.parentNode&&fe.parentNode.removeChild(fe),fe=null}}function On(V){return function(fe){return De(fe,"input")&&fe.type===V}}function mr(V){return function(fe){return(De(fe,"input")||De(fe,"button"))&&fe.type===V}}function Yo(V){return function(fe){return"form"in fe?fe.parentNode&&fe.disabled===!1?"label"in fe?"label"in fe.parentNode?fe.parentNode.disabled===V:fe.disabled===V:fe.isDisabled===V||fe.isDisabled!==!V&&zu(fe)===V:fe.disabled===V:"label"in fe?fe.disabled===V:!1}}function vr(V){return en(function(fe){return fe=+fe,en(function(Se,ke){for(var Oe,Ue=V([],Se.length,fe),Ye=Ue.length;Ye--;)Se[Oe=Ue[Ye]]&&(Se[Oe]=!(ke[Oe]=Se[Oe]))})})}function Ko(V){return V&&typeof V.getElementsByTagName<"u"&&V}function ir(V){var fe,Se=V?V.ownerDocument||V:we;return Se==z||Se.nodeType!==9||!Se.documentElement||(z=Se,ae=z.documentElement,ne=!w.isXMLDoc(z),Fe=ae.matches||ae.webkitMatchesSelector||ae.msMatchesSelector,ae.msMatchesSelector&&we!=z&&(fe=z.defaultView)&&fe.top!==fe&&fe.addEventListener("unload",hl),D.getById=gr(function(ke){return ae.appendChild(ke).id=w.expando,!z.getElementsByName||!z.getElementsByName(w.expando).length}),D.disconnectedMatch=gr(function(ke){return Fe.call(ke,"*")}),D.scope=gr(function(){return z.querySelectorAll(":scope")}),D.cssHas=gr(function(){try{return z.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),D.getById?(b.filter.ID=function(ke){var Oe=ke.replace(zn,Fn);return function(Ue){return Ue.getAttribute("id")===Oe}},b.find.ID=function(ke,Oe){if(typeof Oe.getElementById<"u"&&ne){var Ue=Oe.getElementById(ke);return Ue?[Ue]:[]}}):(b.filter.ID=function(ke){var Oe=ke.replace(zn,Fn);return function(Ue){var Ye=typeof Ue.getAttributeNode<"u"&&Ue.getAttributeNode("id");return Ye&&Ye.value===Oe}},b.find.ID=function(ke,Oe){if(typeof Oe.getElementById<"u"&&ne){var Ue,Ye,lt,Je=Oe.getElementById(ke);if(Je){if(Ue=Je.getAttributeNode("id"),Ue&&Ue.value===ke)return[Je];for(lt=Oe.getElementsByName(ke),Ye=0;Je=lt[Ye++];)if(Ue=Je.getAttributeNode("id"),Ue&&Ue.value===ke)return[Je]}return[]}}),b.find.TAG=function(ke,Oe){return typeof Oe.getElementsByTagName<"u"?Oe.getElementsByTagName(ke):Oe.querySelectorAll(ke)},b.find.CLASS=function(ke,Oe){if(typeof Oe.getElementsByClassName<"u"&&ne)return Oe.getElementsByClassName(ke)},ge=[],gr(function(ke){var Oe;ae.appendChild(ke).innerHTML="<a id='"+Le+"' href='' disabled='disabled'></a><select id='"+Le+"-\r\\' disabled='disabled'><option selected=''></option></select>",ke.querySelectorAll("[selected]").length||ge.push("\\["+ie+"*(?:value|"+zi+")"),ke.querySelectorAll("[id~="+Le+"-]").length||ge.push("~="),ke.querySelectorAll("a#"+Le+"+*").length||ge.push(".#.+[+~]"),ke.querySelectorAll(":checked").length||ge.push(":checked"),Oe=z.createElement("input"),Oe.setAttribute("type","hidden"),ke.appendChild(Oe).setAttribute("name","D"),ae.appendChild(ke).disabled=!0,ke.querySelectorAll(":disabled").length!==2&&ge.push(":enabled",":disabled"),Oe=z.createElement("input"),Oe.setAttribute("name",""),ke.appendChild(Oe),ke.querySelectorAll("[name='']").length||ge.push("\\["+ie+"*name"+ie+"*="+ie+`*(?:''|"")`)}),D.cssHas||ge.push(":has"),ge=ge.length&&new RegExp(ge.join("|")),si=function(ke,Oe){if(ke===Oe)return R=!0,0;var Ue=!ke.compareDocumentPosition-!Oe.compareDocumentPosition;return Ue||(Ue=(ke.ownerDocument||ke)==(Oe.ownerDocument||Oe)?ke.compareDocumentPosition(Oe):1,Ue&1||!D.sortDetached&&Oe.compareDocumentPosition(ke)===Ue?ke===z||ke.ownerDocument==we&&jt.contains(we,ke)?-1:Oe===z||Oe.ownerDocument==we&&jt.contains(we,Oe)?1:k?u.call(k,ke)-u.call(k,Oe):0:Ue&4?-1:1)}),z}jt.matches=function(V,fe){return jt(V,null,null,fe)},jt.matchesSelector=function(V,fe){if(ir(V),ne&&!Si[fe+" "]&&(!ge||!ge.test(fe)))try{var Se=Fe.call(V,fe);if(Se||D.disconnectedMatch||V.document&&V.document.nodeType!==11)return Se}catch{Si(fe,!0)}return jt(fe,z,null,[V]).length>0},jt.contains=function(V,fe){return(V.ownerDocument||V)!=z&&ir(V),w.contains(V,fe)},jt.attr=function(V,fe){(V.ownerDocument||V)!=z&&ir(V);var Se=b.attrHandle[fe.toLowerCase()],ke=Se&&v.call(b.attrHandle,fe.toLowerCase())?Se(V,fe,!ne):void 0;return ke!==void 0?ke:V.getAttribute(fe)},jt.error=function(V){throw new Error("Syntax error, unrecognized expression: "+V)},w.uniqueSort=function(V){var fe,Se=[],ke=0,Oe=0;if(R=!D.sortStable,k=!D.sortStable&&t.call(V,0),ye.call(V,si),R){for(;fe=V[Oe++];)fe===V[Oe]&&(ke=Se.push(Oe));for(;ke--;)_e.call(V,Se[ke],1)}return k=null,V},w.fn.uniqueSort=function(){return this.pushStack(w.uniqueSort(t.apply(this)))},b=w.expr={cacheLength:50,createPseudo:en,match:wn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(V){return V[1]=V[1].replace(zn,Fn),V[3]=(V[3]||V[4]||V[5]||"").replace(zn,Fn),V[2]==="~="&&(V[3]=" "+V[3]+" "),V.slice(0,4)},CHILD:function(V){return V[1]=V[1].toLowerCase(),V[1].slice(0,3)==="nth"?(V[3]||jt.error(V[0]),V[4]=+(V[4]?V[5]+(V[6]||1):2*(V[3]==="even"||V[3]==="odd")),V[5]=+(V[7]+V[8]||V[3]==="odd")):V[3]&&jt.error(V[0]),V},PSEUDO:function(V){var fe,Se=!V[6]&&V[2];return wn.CHILD.test(V[0])?null:(V[3]?V[2]=V[4]||V[5]||"":Se&&Gi.test(Se)&&(fe=yr(Se,!0))&&(fe=Se.indexOf(")",Se.length-fe)-Se.length)&&(V[0]=V[0].slice(0,fe),V[2]=Se.slice(0,fe)),V.slice(0,3))}},filter:{TAG:function(V){var fe=V.replace(zn,Fn).toLowerCase();return V==="*"?function(){return!0}:function(Se){return De(Se,fe)}},CLASS:function(V){var fe=Dt[V+" "];return fe||(fe=new RegExp("(^|"+ie+")"+V+"("+ie+"|$)"))&&Dt(V,function(Se){return fe.test(typeof Se.className=="string"&&Se.className||typeof Se.getAttribute<"u"&&Se.getAttribute("class")||"")})},ATTR:function(V,fe,Se){return function(ke){var Oe=jt.attr(ke,V);return Oe==null?fe==="!=":fe?(Oe+="",fe==="="?Oe===Se:fe==="!="?Oe!==Se:fe==="^="?Se&&Oe.indexOf(Se)===0:fe==="*="?Se&&Oe.indexOf(Se)>-1:fe==="$="?Se&&Oe.slice(-Se.length)===Se:fe==="~="?(" "+Oe.replace(zt," ")+" ").indexOf(Se)>-1:fe==="|="?Oe===Se||Oe.slice(0,Se.length+1)===Se+"-":!1):!0}},CHILD:function(V,fe,Se,ke,Oe){var Ue=V.slice(0,3)!=="nth",Ye=V.slice(-4)!=="last",lt=fe==="of-type";return ke===1&&Oe===0?function(Je){return!!Je.parentNode}:function(Je,Pt,Ct){var At,Bt,xt,ii,Xi,li=Ue!==Ye?"nextSibling":"previousSibling",Oi=Je.parentNode,ji=lt&&Je.nodeName.toLowerCase(),nr=!Ct&&!lt,Li=!1;if(Oi){if(Ue){for(;li;){for(xt=Je;xt=xt[li];)if(lt?De(xt,ji):xt.nodeType===1)return!1;Xi=li=V==="only"&&!Xi&&"nextSibling"}return!0}if(Xi=[Ye?Oi.firstChild:Oi.lastChild],Ye&&nr){for(Bt=Oi[Le]||(Oi[Le]={}),At=Bt[V]||[],ii=At[0]===Ae&&At[1],Li=ii&&At[2],xt=ii&&Oi.childNodes[ii];xt=++ii&&xt&&xt[li]||(Li=ii=0)||Xi.pop();)if(xt.nodeType===1&&++Li&&xt===Je){Bt[V]=[Ae,ii,Li];break}}else if(nr&&(Bt=Je[Le]||(Je[Le]={}),At=Bt[V]||[],ii=At[0]===Ae&&At[1],Li=ii),Li===!1)for(;(xt=++ii&&xt&&xt[li]||(Li=ii=0)||Xi.pop())&&!((lt?De(xt,ji):xt.nodeType===1)&&++Li&&(nr&&(Bt=xt[Le]||(xt[Le]={}),Bt[V]=[Ae,Li]),xt===Je)););
9return Li-=Oe,Li===ke||Li%ke===0&&Li/ke>=0}}},PSEUDO:function(V,fe){var Se,ke=b.pseudos[V]||b.setFilters[V.toLowerCase()]||jt.error("unsupported pseudo: "+V);return ke[Le]?ke(fe):ke.length>1?(Se=[V,V,"",fe],b.setFilters.hasOwnProperty(V.toLowerCase())?en(function(Oe,Ue){for(var Ye,lt=ke(Oe,fe),Je=lt.length;Je--;)Ye=u.call(Oe,lt[Je]),Oe[Ye]=!(Ue[Ye]=lt[Je])}):function(Oe){return ke(Oe,0,Se)}):ke}},pseudos:{not:en(function(V){var fe=[],Se=[],ke=Qo(V.replace(me,"$1"));return ke[Le]?en(function(Oe,Ue,Ye,lt){for(var Je,Pt=ke(Oe,null,lt,[]),Ct=Oe.length;Ct--;)(Je=Pt[Ct])&&(Oe[Ct]=!(Ue[Ct]=Je))}):function(Oe,Ue,Ye){return fe[0]=Oe,ke(fe,null,Ye,Se),fe[0]=null,!Se.pop()}}),has:en(function(V){return function(fe){return jt(V,fe).length>0}}),contains:en(function(V){return V=V.replace(zn,Fn),function(fe){return(fe.textContent||w.text(fe)).indexOf(V)>-1}}),lang:en(function(V){return no.test(V||"")||jt.error("unsupported lang: "+V),V=V.replace(zn,Fn).toLowerCase(),function(fe){var Se;do if(Se=ne?fe.lang:fe.getAttribute("xml:lang")||fe.getAttribute("lang"))return Se=Se.toLowerCase(),Se===V||Se.indexOf(V+"-")===0;while((fe=fe.parentNode)&&fe.nodeType===1);return!1}}),target:function(V){var fe=l.location&&l.location.hash;return fe&&fe.slice(1)===V.id},root:function(V){return V===ae},focus:function(V){return V===ro()&&z.hasFocus()&&!!(V.type||V.href||~V.tabIndex)},enabled:Yo(!1),disabled:Yo(!0),checked:function(V){return De(V,"input")&&!!V.checked||De(V,"option")&&!!V.selected},selected:function(V){return V.parentNode&&V.parentNode.selectedIndex,V.selected===!0},empty:function(V){for(V=V.firstChild;V;V=V.nextSibling)if(V.nodeType<6)return!1;return!0},parent:function(V){return!b.pseudos.empty(V)},header:function(V){return Tn.test(V.nodeName)},input:function(V){return tr.test(V.nodeName)},button:function(V){return De(V,"input")&&V.type==="button"||De(V,"button")},text:function(V){var fe;return De(V,"input")&&V.type==="text"&&((fe=V.getAttribute("type"))==null||fe.toLowerCase()==="text")},first:vr(function(){return[0]}),last:vr(function(V,fe){return[fe-1]}),eq:vr(function(V,fe,Se){return[Se<0?Se+fe:Se]}),even:vr(function(V,fe){for(var Se=0;Se<fe;Se+=2)V.push(Se);return V}),odd:vr(function(V,fe){for(var Se=1;Se<fe;Se+=2)V.push(Se);return V}),lt:vr(function(V,fe,Se){var ke;for(Se<0?ke=Se+fe:Se>fe?ke=fe:ke=Se;--ke>=0;)V.push(ke);return V}),gt:vr(function(V,fe,Se){for(var ke=Se<0?Se+fe:Se;++ke<fe;)V.push(ke);return V})}},b.pseudos.nth=b.pseudos.eq;for(m in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[m]=On(m);for(m in{submit:!0,reset:!0})b.pseudos[m]=mr(m);function ts(){}ts.prototype=b.filters=b.pseudos,b.setFilters=new ts;function yr(V,fe){var Se,ke,Oe,Ue,Ye,lt,Je,Pt=qt[V+" "];if(Pt)return fe?0:Pt.slice(0);for(Ye=V,lt=[],Je=b.preFilter;Ye;){(!Se||(ke=It.exec(Ye)))&&(ke&&(Ye=Ye.slice(ke[0].length)||Ye),lt.push(Oe=[])),Se=!1,(ke=io.exec(Ye))&&(Se=ke.shift(),Oe.push({value:Se,type:ke[0].replace(me," ")}),Ye=Ye.slice(Se.length));for(Ue in b.filter)(ke=wn[Ue].exec(Ye))&&(!Je[Ue]||(ke=Je[Ue](ke)))&&(Se=ke.shift(),Oe.push({value:Se,type:Ue,matches:ke}),Ye=Ye.slice(Se.length));if(!Se)break}return fe?Ye.length:Ye?jt.error(V):qt(V,lt).slice(0)}function jn(V){for(var fe=0,Se=V.length,ke="";fe<Se;fe++)ke+=V[fe].value;return ke}function tn(V,fe,Se){var ke=fe.dir,Oe=fe.next,Ue=Oe||ke,Ye=Se&&Ue==="parentNode",lt=He++;return fe.first?function(Je,Pt,Ct){for(;Je=Je[ke];)if(Je.nodeType===1||Ye)return V(Je,Pt,Ct);return!1}:function(Je,Pt,Ct){var At,Bt,xt=[Ae,lt];if(Ct){for(;Je=Je[ke];)if((Je.nodeType===1||Ye)&&V(Je,Pt,Ct))return!0}else for(;Je=Je[ke];)if(Je.nodeType===1||Ye)if(Bt=Je[Le]||(Je[Le]={}),Oe&&De(Je,Oe))Je=Je[ke]||Je;else{if((At=Bt[Ue])&&At[0]===Ae&&At[1]===lt)return xt[2]=At[2];if(Bt[Ue]=xt,xt[2]=V(Je,Pt,Ct))return!0}return!1}}function Vo(V){return V.length>1?function(fe,Se,ke){for(var Oe=V.length;Oe--;)if(!V[Oe](fe,Se,ke))return!1;return!0}:V[0]}function pl(V,fe,Se){for(var ke=0,Oe=fe.length;ke<Oe;ke++)jt(V,fe[ke],Se);return Se}function Zo(V,fe,Se,ke,Oe){for(var Ue,Ye=[],lt=0,Je=V.length,Pt=fe!=null;lt<Je;lt++)(Ue=V[lt])&&(!Se||Se(Ue,ke,Oe))&&(Ye.push(Ue),Pt&&fe.push(lt));return Ye}function is(V,fe,Se,ke,Oe,Ue){return ke&&!ke[Le]&&(ke=is(ke)),Oe&&!Oe[Le]&&(Oe=is(Oe,Ue)),en(function(Ye,lt,Je,Pt){var 
vendor: 23,885 bytes, line 9
9Ct,At,Bt,xt,ii=[],Xi=[],li=lt.length,Oi=Ye||pl(fe||"*",Je.nodeType?[Je]:Je,[]),ji=V&&(Ye||!fe)?Zo(Oi,ii,V,Je,Pt):Oi;if(Se?(xt=Oe||(Ye?V:li||ke)?[]:lt,Se(ji,xt,Je,Pt)):xt=ji,ke)for(Ct=Zo(xt,Xi),ke(Ct,[],Je,Pt),At=Ct.length;At--;)(Bt=Ct[At])&&(xt[Xi[At]]=!(ji[Xi[At]]=Bt));if(Ye){if(Oe||V){if(Oe){for(Ct=[],At=xt.length;At--;)(Bt=xt[At])&&Ct.push(ji[At]=Bt);Oe(null,xt=[],Ct,Pt)}for(At=xt.length;At--;)(Bt=xt[At])&&(Ct=Oe?u.call(Ye,Bt):ii[At])>-1&&(Ye[Ct]=!(lt[Ct]=Bt))}}else xt=Zo(xt===lt?xt.splice(li,xt.length):xt),Oe?Oe(null,lt,xt,Pt):P.apply(lt,xt)})}function ns(V){for(var fe,Se,ke,Oe=V.length,Ue=b.relative[V[0].type],Ye=Ue||b.relative[" "],lt=Ue?1:0,Je=tn(function(At){return At===fe},Ye,!0),Pt=tn(function(At){return u.call(fe,At)>-1},Ye,!0),Ct=[function(At,Bt,xt){var ii=!Ue&&(xt||Bt!=C)||((fe=Bt).nodeType?Je(At,Bt,xt):Pt(At,Bt,xt));return fe=null,ii}];lt<Oe;lt++)if(Se=b.relative[V[lt].type])Ct=[tn(Vo(Ct),Se)];else{if(Se=b.filter[V[lt].type].apply(null,V[lt].matches),Se[Le]){for(ke=++lt;ke<Oe&&!b.relative[V[ke].type];ke++);return is(lt>1&&Vo(Ct),lt>1&&jn(V.slice(0,lt-1).concat({value:V[lt-2].type===" "?"*":""})).replace(me,"$1"),Se,lt<ke&&ns(V.slice(lt,ke)),ke<Oe&&ns(V=V.slice(ke)),ke<Oe&&jn(V))}Ct.push(Se)}return Vo(Ct)}function gl(V,fe){var Se=fe.length>0,ke=V.length>0,Oe=function(Ue,Ye,lt,Je,Pt){var Ct,At,Bt,xt=0,ii="0",Xi=Ue&&[],li=[],Oi=C,ji=Ue||ke&&b.find.TAG("*",Pt),nr=Ae+=Oi==null?1:Math.random()||.1,Li=ji.length;for(Pt&&(C=Ye==z||Ye||Pt);ii!==Li&&(Ct=ji[ii])!=null;ii++){if(ke&&Ct){for(At=0,!Ye&&Ct.ownerDocument!=z&&(ir(Ct),lt=!ne);Bt=V[At++];)if(Bt(Ct,Ye||z,lt)){P.call(Je,Ct);break}Pt&&(Ae=nr)}Se&&((Ct=!Bt&&Ct)&&xt--,Ue&&Xi.push(Ct))}if(xt+=ii,Se&&ii!==xt){for(At=0;Bt=fe[At++];)Bt(Xi,li,Ye,lt);if(Ue){if(xt>0)for(;ii--;)Xi[ii]||li[ii]||(li[ii]=Ke.call(Je));li=Zo(li)}P.apply(Je,li),Pt&&!Ue&&li.length>0&&xt+fe.length>1&&w.uniqueSort(Je)}return Pt&&(Ae=nr,C=Oi),Xi};return Se?en(Oe):Oe}function Qo(V,fe){var Se,ke=[],Oe=[],Ue=Mt[V+" "];if(!Ue){for(fe||(fe=yr(V)),Se=fe.length;Se--;)Ue=ns(fe[Se]),Ue[Le]?ke.push(Ue):Oe.push(Ue);Ue=Mt(V,gl(Oe,ke)),Ue.selector=V}return Ue}function Ir(V,fe,Se,ke){var Oe,Ue,Ye,lt,Je,Pt=typeof V=="function"&&V,Ct=!ke&&yr(V=Pt.selector||V);if(Se=Se||[],Ct.length===1){if(Ue=Ct[0]=Ct[0].slice(0),Ue.length>2&&(Ye=Ue[0]).type==="ID"&&fe.nodeType===9&&ne&&b.relative[Ue[1].type]){if(fe=(b.find.ID(Ye.matches[0].replace(zn,Fn),fe)||[])[0],fe)Pt&&(fe=fe.parentNode);else return Se;V=V.slice(Ue.shift().value.length)}for(Oe=wn.needsContext.test(V)?0:Ue.length;Oe--&&(Ye=Ue[Oe],!b.relative[lt=Ye.type]);)if((Je=b.find[lt])&&(ke=Je(Ye.matches[0].replace(zn,Fn),es.test(Ue[0].type)&&Ko(fe.parentNode)||fe))){if(Ue.splice(Oe,1),V=ke.length&&jn(Ue),!V)return P.apply(Se,ke),Se;break}}return(Pt||Qo(V,Ct))(ke,fe,!ne,Se,!fe||es.test(V)&&Ko(fe.parentNode)||fe),Se}D.sortStable=Le.split("").sort(si).join("")===Le,ir(),D.sortDetached=gr(function(V){return V.compareDocumentPosition(z.createElement("fieldset"))&1}),w.find=jt,w.expr[":"]=w.expr.pseudos,w.unique=w.uniqueSort,jt.compile=Qo,jt.select=Ir,jt.setDocument=ir,jt.tokenize=yr,jt.escape=w.escapeSelector,jt.getText=w.text,jt.isXML=w.isXMLDoc,jt.selectors=w.expr,jt.support=w.support,jt.uniqueSort=w.uniqueSort})();var nt=function(m,b,C){for(var k=[],R=C!==void 0;(m=m[b])&&m.nodeType!==9;)if(m.nodeType===1){if(R&&w(m).is(C))break;k.push(m)}return k},at=function(m,b){for(var C=[];m;m=m.nextSibling)m.nodeType===1&&m!==b&&C.push(m);return C},ut=w.expr.match.needsContext,j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(m,b,C){return F(b)?w.grep(m,function(k,R){return!!b.call(k,R,k)!==C}):b.nodeType?w.grep(m,function(k){return k===b!==C}):typeof b!="string"?w.grep(m,function(k){return u.call(b,k)>-1!==C}):w.filter(b,m,C)}w.filter=function(m,b,C){var k=b[0];return C&&(m=":not("+m+")"),b.length===1&&k.nodeType===1?w.find.matchesSelector(k,m)?[k]:[]:w.find.matches(m,w.grep(b,function(R){return R.nodeType===1}))},w.fn.extend({find:function(m){var b,C,k=this.length,R=this;if(typeof m!="string")return this.pushStack(w(m).filter(function(){for(b=0;b<k;b++)if(w.contains(R[b],this))return!0}));for(C=this.pushStack([]),b=0;b<k;b++)w.find(m,R[b],C);return k>1?w.uniqueSort(C):C},filter:function(m){return this.pushStack(I(this,m||[],!1))},not:function(m){return this.pushStack(I(this,m||[],!0))},is:function(m){return!!I(this,typeof m=="string"&&ut.test(m)?w(m):m||[],!1).length}});var pe,ze=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Re=w.fn.init=function(m,b,C){var k,R;if(!m)return this;if(C=C||pe,typeof m=="string")if(m[0]==="<"&&m[m.length-1]===">"&&m.length>=3?k=[null,m,null]:k=ze.exec(m),k&&(k[1]||!b))if(k[1]){if(b=b instanceof w?b[0]:b,w.merge(this,w.parseHTML(k[1],b&&b.nodeType?b.ownerDocument||b:A,!0)),j.test(k[1])&&w.isPlainObject(b))for(k in b)F(this[k])?this[k](b[k]):this.attr(k,b[k]);return this}else return R=A.getElementById(k[2]),R&&(this[0]=R,this.length=1),this;else return!b||b.jquery?(b||C).find(m):this.constructor(b).find(m);else{if(m.nodeType)return this[0]=m,this.length=1,this;if(F(m))return C.ready!==void 0?C.ready(m):m(w)}return w.makeArray(m,this)};Re.prototype=w.fn,pe=w(A);var We=/^(?:parents|prev(?:Until|All))/,ct={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(m){var b=w(m,this),C=b.length;return this.filter(function(){for(var k=0;k<C;k++)if(w.contains(this,b[k]))return!0})},closest:function(m,b){var C,k=0,R=this.length,P=[],z=typeof m!="string"&&w(m);if(!ut.test(m)){for(;k<R;k++)for(C=this[k];C&&C!==b;C=C.parentNode)if(C.nodeType<11&&(z?z.index(C)>-1:C.nodeType===1&&w.find.matchesSelector(C,m))){P.push(C);break}}return this.pushStack(P.length>1?w.uniqueSort(P):P)},index:function(m){return m?typeof m=="string"?u.call(w(m),this[0]):u.call(this,m.jquery?m[0]:m):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(m,b){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(m,b))))},addBack:function(m){return this.add(m==null?this.prevObject:this.prevObject.filter(m))}});function ft(m,b){for(;(m=m[b])&&m.nodeType!==1;);return m}w.each({parent:function(m){var b=m.parentNode;return b&&b.nodeType!==11?b:null},parents:function(m){return nt(m,"parentNode")},parentsUntil:function(m,b,C){return nt(m,"parentNode",C)},next:function(m){return ft(m,"nextSibling")},prev:function(m){return ft(m,"previousSibling")},nextAll:function(m){return nt(m,"nextSibling")},prevAll:function(m){return nt(m,"previousSibling")},nextUntil:function(m,b,C){return nt(m,"nextSibling",C)},prevUntil:function(m,b,C){return nt(m,"previousSibling",C)},siblings:function(m){return at((m.parentNode||{}).firstChild,m)},children:function(m){return at(m.firstChild)},contents:function(m){return m.contentDocument!=null&&r(m.contentDocument)?m.contentDocument:(De(m,"template")&&(m=m.content||m),w.merge([],m.childNodes))}},function(m,b){w.fn[m]=function(C,k){var R=w.map(this,b,C);return m.slice(-5)!=="Until"&&(k=C),k&&typeof k=="string"&&(R=w.filter(k,R)),this.length>1&&(ct[m]||w.uniqueSort(R),We.test(m)&&R.reverse()),this.pushStack(R)}});var St=/[^\x20\t\r\n\f]+/g;function vt(m){var b={};return w.each(m.match(St)||[],function(C,k){b[k]=!0}),b}w.Callbacks=function(m){m=typeof m=="string"?vt(m):w.extend({},m);var b,C,k,R,P=[],z=[],ae=-1,ne=function(){for(R=R||m.once,k=b=!0;z.length;ae=-1)for(C=z.shift();++ae<P.length;)P[ae].apply(C[0],C[1])===!1&&m.stopOnFalse&&(ae=P.length,C=!1);m.memory||(C=!1),b=!1,R&&(C?P=[]:P="")},ge={add:function(){return P&&(C&&!b&&(ae=P.length-1,z.push(C)),(function Fe(Le){w.each(Le,function(Ae,He){F(He)?(!m.unique||!ge.has(He))&&P.push(He):He&&He.length&&U(He)!=="string"&&Fe(He)})})(arguments),C&&!b&&ne()),this},remove:function(){return w.each(arguments,function(Fe,Le){for(var Ae;(Ae=w.inArray(Le,P,Ae))>-1;)P.splice(Ae,1),Ae<=ae&&ae--}),this},has:function(Fe){return Fe?w.inArray(Fe,P)>-1:P.length>0},empty:function(){return P&&(P=[]),this},disable:function(){return R=z=[],P=C="",this},disabled:function(){return!P},lock:function(){return R=z=[],!C&&!b&&(P=C=""),this},locked:function(){return!!R},fireWith:function(Fe,Le){return R||(Le=Le||[],Le=[Fe,Le.slice?Le.slice():Le],z.push(Le),b||ne()),this},fire:function(){return ge.fireWith(this,arguments),this},fired:function(){return!!k}};return ge};function ot(m){return m}function pt(m){throw m}function gt(m,b,C,k){var R;try{m&&F(R=m.promise)?R.call(m).done(b).fail(C):m&&F(R=m.then)?R.call(m,b,C):b.apply(void 0,[m].slice(k))}catch(P){C.apply(void 0,[P])}}w.extend({Deferred:function(m){var b=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],C="pending",k={state:function(){return C},always:function(){return R.done(arguments).fail(arguments),this},catch:function(P){return k.then(null,P)},pipe:function(){var P=arguments;return w.Deferred(function(z){w.each(b,function(ae,ne){var ge=F(P[ne[4]])&&P[ne[4]];R[ne[1]](function(){var Fe=ge&&ge.apply(this,arguments);Fe&&F(Fe.promise)?Fe.promise().progress(z.notify).done(z.resolve).fail(z.reject):z[ne[0]+"With"](this,ge?[Fe]:arguments)})}),P=null}).promise()},then:function(P,z,ae){var ne=0;function ge(Fe,Le,Ae,He){return function(){var Dt=this,qt=arguments,Mt=function(){var si,zi;if(!(Fe<ne)){if(si=Ae.apply(Dt,qt),si===Le.promise())throw new TypeError("Thenable self-resolution");zi=si&&(typeof si=="object"||typeof si=="function")&&si.then,F(zi)?He?zi.call(si,ge(ne,Le,ot,He),ge(ne,Le,pt,He)):(ne++,zi.call(si,ge(ne,Le,ot,He),ge(ne,Le,pt,He),ge(ne,Le,ot,Le.notifyWith))):(Ae!==ot&&(Dt=void 0,qt=[si]),(He||Le.resolveWith)(Dt,qt))}},Si=He?Mt:function(){try{Mt()}catch(si){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(si,Si.error),Fe+1>=ne&&(Ae!==pt&&(Dt=void 0,qt=[si]),Le.rejectWith(Dt,qt))}};Fe?Si():(w.Deferred.getErrorHook?Si.error=w.Deferred.getErrorHook():w.Deferred.getStackHook&&(Si.error=w.Deferred.getStackHook()),l.setTimeout(Si))}}return w.Deferred(function(Fe){b[0][3].add(ge(0,Fe,F(ae)?ae:ot,Fe.notifyWith)),b[1][3].add(ge(0,Fe,F(P)?P:ot)),b[2][3].add(ge(0,Fe,F(z)?z:pt))}).promise()},promise:function(P){return P!=null?w.extend(P,k):k}},R={};return w.each(b,function(P,z){var ae=z[2],ne=z[5];k[z[1]]=ae.add,ne&&ae.add(function(){C=ne},b[3-P][2].disable,b[3-P][3].disable,b[0][2].lock,b[0][3].lock),ae.add(z[3].fire),R[z[0]]=function(){return R[z[0]+"With"](this===R?void 0:this,arguments),this},R[z[0]+"With"]=ae.fireWith}),k.promise(R),m&&m.call(R,R),R},when:function(m){var b=arguments.length,C=b,k=Array(C),R=t.call(arguments),P=w.Deferred(),z=function(ae){return function(ne){k[ae]=this,R[ae]=arguments.length>1?t.call(arguments):ne,--b||P.resolveWith(k,R)}};if(b<=1&&(gt(m,P.done(z(C)).resolve,P.reject,!b),P.state()==="pending"||F(R[C]&&R[C].then)))return P.then();for(;C--;)gt(R[C],z(C),P.reject);return P.promise()}});var $e=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(m,b){l.console&&l.console.warn&&m&&$e.test(m.name)&&l.console.warn("jQuery.Deferred exception: "+m.message,m.stack,b)},w.readyException=function(m){l.setTimeout(function(){throw m})};var rt=w.Deferred();w.fn.ready=function(m){return rt.then(m).catch(function(b){w.readyException(b)}),this},w.extend({isReady:!1,readyWait:1,ready:function(m){(m===!0?--w.readyWait:w.isReady)||(w.isReady=!0,!(m!==!0&&--w.readyWait>0)&&rt.resolveWith(A,[w]))}}),w.ready.then=rt.then;function Ht(){A.removeEventListener("DOMContentLoaded",Ht),l.removeEventListener("load",Ht),w.ready()}A.readyState==="complete"||A.readyState!=="loading"&&!A.documentElement.doScroll?l.setTimeout(w.ready):(A.addEventListener("DOMContentLoaded",Ht),l.addEventListener("load",Ht));var Xt=function(m,b,C,k,R,P,z){var ae=0,ne=m.length,ge=C==null;if(U(C)==="object"){R=!0;for(ae in C)Xt(m,b,ae,C[ae],!0,P,z)}else if(k!==void 0&&(R=!0,F(k)||(z=!0),ge&&(z?(b.call(m,k),b=null):(ge=b,b=function(Fe,Le,Ae){return ge.call(w(Fe),Ae)})),b))for(;ae<ne;ae++)b(m[ae],C,z?k:k.call(m[ae],ae,b(m[ae],C)));return R?m:ge?b.call(m):ne?b(m[0],C):P},Qt=/^-ms-/,Tt=/-([a-z])/g;function Ft(m,b){return b.toUpperCase()}function Yt(m){return m.replace(Qt,"ms-").replace(Tt,Ft)}var cn=function(m){return m.nodeType===1||m.nodeType===9||!+m.nodeType};function be(){this.expando=w.expando+be.uid++}be.uid=1,be.prototype={cache:function(m){var b=m[this.expando];return b||(b={},cn(m)&&(m.nodeType?m[this.expando]=b:Object.defineProperty(m,this.expando,{value:b,configurable:!0}))),b},set:function(m,b,C){var k,R=this.cache(m);if(typeof b=="string")R[Yt(b)]=C;else for(k in b)R[Yt(k)]=b[k];return R},get:function(m,b){return b===void 0?this.cache(m):m[this.expando]&&m[this.expando][Yt(b)]},access:function(m,b,C){return b===void 0||b&&typeof b=="string"&&C===void 0?this.get(m,b):(this.set(m,b,C),C!==void 0?C:b)},remove:function(m,b){var C,k=m[this.expando];if(k!==void 0){if(b!==void 0)for(Array.isArray(b)?b=b.map(Yt):(b=Yt(b),b=b in k?[b]:b.match(St)||[]),C=b.length;C--;)delete k[b[C]];(b===void 0||w.isEmptyObject(k))&&(m.nodeType?m[this.expando]=void 0:delete m[this.expando])}},hasData:function(m){var b=m[this.expando];return b!==void 0&&!w.isEmptyObject(b)}};var le=new be,ce=new be,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/[A-Z]/g;function G(m){return m==="true"?!0:m==="false"?!1:m==="null"?null:m===+m+""?+m:N.test(m)?JSON.parse(m):m}function oe(m,b,C){var k;if(C===void 0&&m.nodeType===1)if(k="data-"+b.replace(q,"-$&").toLowerCase(),C=m.getAttribute(k),typeof C=="string"){try{C=G(C)}catch{}ce.set(m,b,C)}else C=void 0;return C}w.extend({hasData:function(m){return ce.hasData(m)||le.hasData(m)},data:function(m,b,C){return ce.access(m,b,C)},removeData:function(m,b){ce.remove(m,b)},_data:function(m,b,C){return le.access(m,b,C)},_removeData:function(m,b){le.remove(m,b)}}),w.fn.extend({data:function(m,b){var C,k,R,P=this[0],z=P&&P.attributes;if(m===void 0){if(this.length&&(R=ce.get(P),P.nodeType===1&&!le.get(P,"hasDataAttrs"))){for(C=z.length;C--;)z[C]&&(k=z[C].name,k.indexOf("data-")===0&&(k=Yt(k.slice(5)),oe(P,k,R[k])));le.set(P,"hasDataAttrs",!0)}return R}return typeof m=="object"?this.each(function(){ce.set(this,m)}):Xt(this,function(ae){var ne;if(P&&ae===void 0)return ne=ce.get(P,m),ne!==void 0||(ne=oe(P,m),ne!==void 0)?ne:void 0;this.each(function(){ce.set(this,m,ae)})},null,b,arguments.length>1,null,!0)},removeData:function(m){return this.each(function(){ce.remove(this,m)})}}),w.extend({queue:function(m,b,C){var k;if(m)return b=(b||"fx")+"queue",k=le.get(m,b),C&&(!k||Array.isArray(C)?k=le.access(m,b,w.makeArray(C)):k.push(C)),k||[]},dequeue:function(m,b){b=b||"fx";var C=w.queue(m,b),k=C.length,R=C.shift(),P=w._queueHooks(m,b),z=function(){w.dequeue(m,b)};R==="inprogress"&&(R=C.shift(),k--),R&&(b==="fx"&&C.unshift("inprogress"),delete P.stop,R.call(m,z,P)),!k&&P&&P.empty.fire()},_queueHooks:function(m,b){var C=b+"queueHooks";return le.get(m,C)||le.access(m,C,{empty:w.Callbacks("once memory").add(function(){le.remove(m,[b+"queue",C])})})}}),w.fn.extend({queue:function(m,b){var C=2;return typeof m!="string"&&(b=m,m="fx",C--),arguments.length<C?w.queue(this[0],m):b===void 0?this:this.each(function(){var k=w.queue(this,m,b);w._queueHooks(this,m),m==="fx"&&k[0]!=="inprogress"&&w.dequeue(this,m)})},dequeue:function(m){return this.each(function(){w.dequeue(this,m)})},clearQueue:function(m){return this.queue(m||"fx",[])},promise:function(m,b){var C,k=1,R=w.Deferred(),P=this,z=this.length,ae=function(){--k||R.resolveWith(P,[P])};for(typeof m!="string"&&(b=m,m=void 0),m=m||"fx";z--;)C=le.get(P[z],m+"queueHooks"),C&&C.empty&&(k++,C.empty.add(ae));return ae(),R.promise(b)}});var _=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,W=new RegExp("^(?:([+-])=|)("+_+")([a-z%]*)$","i"),K=["Top","Right","Bottom","Left"],te=A.documentElement,se=function(m){return w.contains(m.ownerDocument,m)},Ce={composed:!0};te.getRootNode&&(se=function(m){return w.contains(m.ownerDocument,m)||m.getRootNode(Ce)===m.ownerDocument});var re=function(m,b){return m=b||m,m.style.display==="none"||m.style.display===""&&se(m)&&w.css(m,"display")==="none"};function ue(m,b,C,k){var R,P,z=20,ae=k?function(){return k.cur()}:function(){return w.css(m,b,"")},ne=ae(),ge=C&&C[3]||(w.cssNumber[b]?"":"px"),Fe=m.nodeType&&(w.cssNumber[b]||ge!=="px"&&+ne)&&W.exec(w.css(m,b));if(Fe&&Fe[3]!==ge){for(ne=ne/2,ge=ge||Fe[3],Fe=+ne||1;z--;)w.style(m,b,Fe+ge),(1-P)*(1-(P=ae()/ne||.5))<=0&&(z=0),Fe=Fe/P;Fe=Fe*2,w.style(m,b,Fe+ge),C=C||[]}return C&&(Fe=+Fe||+ne||0,R=C[1]?Fe+(C[1]+1)*C[2]:+C[2],k&&(k.unit=ge,k.start=Fe,k.end=R)),R}var Q={};function je(m){var b,C=m.ownerDocument,k=m.nodeName,R=Q[k];return R||(b=C.body.appendChild(C.createElement(k)),R=w.css(b,"display"),b.parentNode.removeChild(b),R==="none"&&(R="block"),Q[k]=R,R)}function Ne(m,b){for(var C,k,R=[],P=0,z=m.length;P<z;P++)k=m[P],k.style&&(C=k.style.display,b?(C==="none"&&(R[P]=le.get(k,"display")||null,R[P]||(k.style.display="")),k.style.display===""&&re(k)&&(R[P]=je(k))):C!=="none"&&(R[P]="none",le.set(k,"display",C)));for(P=0;P<z;P++)R[P]!=null&&(m[P].style.display=R[P]);return m}w.fn.extend({show:function(){return Ne(this,!0)},hide:function(){return Ne(this)},toggle:function(m){return typeof m=="boolean"?m?this.show():this.hide():this.each(function(){re(this)?w(this).show():w(this).hide()})}});var Qe=/^(?:checkbox|radio)$/i,qe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,tt=/^$|^module$|\/(?:java|ecma)script/i;(function(){var m=A.createDocumentFragment(),b=m.appendChild(A.createElement("div")),C=A.createElement("input");C.setAttribute("type","radio"),C.setAttribute("checked","checked"),C.setAttribute("name","t"),b.appendChild(C),D.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",D.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,b.innerHTML="<option></option>",D.option=!!b.lastChild})();var yt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td,D.option||(yt.optgroup=yt.option=[1,"<select multiple='multiple'>","</select>"]);function Nt(m,b){var C;return typeof m.getElementsByTagName<"u"?C=m.getElementsByTagName(b||"*"):typeof m.querySelectorAll<"u"?C=m.querySelectorAll(b||"*"):C=[],b===void 0||b&&De(m,b)?w.merge([m],C):C}function dt(m,b){for(var C=0,k=m.length;C<k;C++)le.set(m[C],"globalEval",!b||le.get(b[C],"globalEval"))}var Ot=/<|&#?\w+;/;function Et(m,b,C,k,R){for(var P,z,ae,ne,ge,Fe,Le=b.createDocumentFragment(),Ae=[],He=0,Dt=m.length;He<Dt;He++)if(P=m[He],P||P===0)if(U(P)==="object")w.merge(Ae,P.nodeType?[P]:P);else if(!Ot.test(P))Ae.push(b.createTextNode(P));else{for(z=z||Le.appendChild(b.createElement("div")),ae=(qe.exec(P)||["",""])[1].toLowerCase(),ne=yt[ae]||yt._default,z.innerHTML=ne[1]+w.htmlPrefilter(P)+ne[2],Fe=ne[0];Fe--;)z=z.lastChild;w.merge(Ae,z.childNodes),z=Le.firstChild,z.textContent=""}for(Le.textContent="",He=0;P=Ae[He++];){if(k&&w.inArray(P,k)>-1){R&&R.push(P);continue}if(ge=se(P),z=Nt(Le.appendChild(P),"script"),ge&&dt(z),C)for(Fe=0;P=z[Fe++];)tt.test(P.type||"")&&C.push(P)}return Le}var Wt=/^([^.]*)(?:\.(.+)|)/;function ti(){return!0}function Jt(){return!1}function fn(m,b,C,k,R,P){var z,ae;if(typeof b=="object"){typeof C!="string"&&(k=k||C,C=void 0);for(ae in b)fn(m,ae,C,k,b[ae],P);return m}if(k==null&&R==null?(R=C,k=C=void 0):R==null&&(typeof C=="string"?(R=k,k=void 0):(R=k,k=C,C=void 0)),R===!1)R=Jt;else if(!R)return m;return P===1&&(z=R,R=function(ne){return w().off(ne),z.apply(this,arguments)},R.guid=z.guid||(z.guid=w.guid++)),m.each(function(){w.event.add(this,b,R,k,C)})}w.event={global:{},add:function(m,b,C,k,R){var P,z,ae,ne,ge,Fe,Le,Ae,He,Dt,qt,Mt=le.get(m);if(cn(m))for(C.handler&&(P=C,C=P.handler,R=P.selector),R&&w.find.matchesSelector(te,R),C.guid||(C.guid=w.guid++),(ne=Mt.events)||(ne=Mt.events=Object.create(null)),(z=Mt.handle)||(z=Mt.handle=function(Si){return typeof w<"u"&&w.event.triggered!==Si.type?w.event.dispatch.apply(m,arguments):void 0}),b=(b||"").match(St)||[""],ge=b.length;ge--;)ae=Wt.exec(b[ge])||[],He=qt=ae[1],Dt=(ae[2]||"").split(".").sort(),He&&(Le=w.event.special[He]||{},He=(R?Le.delegateType:Le.bindType)||He,Le=w.event.special[He]||{},Fe=w.extend({type:He,origType:qt,data:k,handler:C,guid:C.guid,selector:R,needsContext:R&&w.expr.match.needsContext.test(R),namespace:Dt.join(".")},P),(Ae=ne[He])||(Ae=ne[He]=[],Ae.delegateCount=0,(!Le.setup||Le.setup.call(m,k,Dt,z)===!1)&&m.addEventListener&&m.addEventListener(He,z)),Le.add&&(Le.add.call(m,Fe),Fe.handler.guid||(Fe.handler.guid=C.guid)),R?Ae.splice(Ae.delegateCount++,0,Fe):Ae.push(Fe),w.event.global[He]=!0)},remove:function(m,b,C,k,R){var P,z,ae,ne,ge,Fe,Le,Ae,He,Dt,qt,Mt=le.hasData(m)&&le.get(m);if(!(!Mt||!(ne=Mt.events))){for(b=(b||"").match(St)||[""],ge=b.length;ge--;){if(ae=Wt.exec(b[ge])||[],He=qt=ae[1],Dt=(ae[2]||"").split(".").sort(),!He){for(He in ne)w.event.remove(m,He+b[ge],C,k,!0);continue}for(Le=w.event.special[He]||{},He=(k?Le.delegateType:Le.bindType)||He,Ae=ne[He]||[],ae=ae[2]&&new RegExp("(^|\\.)"+Dt.join("\\.(?:.*\\.|)")+"(\\.|$)"),z=P=Ae.length;P--;)Fe=Ae[P],(R||qt===Fe.origType)&&(!C||C.guid===Fe.guid)&&(!ae||ae.test(Fe.namespace))&&(!k||k===Fe.selector||k==="**"&&Fe.selector)&&(Ae.splice(P,1),Fe.selector&&Ae.delegateCount--,Le.remove&&Le.remove.call(m,Fe));z&&!Ae.length&&((!Le.teardown||Le.teardown.call(m,Dt,Mt.handle)===!1)&&w.removeEvent(m,He,Mt.handle),delete ne[He])}w.isEmptyObject(ne)&&le.remove(m,"handle events")}},dispatch:function(m){var b,C,k,R,P,z,ae=new Array(arguments.length),ne=w.event.fix(m),ge=(le.get(this,"events")||Object.create(null))[ne.type]||[],Fe=w.event.special[ne.type]||{};for(ae[0]=ne,b=1;b<arguments.length;b++)ae[b]=arguments[b];if(ne.delegateTarget=this,!(Fe.preDispatch&&Fe.preDispatch.call(this,ne)===!1)){for(z=w.event.handlers.call(this,ne,ge),b=0;(R=z[b++])&&!ne.isPropagationStopped();)for(ne.currentTarget=R.elem,C=0;(P=R.handlers[C++])&&!ne.isImmediatePropagationStopped();)(!ne.rnamespace||P.namespace===!1||ne.rnamespace.test(P.namespace))&&(ne.handleObj=P,ne.data=P.data,k=((w.event.special[P.origType]||{}).handle||P.handler).apply(R.elem,ae),k!==void 0&&(ne.result=k)===!1&&(ne.preventDefault(),ne.stopPropagation()));return Fe.postDispatch&&Fe.postDispatch.call(this,ne),ne.result}},handlers:function(m,b){var C,k,R,P,z,ae=[],ne=b.delegateCount,ge=m.target;if(ne&&ge.nodeType&&!(m.type==="click"&&m.button>=1)){for(;ge!==this;ge=ge.parentNode||this)if(ge.nodeType===1&&!(m.type==="click"&&ge.disabled===!0)){for(P=[],z={},C=0;C<ne;C++)k=b[C],R=k.selector+" ",z[R]===void 0&&(z[R]=k.needsContext?w(R,this).index(ge)>-1:w.find(R,this,null,[ge]).length),z[R]&&P.push(k);P.length&&ae.push({elem:ge,handlers:P})}}return ge=this,ne<b.length&&ae.push({elem:ge,handlers:b.slice(ne)}),ae},addProp:function(m,b){Object.defineProperty(w.Event.prototype,m,{enumerable:!0,configurable:!0,get:F(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[m]},set:function(C){Object.defineProperty(this,m,{enumerable:!0,configurable:!0,writable:!0,value:C})}})},fix:function(m){return m[w.expando]?m:new w.Event(m)},special:{load:{noBubble:!0},click:{setup:function(m){var b=this||m;return Qe.test(b.type)&&b.click&&De(b,"input")&&bn(b,"click",!0),!1},trigger:function(m){var b=this||m;return Qe.test(b.type)&&b.click&&De(b,"input")&&bn(b,"click"),!0},_default:function(m){var b=m.target;return Qe.test(b.type)&&b.click&&De(b,"input")&&le.get(b,"click")||De(b,"a")}},beforeunload:{postDispatch:function(m){m.result!==void 0&&m.originalEvent&&(m.originalEvent.returnValue=m.result)}}}};function bn(m,b,C){if(!C){le.get(m,b)===void 0&&w.event.add(m,b,ti);return}le.set(m,b,!1),w.event.add(m,b,{namespace:!1,handler:function(k){var R,P=le.get(this,b);
9if(k.isTrigger&1&&this[b]){if(P)(w.event.special[b]||{}).delegateType&&k.stopPropagation();else if(P=t.call(arguments),le.set(this,b,P),this[b](),R=le.get(this,b),le.set(this,b,!1),P!==R)return k.stopImmediatePropagation(),k.preventDefault(),R}else P&&(le.set(this,b,w.event.trigger(P[0],P.slice(1),this)),k.stopPropagation(),k.isImmediatePropagationStopped=ti)}})}w.removeEvent=function(m,b,C){m.removeEventListener&&m.removeEventListener(b,C)},w.Event=function(m,b){if(!(this instanceof w.Event))return new w.Event(m,b);m&&m.type?(this.originalEvent=m,this.type=m.type,this.isDefaultPrevented=m.defaultPrevented||m.defaultPrevented===void 0&&m.returnValue===!1?ti:Jt,this.target=m.target&&m.target.nodeType===3?m.target.parentNode:m.target,this.currentTarget=m.currentTarget,this.relatedTarget=m.relatedTarget):this.type=m,b&&w.extend(this,b),this.timeStamp=m&&m.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Jt,isPropagationStopped:Jt,isImmediatePropagationStopped:Jt,isSimulated:!1,preventDefault:function(){var m=this.originalEvent;this.isDefaultPrevented=ti,m&&!this.isSimulated&&m.preventDefault()},stopPropagation:function(){var m=this.originalEvent;this.isPropagationStopped=ti,m&&!this.isSimulated&&m.stopPropagation()},stopImmediatePropagation:function(){var m=this.originalEvent;this.isImmediatePropagationStopped=ti,m&&!this.isSimulated&&m.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(m,b){function C(k){if(A.documentMode){var R=le.get(this,"handle"),P=w.event.fix(k);P.type=k.type==="focusin"?"focus":"blur",P.isSimulated=!0,R(k),P.target===P.currentTarget&&R(P)}else w.event.simulate(b,k.target,w.event.fix(k))}w.event.special[m]={setup:function(){var k;if(bn(this,m,!0),A.documentMode)k=le.get(this,b),k||this.addEventListener(b,C),le.set(this,b,(k||0)+1);else return!1},trigger:function(){return bn(this,m),!0},teardown:function(){var k;if(A.documentMode)k=le.get(this,b)-1,k?le.set(this,b,k):(this.removeEventListener(b,C),le.remove(this,b));else return!1},_default:function(k){return le.get(k.target,m)},delegateType:b},w.event.special[b]={setup:function(){var k=this.ownerDocument||this.document||this,R=A.documentMode?this:k,P=le.get(R,b);P||(A.documentMode?this.addEventListener(b,C):k.addEventListener(m,C,!0)),le.set(R,b,(P||0)+1)},teardown:function(){var k=this.ownerDocument||this.document||this,R=A.documentMode?this:k,P=le.get(R,b)-1;P?le.set(R,b,P):(A.documentMode?this.removeEventListener(b,C):k.removeEventListener(m,C,!0),le.remove(R,b))}}}
vendor: 5,595 bytes, line 9
9),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(m,b){w.event.special[m]={delegateType:b,bindType:b,handle:function(C){var k,R=this,P=C.relatedTarget,z=C.handleObj;return(!P||P!==R&&!w.contains(R,P))&&(C.type=z.origType,k=z.handler.apply(this,arguments),C.type=b),k}}}),w.fn.extend({on:function(m,b,C,k){return fn(this,m,b,C,k)},one:function(m,b,C,k){return fn(this,m,b,C,k,1)},off:function(m,b,C){var k,R;if(m&&m.preventDefault&&m.handleObj)return k=m.handleObj,w(m.delegateTarget).off(k.namespace?k.origType+"."+k.namespace:k.origType,k.selector,k.handler),this;if(typeof m=="object"){for(R in m)this.off(R,b,m[R]);return this}return(b===!1||typeof b=="function")&&(C=b,b=void 0),C===!1&&(C=Jt),this.each(function(){w.event.remove(this,m,C,b)})}});var Po=/<script|<style|<link/i,_r=/checked\s*(?:[^=]|=\s*.checked.)/i,Ba=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Kn(m,b){return De(m,"table")&&De(b.nodeType!==11?b:b.firstChild,"tr")&&w(m).children("tbody")[0]||m}function Na(m){return m.type=(m.getAttribute("type")!==null)+"/"+m.type,m}function Ha(m){return(m.type||"").slice(0,5)==="true/"?m.type=m.type.slice(5):m.removeAttribute("type"),m}function hi(m,b){var C,k,R,P,z,ae,ne;if(b.nodeType===1){if(le.hasData(m)&&(P=le.get(m),ne=P.events,ne)){le.remove(b,"handle events");for(R in ne)for(C=0,k=ne[R].length;C<k;C++)w.event.add(b,R,ne[R][C])}ce.hasData(m)&&(z=ce.access(m),ae=w.extend({},z),ce.set(b,ae))}}function Vn(m,b){var C=b.nodeName.toLowerCase();C==="input"&&Qe.test(m.type)?b.checked=m.checked:(C==="input"||C==="textarea")&&(b.defaultValue=m.defaultValue)}function Ei(m,b,C,k){b=i(b);var R,P,z,ae,ne,ge,Fe=0,Le=m.length,Ae=Le-1,He=b[0],Dt=F(He);if(Dt||Le>1&&typeof He=="string"&&!D.checkClone&&_r.test(He))return m.each(function(qt){var Mt=m.eq(qt);Dt&&(b[0]=He.call(this,qt,Mt.html())),Ei(Mt,b,C,k)});if(Le&&(R=Et(b,m[0].ownerDocument,!1,m,k),P=R.firstChild,R.childNodes.length===1&&(R=P),P||k)){for(z=w.map(Nt(R,"script"),Na),ae=z.length;Fe<Le;Fe++)ne=R,Fe!==Ae&&(ne=w.clone(ne,!0,!0),ae&&w.merge(z,Nt(ne,"script"))),C.call(m[Fe],ne,Fe);if(ae)for(ge=z[z.length-1].ownerDocument,w.map(z,Ha),Fe=0;Fe<ae;Fe++)ne=z[Fe],tt.test(ne.type||"")&&!le.access(ne,"globalEval")&&w.contains(ge,ne)&&(ne.src&&(ne.type||"").toLowerCase()!=="module"?w._evalUrl&&!ne.noModule&&w._evalUrl(ne.src,{nonce:ne.nonce||ne.getAttribute("nonce")},ge):H(ne.textContent.replace(Ba,""),ne,ge))}return m}function Fi(m,b,C){for(var k,R=b?w.filter(b,m):m,P=0;(k=R[P])!=null;P++)!C&&k.nodeType===1&&w.cleanData(Nt(k)),k.parentNode&&(C&&se(k)&&dt(Nt(k,"script")),k.parentNode.removeChild(k));return m}w.extend({htmlPrefilter:function(m){return m},clone:function(m,b,C){var k,R,P,z,ae=m.cloneNode(!0),ne=se(m);if(!D.noCloneChecked&&(m.nodeType===1||m.nodeType===11)&&!w.isXMLDoc(m))for(z=Nt(ae),P=Nt(m),k=0,R=P.length;k<R;k++)Vn(P[k],z[k]);if(b)if(C)for(P=P||Nt(m),z=z||Nt(ae),k=0,R=P.length;k<R;k++)hi(P[k],z[k]);else hi(m,ae);return z=Nt(ae,"script"),z.length>0&&dt(z,!ne&&Nt(m,"script")),ae},cleanData:function(m){for(var b,C,k,R=w.event.special,P=0;(C=m[P])!==void 0;P++)if(cn(C)){if(b=C[le.expando]){if(b.events)for(k in b.events)R[k]?w.event.remove(C,k):w.removeEvent(C,k,b.handle);C[le.expando]=void 0}C[ce.expando]&&(C[ce.expando]=void 0)}}}),w.fn.extend({detach:function(m){return Fi(this,m,!0)},remove:function(m){return Fi(this,m)},text:function(m){return Xt(this,function(b){return b===void 0?w.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=b)})},null,m,arguments.length)},append:function(){return Ei(this,arguments,function(m){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=Kn(this,m);b.appendChild(m)}})},prepend:function(){return Ei(this,arguments,function(m){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=Kn(this,m);b.insertBefore(m,b.firstChild)}})},before:function(){return Ei(this,arguments,function(m){this.parentNode&&this.parentNode.insertBefore(m,this)})},after:function(){return Ei(this,arguments,function(m){this.parentNode&&this.parentNode.insertBefore(m,this.nextSibling)})},empty:function(){for(var m,b=0;(m=this[b])!=null;b++)m.nodeType===1&&(w.cleanData(Nt(m,!1)),m.textContent="");return this},clone:function(m,b){return m=m??!1,b=b??m,this.map(function(){return w.clone(this,m,b)})},html:function(m){return Xt(this,function(b){var C=this[0]||{},k=0,R=this.length;if(b===void 0&&C.nodeType===1)return C.innerHTML;if(typeof b=="string"&&!Po.test(b)&&!yt[(qe.exec(b)||["",""])[1].toLowerCase()]){b=w.htmlPrefilter(b);try{for(;k<R;k++)C=this[k]||{},C.nodeType===1&&(w.cleanData(Nt(C,!1)),C.innerHTML=b);C=0}catch{}}C&&this.empty().append(b)},null,m,arguments.length)},replaceWith:function(){var m=[];return Ei(this,arguments,function(b){var C=this.parentNode;w.inArray(this,m)<0&&(w.cleanData(Nt(this)),C&&C.replaceChild(b,this))},m)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(m,b){w.fn[m]=function(C){for(var k,R=[],P=w(C),z=P.length-1,ae=0;ae<=z;ae++)k=ae===z?this:this.clone(!0),w(P[ae])[b](k),o.apply(R,k.get());return this.pushStack(R)}});var xn=new RegExp("^("+_+")(?!px)[a-z%]+$","i"),Rn=/^--/,An=function(m){var b=m.ownerDocument.defaultView;return(!b||!b.opener)&&(b=l),b.getComputedStyle(m)},kr=function(m,b,C){var k,R,P={};for(R in b)P[R]=m.style[R],m.style[R]=b[R];k=C.call(m);for(R in b)m.style[R]=P[R];return k},Pn=new RegExp(K.join("|"),"i");(function(){function m(){if(ge){ne.style.cssText="position:absolute;
9left:-11111px;width:60px;margin-top:1px;padding:0;border:0",ge.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",te.appendChild(ne).appendChild(ge);var Fe=l.getComputedStyle(ge);C=Fe.top!=="1%",ae=b(Fe.marginLeft)===12,ge.style.right="60%",P=b(Fe.right)===36,k=b(Fe.width)===36,ge.style.position="absolute",R=b(ge.offsetWidth/3)===12,te.removeChild(ne),ge=null}}function b(Fe){return Math.round(parseFloat(Fe))}var C,k,R,P,z,ae,ne=A.createElement("div"),ge=A.createElement("div");ge.style&&(ge.style.backgroundClip="content-box",ge.cloneNode(!0).style.backgroundClip="",D.clearCloneStyle=ge.style.backgroundClip==="content-box",w.extend(D,{boxSizingReliable:function(){return m(),k},pixelBoxStyles:function(){return m(),P},pixelPosition:function(){return m(),C},reliableMarginLeft:function(){return m(),ae},scrollboxSize:function(){return m(),R},reliableTrDimensions:function(){var Fe,Le,Ae,He;return z==null&&(Fe=A.createElement("table"),Le=A.createElement("tr"),Ae=A.createElement("div"),Fe.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Le.style.cssText="box-sizing:content-box;border:1px solid",Le.style.height="1px",Ae.style.height="9px",Ae.style.display="block",te.appendChild(Fe).appendChild(Le).appendChild(Ae),He=l.getComputedStyle(Le),z=parseInt(He.height,10)+parseInt(He.borderTopWidth,10)+parseInt(He.borderBottomWidth,10)===Le.offsetHeight,te.removeChild(Fe)),z}}))})();function Jr(m,b,C){var k,R,P,z,ae=Rn.test(b),ne=m.style;return C=C||An(m),C&&(z=C.getPropertyValue(b)||C[b],ae&&z&&(z=z.replace(me,"$1")||void 0),z===""&&!se(m)&&(z=w.style(m,b)),!D.pixelBoxStyles()&&xn.test(z)&&Pn.test(b)&&(k=ne.width,R=ne.minWidth,P=ne.maxWidth,ne.minWidth=ne.maxWidth=ne.width=z,z=C.width,ne.width=k,ne.minWidth=R,ne.maxWidth=P)),z!==void 0?z+"":z}function Zn(m,b){return{get:function(){if(m()){delete this.get;return}return(this.get=b).apply(this,arguments)}}}var Bo=["Webkit","Moz","ms"],za=A.createElement("div").style,ai={};function st(m){for(var b=m[0].toUpperCase()+m.slice(1),C=Bo.length;C--;)if(m=Bo[C]+b,m in za)return m}function Bn(m){var b=w.cssProps[m]||ai[m];return b||(m in za?m:ai[m]=st(m)||m)}var ja=/^(none|table(?!-c[ea]).+)/,_n={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:"0",fontWeight:"400"};function Qn(m,b,C){var k=W.exec(b);return k?Math.max(0,k[2]-(C||0))+(k[3]||"px"):b}function fr(m,b,C,k,R,P){var z=b==="width"?1:0,ae=0,ne=0,ge=0;if(C===(k?"border":"content"))return 0;for(;z<4;z+=2)C==="margin"&&(ge+=w.css(m,C+K[z],!0,R)),k?(C==="content"&&(ne-=w.css(m,"padding"+K[z],!0,R)),C!=="margin"&&(ne-=w.css(m,"border"+K[z]+"Width",!0,R))):(ne+=w.css(m,"padding"+K[z],!0,R),C!=="padding"?ne+=w.css(m,"border"+K[z]+"Width",!0,R):ae+=w.css(m,"border"+K[z]+"Width",!0,R));return!k&&P>=0&&(ne+=Math.max(0,Math.ceil(m["offset"+b[0].toUpperCase()+b.slice(1)]-P-ne-ae-.5))||0),ne+ge}function No(m,b,C){var k=An(m),R=!D.boxSizingReliable()||C,P=R&&w.css(m,"boxSizing",!1,k)==="border-box",z=P,ae=Jr(m,b,k),ne="offset"+b[0].toUpperCase()+b.slice(1);if(xn.test(ae)){if(!C)return ae;ae="auto"}return(!D.boxSizingReliable()&&P||!D.reliableTrDimensions()&&De(m,"tr")||ae==="auto"||!parseFloat(ae)&&w.css(m,"display",!1,k)==="inline")&&m.getClientRects().length&&(P=w.css(m,"boxSizing",!1,k)==="border-box",z=ne in m,z&&(ae=m[ne])),ae=parseFloat(ae)||0,ae+fr(m,b,C||(P?"border":"content"),z,k,ae)+"px"}w.extend({cssHooks:{opacity:{get:function(m,b){if(b){var C=Jr(m,"opacity");return C===""?"1":C}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(m,b,C,k){if(!(!m||m.nodeType===3||m.nodeType===8||!m.style)){var R,P,z,ae=Yt(b),ne=Rn.test(b),ge=m.style;if(ne||(b=Bn(ae)),z=w.cssHooks[b]||w.cssHooks[ae],C!==void 0){if(P=typeof C,P==="string"&&(R=W.exec(C))&&R[1]&&(C=ue(m,b,R),P="number"),C==null||C!==C)return;P==="number"&&!ne&&(C+=R&&R[3]||(w.cssNumber[ae]?"":"px")),!D.clearCloneStyle&&C===""&&b.indexOf("background")===0&&(ge[b]="inherit"),(!z||!("set"in z)||(C=z.set(m,C,k))!==void 0)&&(ne?ge.setProperty(b,C):ge[b]=C)}else return z&&"get"in z&&(R=z.get(m,!1,k))!==void 0?R:ge[b]}},css:function(m,b,C,k){var R,P,z,ae=Yt(b),ne=Rn.test(b);return ne||(b=Bn(ae)),z=w.cssHooks[b]||w.cssHooks[ae],z&&"get"in z&&(R=z.get(m,!0,C)),R===void 0&&(R=Jr(m,b,k)),R==="normal"&&b in Vt&&(R=Vt[b]),C===""||C?(P=parseFloat(R),C===!0||isFinite(P)?P||0:R):R}}),w.each(["height","width"],function(m,b){w.cssHooks[b]={get:function(C,k,R){if(k)return ja.test(w.css(C,"display"))&&(!C.getClientRects().length||!C.getBoundingClientRect().width)?kr(C,_n,function(){return No(C,b,R)}):No(C,b,R)},set:function(C,k,R){var P,z=An(C),ae=!D.scrollboxSize()&&z.position==="absolute",ne=ae||R,ge=ne&&w.css(C,"boxSizing",!1,z)==="border-box",Fe=R?fr(C,b,R,ge,z):0;return ge&&ae&&(Fe-=Math.ceil(C["offset"+b[0].toUpperCase()+b.slice(1)]-parseFloat(z[b])-fr(C,b,"border",!1,z)-.5)),Fe&&(P=W.exec(k))&&(P[3]||"px")!=="px"&&(C.style[b]=k,k=w.css(C,b)),Qn(C,k,Fe)}}}
vendor: 9,533 bytes, line 9
9),w.cssHooks.marginLeft=Zn(D.reliableMarginLeft,function(m,b){if(b)return(parseFloat(Jr(m,"marginLeft"))||m.getBoundingClientRect().left-kr(m,{marginLeft:0},function(){return m.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(m,b){w.cssHooks[m+b]={expand:function(C){for(var k=0,R={},P=typeof C=="string"?C.split(" "):[C];k<4;k++)R[m+K[k]+b]=P[k]||P[k-2]||P[0];return R}},m!=="margin"&&(w.cssHooks[m+b].set=Qn)}),w.fn.extend({css:function(m,b){return Xt(this,function(C,k,R){var P,z,ae={},ne=0;if(Array.isArray(k)){for(P=An(C),z=k.length;ne<z;ne++)ae[k[ne]]=w.css(C,k[ne],!1,P);return ae}return R!==void 0?w.style(C,k,R):w.css(C,k)},m,b,arguments.length>1)}});function Pe(m,b,C,k,R){return new Pe.prototype.init(m,b,C,k,R)}w.Tween=Pe,Pe.prototype={constructor:Pe,init:function(m,b,C,k,R,P){this.elem=m,this.prop=C,this.easing=R||w.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=k,this.unit=P||(w.cssNumber[C]?"":"px")},cur:function(){var m=Pe.propHooks[this.prop];return m&&m.get?m.get(this):Pe.propHooks._default.get(this)},run:function(m){var b,C=Pe.propHooks[this.prop];return this.options.duration?this.pos=b=w.easing[this.easing](m,this.options.duration*m,0,1,this.options.duration):this.pos=b=m,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),C&&C.set?C.set(this):Pe.propHooks._default.set(this),this}},Pe.prototype.init.prototype=Pe.prototype,Pe.propHooks={_default:{get:function(m){var b;return m.elem.nodeType!==1||m.elem[m.prop]!=null&&m.elem.style[m.prop]==null?m.elem[m.prop]:(b=w.css(m.elem,m.prop,""),!b||b==="auto"?0:b)},set:function(m){w.fx.step[m.prop]?w.fx.step[m.prop](m):m.elem.nodeType===1&&(w.cssHooks[m.prop]||m.elem.style[Bn(m.prop)]!=null)?w.style(m.elem,m.prop,m.now+m.unit):m.elem[m.prop]=m.now}}},Pe.propHooks.scrollTop=Pe.propHooks.scrollLeft={set:function(m){m.elem.nodeType&&m.elem.parentNode&&(m.elem[m.prop]=m.now)}},w.easing={linear:function(m){return m},swing:function(m){return .5-Math.cos(m*Math.PI)/2},_default:"swing"},w.fx=Pe.prototype.init,w.fx.step={};var bt,Tr,Wa=/^(?:toggle|show|hide)$/,Ho=/queueHooks$/;function Fr(){Tr&&(A.hidden===!1&&l.requestAnimationFrame?l.requestAnimationFrame(Fr):l.setTimeout(Fr,w.fx.interval),w.fx.tick())}function $a(){return l.setTimeout(function(){bt=void 0}),bt=Date.now()}function wt(m,b){var C,k=0,R={height:m};for(b=b?1:0;k<4;k+=2-b)C=K[k],R["margin"+C]=R["padding"+C]=m;return b&&(R.opacity=R.width=m),R}function rl(m,b,C){for(var k,R=(mi.tweeners[b]||[]).concat(mi.tweeners["*"]),P=0,z=R.length;P<z;P++)if(k=R[P].call(C,b,m))return k}function ol(m,b,C){var k,R,P,z,ae,ne,ge,Fe,Le="width"in b||"height"in b,Ae=this,He={},Dt=m.style,qt=m.nodeType&&re(m),Mt=le.get(m,"fxshow");C.queue||(z=w._queueHooks(m,"fx"),z.unqueued==null&&(z.unqueued=0,ae=z.empty.fire,z.empty.fire=function(){z.unqueued||ae()}),z.unqueued++,Ae.always(function(){Ae.always(function(){z.unqueued--,w.queue(m,"fx").length||z.empty.fire()})}));for(k in b)if(R=b[k],Wa.test(R)){if(delete b[k],P=P||R==="toggle",R===(qt?"hide":"show"))if(R==="show"&&Mt&&Mt[k]!==void 0)qt=!0;else continue;He[k]=Mt&&Mt[k]||w.style(m,k)}if(ne=!w.isEmptyObject(b),!(!ne&&w.isEmptyObject(He))){Le&&m.nodeType===1&&(C.overflow=[Dt.overflow,Dt.overflowX,Dt.overflowY],ge=Mt&&Mt.display,ge==null&&(ge=le.get(m,"display")),Fe=w.css(m,"display"),Fe==="none"&&(ge?Fe=ge:(Ne([m],!0),ge=m.style.display||ge,Fe=w.css(m,"display"),Ne([m]))),(Fe==="inline"||Fe==="inline-block"&&ge!=null)&&w.css(m,"float")==="none"&&(ne||(Ae.done(function(){Dt.display=ge}),ge==null&&(Fe=Dt.display,ge=Fe==="none"?"":Fe)),Dt.display="inline-block")),C.overflow&&(Dt.overflow="hidden",Ae.always(function(){Dt.overflow=C.overflow[0],Dt.overflowX=C.overflow[1],Dt.overflowY=C.overflow[2]})),ne=!1;for(k in He)ne||(Mt?"hidden"in Mt&&(qt=Mt.hidden):Mt=le.access(m,"fxshow",{display:ge}),P&&(Mt.hidden=!qt),qt&&Ne([m],!0),Ae.done(function(){qt||Ne([m]),le.remove(m,"fxshow");for(k in He)w.style(m,k,He[k])})),ne=rl(qt?Mt[k]:0,k,Ae),k in Mt||(Mt[k]=ne.start,qt&&(ne.end=ne.start,ne.start=0))}}function zo(m,b){var C,k,R,P,z;for(C in m)if(k=Yt(C),R=b[k],P=m[C],Array.isArray(P)&&(R=P[1],P=m[C]=P[0]),C!==k&&(m[k]=P,delete m[C]),z=w.cssHooks[k],z&&"expand"in z){P=z.expand(P),delete m[k];for(C in P)C in m||(m[C]=P[C],b[C]=R)}else b[k]=R}function mi(m,b,C){var k,R,P=0,z=mi.prefilters.length,ae=w.Deferred().always(function(){delete ne.elem}),ne=function(){if(R)return!1;for(var Le=bt||$a(),Ae=Math.max(0,ge.startTime+ge.duration-Le),He=Ae/ge.duration||0,Dt=1-He,qt=0,Mt=ge.tweens.length;qt<Mt;qt++)ge.tweens[qt].run(Dt);return ae.notifyWith(m,[ge,Dt,Ae]),Dt<1&&Mt?Ae:(Mt||ae.notifyWith(m,[ge,1,0]),ae.resolveWith(m,[ge]),!1)},ge=ae.promise({elem:m,props:w.extend({},b),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},C),originalProperties:b,originalOptions:C,startTime:bt||$a(),duration:C.duration,tweens:[],createTween:function(Le,Ae){var He=w.Tween(m,ge.opts,Le,Ae,ge.opts.specialEasing[Le]||ge.opts.easing);return ge.tweens.push(He),He},stop:function(Le){var Ae=0,He=Le?ge.tweens.length:0;if(R)return this;for(R=!0;Ae<He;Ae++)ge.tweens[Ae].run(1);return Le?(ae.notifyWith(m,[ge,1,0]),ae.resolveWith(m,[ge,Le])):ae.rejectWith(m,[ge,Le]),this}}),Fe=ge.props;for(zo(Fe,ge.opts.specialEasing);P<z;P++)if(k=mi.prefilters[P].call(ge,m,Fe,ge.opts),k)return F(k.stop)&&(w._queueHooks(ge.elem,ge.opts.queue).stop=k.stop.bind(k)),k;return w.map(Fe,rl,ge),F(ge.opts.start)&&ge.opts.start.call(m,ge),ge.progress(ge.opts.progress).done(ge.opts.done,ge.opts.complete).fail(ge.opts.fail).always(ge.opts.always),w.fx.timer(w.extend(ne,{elem:m,anim:ge,queue:ge.opts.queue})),ge}w.Animation=w.extend(mi,{tweeners:{"*":[function(m,b){var C=this.createTween(m,b);return ue(C.elem,m,W.exec(b),C),C}]},tweener:function(m,b){F(m)?(b=m,m=["*"]):m=m.match(St);for(var C,k=0,R=m.length;k<R;k++)C=m[k],mi.tweeners[C]=mi.tweeners[C]||[],mi.tweeners[C].unshift(b)},prefilters:[ol],prefilter:function(m,b){b?mi.prefilters.unshift(m):mi.prefilters.push(m)}}),w.speed=function(m,b,C){var k=m&&typeof m=="object"?w.extend({},m):{complete:C||!C&&b||F(m)&&m,duration:m,easing:C&&b||b&&!F(b)&&b};return w.fx.off?k.duration=0:typeof k.duration!="number"&&(k.duration in w.fx.speeds?k.duration=w.fx.speeds[k.duration]:k.duration=w.fx.speeds._default),(k.queue==null||k.queue===!0)&&(k.queue="fx"),k.old=k.complete,k.complete=function(){F(k.old)&&k.old.call(this),k.queue&&w.dequeue(this,k.queue)},k},w.fn.extend({fadeTo:function(m,b,C,k){return this.filter(re).css("opacity",0).show().end().animate({opacity:b},m,C,k)},animate:function(m,b,C,k){var R=w.isEmptyObject(m),P=w.speed(b,C,k),z=function(){var ae=mi(this,w.extend({},m),P);(R||le.get(this,"finish"))&&ae.stop(!0)};return z.finish=z,R||P.queue===!1?this.each(z):this.queue(P.queue,z)},stop:function(m,b,C){var k=function(R){var P=R.stop;delete R.stop,P(C)};return typeof m!="string"&&(C=b,b=m,m=void 0),b&&this.queue(m||"fx",[]),this.each(function(){var R=!0,P=m!=null&&m+"queueHooks",z=w.timers,ae=le.get(this);if(P)ae[P]&&ae[P].stop&&k(ae[P]);else for(P in ae)ae[P]&&ae[P].stop&&Ho.test(P)&&k(ae[P]);for(P=z.length;P--;)z[P].elem===this&&(m==null||z[P].queue===m)&&(z[P].anim.stop(C),R=!1,z.splice(P,1));(R||!C)&&w.dequeue(this,m)})},finish:function(m){return m!==!1&&(m=m||"fx"),this.each(function(){var b,C=le.get(this),k=C[m+"queue"],R=C[m+"queueHooks"],P=w.timers,z=k?k.length:0;for(C.finish=!0,w.queue(this,m,[]),R&&R.stop&&R.stop.call(this,!0),b=P.length;b--;)P[b].elem===this&&P[b].queue===m&&(P[b].anim.stop(!0),P.splice(b,1));for(b=0;b<z;b++)k[b]&&k[b].finish&&k[b].finish.call(this);delete C.finish})}}),w.each(["toggle","show","hide"],function(m,b){var C=w.fn[b];w.fn[b]=function(k,R,P){return k==null||typeof k=="boolean"?C.apply(this,arguments):this.animate(wt(b,!0),k,R,P)}}),w.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(m,b){w.fn[m]=function(C,k,R){return this.animate(b,C,k,R)}}),w.timers=[],w.fx.tick=function(){var m,b=0,C=w.timers;for(bt=Date.now();b<C.length;b++)m=C[b],!m()&&C[b]===m&&C.splice(b--,1);C.length||w.fx.stop(),bt=void 0},w.fx.timer=function(m){w.timers.push(m),w.fx.start()},w.fx.interval=13,w.fx.start=function(){Tr||(Tr=!0,Fr())},w.fx.stop=function(){Tr=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(m,b){return m=w.fx&&w.fx.speeds[m]||m,b=b||"fx",this.queue(b,function(C,k){var R=l.setTimeout(C,m);k.stop=function(){l.clearTimeout(R)}})},(function(){var m=A.createElement("input"),b=A.createElement("select"),C=b.appendChild(A.createElement("option"));m.type="checkbox",D.checkOn=m.value!=="",D.optSelected=C.selected,m=A.createElement("input"),m.value="t",m.type="radio",D.radioValue=m.value==="t"})();var qa,Or=w.expr.attrHandle;w.fn.extend({attr:function(m,b){return Xt(this,w.attr,m,b,arguments.length>1)},removeAttr:function(m){return this.each(function(){w.removeAttr(this,m)})}}),w.extend({attr:function(m,b,C){var k,R,P=m.nodeType;if(!(P===3||P===8||P===2)){if(typeof m.getAttribute>"u")return w.prop(m,b,C);if((P!==1||!w.isXMLDoc(m))&&(R=w.attrHooks[b.toLowerCase()]||(w.expr.match.bool.test(b)?qa:void 0)),C!==void 0){if(C===null){w.removeAttr(m,b);return}return R&&"set"in R&&(k=R.set(m,C,b))!==void 0?k:(m.setAttribute(b,C+""),C)}return R&&"get"in R&&(k=R.get(m,b))!==null?k:(k=w.find.attr(m,b),k??void 0)}},attrHooks:{type:{set:function(m,b){if(!D.radioValue&&b==="radio"&&De(m,"
9input")){var C=m.value;return m.setAttribute("type",b),C&&(m.value=C),b}}}},removeAttr:function(m,b){var C,k=0,R=b&&b.match(St);if(R&&m.nodeType===1)for(;C=R[k++];)m.removeAttribute(C)}}),qa={set:function(m,b,C){return b===!1?w.removeAttr(m,C):m.setAttribute(C,C),C}},w.each(w.expr.match.bool.source.match(/\w+/g),function(m,b){var C=Or[b]||w.find.attr;Or[b]=function(k,R,P){var z,ae,ne=R.toLowerCase();return P||(ae=Or[ne],Or[ne]=z,z=C(k,R,P)!=null?ne:null,Or[ne]=ae),z}});var eo=/^(?:input|select|textarea|button)$/i,Ua=/^(?:a|area)$/i;w.fn.extend({prop:function(m,b){return Xt(this,w.prop,m,b,arguments.length>1)},removeProp:function(m){return this.each(function(){delete this[w.propFix[m]||m]})}}),w.extend({prop:function(m,b,C){var k,R,P=m.nodeType;if(!(P===3||P===8||P===2))return(P!==1||!w.isXMLDoc(m))&&(b=w.propFix[b]||b,R=w.propHooks[b]),C!==void 0?R&&"set"in R&&(k=R.set(m,C,b))!==void 0?k:m[b]=C:R&&"get"in R&&(k=R.get(m,b))!==null?k:m[b]},propHooks:{tabIndex:{get:function(m){var b=w.find.attr(m,"tabindex");return b?parseInt(b,10):eo.test(m.nodeName)||Ua.test(m.nodeName)&&m.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),D.optSelected||(w.propHooks.selected={get:function(m){var b=m.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(m){var b=m.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function Jn(m){var b=m.match(St)||[];return b.join(" ")}function Nn(m){return m.getAttribute&&m.getAttribute("class")||""}function jo(m){return Array.isArray(m)?m:typeof m=="string"?m.match(St)||[]:[]}w.fn.extend({addClass:function(m){var b,C,k,R,P,z;return F(m)?this.each(function(ae){w(this).addClass(m.call(this,ae,Nn(this)))}):(b=jo(m),b.length?this.each(function(){if(k=Nn(this),C=this.nodeType===1&&" "+Jn(k)+" ",C){for(P=0;P<b.length;P++)R=b[P],C.indexOf(" "+R+" ")<0&&(C+=R+" ");z=Jn(C),k!==z&&this.setAttribute("class",z)}}):this)},removeClass:function(m){var b,C,k,R,P,z;return F(m)?this.each(function(ae){w(this).removeClass(m.call(this,ae,Nn(this)))}):arguments.length?(b=jo(m),b.length?this.each(function(){if(k=Nn(this),C=this.nodeType===1&&" "+Jn(k)+" ",C){for(P=0;P<b.length;P++)for(R=b[P];C.indexOf(" "+R+" ")>-1;)C=C.replace(" "+R+" "," ");z=Jn(C),k!==z&&this.setAttribute("class",z)}}):this):this.attr("class","")},toggleClass:function(m,b){var C,k,R,P,z=typeof m,ae=z==="string"||Array.isArray(m);return F(m)?this.each(function(ne){w(this).toggleClass(m.call(this,ne,Nn(this),b),b)}):typeof b=="boolean"&&ae?b?this.addClass(m):this.removeClass(m):(C=jo(m),this.each(function(){if(ae)for(P=w(this),R=0;R<C.length;R++)k=C[R],P.hasClass(k)?P.removeClass(k):P.addClass(k);else(m===void 0||z==="boolean")&&(k=Nn(this),k&&le.set(this,"__className__",k),this.setAttribute&&this.setAttribute("class",k||m===!1?"":le.get(this,"__className__")||""))}))},hasClass:function(m){var b,C,k=0;for(b=" "+m+" ";C=this[k++];)if(C.nodeType===1&&(" "+Jn(Nn(C))+" ").indexOf(b)>-1)return!0;return!1}});var al=/\r/g;w.fn.extend({val:function(m){var b,C,k,R=this[0];return arguments.length?(k=F(m),this.each(function(P){var z;this.nodeType===1&&(k?z=m.call(this,P,w(this).val()):z=m,z==null?z="":typeof z=="number"?z+="":Array.isArray(z)&&(z=w.map(z,function(ae){return ae==null?"":ae+""})),b=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()],(!b||!("set"in b)||b.set(this,z,"value")===void 0)&&(this.value=z))})):R?(b=w.valHooks[R.type]||w.valHooks[R.nodeName.toLowerCase()],b&&"get"in b&&(C=b.get(R,"value"))!==void 0?C:(C=R.value,typeof C=="string"?C.replace(al,""):C??"")):void 0}}),w.extend({valHooks:{option:{get:function(m){var b=w.find.attr(m,"value");return b??Jn(w.text(m))}},select:{get:function(m){var b,C,k,R=m.options,P=m.selectedIndex,z=m.type==="select-one",ae=z?null:[],ne=z?P+1:R.length;for(P<0?k=ne:k=z?P:0;k<ne;k++)if(C=R[k],(C.selected||k===P)&&!C.disabled&&(!C.parentNode.disabled||!De(C.parentNode,"optgroup"))){if(b=w(C).val(),z)return b;ae.push(b)}return ae},set:function(m,b){for(var C,k,R=m.options,P=w.makeArray(b),z=R.length;z--;)k=R[z],(k.selected=w.inArray(w.valHooks.option.get(k),P)>-1)&&(C=!0);return C||(m.selectedIndex=-1),P}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(m,b){if(Array.isArray(b))return m.checked=w.inArray(w(m).val(),b)>-1}},D.checkOn||(w.valHooks[this].get=function(m){return m.getAttribute("value")===null?"on":m.value})});var Lr=l.location,Ga={guid:Date.now()},Xa=/\?/;
vendor: 16,444 bytes, lines 9-12
9w.parseXML=function(m){var b,C;if(!m||typeof m!="string")return null;try{b=new l.DOMParser().parseFromString(m,"text/xml")}catch{}return C=b&&b.getElementsByTagName("parsererror")[0],(!b||C)&&w.error("Invalid XML: "+(C?w.map(C.childNodes,function(k){return k.textContent}).join(`
10`):m)),b};var sl=/^(?:focusinfocus|focusoutblur)$/,Ya=function(m){m.stopPropagation()};w.extend(w.event,{trigger:function(m,b,C,k){var R,P,z,ae,ne,ge,Fe,Le,Ae=[C||A],He=v.call(m,"type")?m.type:m,Dt=v.call(m,"namespace")?m.namespace.split("."):[];if(P=Le=z=C=C||A,!(C.nodeType===3||C.nodeType===8)&&!sl.test(He+w.event.triggered)&&(He.indexOf(".")>-1&&(Dt=He.split("."),He=Dt.shift(),Dt.sort()),ne=He.indexOf(":")<0&&"on"+He,m=m[w.expando]?m:new w.Event(He,typeof m=="object"&&m),m.isTrigger=k?2:3,m.namespace=Dt.join("."),m.rnamespace=m.namespace?new RegExp("(^|\\.)"+Dt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m.result=void 0,m.target||(m.target=C),b=b==null?[m]:w.makeArray(b,[m]),Fe=w.event.special[He]||{},!(!k&&Fe.trigger&&Fe.trigger.apply(C,b)===!1))){if(!k&&!Fe.noBubble&&!M(C)){for(ae=Fe.delegateType||He,sl.test(ae+He)||(P=P.parentNode);P;P=P.parentNode)Ae.push(P),z=P;z===(C.ownerDocument||A)&&Ae.push(z.defaultView||z.parentWindow||l)}for(R=0;(P=Ae[R++])&&!m.isPropagationStopped();)Le=P,m.type=R>1?ae:Fe.bindType||He,ge=(le.get(P,"events")||Object.create(null))[m.type]&&le.get(P,"handle"),ge&&ge.apply(P,b),ge=ne&&P[ne],ge&&ge.apply&&cn(P)&&(m.result=ge.apply(P,b),m.result===!1&&m.preventDefault());return m.type=He,!k&&!m.isDefaultPrevented()&&(!Fe._default||Fe._default.apply(Ae.pop(),b)===!1)&&cn(C)&&ne&&F(C[He])&&!M(C)&&(z=C[ne],z&&(C[ne]=null),w.event.triggered=He,m.isPropagationStopped()&&Le.addEventListener(He,Ya),C[He](),m.isPropagationStopped()&&Le.removeEventListener(He,Ya),w.event.triggered=void 0,z&&(C[ne]=z)),m.result}},simulate:function(m,b,C){var k=w.extend(new w.Event,C,{type:m,isSimulated:!0});w.event.trigger(k,null,b)}}),w.fn.extend({trigger:function(m,b){return this.each(function(){w.event.trigger(m,b,this)})},triggerHandler:function(m,b){var C=this[0];if(C)return w.event.trigger(m,b,C,!0)}});var Hn=/\[\]$/,ll=/\r?\n/g,Mu=/^(?:submit|button|image|reset|file)$/i,Wo=/^(?:input|select|textarea|keygen)/i;function dr(m,b,C,k){var R;if(Array.isArray(b))w.each(b,function(P,z){C||Hn.test(m)?k(m,z):dr(m+"["+(typeof z=="object"&&z!=null?P:"")+"]",z,C,k)});else if(!C&&U(b)==="object")for(R in b)dr(m+"["+R+"]",b[R],C,k);else k(m,b)}w.param=function(m,b){var C,k=[],R=function(P,z){var ae=F(z)?z():z;k[k.length]=encodeURIComponent(P)+"="+encodeURIComponent(ae??"")};if(m==null)return"";if(Array.isArray(m)||m.jquery&&!w.isPlainObject(m))w.each(m,function(){R(this.name,this.value)});else for(C in m)dr(C,m[C],b,R);return k.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var m=w.prop(this,"elements");return m?w.makeArray(m):this}).filter(function(){var m=this.type;return this.name&&!w(this).is(":disabled")&&Wo.test(this.nodeName)&&!Mu.test(m)&&(this.checked||!Qe.test(m))}).map(function(m,b){var C=w(this).val();return C==null?null:Array.isArray(C)?w.map(C,function(k){return{name:b.name,value:k.replace(ll,`\r
11`)}}):{name:b.name,value:C.replace(ll,`\r
12`)}}).get()}});var Iu=/%20/g,Ru=/#.*$/,Pu=/([?&])_=[^&]*/,Bu=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ka=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ul=/^(?:GET|HEAD)$/,Nu=/^\/\//,Va={},$o={},to="*/".concat("*"),Mr=A.createElement("a");Mr.href=Lr.href;function qo(m){return function(b,C){typeof b!="string"&&(C=b,b="*");var k,R=0,P=b.toLowerCase().match(St)||[];if(F(C))for(;k=P[R++];)k[0]==="+"?(k=k.slice(1)||"*",(m[k]=m[k]||[]).unshift(C)):(m[k]=m[k]||[]).push(C)}}function Za(m,b,C,k){var R={},P=m===$o;function z(ae){var ne;return R[ae]=!0,w.each(m[ae]||[],function(ge,Fe){var Le=Fe(b,C,k);if(typeof Le=="string"&&!P&&!R[Le])return b.dataTypes.unshift(Le),z(Le),!1;if(P)return!(ne=Le)}),ne}return z(b.dataTypes[0])||!R["*"]&&z("*")}function Uo(m,b){var C,k,R=w.ajaxSettings.flatOptions||{};for(C in b)b[C]!==void 0&&((R[C]?m:k||(k={}))[C]=b[C]);return k&&w.extend(!0,m,k),m}function Go(m,b,C){for(var k,R,P,z,ae=m.contents,ne=m.dataTypes;ne[0]==="*";)ne.shift(),k===void 0&&(k=m.mimeType||b.getResponseHeader("Content-Type"));if(k){for(R in ae)if(ae[R]&&ae[R].test(k)){ne.unshift(R);break}}if(ne[0]in C)P=ne[0];else{for(R in C){if(!ne[0]||m.converters[R+" "+ne[0]]){P=R;break}z||(z=R)}P=P||z}if(P)return P!==ne[0]&&ne.unshift(P),C[P]}function Hu(m,b,C,k){var R,P,z,ae,ne,ge={},Fe=m.dataTypes.slice();if(Fe[1])for(z in m.converters)ge[z.toLowerCase()]=m.converters[z];for(P=Fe.shift();P;)if(m.responseFields[P]&&(C[m.responseFields[P]]=b),!ne&&k&&m.dataFilter&&(b=m.dataFilter(b,m.dataType)),ne=P,P=Fe.shift(),P){if(P==="*")P=ne;else if(ne!=="*"&&ne!==P){if(z=ge[ne+" "+P]||ge["* "+P],!z){for(R in ge)if(ae=R.split(" "),ae[1]===P&&(z=ge[ne+" "+ae[0]]||ge["* "+ae[0]],z)){z===!0?z=ge[R]:ge[R]!==!0&&(P=ae[0],Fe.unshift(ae[1]));break}}if(z!==!0)if(z&&m.throws)b=z(b);else try{b=z(b)}catch(Le){return{state:"parsererror",error:z?Le:"No conversion from "+ne+" to "+P}}}}return{state:"success",data:b}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lr.href,type:"GET",isLocal:Ka.test(Lr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":to,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(m,b){return b?Uo(Uo(m,w.ajaxSettings),b):Uo(w.ajaxSettings,m)},ajaxPrefilter:qo(Va),ajaxTransport:qo($o),ajax:function(m,b){typeof m=="object"&&(b=m,m=void 0),b=b||{};var C,k,R,P,z,ae,ne,ge,Fe,Le,Ae=w.ajaxSetup({},b),He=Ae.context||Ae,Dt=Ae.context&&(He.nodeType||He.jquery)?w(He):w.event,qt=w.Deferred(),Mt=w.Callbacks("once memory"),Si=Ae.statusCode||{},si={},zi={},kn="canceled",$t={readyState:0,getResponseHeader:function(zt){var It;if(ne){if(!P)for(P={};It=Bu.exec(R);)P[It[1].toLowerCase()+" "]=(P[It[1].toLowerCase()+" "]||[]).concat(It[2]);It=P[zt.toLowerCase()+" "]}return It==null?null:It.join(", ")},getAllResponseHeaders:function(){return ne?R:null},setRequestHeader:function(zt,It){return ne==null&&(zt=zi[zt.toLowerCase()]=zi[zt.toLowerCase()]||zt,si[zt]=It),this},overrideMimeType:function(zt){return ne==null&&(Ae.mimeType=zt),this},statusCode:function(zt){var It;if(zt)if(ne)$t.always(zt[$t.status]);else for(It in zt)Si[It]=[Si[It],zt[It]];return this},abort:function(zt){var It=zt||kn;return C&&C.abort(It),hr(0,It),this}};if(qt.promise($t),Ae.url=((m||Ae.url||Lr.href)+"").replace(Nu,Lr.protocol+"//"),Ae.type=b.method||b.type||Ae.method||Ae.type,Ae.dataTypes=(Ae.dataType||"*").toLowerCase().match(St)||[""],Ae.crossDomain==null){ae=A.createElement("a");try{ae.href=Ae.url,ae.href=ae.href,Ae.crossDomain=Mr.protocol+"//"+Mr.host!=ae.protocol+"//"+ae.host}catch{Ae.crossDomain=!0}}if(Ae.data&&Ae.processData&&typeof Ae.data!="string"&&(Ae.data=w.param(Ae.data,Ae.traditional)),Za(Va,Ae,b,$t),ne)return $t;ge=w.event&&Ae.global,ge&&w.active++===0&&w.event.trigger("ajaxStart"),Ae.type=Ae.type.toUpperCase(),Ae.hasContent=!ul.test(Ae.type),k=Ae.url.replace(Ru,""),Ae.hasContent?Ae.data&&Ae.processData&&(Ae.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ae.data=Ae.data.replace(Iu,"+")):(Le=Ae.url.slice(k.length),Ae.data&&(Ae.processData||typeof Ae.data=="string")&&(k+=(Xa.test(k)?"&":"?")+Ae.data,delete Ae.data),Ae.cache===!1&&(k=k.replace(Pu,"$1"),Le=(Xa.test(k)?"&":"?")+"_="+Ga.guid+++Le),Ae.url=k+Le),Ae.ifModified&&(w.lastModified[k]&&$t.setRequestHeader("If-Modified-Since",w.lastModified[k]),w.etag[k]&&$t.setRequestHeader("If-None-Match",w.etag[k])),(Ae.data&&Ae.hasContent&&Ae.contentType!==!1||b.contentType)&&$t.setRequestHeader("Content-Type",Ae.contentType),$t.setRequestHeader("Accept",Ae.dataTypes[0]&&Ae.accepts[Ae.dataTypes[0]]?Ae.accepts[Ae.dataTypes[0]]+(Ae.dataTypes[0]!=="*"?", "+to+"; q=0.01":""):Ae.accepts["*"]);for(Fe in Ae.headers)$t.setRequestHeader(Fe,Ae.headers[Fe]);if(Ae.beforeSend&&(Ae.beforeSend.call(He,$t,Ae)===!1||ne))return $t.abort();if(kn="abort",Mt.add(Ae.complete),$t.done(Ae.success),$t.fail(Ae.error),C=Za($o,Ae,b,$t),!C)hr(-1,"No Transport");else{if($t.readyState=1,ge&&Dt.trigger("ajaxSend",[$t,Ae]),ne)return $t;Ae.async&&Ae.timeout>0&&(z=l.setTimeout(function(){$t.abort("timeout")},Ae.timeout));try{ne=!1,C.send(si,hr)}catch(zt){if(ne)throw zt;hr(-1,zt)}}function hr(zt,It,io,Xo){var Gi,no,wn,tr,Tn,Ji=It;ne||(ne=!0,z&&l.clearTimeout(z),C=void 0,R=Xo||"",$t.readyState=zt>0?4:0,Gi=zt>=200&&zt<300||zt===304,io&&(tr=Go(Ae,$t,io)),!Gi&&w.inArray("script",Ae.dataTypes)>-1&&w.inArray("json",Ae.dataTypes)<0&&(Ae.converters["text script"]=function(){}),tr=Hu(Ae,tr,$t,Gi),Gi?(Ae.ifModified&&(Tn=$t.getResponseHeader("Last-Modified"),Tn&&(w.lastModified[k]=Tn),Tn=$t.getResponseHeader("etag"),Tn&&(w.etag[k]=Tn)),zt===204||Ae.type==="HEAD"?Ji="nocontent":zt===304?Ji="notmodified":(Ji=tr.state,no=tr.data,wn=tr.error,Gi=!wn)):(wn=Ji,(zt||!Ji)&&(Ji="error",zt<0&&(zt=0))),$t.status=zt,$t.statusText=(It||Ji)+"",Gi?qt.resolveWith(He,[no,Ji,$t]):qt.rejectWith(He,[$t,Ji,wn]),$t.statusCode(Si),Si=void 0,ge&&Dt.trigger(Gi?"ajaxSuccess":"ajaxError",[$t,Ae,Gi?no:wn]),Mt.fireWith(He,[$t,Ji]),ge&&(Dt.trigger("ajaxComplete",[$t,Ae]),--w.active||w.event.trigger("ajaxStop")))}return $t},getJSON:function(m,b,C){return w.get(m,b,C,"json")},getScript:function(m,b){return w.get(m,void 0,b,"script")}}),w.each(["get","post"],function(m,b){w[b]=function(C,k,R,P){return F(k)&&(P=P||R,R=k,k=void 0),w.ajax(w.extend({url:C,type:b,dataType:P,data:k,success:R},w.isPlainObject(C)&&C))}}),w.ajaxPrefilter(function(m){var b;for(b in m.headers)b.toLowerCase()==="content-type"&&(m.contentType=m.headers[b]||"")}),w._evalUrl=function(m,b,C){return w.ajax({url:m,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(k){w.globalEval(k,b,C)}})},w.fn.extend({wrapAll:function(m){var b;return this[0]&&(F(m)&&(m=m.call(this[0])),b=w(m,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var C=this;C.firstElementChild;)C=C.firstElementChild;return C}).append(this)),this},wrapInner:function(m){return F(m)?this.each(function(b){w(this).wrapInner(m.call(this,b))}):this.each(function(){var b=w(this),C=b.contents();C.length?C.wrapAll(m):b.append(m)})},wrap:function(m){var b=F(m);return this.each(function(C){w(this).wrapAll(b?m.call(this,C):m)})},unwrap:function(m){return this.parent(m).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(m){return!w.expr.pseudos.visible(m)},w.expr.pseudos.visible=function(m){return!!(m.offsetWidth||m.offsetHeight||m.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new l.XMLHttpRequest}catch{}};var cl={0:200,1223:204},Hi=w.ajaxSettings.xhr();D.cors=!!Hi&&"withCredentials"in Hi,D.ajax=Hi=!!Hi,w.ajaxTransport(function(m){var b,C;if(D.cors||Hi&&!m.crossDomain)return{send:function(k,R){var P,z=m.xhr();if(z.open(m.type,m.url,m.async,m.username,m.password),m.xhrFields)for(P in m.xhrFields)z[P]=m.xhrFields[P];m.mimeType&&z.overrideMimeType&&z.overrideMimeType(m.mimeType),!m.crossDomain&&!k["X-Requested-With"]&&(k["X-Requested-With"]="XMLHttpRequest");for(P in k)z.setRequestHeader(P,k[P]);b=function(ae){return function(){b&&(b=C=z.onload=z.onerror=z.onabort=z.ontimeout=z.onreadystatechange=null,ae==="abort"?z.abort():ae==="error"?typeof z.status!="number"?R(0,"error"):R(z.status,z.statusText):R(cl[z.status]||z.status,z.statusText,(z.responseType||"text")!=="text"||typeof z.responseText!="string"?{binary:z.response}:{text:z.responseText},z.getAllResponseHeaders()))}},z.onload=b(),C=z.onerror=z.ontimeout=b("error"),z.onabort!==void 0?z.onabort=C:z.onreadystatechange=function(){z.readyState===4&&l.setTimeout(function(){b&&C()})},b=b("abort");try{z.send(m.hasContent&&m.data||null)}catch(ae){if(b)throw ae}},abort:function(){b&&b()}}}),w.ajaxPrefilter(function(m){m.crossDomain&&(m.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(m){return w.globalEval(m),m}}}),w.ajaxPrefilter("script",function(m){m.cache===void 0&&(m.cache=!1),m.crossDomain&&(m.type="GET")}),w.ajaxTransport("script",function(m){if(m.crossDomain||m.scriptAttrs){var b,C;return{send:function(k,R){b=w("<script>").attr(m.scriptAttrs||{}).prop({charset:m.scriptCharset,src:m.url}).on("load error",C=function(P){b.remove(),C=null,P&&R(P.type==="error"?404:200,P.type)}),A.head.appendChild(b[0])},abort:function(){C&&C()}}}});var fl=[],Qa=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var m=fl.pop()||w.expando+"_"+Ga.guid++;return this[m]=!0,m}}),w.ajaxPrefilter("json jsonp",function(m,b,C){var k,R,P,z=m.jsonp!==!1&&(Qa.test(m.url)?"url":typeof m.data=="string"&&(m.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Qa.test(m.data)&&"data");if(z||m.dataTypes[0]==="jsonp")return k=m.jsonpCallback=F(m.jsonpCallback)?m.jsonpCallback():m.jsonpCallback,z?m[z]=m[z].replace(Qa,"$1"+k):m.jsonp!==!1&&(m.url+=(Xa.test(m.url)?"&":"?")+m.jsonp+"="+k),m.converters["script json"]=function(){return P||w.error(k+" was not called"),P[0]},m.dataTypes[0]="json",R=l[k],l[k]=function(){P=arguments},C.always(function(){R===void 0?w(l).removeProp(k):l[k]=R,m[k]&&(m.jsonpCallback=b.jsonpCallback,fl.push(k)),P&&F(R)&&R(P[0]),P=R=void 0}),"script"}),D.createHTMLDocument=(function(){var m=A.implementation.createHTMLDocument("").body;return m.innerHTML="<form></form><form></form>",m.childNodes.length===2})(),w.parseHTML=function(m,b,C){if(typeof m!="string")return[];typeof b=="boolean"&&(C=b,b=!1);var k,R,P;return b||(D.createHTMLDocument?(b=A.implementation.createHTMLDocument(""),k=b.createElement("base"),k.href=A.location.href,b.head.appendChild(k)):b=A),R=j.exec(m),P=!C&&[],R?[b.createElement(R[1])]:(R=Et([m],b,P),P&&P.length&&w(P).remove(),w.merge([],R.childNodes))},w.fn.load=function(m,b,C){var k,R,P,z=this,ae=m.indexOf(" ");return ae>-1&&(k=Jn(m.slice(ae)),m=m.slice(0,ae)),F(b)?(C=b,b=void 0):b&&typeof b=="object"&&(R="POST"),z.length>0&&w.ajax({url:m,type:R||"GET",dataType:"html",data:b}).done(function(ne){P=arguments,z.html(k?w("<div>").append(w.parseHTML(ne)).find(k):ne)}).always(C&&function(ne,ge){z.each(function(){C.apply(this,P||[ne.responseText,ge,ne])})}),this},w.expr.pseudos.animated=function(m){return w.grep(w.timers,function(b){return m===b.elem}).length},w.offset={setOffset:function(m,b,C){var k,R,P,z,ae,ne,ge,Fe=w.css(m,"position"),Le=w(m),Ae={};Fe==="static"&&(m.style.position="relative"),ae=Le.offset(),P=w.css(m,"top"),ne=w.css(m,"left"),ge=(Fe==="absolute"||Fe==="fixed")&&(P+ne).indexOf("auto")>-1,ge?(k=Le.position(),z=k.top,R=k.left):(z=parseFloat(P)||0,R=parseFloat(ne)||0),F(b)&&(b=b.call(m,C,w.extend({},ae))),b.top!=null&&(Ae.top=b.top-ae.top+z),b.left!=null&&(Ae.left=b.left-ae.left+R),"using"in b?b.using.call(m,Ae):Le.css(Ae)}},w.fn.extend({offset:function(m){if(arguments.length)return m===void 0?this:this.each(function(R){w.offset.setOffset(this,m,R)});var b,C,k=this[0];if(k)return k.getClientRects().length?(b=k.getBoundingClientRect(),C=k.ownerDocument.defaultView,{top:b.top+C.pageYOffset,left:b.left+C.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var m,b,C,k=this[0],R={top:0,left:0};if(w.css(k,"position")==="fixed")b=k.getBoundingClientRect();else{for(b=this.offset(),C=k.ownerDocument,m=k.offsetParent||C.documentElement;m&&(m===C.body||m===C.documentElement)&&w.css(m,"position")==="static";)m=m.parentNode;m&&m!==k&&m.nodeType===1&&(R=w(m).offset(),R.top+=w.css(m,"borderTopWidth",!0),R.left+=w.css(m,"borderLeftWidth",!0))}return{top:b.top-R.top-w.css(k,"marginTop",!0),left:b.left-R.left-w.css(k,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var m=this.offsetParent;m&&w.css(m,"position")==="static";)m=m.offsetParent;return m||te})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"}
12,function(m,b){var C=b==="pageYOffset";w.fn[m]=function(k){return Xt(this,function(R,P,z){var ae;if(M(R)?ae=R:R.nodeType===9&&(ae=R.defaultView),z===void 0)return ae?ae[b]:R[P];ae?ae.scrollTo(C?ae.pageXOffset:z,C?z:ae.pageYOffset):R[P]=z},m,k,arguments.length)}}),w.each(["top","left"],function(m,b){w.cssHooks[b]=Zn(D.pixelPosition,function(C,k){if(k)return k=Jr(C,b),xn.test(k)?w(C).position()[b]+"px":k})}),w.each({Height:"height",Width:"width"},function(m,b){w.each({padding:"inner"+m,content:b,"":"outer"+m},function(C,k){w.fn[k]=function(R,P){var z=arguments.length&&(C||typeof R!="boolean"),ae=C||(R===!0||P===!0?"margin":"border");return Xt(this,function(ne,ge,Fe){var Le;return M(ne)?k.indexOf("outer")===0?ne["inner"+m]:ne.document.documentElement["client"+m]:ne.nodeType===9?(Le=ne.documentElement,Math.max(ne.body["scroll"+m],Le["scroll"+m],ne.body["offset"+m],Le["offset"+m],Le["client"+m])):Fe===void 0?w.css(ne,ge,ae):w.style(ne,ge,Fe,ae)},b,z?R:void 0,z)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(m,b){w.fn[b]=function(C){return this.on(b,C)}}),w.fn.extend({bind:function(m,b,C){return this.on(m,null,b,C)},unbind:function(m,b){return this.off(m,null,b)},delegate:function(m,b,C,k){return this.on(b,m,C,k)},undelegate:function(m,b,C){return arguments.length===1?this.off(m,"**"):this.off(b,m||"**",C)},hover:function(m,b){return this.on("mouseenter",m).on("mouseleave",b||m)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(m,b){w.fn[b]=function(C,k){return arguments.length>0?this.on(b,null,C,k):this.trigger(b)}});var Ja=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;w.proxy=function(m,b){var C,k,R;if(typeof b=="string"&&(C=m[b],b=m,m=C),!!F(m))return k=t.call(arguments,2),R=function(){return m.apply(b||this,k.concat(t.call(arguments)))},R.guid=m.guid=m.guid||w.guid++,R},w.holdReady=function(m){m?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=De,w.isFunction=F,w.isWindow=M,w.camelCase=Yt,w.type=U,w.now=Date.now,w.isNumeric=function(m){var b=w.type(m);return(b==="number"||b==="string")&&!isNaN(m-parseFloat(m))},w.trim=function(m){return m==null?"":(m+"").replace(Ja,"$1")};var dl=l.jQuery,er=l.$;return w.noConflict=function(m){return l.$===w&&(l.$=er),m&&l.jQuery===w&&(l.jQuery=dl),w},typeof c>"u"&&(l.jQuery=l.$=w),w})})(Ql)),Ql.exports}var Ax=cu();const wo=Oa(Ax);window.$=window.jQuery=wo;var Ec={exports:{}},np;function _x(){return np||(np=1,(function(n,l){(function(c){n.exports=c(cu())})(function(c){var s=window.Slick||{};s=(function(){var r=0;function t(i,o){var u=this,f;u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(i),appendDots:c(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(p,v){return c('<button type="button" />').text(v+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(u,u.initials),u.activeBreakpoint=null,u.animType=null,u.animProp=null,u.breakpoints=[],u.breakpointSettings=[],u.cssTransitions=!1,u.focussed=!1,u.interrupted=!1,u.hidden="hidden",u.paused=!0,u.positionProp=null,u.respondTo=null,u.rowCount=1,u.shouldClick=!0,u.$slider=c(i),u.$slidesCache=null,u.transformType=null,u.transitionType=null,u.visibilityChange="visibilitychange",u.windowWidth=0,u.
12windowTimer=null,f=c(i).data("slick")||{},u.options=c.extend({},u.defaults,o,f),u.currentSlide=u.options.initialSlide,u.originalSettings=u.options,typeof document.mozHidden<"u"?(u.hidden="mozHidden",u.visibilityChange="mozvisibilitychange"):typeof document.webkitHidden<"u"&&(u.hidden="webkitHidden",u.visibilityChange="webkitvisibilitychange"),u.autoPlay=c.proxy(u.autoPlay,u),u.autoPlayClear=c.proxy(u.autoPlayClear,u),u.autoPlayIterator=c.proxy(u.autoPlayIterator,u),u.changeSlide=c.proxy(u.changeSlide,u),u.clickHandler=c.proxy(u.clickHandler,u),u.selectHandler=c.proxy(u.selectHandler,u),u.setPosition=c.proxy(u.setPosition,u),u.swipeHandler=c.proxy(u.swipeHandler,u),u.dragHandler=c.proxy(u.dragHandler,u),u.keyHandler=c.proxy(u.keyHandler,u),u.instanceUid=r++,u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,u.registerBreakpoints(),u.init(!0)}return t})(),s.prototype.activateADA=function(){var r=this;r.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},s.prototype.addSlide=s.prototype.slickAdd=function(r,t,i){var o=this;if(typeof t=="boolean")i=t,t=null;else if(t<0||t>=o.slideCount)return!1;o.unload(),typeof t=="number"?t===0&&o.$slides.length===0?c(r).appendTo(o.$slideTrack):i?c(r).insertBefore(o.$slides.eq(t)):c(r).insertAfter(o.$slides.eq(t)):i===!0?c(r).prependTo(o.$slideTrack):c(r).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(u,f){c(f).attr("data-slick-index",u)}),o.$slidesCache=o.$slides,o.reinit()},s.prototype.animateHeight=function(){var r=this;if(r.options.slidesToShow===1&&r.options.adaptiveHeight===!0&&r.options.vertical===!1){var t=r.$slides.eq(r.currentSlide).outerHeight(!0);r.$list.animate({height:t},r.options.speed)}},s.prototype.animateSlide=function(r,t){var i={},o=this;o.animateHeight(),o.options.rtl===!0&&o.options.vertical===!1&&(r=-r),o.transformsEnabled===!1?o.options.vertical===!1?o.$slideTrack.animate({left:r},o.options.speed,o.options.easing,t):o.$slideTrack.animate({top:r},o.options.speed,o.options.easing,t):o.cssTransitions===!1?(o.options.rtl===!0&&(o.currentLeft=-o.currentLeft),c({animStart:o.currentLeft}).animate({animStart:r},{duration:o.options.speed,easing:o.options.easing,step:function(u){u=Math.ceil(u),o.options.vertical===!1?(i[o.animType]="translate("+u+"px, 0px)",o.$slideTrack.css(i)):(i[o.animType]="translate(0px,"+u+"px)",o.$slideTrack.css(i))},complete:function(){t&&t.call()}})):(o.applyTransition(),r=Math.ceil(r),o.options.vertical===!1?i[o.animType]="translate3d("+r+"px, 0px, 0px)":i[o.animType]="translate3d(0px,"+r+"px, 0px)",o.$slideTrack.css(i),t&&setTimeout(function(){o.disableTransition(),t.call()},o.options.speed))},s.prototype.getNavTarget=function(){var r=this,t=r.options.asNavFor;return t&&t!==null&&(t=c(t).not(r.$slider)),t},s.prototype.asNavFor=function(r){var t=this,i=t.getNavTarget();i!==null&&typeof i=="object"&&i.each(function(){var o=c(this).slick("getSlick");o.unslicked||o.slideHandler(r,!0)})},s.prototype.applyTransition=function(r){var t=this,i={};t.options.fade===!1?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(r).css(i)},s.prototype.autoPlay=function(){var r=this;r.autoPlayClear(),r.slideCount>r.options.slidesToShow&&(r.autoPlayTimer=setInterval(r.autoPlayIterator,r.options.autoplaySpeed))},s.prototype.autoPlayClear=function(){var r=this;r.autoPlayTimer&&clearInterval(r.autoPlayTimer)},s.prototype.autoPlayIterator=function(){var r=this,t=r.currentSlide+r.options.slidesToScroll;!r.paused&&!r.interrupted&&!r.focussed&&(r.options.infinite===!1&&(r.direction===1&&r.currentSlide+1===r.slideCount-1?r.direction=0:r.direction===0&&(t=r.currentSlide-r.options.slidesToScroll,r.currentSlide-1===0&&(r.direction=1))),r.slideHandler(t))},s.prototype.buildArrows=function(){var r=this;r.options.arrows===!0&&(r.$prevArrow=c(r.options.prevArrow).addClass("slick-arrow"),r.$
12nextArrow=c(r.options.nextArrow).addClass("slick-arrow"),r.slideCount>r.options.slidesToShow?(r.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),r.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),r.htmlExpr.test(r.options.prevArrow)&&r.$prevArrow.prependTo(r.options.appendArrows),r.htmlExpr.test(r.options.nextArrow)&&r.$nextArrow.appendTo(r.options.appendArrows),r.options.infinite!==!0&&r.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):r.$prevArrow.add(r.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},s.prototype.buildDots=function(){var r=this,t,i;if(r.options.dots===!0&&r.slideCount>r.options.slidesToShow){for(r.$slider.addClass("slick-dotted"),i=c("<ul />").addClass(r.options.dotsClass),t=0;t<=r.getDotCount();t+=1)i.append(c("<li />").append(r.options.customPaging.call(this,r,t)));r.$dots=i.appendTo(r.options.appendDots),r.$dots.find("li").first().addClass("slick-active")}},s.prototype.buildOut=function(){var r=this;r.$slides=r.$slider.children(r.options.slide+":not(.slick-cloned)").addClass("slick-slide"),r.slideCount=r.$slides.length,r.$slides.each(function(t,i){c(i).attr("data-slick-index",t).data("originalStyling",c(i).attr("style")||"")}),r.$slider.addClass("slick-slider"),r.$slideTrack=r.slideCount===0?c('<div class="slick-track"/>').appendTo(r.$slider):r.$slides.wrapAll('<div class="slick-track"/>').parent(),r.$list=r.$slideTrack.wrap('<div class="slick-list"/>').parent(),r.$slideTrack.css("opacity",0),(r.options.centerMode===!0||r.options.swipeToSlide===!0)&&(r.options.slidesToScroll=1),c("img[data-lazy]",r.$slider).not("[src]").addClass("slick-loading"),r.setupInfinite(),r.buildArrows(),r.buildDots(),r.updateDots(),r.setSlideClasses(typeof r.currentSlide=="number"?r.currentSlide:0),r.options.draggable===!0&&r.$list.addClass("draggable")},s.prototype.buildRows=function(){var r=this,t,i,o,u,f,p,v;if(u=document.createDocumentFragment(),p=r.$slider.children(),r.options.rows>0){for(v=r.options.slidesPerRow*r.options.rows,f=Math.ceil(p.length/v),t=0;t<f;t++){var y=document.createElement("div");for(i=0;i<r.options.rows;i++){var S=document.createElement("div");for(o=0;o<r.options.slidesPerRow;o++){var D=t*v+(i*r.options.slidesPerRow+o);p.get(D)&&S.appendChild(p.get(D))}y.appendChild(S)}u.appendChild(y)}r.$slider.empty().append(u),r.$slider.children().children().children().css({width:100/r.options.slidesPerRow+"%",display:"inline-block"})}},s.prototype.checkResponsive=function(r,t){var i=this,o,u,f,p=!1,v=i.$slider.width(),y=window.innerWidth||c(window).width();if(i.respondTo==="window"?f=y:i.respondTo==="slider"?f=v:i.respondTo==="min"&&(f=Math.min(y,v)),i.options.responsive&&i.options.responsive.length&&i.options.responsive!==null){u=null;for(o in i.breakpoints)i.breakpoints.hasOwnProperty(o)&&(i.originalSettings.mobileFirst===!1?f<i.breakpoints[o]&&(u=i.breakpoints[o]):f>i.breakpoints[o]&&(u=i.breakpoints[o]));u!==null?i.activeBreakpoint!==null?(u!==i.activeBreakpoint||t)&&(i.activeBreakpoint=u,i.breakpointSettings[u]==="unslick"?i.unslick(u):(i.options=c.extend({},i.originalSettings,i.breakpointSettings[u]),r===!0&&(i.currentSlide=i.options.initialSlide),i.refresh(r)),p=u):(i.activeBreakpoint=u,i.breakpointSettings[u]==="unslick"?i.unslick(u):(i.options=c.extend({},i.originalSettings,i.breakpointSettings[u]),r===!0&&(i.currentSlide=i.options.initialSlide),i.refresh(r)),p=u):i.activeBreakpoint!==null&&(i.activeBreakpoint=null,i.options=i.originalSettings,r===!0&&(i.currentSlide=i.options.initialSlide),i.refresh(r),p=u),!r&&p!==!1&&i.$slider.trigger("breakpoint",[i,p])}},s.prototype.changeSlide=function(r,t){var i=this,o=c(r.currentTarget),u,f,p;switch(o.is("a")&&r.preventDefault(),o.is("li")||(o=o.closest("li")),p=i.slideCount%i.options.slidesToScroll!==0,u=p?0:(i.slideCount-i.currentSlide)%i.options.slidesToScroll,r.data.message){case"previous":f=u===0?i.options.slidesToScroll:i.options.slidesToShow-u,i.slideCount>i.options.slidesToShow&&i.slideHandler(i.currentSlide-f,!1,t);break;case"next":f=u===0?i.options.slidesToScroll:u,i.slideCount>i.options.slidesToShow&&i.slideHandler(i.currentSlide+f,!1,t);break;case"index":var v=r.data.index===0?0:r.data.index||o.index()*i.options.slidesToScroll;i.slideHandler(i.checkNavigable(v),!1,t),o.children().trigger("focus");break;default:return}},s.prototype.checkNavigable=function(r){var t=this,i,o;if(i=t.getNavigableIndexes(),o=0,r>i[i.length-1])r=i[i.length-1];else for(var u in i){if(r<i[u]){r=o;break}o=i[u]}return r},s.prototype.cleanUpEvents=function(){var r=this;r.options.dots&&r.$dots!==null&&(c("li",r.$dots).off("click.slick",r.changeSlide).off("mouseenter.slick",c.proxy(r.interrupt,r,!0)).off("mouseleave.
12slick",c.proxy(r.interrupt,r,!1)),r.options.accessibility===!0&&r.$dots.off("keydown.slick",r.keyHandler)),r.$slider.off("focus.slick blur.slick"),r.options.arrows===!0&&r.slideCount>r.options.slidesToShow&&(r.$prevArrow&&r.$prevArrow.off("click.slick",r.changeSlide),r.$nextArrow&&r.$nextArrow.off("click.slick",r.changeSlide),r.options.accessibility===!0&&(r.$prevArrow&&r.$prevArrow.off("keydown.slick",r.keyHandler),r.$nextArrow&&r.$nextArrow.off("keydown.slick",r.keyHandler))),r.$list.off("touchstart.slick mousedown.slick",r.swipeHandler),r.$list.off("touchmove.slick mousemove.slick",r.swipeHandler),r.$list.off("touchend.slick mouseup.slick",r.swipeHandler),r.$list.off("touchcancel.slick mouseleave.slick",r.swipeHandler),r.$list.off("click.slick",r.clickHandler),c(document).off(r.visibilityChange,r.visibility),r.cleanUpSlideEvents(),r.options.accessibility===!0&&r.$list.off("keydown.slick",r.keyHandler),r.options.focusOnSelect===!0&&c(r.$slideTrack).children().off("click.slick",r.selectHandler),c(window).off("orientationchange.slick.slick-"+r.instanceUid,r.orientationChange),c(window).off("resize.slick.slick-"+r.instanceUid,r.resize),c("[draggable!=true]",r.$slideTrack).off("dragstart",r.preventDefault),c(window).off("load.slick.slick-"+r.instanceUid,r.setPosition)},s.prototype.cleanUpSlideEvents=function(){var r=this;r.$list.off("mouseenter.slick",c.proxy(r.interrupt,r,!0)),r.$list.off("mouseleave.slick",c.proxy(r.interrupt,r,!1))},s.prototype.cleanUpRows=function(){var r=this,t;r.options.rows>0&&(t=r.$slides.children().children(),t.removeAttr("style"),r.$slider.empty().append(t))},s.prototype.clickHandler=function(r){var t=this;t.shouldClick===!1&&(r.stopImmediatePropagation(),r.stopPropagation(),r.preventDefault())},s.prototype.destroy=function(r){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),c(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,r||t.$slider.trigger("destroy",[t])},s.prototype.disableTransition=function(r){var t=this,i={};i[t.transitionType]="",t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(r).css(i)},s.prototype.fadeSlide=function(r,t){var i=this;i.cssTransitions===!1?(i.$slides.eq(r).css({zIndex:i.options.zIndex}),i.$slides.eq(r).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(r),i.$slides.eq(r).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(r),t.call()},i.options.speed))},s.prototype.fadeSlideOut=function(r){var t=this;t.cssTransitions===!1?t.$slides.eq(r).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(r),t.$slides.eq(r).css({opacity:0,zIndex:t.options.zIndex-2}))},s.prototype.filterSlides=s.prototype.slickFilter=function(r){var t=this;r!==null&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(r).appendTo(t.$slideTrack),t.reinit())},s.prototype.focusHandler=function(){var r=this;r.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var i=c(this);setTimeout(function(){r.options.pauseOnFocus&&(r.focussed=i.is(":focus"),r.autoPlay())}
12,0)})},s.prototype.getCurrent=s.prototype.slickCurrentSlide=function(){var r=this;return r.currentSlide},s.prototype.getDotCount=function(){var r=this,t=0,i=0,o=0;if(r.options.infinite===!0)if(r.slideCount<=r.options.slidesToShow)++o;else for(;t<r.slideCount;)++o,t=i+r.options.slidesToScroll,i+=r.options.slidesToScroll<=r.options.slidesToShow?r.options.slidesToScroll:r.options.slidesToShow;else if(r.options.centerMode===!0)o=r.slideCount;else if(!r.options.asNavFor)o=1+Math.ceil((r.slideCount-r.options.slidesToShow)/r.options.slidesToScroll);else for(;t<r.slideCount;)++o,t=i+r.options.slidesToScroll,i+=r.options.slidesToScroll<=r.options.slidesToShow?r.options.slidesToScroll:r.options.slidesToShow;return o-1},s.prototype.getLeft=function(r){var t=this,i,o,u=0,f,p;return t.slideOffset=0,o=t.$slides.first().outerHeight(!0),t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,p=-1,t.options.vertical===!0&&t.options.centerMode===!0&&(t.options.slidesToShow===2?p=-1.5:t.options.slidesToShow===1&&(p=-2)),u=o*t.options.slidesToShow*p),t.slideCount%t.options.slidesToScroll!==0&&r+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(r>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(r-t.slideCount))*t.slideWidth*-1,u=(t.options.slidesToShow-(r-t.slideCount))*o*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,u=t.slideCount%t.options.slidesToScroll*o*-1))):r+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(r+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(r+t.options.slidesToShow-t.slideCount)*o),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),t.options.centerMode===!0&&t.slideCount<=t.options.slidesToShow?t.slideOffset=t.slideWidth*Math.floor(t.options.slidesToShow)/2-t.slideWidth*t.slideCount/2:t.options.centerMode===!0&&t.options.infinite===!0?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:t.options.centerMode===!0&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),t.options.vertical===!1?i=r*t.slideWidth*-1+t.slideOffset:i=r*o*-1+u,t.options.variableWidth===!0&&(t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?f=t.$slideTrack.children(".slick-slide").eq(r):f=t.$slideTrack.children(".slick-slide").eq(r+t.options.slidesToShow),t.options.rtl===!0?f[0]?i=(t.$slideTrack.width()-f[0].offsetLeft-f.width())*-1:i=0:i=f[0]?f[0].offsetLeft*-1:0,t.options.centerMode===!0&&(t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?f=t.$slideTrack.children(".slick-slide").eq(r):f=t.$slideTrack.children(".slick-slide").eq(r+t.options.slidesToShow+1),t.options.rtl===!0?f[0]?i=(t.$slideTrack.width()-f[0].offsetLeft-f.width())*-1:i=0:i=f[0]?f[0].offsetLeft*-1:0,i+=(t.$list.width()-f.outerWidth())/2)),i},s.prototype.getOption=s.prototype.slickGetOption=function(r){var t=this;return t.options[r]},s.prototype.getNavigableIndexes=function(){var r=this,t=0,i=0,o=[],u;
12for(r.options.infinite===!1?u=r.slideCount:(t=r.options.slidesToScroll*-1,i=r.options.slidesToScroll*-1,u=r.slideCount*2);t<u;)o.push(t),t=i+r.options.slidesToScroll,i+=r.options.slidesToScroll<=r.options.slidesToShow?r.options.slidesToScroll:r.options.slidesToShow;return o},s.prototype.getSlick=function(){return this},s.prototype.getSlideCount=function(){var r=this,t,i,o;return o=r.options.centerMode===!0?r.slideWidth*Math.floor(r.options.slidesToShow/2):0,r.options.swipeToSlide===!0?(r.$slideTrack.find(".slick-slide").each(function(u,f){if(f.offsetLeft-o+c(f).outerWidth()/2>r.swipeLeft*-1)return i=f,!1}),t=Math.abs(c(i).attr("data-slick-index")-r.currentSlide)||1,t):r.options.slidesToScroll},s.prototype.goTo=s.prototype.slickGoTo=function(r,t){var i=this;i.changeSlide({data:{message:"index",index:parseInt(r)}},t)},s.prototype.init=function(r){var t=this;c(t.$slider).hasClass("slick-initialized")||(c(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),r&&t.$slider.trigger("init",[t]),t.options.accessibility===!0&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},s.prototype.initADA=function(){var r=this,t=Math.ceil(r.slideCount/r.options.slidesToShow),i=r.getNavigableIndexes().filter(function(f){return f>=0&&f<r.slideCount});r.$slides.add(r.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),r.$dots!==null&&(r.$slides.not(r.$slideTrack.find(".slick-cloned")).each(function(f){var p=i.indexOf(f);if(c(this).attr({role:"tabpanel",id:"slick-slide"+r.instanceUid+f,tabindex:-1}),p!==-1){var v="slick-slide-control"+r.instanceUid+p;c("#"+v).length&&c(this).attr({"aria-describedby":v})}}),r.$dots.attr("role","tablist").find("li").each(function(f){var p=i[f];c(this).attr({role:"presentation"}),c(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+r.instanceUid+f,"aria-controls":"slick-slide"+r.instanceUid+p,"aria-label":f+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(r.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=r.currentSlide,u=o+r.options.slidesToShow;o<u;o++)r.options.focusOnChange?r.$slides.eq(o).attr({tabindex:"0"}):r.$slides.eq(o).removeAttr("tabindex");r.activateADA()},s.prototype.initArrowEvents=function(){var r=this;r.options.arrows===!0&&r.slideCount>r.options.slidesToShow&&(r.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},r.changeSlide),r.$nextArrow.off("click.slick").on("click.slick",{message:"next"},r.changeSlide),r.options.accessibility===!0&&(r.$prevArrow.on("keydown.slick",r.keyHandler),r.$nextArrow.on("keydown.slick",r.keyHandler)))},s.prototype.initDotEvents=function(){var r=this;r.options.dots===!0&&r.slideCount>r.options.slidesToShow&&(c("li",r.$dots).on("click.slick",{message:"index"},r.changeSlide),r.options.accessibility===!0&&r.$dots.on("keydown.slick",r.keyHandler)),r.options.dots===!0&&r.options.pauseOnDotsHover===!0&&r.slideCount>r.options.slidesToShow&&c("li",r.$dots).on("mouseenter.slick",c.proxy(r.interrupt,r,!0)).on("mouseleave.slick",c.proxy(r.interrupt,r,!1))},s.prototype.initSlideEvents=function(){var r=this;r.options.pauseOnHover&&(r.$list.on("mouseenter.slick",c.proxy(r.interrupt,r,!0)),r.$list.on("mouseleave.slick",c.proxy(r.interrupt,r,!1)))},s.prototype.initializeEvents=function(){var r=this;r.initArrowEvents(),r.initDotEvents(),r.initSlideEvents(),r.$list.on("touchstart.slick mousedown.slick",{action:"start"},r.swipeHandler),r.$list.on("touchmove.slick mousemove.slick",{action:"move"},r.swipeHandler),r.$list.on("touchend.slick mouseup.slick",{action:"end"}
12,r.swipeHandler),r.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},r.swipeHandler),r.$list.on("click.slick",r.clickHandler),c(document).on(r.visibilityChange,c.proxy(r.visibility,r)),r.options.accessibility===!0&&r.$list.on("keydown.slick",r.keyHandler),r.options.focusOnSelect===!0&&c(r.$slideTrack).children().on("click.slick",r.selectHandler),c(window).on("orientationchange.slick.slick-"+r.instanceUid,c.proxy(r.orientationChange,r)),c(window).on("resize.slick.slick-"+r.instanceUid,c.proxy(r.resize,r)),c("[draggable!=true]",r.$slideTrack).on("dragstart",r.preventDefault),c(window).on("load.slick.slick-"+r.instanceUid,r.setPosition),c(r.setPosition)},s.prototype.initUI=function(){var r=this;r.options.arrows===!0&&r.slideCount>r.options.slidesToShow&&(r.$prevArrow.show(),r.$nextArrow.show()),r.options.dots===!0&&r.slideCount>r.options.slidesToShow&&r.$dots.show()},s.prototype.keyHandler=function(r){var t=this;r.target.tagName.match("TEXTAREA|INPUT|SELECT")||(r.keyCode===37&&t.options.accessibility===!0?t.changeSlide({data:{message:t.options.rtl===!0?"next":"previous"}}):r.keyCode===39&&t.options.accessibility===!0&&t.changeSlide({data:{message:t.options.rtl===!0?"previous":"next"}}))},s.prototype.lazyLoad=function(){var r=this,t,i,o,u;function f(D){c("img[data-lazy]",D).each(function(){var F=c(this),M=c(this).attr("data-lazy"),A=c(this).attr("data-srcset"),L=c(this).attr("data-sizes")||r.$slider.attr("data-sizes"),H=document.createElement("img");H.onload=function(){F.animate({opacity:0}
12,100,function(){A&&(F.attr("srcset",A),L&&F.attr("sizes",L)),F.attr("src",M).animate({opacity:1},200,function(){F.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,F,M])})},H.onerror=function(){F.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,F,M])},H.src=M})}if(r.options.centerMode===!0?r.options.infinite===!0?(o=r.currentSlide+(r.options.slidesToShow/2+1),u=o+r.options.slidesToShow+2):(o=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),u=2+(r.options.slidesToShow/2+1)+r.currentSlide):(o=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,u=Math.ceil(o+r.options.slidesToShow),r.options.fade===!0&&(o>0&&o--,u<=r.slideCount&&u++)),t=r.$slider.find(".slick-slide").slice(o,u),r.options.lazyLoad==="anticipated")for(var p=o-1,v=u,y=r.$slider.find(".slick-slide"),S=0;S<r.options.slidesToScroll;S++)p<0&&(p=r.slideCount-1),t=t.add(y.eq(p)),t=t.add(y.eq(v)),p--,v++;f(t),r.slideCount<=r.options.slidesToShow?(i=r.$slider.find(".slick-slide"),f(i)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(i=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),f(i)):r.currentSlide===0&&(i=r.$slider.find(".slick-cloned").slice(r.options.slidesToShow*-1),f(i))},s.prototype.loadSlider=function(){var r=this;r.setPosition(),r.$slideTrack.css({opacity:1}),r.$slider.removeClass("slick-loading"),r.initUI(),r.options.lazyLoad==="progressive"&&r.progressiveLazyLoad()},s.prototype.next=s.prototype.slickNext=function(){var r=this;r.changeSlide({data:{message:"next"}})},s.prototype.orientationChange=function(){var r=this;r.checkResponsive(),r.setPosition()},s.prototype.pause=s.prototype.slickPause=function(){var r=this;r.autoPlayClear(),r.paused=!0},s.prototype.play=s.prototype.slickPlay=function(){var r=this;r.autoPlay(),r.options.autoplay=!0,r.paused=!1,r.focussed=!1,r.interrupted=!1},s.prototype.postSlide=function(r){var t=this;if(!t.unslicked&&(t.$slider.trigger("afterChange",[t,r]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&(t.initADA(),t.options.focusOnChange))){var i=c(t.$slides.get(t.currentSlide));i.attr("tabindex",0).focus()}},s.prototype.prev=s.prototype.slickPrev=function(){var r=this;r.changeSlide({data:{message:"previous"}})},s.prototype.preventDefault=function(r){r.preventDefault()},s.prototype.progressiveLazyLoad=function(r){r=r||1;var t=this,i=c("img[data-lazy]",t.$slider),o,u,f,p,v;i.length?(o=i.first(),u=o.attr("data-lazy"),f=o.attr("data-srcset"),p=o.attr("data-sizes")||t.$slider.attr("data-sizes"),v=document.createElement("img"),v.onload=function(){f&&(o.attr("srcset",f),p&&o.attr("sizes",p)),o.attr("src",u).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),t.options.adaptiveHeight===!0&&t.setPosition(),t.$slider.trigger("lazyLoaded",[t,o,u]),t.progressiveLazyLoad()},v.onerror=function(){r<3?setTimeout(function(){t.progressiveLazyLoad(r+1)},500):(o.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),t.$slider.trigger("lazyLoadError",[t,o,u]),t.progressiveLazyLoad())},v.src=u):t.$slider.trigger("allImagesLoaded",[t])},s.prototype.refresh=function(r){var t=this,i,o;o=t.slideCount-t.options.slidesToShow,!t.options.infinite&&t.currentSlide>o&&(t.currentSlide=o),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),i=t.currentSlide,t.destroy(!0),c.extend(t,t.initials,{currentSlide:i}),t.init(),r||t.changeSlide({data:{message:"index",index:i}},!1)},s.prototype.registerBreakpoints=function(){var r=this,t,i,o,u=r.options.responsive||null;if(c.type(u)==="array"&&u.length){r.respondTo=r.options.respondTo||"window";for(t in u)if(o=r.breakpoints.length-1,u.hasOwnProperty(t)){for(i=u[t].breakpoint;o>=0;)r.breakpoints[o]&&r.breakpoints[o]===i&&r.breakpoints.splice(o,1),o--;r.breakpoints.push(i),r.breakpointSettings[i]=u[t].settings}r.breakpoints.sort(function(f,p){return r.options.mobileFirst?f-p:p-f})}},s.prototype.reinit=function(){var r=this;r.$slides=r.$slideTrack.children(r.options.slide).addClass("slick-slide"),r.slideCount=r.$slides.length,r.currentSlide>=r.slideCount&&r.currentSlide!==0&&(r.currentSlide=r.currentSlide-r.options.slidesToScroll),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),r.registerBreakpoints(),r.setProps(),r.setupInfinite(),r.buildArrows(),r.updateArrows(),r.initArrowEvents(),r.buildDots(),r.updateDots(),r.initDotEvents(),r.cleanUpSlideEvents(),r.initSlideEvents(),r.checkResponsive(!1,!0),r.options.focusOnSelect===!0&&c(r.$slideTrack).children().on("click.slick",r.selectHandler),r.setSlideClasses(typeof r.currentSlide=="number"?r.currentSlide:0),r.setPosition(),r.focusHandler(),r.paused=!r.options.autoplay,r.autoPlay(),r.$slider.trigger("reInit",[r])},s.prototype.resize=function(){var r=this;c(window).width()!==r.windowWidth&&(clearTimeout(r.windowDelay),r.windowDelay=window.setTimeout(function(){r.windowWidth=c(window).width(),r.checkResponsive(),r.unslicked||r.setPosition()},50))},s.prototype.removeSlide=s.prototype.slickRemove=function(r,t,i){var o=this;if(typeof r=="boolean"?(t=r,r=t===!0?0:o.slideCount-1):r=t===!0?--r:r,o.slideCount<1||r<0||r>o.slideCount-1)return!1;o.unload(),i===!0?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(r).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},s.prototype.setCSS=function(r){var t=this,i={},o,u;t.options.rtl===!0&&(r=-r),o=t.positionProp=="left"?Math.ceil(r)+"px":"0px",u=t.positionProp=="top"?Math.ceil(r)+"px":"0px",
vendor: 1,369 bytes, line 12
12i[t.positionProp]=r,t.transformsEnabled===!1?t.$slideTrack.css(i):(i={},t.cssTransitions===!1?(i[t.animType]="translate("+o+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+o+", "+u+", 0px)",t.$slideTrack.css(i)))},s.prototype.setDimensions=function(){var r=this;r.options.vertical===!1?r.options.centerMode===!0&&r.$list.css({padding:"0px "+r.options.centerPadding}):(r.$list.height(r.$slides.first().outerHeight(!0)*r.options.slidesToShow),r.options.centerMode===!0&&r.$list.css({padding:r.options.centerPadding+" 0px"})),r.listWidth=r.$list.width(),r.listHeight=r.$list.height(),r.options.vertical===!1&&r.options.variableWidth===!1?(r.slideWidth=Math.ceil(r.listWidth/r.options.slidesToShow),r.$slideTrack.width(Math.ceil(r.slideWidth*r.$slideTrack.children(".slick-slide").length))):r.options.variableWidth===!0?r.$slideTrack.width(5e3*r.slideCount):(r.slideWidth=Math.ceil(r.listWidth),r.$slideTrack.height(Math.ceil(r.$slides.first().outerHeight(!0)*r.$slideTrack.children(".slick-slide").length)));var t=r.$slides.first().outerWidth(!0)-r.$slides.first().width();r.options.variableWidth===!1&&r.$slideTrack.children(".slick-slide").width(r.slideWidth-t)},s.prototype.setFade=function(){var r=this,t;r.$slides.each(function(i,o){t=r.slideWidth*i*-1,r.options.rtl===!0?c(o).css({position:"relative",right:t,top:0,zIndex:r.options.zIndex-2,opacity:0}
12):c(o).css({position:"relative",left:t,top:0,zIndex:r.options.zIndex-2,opacity:0})}),r.$slides.eq(r.currentSlide).css({zIndex:r.options.zIndex-1,opacity:1})},s.prototype.setHeight=function(){var r=this;if(r.options.slidesToShow===1&&r.options.adaptiveHeight===!0&&r.options.vertical===!1){var t=r.$slides.eq(r.currentSlide).outerHeight(!0);r.$list.css("height",t)}},s.prototype.setOption=s.prototype.slickSetOption=function(){var r=this,t,i,o,u,f=!1,p;if(c.type(arguments[0])==="object"?(o=arguments[0],f=arguments[1],p="multiple"):c.type(arguments[0])==="string"&&(o=arguments[0],u=arguments[1],f=arguments[2],arguments[0]==="responsive"&&c.type(arguments[1])==="array"?p="responsive":typeof arguments[1]<"u"&&(p="single")),p==="single")r.options[o]=u;else if(p==="multiple")c.each(o,function(v,y){r.options[v]=y});else if(p==="responsive")for(i in u)if(c.type(r.options.responsive)!=="array")r.options.responsive=[u[i]];else{for(t=r.options.responsive.length-1;t>=0;)r.options.responsive[t].breakpoint===u[i].breakpoint&&r.options.responsive.splice(t,1),t--;r.options.responsive.push(u[i])}f&&(r.unload(),r.reinit())},s.prototype.setPosition=function(){var r=this;r.setDimensions(),r.setHeight(),r.options.fade===!1?r.setCSS(r.getLeft(r.currentSlide)):r.setFade(),r.$slider.trigger("setPosition",[r])},s.prototype.setProps=function(){var r=this,t=document.body.style;r.positionProp=r.options.vertical===!0?"top":"left",r.positionProp==="top"?r.$slider.addClass("slick-vertical"):r.$slider.removeClass("slick-vertical"),(t.WebkitTransition!==void 0||t.MozTransition!==void 0||t.msTransition!==void 0)&&r.options.useCSS===!0&&(r.cssTransitions=!0),r.options.fade&&(typeof r.options.zIndex=="number"?r.options.zIndex<3&&(r.options.zIndex=3):r.options.zIndex=r.defaults.zIndex),t.OTransform!==void 0&&(r.animType="OTransform",r.transformType="-o-transform",r.transitionType="OTransition",t.perspectiveProperty===void 0&&t.webkitPerspective===void 0&&(r.animType=!1)),t.MozTransform!==void 0&&(r.animType="MozTransform",r.transformType="-moz-transform",r.transitionType="MozTransition",t.perspectiveProperty===void 0&&t.MozPerspective===void 0&&(r.animType=!1)),t.webkitTransform!==void 0&&(r.animType="webkitTransform",r.transformType="-webkit-transform",r.transitionType="webkitTransition",t.perspectiveProperty===void 0&&t.webkitPerspective===void 0&&(r.animType=!1)),t.msTransform!==void 0&&(r.animType="msTransform",r.transformType="-ms-transform",r.transitionType="msTransition",t.msTransform===void 0&&(r.animType=!1)),t.transform!==void 0&&r.animType!==!1&&(r.animType="transform",r.transformType="transform",r.transitionType="transition"),r.transformsEnabled=r.options.useTransform&&r.animType!==null&&r.animType!==!1},s.prototype.setSlideClasses=function(r){var t=this,i,o,u,f;if(o=t.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),t.$slides.eq(r).addClass("slick-current"),t.options.centerMode===!0){var p=t.options.slidesToShow%2===0?1:0;i=Math.floor(t.options.slidesToShow/2),t.options.infinite===!0&&(r>=i&&r<=t.slideCount-1-i?t.$slides.slice(r-i+p,r+i+1).addClass("slick-active").attr("aria-hidden","false"):(u=t.options.slidesToShow+r,o.slice(u-i+1+p,u+i+2).addClass("slick-active").attr("aria-hidden","false")),r===0?o.eq(o.length-1-t.options.slidesToShow).addClass("slick-center"):r===t.slideCount-1&&o.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(r).addClass("slick-center")}else r>=0&&r<=t.slideCount-t.options.slidesToShow?t.$slides.slice(r,r+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):o.length<=t.options.slidesToShow?o.addClass("slick-active").attr("aria-hidden","false"):(f=t.slideCount%t.options.slidesToShow,u=t.options.infinite===!0?t.options.slidesToShow+r:r,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-r<t.options.slidesToShow?o.slice(u-(t.options.slidesToShow-f),u+f).addClass("slick-active").attr("aria-hidden","false"):o.slice(u,u+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));(t.options.lazyLoad==="ondemand"||t.options.lazyLoad==="anticipated")&&t.lazyLoad()},s.prototype.setupInfinite=function(){var r=this,t,i,o;if(r.options.fade===!0&&(r.options.centerMode=!1),r.options.infinite===!0&&r.options.fade===!1&&(i=null,r.slideCount>r.options.slidesToShow)){for(r.options.centerMode===!0?o=r.options.slidesToShow+1:o=r.options.slidesToShow,t=r.slideCount;t>r.slideCount-o;t-=1)i=t-1,c(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(t=0;t<o+r.slideCount;t+=1)i=t,c(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},s.prototype.interrupt=function(r){var t=this;r||t.autoPlay(),t.interrupted=r},s.prototype.selectHandler=function(r){var t=this,i=c(r.target).is(".slick-slide")?c(r.target):c(r.target).parents(".slick-slide"),o=parseInt(i.attr("data-slick-index"));if(o||(o=0),t.slideCount<=t.options.slidesToShow){t.slideHandler(o,!1,!0);return}t.slideHandler(o)},s.prototype.slideHandler=function(r,t,i){var o,u,f,p,v=null,y=this,S;
12if(t=t||!1,!(y.animating===!0&&y.options.waitForAnimate===!0)&&!(y.options.fade===!0&&y.currentSlide===r)){if(t===!1&&y.asNavFor(r),o=r,v=y.getLeft(o),p=y.getLeft(y.currentSlide),y.currentLeft=y.swipeLeft===null?p:y.swipeLeft,y.options.infinite===!1&&y.options.centerMode===!1&&(r<0||r>y.getDotCount()*y.options.slidesToScroll)){y.options.fade===!1&&(o=y.currentSlide,i!==!0&&y.slideCount>y.options.slidesToShow?y.animateSlide(p,function(){y.postSlide(o)}):y.postSlide(o));return}else if(y.options.infinite===!1&&y.options.centerMode===!0&&(r<0||r>y.slideCount-y.options.slidesToScroll)){y.options.fade===!1&&(o=y.currentSlide,i!==!0&&y.slideCount>y.options.slidesToShow?y.animateSlide(p,function(){y.postSlide(o)}):y.postSlide(o));return}if(y.options.autoplay&&clearInterval(y.autoPlayTimer),o<0?y.slideCount%y.options.slidesToScroll!==0?u=y.slideCount-y.slideCount%y.options.slidesToScroll:u=y.slideCount+o:o>=y.slideCount?y.slideCount%y.options.slidesToScroll!==0?u=0:u=o-y.slideCount:u=o,y.animating=!0,y.$slider.trigger("beforeChange",[y,y.currentSlide,u]),f=y.currentSlide,y.currentSlide=u,y.setSlideClasses(y.currentSlide),y.options.asNavFor&&(S=y.getNavTarget(),S=S.slick("getSlick"),S.slideCount<=S.options.slidesToShow&&S.setSlideClasses(y.currentSlide)),y.updateDots(),y.updateArrows(),y.options.fade===!0){i!==!0?(y.fadeSlideOut(f),y.fadeSlide(u,function(){y.postSlide(u)})):y.postSlide(u),y.animateHeight();return}i!==!0&&y.slideCount>y.options.slidesToShow?y.animateSlide(v,function(){y.postSlide(u)}):y.postSlide(u)}},s.prototype.startLoad=function(){var r=this;r.options.arrows===!0&&r.slideCount>r.options.slidesToShow&&(r.$prevArrow.hide(),r.$nextArrow.hide()),r.options.dots===!0&&r.slideCount>r.options.slidesToShow&&r.$dots.hide(),r.$slider.addClass("slick-loading")},s.prototype.swipeDirection=function(){var r,t,i,o,u=this;return r=u.touchObject.startX-u.touchObject.curX,t=u.touchObject.startY-u.touchObject.curY,i=Math.atan2(t,r),o=Math.round(i*180/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?u.options.rtl===!1?"left":"right":o>=135&&o<=225?u.options.rtl===!1?"right":"left":u.options.verticalSwiping===!0?o>=35&&o<=135?"down":"up":"vertical"},s.prototype.swipeEnd=function(r){var t=this,i,o;if(t.dragging=!1,t.swiping=!1,t.scrolling)return t.scrolling=!1,!1;if(t.interrupted=!1,t.shouldClick=!(t.touchObject.swipeLength>10),t.touchObject.curX===void 0)return!1;if(t.touchObject.edgeHit===!0&&t.$slider.trigger("edge",[t,t.swipeDirection()]),t.touchObject.swipeLength>=t.touchObject.minSwipe){switch(o=t.swipeDirection(),o){case"left":case"down":i=t.options.swipeToSlide?t.checkNavigable(t.currentSlide+t.getSlideCount()):t.currentSlide+t.getSlideCount(),t.currentDirection=0;break;case"right":case"up":i=t.options.swipeToSlide?t.checkNavigable(t.currentSlide-t.getSlideCount()):t.currentSlide-t.getSlideCount(),t.currentDirection=1;break}o!="vertical"&&(t.slideHandler(i),t.touchObject={},t.$slider.trigger("swipe",[t,o]))}else t.touchObject.startX!==t.touchObject.curX&&(t.slideHandler(t.currentSlide),t.touchObject={})},s.prototype.swipeHandler=function(r){var t=this;if(!(t.options.swipe===!1||"ontouchend"in document&&t.options.swipe===!1)&&!(t.options.draggable===!1&&r.type.indexOf("mouse")!==-1))switch(t.touchObject.fingerCount=r.originalEvent&&r.originalEvent.touches!==void 0?r.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,t.options.verticalSwiping===!0&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),r.data.action){case"start":t.swipeStart(r);break;case"move":t.swipeMove(r);break;case"end":t.swipeEnd(r);break}},s.prototype.swipeMove=function(r){var t=this,i,o,u,f,p,v;if(p=r.originalEvent!==void 0?r.originalEvent.touches:null,!t.dragging||t.scrolling||p&&p.length!==1)return!1;if(i=t.getLeft(t.currentSlide),t.touchObject.curX=p!==void 0?p[0].pageX:r.clientX,t.touchObject.curY=p!==void 0?p[0].pageY:r.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),v=Math.round(Math.sqrt(Math.pow(t.touchObject.curY-t.touchObject.startY,2))),!t.options.verticalSwiping&&!t.swiping&&v>4)return t.scrolling=!0,!1;if(t.options.verticalSwiping===!0&&(t.touchObject.swipeLength=v),o=t.swipeDirection(),r.originalEvent!==void 0&&t.touchObject.swipeLength>4&&(t.swiping=!0,r.preventDefault()),f=(t.options.rtl===!1?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),t.options.verticalSwiping===!0&&(f=t.touchObject.curY>t.touchObject.startY?1:-1),u=t.touchObject.swipeLength,t.touchObject.edgeHit=!1,t.options.infinite===!1&&(t.currentSlide===0&&o==="right"||t.currentSlide>=t.getDotCount()&&o==="left")&&(u=t.touchObject.swipeLength*t.options.edgeFriction,t.touchObject.edgeHit=!0),t.options.vertical===!1?t.swipeLeft=i+u*f:t.swipeLeft=i+u*(t.$list.height()/t.listWidth)*f,t.options.verticalSwiping===!0&&(t.swipeLeft=i+u*f),t.options.fade===!0||t.options.touchMove===!1)return!1;if(t.animating===!0)return t.swipeLeft=null,!1;t.setCSS(t.swipeLeft)},s.prototype.swipeStart=function(r){var t=this,i;if(t.interrupted=!0,t.touchObject.fingerCount!==1||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;r.originalEvent!==void 0&&r.originalEvent.touches!==void 0&&(i=r.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=i!==void 0?i.pageX:r.clientX,t.touchObject.startY=t.touchObject.curY=i!==void 0?i.pageY:r.clientY,t.dragging=!0},s.prototype.unfilterSlides=s.prototype.slickUnfilter=function(){var r=this;r.$slidesCache!==null&&(r.unload(),r.$slideTrack.children(this.options.slide).detach(),r.$slidesCache.appendTo(r.$slideTrack),r.reinit())},s.prototype.unload=function(){var r=this;c(".slick-cloned",r.$slider).remove(),r.$dots&&r.$dots.remove(),r.$prevArrow&&r.htmlExpr.test(r.options.prevArrow)&&r.$prevArrow.remove(),r.$nextArrow&&r.htmlExpr.test(r.options.nextArrow)&&r.$nextArrow.remove(),r.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
12,s.prototype.unslick=function(r){var t=this;t.$slider.trigger("unslick",[t,r]),t.destroy()},s.prototype.updateArrows=function(){var r=this;Math.floor(r.options.slidesToShow/2),r.options.arrows===!0&&r.slideCount>r.options.slidesToShow&&!r.options.infinite&&(r.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),r.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),r.currentSlide===0?(r.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),r.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(r.currentSlide>=r.slideCount-r.options.slidesToShow&&r.options.centerMode===!1||r.currentSlide>=r.slideCount-1&&r.options.centerMode===!0)&&(r.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),r.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},s.prototype.updateDots=function(){var r=this;r.$dots!==null&&(r.$dots.find("li").removeClass("slick-active").end(),r.$dots.find("li").eq(Math.floor(r.currentSlide/r.options.slidesToScroll)).addClass("slick-active"))},s.prototype.visibility=function(){var r=this;r.options.autoplay&&(document[r.hidden]?r.interrupted=!0:r.interrupted=!1)},c.fn.slick=function(){var r=this,t=arguments[0],i=Array.prototype.slice.call(arguments,1),o=r.length,u,f;for(u=0;u<o;u++)if(typeof t=="object"||typeof t>"u"?r[u].slick=new s(r[u],t):f=r[u].slick[t].apply(r[u].slick,i),typeof f<"u")return f;return r}})})(Ec)),Ec.exports}_x();var Sc={exports:{}};var rp;function kx(){return rp||(rp=1,(function(n){(function(l){n.exports?n.exports=function(c,s){return s===void 0&&(typeof window<"u"?s=cu():s=cu()(c)),l(s),s}:l(jQuery)})(function(l){var c=(function(){if(l&&l.fn&&l.fn.select2&&l.fn.select2.amd)var r=l.fn.select2.amd;var r;return(function(){if(!r||!r.requirejs){r?i=r:r={};var t,i,o;(function(u){var f,p,v,y,S={},D={},F={},M={},A=Object.prototype.hasOwnProperty,L=[].slice,H=/\.js$/;function U(ie,me){return A.call(ie,me)}function ee(ie,me){var Y,Ee,we,Ie,nt,at,ut,j,I,pe,ze,Re,We=me&&me.split("/"),ct=F.map,ft=ct&&ct["*"]||{};if(ie){for(ie=ie.split("/"),nt=ie.length-1,F.nodeIdCompat&&H.test(ie[nt])&&(ie[nt]=ie[nt].replace(H,"")),ie[0].charAt(0)==="."&&We&&(Re=We.slice(0,We.length-1),ie=Re.concat(ie)),I=0;I<ie.length;I++)if(ze=ie[I],ze===".")ie.splice(I,1),I-=1;else if(ze===".."){if(I===0||I===1&&ie[2]===".."||ie[I-1]==="..")continue;I>0&&(ie.splice(I-1,2),I-=2)}ie=ie.join("/")}if((We||ft)&&ct){for(Y=ie.split("/"),I=Y.length;I>0;I-=1){if(Ee=Y.slice(0,I).join("/"),We){for(pe=We.length;pe>0;pe-=1)if(we=ct[We.slice(0,pe).join("/")],we&&(we=we[Ee],we)){Ie=we,at=I;break}}if(Ie)break;!ut&&ft&&ft[Ee]&&(ut=ft[Ee],j=I)}!Ie&&ut&&(Ie=ut,at=j),Ie&&(Y.splice(0,at,Ie),ie=Y.join("/"))}return ie}function Z(ie,me){return function(){var Y=L.call(arguments,0);return typeof Y[0]!="string"&&Y.length===1&&Y.push(null),p.apply(u,Y.concat([ie,me]))}}function w(ie){return function(me){return ee(me,ie)}}function xe(ie){return function(me){S[ie]=me}}function De(ie){if(U(D,ie)){var me=D[ie];delete D[ie],M[ie]=!0,f.apply(u,me)}if(!U(S,ie)&&!U(M,ie))throw new Error("No "+ie);return S[ie]}function Ke(ie){var me,Y=ie?ie.indexOf("!"):-1;return Y>-1&&(me=ie.substring(0,Y),ie=ie.substring(Y+1,ie.length)),[me,ie]}function ye(ie){return ie?Ke(ie):[]}v=function(ie,me){var Y,Ee=Ke(ie),we=Ee[0],Ie=me[1];return ie=Ee[1],we&&(we=ee(we,Ie),Y=De(we)),we?Y&&Y.normalize?ie=Y.normalize(ie,w(Ie)):ie=ee(ie,Ie):(ie=ee(ie,Ie),Ee=Ke(ie),we=Ee[0],ie=Ee[1],we&&(Y=De(we))),{f:we?we+"!"+ie:ie,n:ie,pr:we,p:Y}};function _e(ie){return function(){return F&&F.config&&F.config[ie]||{}}}y={require:function(ie){return Z(ie)},exports:function(ie){var me=S[ie];return typeof me<"u"?me:S[ie]={}},module:function(ie){return{id:ie,uri:"",exports:S[ie],config:_e(ie)}}},f=function(ie,me,Y,Ee){var we,Ie,nt,at,ut,j,I=[],pe=typeof Y,ze;if(Ee=Ee||ie,j=ye(Ee),pe==="undefined"||pe==="function"){for(me=!me.length&&Y.length?["require","exports","module"]:me,ut=0;ut<me.length;ut+=1)if(at=v(me[ut],j),Ie=at.f,Ie==="require")I[ut]=y.require(ie);else if(Ie==="exports")I[ut]=y.exports(ie),ze=!0;else if(Ie==="module")we=I[ut]=y.module(ie);else if(U(S,Ie)||U(D,Ie)||U(M,Ie))I[ut]=De(Ie);else if(at.p)at.p.load(at.n,Z(Ee,!0),xe(Ie),{}),I[ut]=S[Ie];else throw new Error(ie+" missing "+Ie);
12nt=Y?Y.apply(S[ie],I):void 0,ie&&(we&&we.exports!==u&&we.exports!==S[ie]?S[ie]=we.exports:(nt!==u||!ze)&&(S[ie]=nt))}else ie&&(S[ie]=Y)},t=i=p=function(ie,me,Y,Ee,we){if(typeof ie=="string")return y[ie]?y[ie](me):De(v(ie,ye(me)).f);if(!ie.splice){if(F=ie,F.deps&&p(F.deps,F.callback),!me)return;me.splice?(ie=me,me=Y,Y=null):ie=u}return me=me||function(){},typeof Y=="function"&&(Y=Ee,Ee=we),Ee?f(u,ie,me,Y):setTimeout(function(){f(u,ie,me,Y)},4),p},p.config=function(ie){return p(ie)},t._defined=S,o=function(ie,me,Y){if(typeof ie!="string")throw new Error("See almond README: incorrect module build, no module name");me.splice||(Y=me,me=[]),!U(S,ie)&&!U(D,ie)&&(D[ie]=[ie,me,Y])},o.amd={jQuery:!0}})(),r.requirejs=t,r.require=i,r.define=o}})(),r.define("almond",function(){}),r.define("jquery",[],function(){var t=l||$;return t==null&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),r.define("select2/utils",["jquery"],function(t){var i={};i.Extend=function(p,v){var y={}.hasOwnProperty;function S(){this.constructor=p}for(var D in v)y.call(v,D)&&(p[D]=v[D]);return S.prototype=v.prototype,p.prototype=new S,p.__super__=v.prototype,p};function o(p){var v=p.prototype,y=[];for(var S in v){var D=v[S];typeof D=="function"&&S!=="constructor"&&y.push(S)}return y}i.Decorate=function(p,v){var y=o(v),S=o(p);function D(){var ee=Array.prototype.unshift,Z=v.prototype.constructor.length,w=p.prototype.constructor;Z>0&&(ee.call(arguments,p.prototype.constructor),w=v.prototype.constructor),w.apply(this,arguments)}v.displayName=p.displayName;function F(){this.constructor=D}D.prototype=new F;for(var M=0;M<S.length;M++){var A=S[M];D.prototype[A]=p.prototype[A]}for(var L=function(ee){var Z=function(){};ee in D.prototype&&(Z=D.prototype[ee]);var w=v.prototype[ee];return function(){var xe=Array.prototype.unshift;return xe.call(arguments,Z),w.apply(this,arguments)}},H=0;H<y.length;H++){var U=y[H];D.prototype[U]=L(U)}return D};var u=function(){this.listeners={}};u.prototype.on=function(p,v){this.listeners=this.listeners||{},p in this.listeners?this.listeners[p].push(v):this.listeners[p]=[v]},u.prototype.trigger=function(p){var v=Array.prototype.slice,y=v.call(arguments,1);this.listeners=this.listeners||{},y==null&&(y=[]),y.length===0&&y.push({}),y[0]._type=p,p in this.listeners&&this.invoke(this.listeners[p],v.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},u.prototype.invoke=function(p,v){for(var y=0,S=p.length;y<S;y++)p[y].apply(this,v)},i.Observable=u,i.generateChars=function(p){for(var v="",y=0;y<p;y++){var S=Math.floor(Math.random()*36);v+=S.toString(36)}return v},i.bind=function(p,v){return function(){p.apply(v,arguments)}},i._convertData=function(p){for(var v in p){var y=v.split("-"),S=p;if(y.length!==1){for(var D=0;D<y.length;D++){var F=y[D];F=F.substring(0,1).toLowerCase()+F.substring(1),F in S||(S[F]={}),D==y.length-1&&(S[F]=p[v]),S=S[F]}delete p[v]}}return p},i.hasScroll=function(p,v){var y=t(v),S=v.style.overflowX,D=v.style.overflowY;return S===D&&(D==="hidden"||D==="visible")?!1:S==="scroll"||D==="scroll"?!0:y.innerHeight()<v.scrollHeight||y.innerWidth()<v.scrollWidth},i.escapeMarkup=function(p){var v={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return typeof p!="string"?p:String(p).replace(/[&<>"'\/\\]/g,function(y){return v[y]})},i.__cache={};var f=0;return i.GetUniqueElementId=function(p){var v=p.getAttribute("data-select2-id");return v!=null||(p.id?v="select2-data-"+p.id:v="select2-data-"+(++f).toString()+"-"+i.generateChars(4),p.setAttribute("data-select2-id",v)),v},i.StoreData=function(p,v,y){var S=i.GetUniqueElementId(p);i.__cache[S]||(i.__cache[S]={}),i.__cache[S][v]=y},i.GetData=function(p,v){var y=i.GetUniqueElementId(p);return v?i.__cache[y]&&i.__cache[y][v]!=null?i.__cache[y][v]:t(p).data(v):i.__cache[y]},i.RemoveData=function(p){var v=i.GetUniqueElementId(p);i.__cache[v]!=null&&delete i.__cache[v],p.removeAttribute("data-select2-id")}
12,i.copyNonInternalCssClasses=function(p,v){var y=p.getAttribute("class").trim().split(/\s+/);y=y.filter(function(F){return F.indexOf("select2-")===0});var S=v.getAttribute("class").trim().split(/\s+/);S=S.filter(function(F){return F.indexOf("select2-")!==0});var D=y.concat(S);p.setAttribute("class",D.join(" "))},i}),r.define("select2/results",["jquery","./utils"],function(t,i){function o(u,f,p){this.$element=u,this.data=p,this.options=f,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var u=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&u.attr("aria-multiselectable","true"),this.$results=u,u},o.prototype.clear=function(){this.$results.empty()},o.prototype.displayMessage=function(u){var f=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var p=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),v=this.options.get("translations").get(u.message);p.append(f(v(u.args))),p[0].className+=" select2-results__message",this.$results.append(p)},o.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},o.prototype.append=function(u){this.hideLoading();var f=[];if(u.results==null||u.results.length===0){this.$results.children().length===0&&this.trigger("results:message",{message:"noResults"});return}u.results=this.sort(u.results);for(var p=0;p<u.results.length;p++){var v=u.results[p],y=this.option(v);f.push(y)}this.$results.append(f)},o.prototype.position=function(u,f){var p=f.find(".select2-results");p.append(u)},o.prototype.sort=function(u){var f=this.options.get("sorter");return f(u)},o.prototype.highlightFirstItem=function(){var u=this.$results.find(".select2-results__option--selectable"),f=u.filter(".select2-results__option--selected");f.length>0?f.first().trigger("mouseenter"):u.first().trigger("mouseenter"),this.ensureHighlightVisible()},o.prototype.setClasses=function(){var u=this;this.data.current(function(f){var p=f.map(function(y){return y.id.toString()}),v=u.$results.find(".select2-results__option--selectable");v.each(function(){var y=t(this),S=i.GetData(this,"data"),D=""+S.id;S.element!=null&&S.element.selected||S.element==null&&p.indexOf(D)>-1?(this.classList.add("select2-results__option--selected"),y.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),y.attr("aria-selected","false"))})})},o.prototype.showLoading=function(u){this.hideLoading();var f=this.options.get("translations").get("searching"),p={disabled:!0,loading:!0,text:f(u)},v=this.option(p);v.className+=" loading-results",this.$results.prepend(v)},o.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},o.prototype.option=function(u){var f=document.createElement("li");f.classList.add("select2-results__option"),f.classList.add("select2-results__option--selectable");var p={role:"option"},v=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;(u.element!=null&&v.call(u.element,":disabled")||u.element==null&&u.disabled)&&(p["aria-disabled"]="true",f.classList.remove("select2-results__option--selectable"),f.classList.add("select2-results__option--disabled")),u.id==null&&f.classList.remove("select2-results__option--selectable"),u._resultId!=null&&(f.id=u._resultId),u.title&&(f.title=u.title),u.children&&(p.role="group",p["aria-label"]=u.text,f.classList.remove("select2-results__option--selectable"),f.classList.add("select2-results__option--group"));for(var y in p){var S=p[y];f.setAttribute(y,S)}if(u.children){var D=t(f),F=document.createElement("strong");F.className="select2-results__group",this.template(u,F);for(var M=[],A=0;A<u.children.length;A++){var L=u.children[A],H=this.option(L);M.push(H)}var U=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});U.append(M),D.append(F),D.append(U)}else this.template(u,f);return i.StoreData(f,"data",u),f},o.prototype.bind=function(u,f){var p=this,v=u.id+"-results";this.$results.attr("id",v),u.on("results:all",function(y){p.clear(),p.append(y.data),u.isOpen()&&(p.setClasses(),p.highlightFirstItem())}),u.on("results:append",function(y){p.append(y.data),u.isOpen()&&p.setClasses()}),u.on("query",function(y){p.hideMessages(),p.showLoading(y)}),u.on("select",function(){u.isOpen()&&(p.setClasses(),p.options.get("scrollAfterSelect")&&p.highlightFirstItem())}),u.on("unselect",function(){u.isOpen()&&(p.setClasses(),p.options.get("scrollAfterSelect")&&p.highlightFirstItem())}),u.on("open",function(){p.$results.attr("aria-expanded","true"),p.$results.attr("aria-hidden","false"),p.setClasses(),p.ensureHighlightVisible()}
12),u.on("close",function(){p.$results.attr("aria-expanded","false"),p.$results.attr("aria-hidden","true"),p.$results[0].removeAttribute("aria-activedescendant")}),u.on("results:toggle",function(){var y=p.getHighlightedResults();y.length!==0&&y.trigger("mouseup")}),u.on("results:select",function(){var y=p.getHighlightedResults();if(y.length!==0){var S=i.GetData(y[0],"data");y.hasClass("select2-results__option--selected")?p.trigger("close",{}):p.trigger("select",{data:S})}}),u.on("results:previous",function(){var y=p.getHighlightedResults(),S=p.$results.find(".select2-results__option--selectable"),D=S.index(y);if(!(D<=0)){var F=D-1;y.length===0&&(F=0);var M=S.eq(F);M.trigger("mouseenter");var A=p.$results.offset().top,L=M.offset().top,H=p.$results.scrollTop()+(L-A);F===0?p.$results.scrollTop(0):L-A<0&&p.$results.scrollTop(H)}}),u.on("results:next",function(){var y=p.getHighlightedResults(),S=p.$results.find(".select2-results__option--selectable"),D=S.index(y),F=D+1;if(!(F>=S.length)){var M=S.eq(F);M.trigger("mouseenter");var A=p.$results.offset().top+p.$results.outerHeight(!1),L=M.offset().top+M.outerHeight(!1),H=p.$results.scrollTop()+L-A;F===0?p.$results.scrollTop(0):L>A&&p.$results.scrollTop(H)}}),u.on("results:focus",function(y){y.element[0].classList.add("select2-results__option--highlighted"),y.element[0].setAttribute("aria-selected","true")}),u.on("results:message",function(y){p.displayMessage(y)}),t.fn.mousewheel&&this.$results.on("mousewheel",function(y){var S=p.$results.scrollTop(),D=p.$results.get(0).scrollHeight-S+y.deltaY,F=y.deltaY>0&&S-y.deltaY<=0,M=y.deltaY<0&&D<=p.$results.height();F?(p.$results.scrollTop(0),y.preventDefault(),y.stopPropagation()):M&&(p.$results.scrollTop(p.$results.get(0).scrollHeight-p.$results.height()),y.preventDefault(),y.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(y){var S=t(this),D=i.GetData(this,"data");if(S.hasClass("select2-results__option--selected")){p.options.get("multiple")?p.trigger("unselect",{originalEvent:y,data:D}):p.trigger("close",{originalEvent:y,data:D});return}p.trigger("select",{originalEvent:y,data:D})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(y){var S=i.GetData(this,"data");p.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),p.trigger("results:focus",{data:S,element:t(this)})})},o.prototype.getHighlightedResults=function(){var u=this.$results.find(".select2-results__option--highlighted");return u},o.prototype.destroy=function(){this.$results.remove()},o.prototype.ensureHighlightVisible=function(){var u=this.getHighlightedResults();if(u.length!==0){var f=this.$results.find(".select2-results__option--selectable"),p=f.index(u),v=this.$results.offset().top,y=u.offset().top,S=this.$results.scrollTop()+(y-v),D=y-v;S-=u.outerHeight(!1)*2,p<=2?this.$results.scrollTop(0):(D>this.$results.outerHeight()||D<0)&&this.$results.scrollTop(S)}},o.prototype.template=function(u,f){var p=this.options.get("templateResult"),v=this.options.get("escapeMarkup"),y=p(u,f);y==null?f.style.display="none":typeof y=="string"?f.innerHTML=v(y):t(f).append(y)},o}),r.define("select2/keys",[],function(){var t={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return t}),r.define("select2/selection/base",["jquery","../utils","../keys"],function(t,i,o){function u(f,p){this.$element=f,this.options=p,u.__super__.constructor.call(this)}return i.Extend(u,i.Observable),u.prototype.render=function(){var f=t('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,i.GetData(this.$element[0],"old-tabindex")!=null?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):this.$element.attr("tabindex")!=null&&(this._tabindex=this.$element.attr("tabindex")),f.attr("title",this.$element.attr("title")),f.attr("tabindex",this._tabindex),f.attr("aria-disabled","false"),this.$selection=f,f},u.prototype.bind=function(f,p){var v=this,y=f.id+"-results";this.container=f,this.$selection.on("focus",function(S){v.trigger("focus",S)}),this.$selection.on("blur",function(S){v._handleBlur(S)}),this.$selection.on("keydown",function(S){v.trigger("keypress",S),S.which===o.SPACE&&S.preventDefault()}),f.on("results:focus",function(S){v.$selection.attr("aria-activedescendant",S.data._resultId)}),f.on("selection:update",function(S){v.update(S.data)}),f.on("open",function(){v.$selection.attr("aria-expanded","true"),v.$selection.attr("aria-owns",y
12),v._attachCloseHandler(f)}),f.on("close",function(){v.$selection.attr("aria-expanded","false"),v.$selection[0].removeAttribute("aria-activedescendant"),v.$selection[0].removeAttribute("aria-owns"),v.$selection.trigger("focus"),v._detachCloseHandler(f)}),f.on("enable",function(){v.$selection.attr("tabindex",v._tabindex),v.$selection.attr("aria-disabled","false")}),f.on("disable",function(){v.$selection.attr("tabindex","-1"),v.$selection.attr("aria-disabled","true")})},u.prototype._handleBlur=function(f){var p=this;window.setTimeout(function(){document.activeElement==p.$selection[0]||t.contains(p.$selection[0],document.activeElement)||p.trigger("blur",f)},1)},u.prototype._attachCloseHandler=function(f){t(document.body).on("mousedown.select2."+f.id,function(p){var v=t(p.target),y=v.closest(".select2"),S=t(".select2.select2-container--open");S.each(function(){if(this!=y[0]){var D=i.GetData(this,"element");D.select2("close")}})})},u.prototype._detachCloseHandler=function(f){t(document.body).off("mousedown.select2."+f.id)},u.prototype.position=function(f,p){var v=p.find(".selection");v.append(f)},u.prototype.destroy=function(){this._detachCloseHandler(this.container)},u.prototype.update=function(f){throw new Error("The `update` method must be defined in child classes.")},u.prototype.isEnabled=function(){return!this.isDisabled()},u.prototype.isDisabled=function(){return this.options.get("disabled")},u}),r.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,i,o,u){function f(){f.__super__.constructor.apply(this,arguments)}return o.Extend(f,i),f.prototype.render=function(){var p=f.__super__.render.call(this);return p[0].classList.add("select2-selection--single"),p.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),p},f.prototype.bind=function(p,v){var y=this;f.__super__.bind.apply(this,arguments);var S=p.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",S).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",S),this.$selection.attr("aria-controls",S),this.$selection.on("mousedown",function(D){D.which===1&&y.trigger("toggle",{originalEvent:D})}),this.$selection.on("focus",function(D){}),this.$selection.on("blur",function(D){}),p.on("focus",function(D){p.isOpen()||y.$selection.trigger("focus")})},f.prototype.clear=function(){var p=this.$selection.find(".select2-selection__rendered");p.empty(),p[0].removeAttribute("title")},f.prototype.display=function(p,v){var y=this.options.get("templateSelection"),S=this.options.get("escapeMarkup");return S(y(p,v))},f.prototype.selectionContainer=function(){return t("<span></span>")},f.prototype.update=function(p){if(p.length===0){this.clear();return}var v=p[0],y=this.$selection.find(".select2-selection__rendered"),S=this.display(v,y);y.empty().append(S);var D=v.title||v.text;D?y.attr("title",D):y[0].removeAttribute("title")},f}),r.define("select2/selection/multiple",["jquery","./base","../utils"],function(t,i,o){function u(f,p){u.__super__.constructor.apply(this,arguments)}return o.Extend(u,i),u.prototype.render=function(){var f=u.__super__.render.call(this);return f[0].classList.add("select2-selection--multiple"),f.html('<ul class="select2-selection__rendered"></ul>'),f},u.prototype.bind=function(f,p){var v=this;u.__super__.bind.apply(this,arguments);var y=f.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",y),this.$selection.on("click",function(S){v.trigger("toggle",{originalEvent:S})}),this.$selection.on("click",".select2-selection__choice__remove",function(S){if(!v.isDisabled()){var D=t(this),F=D.parent(),M=o.GetData(F[0],"data");v.trigger("unselect",{originalEvent:S,data:M})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(S){v.isDisabled()||S.stopPropagation()})},u.prototype.clear=function(){var f=this.$selection.find(".select2-selection__rendered");f.empty(),f.removeAttr("title")},u.prototype.display=function(f,p){var v=this.options.get("templateSelection"),y=this.options.get("escapeMarkup");return y(v(f,p))},u.prototype.selectionContainer=function(){var f=t('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>');return f},u.prototype.update=function(f){if(this.clear(),f.length!==0){for(var p=[],v=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",y=0;y<f.length;y++){var S=f[y],D=this.selectionContainer(),F=this.display(S,D),M=v+o.generateChars(4)+"-";S.id?M+=S.id:M+=o.generateChars(4),D.find(".select2-selection__choice__display").append(F).attr("id",M);var A=S.title||S.text;A&&D.attr("title",A);var L=this.options.get("translations").get("removeItem"),H=D.find(".select2-selection__choice__remove");H.attr("title",L()),H.attr("aria-label",L()),H.attr("aria-describedby",M),o.StoreData(D[0],"data",S),p.push(D)}var U=this.$selection.find(".select2-selection__rendered");U.append(p)}},u}),r.define("select2/selection/placeholder",[],function(){function t(i,o,u){this.placeholder=this.normalizePlaceholder(u.get("placeholder")),i.call(this,o,u)}return t.prototype.normalizePlaceholder=function(i,o){return typeof o=="str
12ing"&&(o={id:"",text:o}),o},t.prototype.createPlaceholder=function(i,o){var u=this.selectionContainer();u.html(this.display(o)),u[0].classList.add("select2-selection__placeholder"),u[0].classList.remove("select2-selection__choice");var f=o.title||o.text||u.text();return this.$selection.find(".select2-selection__rendered").attr("title",f),u},t.prototype.update=function(i,o){var u=o.length==1&&o[0].id!=this.placeholder.id,f=o.length>1;if(f||u)return i.call(this,o);this.clear();var p=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(p)},t}),r.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(t,i,o){function u(){}return u.prototype.bind=function(f,p,v){var y=this;f.call(this,p,v),this.placeholder==null&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(S){y._handleClear(S)}),p.on("keypress",function(S){y._handleKeyboardClear(S,p)})},u.prototype._handleClear=function(f,p){if(!this.isDisabled()){var v=this.$selection.find(".select2-selection__clear");if(v.length!==0){p.stopPropagation();var y=o.GetData(v[0],"data"),S=this.$element.val();this.$element.val(this.placeholder.id);var D={data:y};if(this.trigger("clear",D),D.prevented){this.$element.val(S);return}for(var F=0;F<y.length;F++)if(D={data:y[F]},this.trigger("unselect",D),D.prevented){this.$element.val(S);return}this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}},u.prototype._handleKeyboardClear=function(f,p,v){v.isOpen()||(p.which==i.DELETE||p.which==i.BACKSPACE)&&this._handleClear(p)},u.prototype.update=function(f,p){if(f.call(this,p),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||p.length===0)){var v=this.$selection.find(".select2-selection__rendered").attr("id"),y=this.options.get("translations").get("removeAllItems"),S=t('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>');S.attr("title",y()),S.attr("aria-label",y()),S.attr("aria-describedby",v),o.StoreData(S[0],"data",p),this.$selection.prepend(S),this.$selection[0].classList.add("select2-selection--clearable")}},u}),r.define("select2/selection/search",["jquery","../utils","../keys"],function(t,i,o){function u(f,p,v){f.call(this,p,v)}return u.prototype.render=function(f){var p=this.options.get("translations").get("search"),v=t('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=v,this.$search=v.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",p());var y=f.call(this);return this._transferTabIndex(),y.append(this.$searchContainer),y},u.prototype.bind=function(f,p,v){var y=this,S=p.id+"-results",D=p.id+"-container";f.call(this,p,v),y.$search.attr("aria-describedby",D),p.on("open",function(){y.$search.attr("aria-controls",S),y.$search.trigger("focus")}),p.on("close",function(){y.$search.val(""),y.resizeSearch(),y.$search[0].removeAttribute("aria-controls"),y.$search[0].removeAttribute("aria-activedescendant"),y.$search.trigger("focus")}),p.on("enable",function(){y.$search.prop("disabled",!1),y._transferTabIndex()}),p.on("disable",function(){y.$search.prop("disabled",!0)}),p.on("focus",function(A){y.$search.trigger("focus")}),p.on("results:focus",function(A){A.data._resultId?y.$search.attr("aria-activedescendant",A.data._resultId):y.$search[0].removeAttribute("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(A){y.trigger("focus",A)}),this.$selection.on("focusout",".select2-search--inline",function(A){y._handleBlur(A)}),this.$selection.on("keydown",".select2-search--inline",function(A){A.stopPropagation(),y.trigger("keypress",A),y._keyUpPrevented=A.isDefaultPrevented();var L=A.which;if(L===o.BACKSPACE&&y.$search.val()===""){var H=y.$selection.find(".select2-selection__choice").last();if(H.length>0){var U=i.GetData(H[0],"data");y.searchRemoveChoice(U),A.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(A){y.$search.val()&&A.stopPropagation()});var F=document.documentMode,M=F&&F<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(A){if(M){y.$selection.off("input.search input.searchcheck");return}y.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(A){if(M&&A.type==="input"){y.$selection.off("input.search input.searchcheck");return}var L=A.which;
12L==o.SHIFT||L==o.CTRL||L==o.ALT||L!=o.TAB&&y.handleSearch(A)})},u.prototype._transferTabIndex=function(f){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},u.prototype.createPlaceholder=function(f,p){this.$search.attr("placeholder",p.text)},u.prototype.update=function(f,p){var v=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),f.call(this,p),this.resizeSearch(),v&&this.$search.trigger("focus")},u.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var f=this.$search.val();this.trigger("query",{term:f})}this._keyUpPrevented=!1},u.prototype.searchRemoveChoice=function(f,p){this.trigger("unselect",{data:p}),this.$search.val(p.text),this.handleSearch()},u.prototype.resizeSearch=function(){this.$search.css("width","25px");var f="100%";if(this.$search.attr("placeholder")===""){var p=this.$search.val().length+1;f=p*.75+"em"}this.$search.css("width",f)},u}),r.define("select2/selection/selectionCss",["../utils"],function(t){function i(){}return i.prototype.render=function(o){var u=o.call(this),f=this.options.get("selectionCssClass")||"";return f.indexOf(":all:")!==-1&&(f=f.replace(":all:",""),t.copyNonInternalCssClasses(u[0],this.$element[0])),f.trim().split(" ").forEach(function(p){p.length>0&&u[0].classList.add(p)}),u},i}),r.define("select2/selection/eventRelay",["jquery"],function(t){function i(){}return i.prototype.bind=function(o,u,f){var p=this,v=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],y=["opening","closing","selecting","unselecting","clearing"];o.call(this,u,f),u.on("*",function(S,D){if(v.indexOf(S)!==-1){D=D||{};var F=t.Event("select2:"+S,{params:D});p.$element.trigger(F),y.indexOf(S)!==-1&&(D.prevented=F.isDefaultPrevented())}})},i}),r.define("select2/translation",["jquery","require"],function(t,i){function o(u){this.dict=u||{}}return o.prototype.all=function(){return this.dict},o.prototype.get=function(u){return this.dict[u]},o.prototype.extend=function(u){this.dict=t.extend({},u.all(),this.dict)},o._cache={},o.loadPath=function(u){if(!(u in o._cache)){var f=i(u);o._cache[u]=f}return new o(o._cache[u])},o}),r.define("select2/diacritics",[],function(){var t={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D","Ꝺ":"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F","Ꝼ":"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J","Ɉ":"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N","Ƞ":"N",Ɲ:"N","Ꞑ":"N","Ꞥ":"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O","Ꝋ":"O","Ꝍ":"O",Œ:"OE",Ƣ:"OI","Ꝏ":"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q",Q:"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S",S:"S","ẞ":"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U","Ʉ":"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W","Ⱳ":"W","Ⓧ":"X",X:"X",Ẋ:"
12X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a","ⱥ":"a",ɐ:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d","ꝺ":"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e","ɇ":"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f","ꝼ":"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h","ⱨ":"h","ⱶ":"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j","ɉ":"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n","ꞑ":"n","ꞥ":"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o","ꝋ":"o","ꝍ":"o",ɵ:"o",œ:"oe",ƣ:"oi",ȣ:"ou","ꝏ":"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q",q:"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r","ɍ":"r",ɽ:"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s","ȿ":"s","ꞩ":"s","ꞅ":"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v","ꝟ":"v",ʌ:"v","ꝡ":"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w","ⱳ":"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y","ɏ":"y","ỿ":"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z","ɀ":"z","ⱬ":"z","ꝣ":"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"};return t}),r.define("select2/data/base",["../utils"],function(t){function i(o,u){i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.current=function(o){throw new Error("The `current` method must be defined in child classes.")},i.prototype.query=function(o,u){throw new Error("The `query` method must be defined in child classes.")},i.prototype.bind=function(o,u){},i.prototype.destroy=function(){},i.prototype.generateResultId=function(o,u){var f=o.id+"-result-";return f+=t.generateChars(4),u.id!=null?f+="-"+u.id.toString():f+="-"+t.generateChars(4),f},i}),r.define("select2/data/select",["./base","../utils","jquery"],function(t,i,o){function u(f,p){this.$element=f,this.options=p,u.__super__.constructor.call(this)}return i.Extend(u,t),u.prototype.current=function(f){var p=this,v=Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(y){return p.item(o(y))});f(v)},u.prototype.select=function(f){var p=this;if(f.selected=!0,f.element!=null&&f.element.tagName.toLowerCase()==="option"){f.element.selected=!0,this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple"))this.current(function(y){var S=[];
12f=[f],f.push.apply(f,y);for(var D=0;D<f.length;D++){var F=f[D].id;S.indexOf(F)===-1&&S.push(F)}p.$element.val(S),p.$element.trigger("input").trigger("change")});else{var v=f.id;this.$element.val(v),this.$element.trigger("input").trigger("change")}},u.prototype.unselect=function(f){var p=this;if(this.$element.prop("multiple")){if(f.selected=!1,f.element!=null&&f.element.tagName.toLowerCase()==="option"){f.element.selected=!1,this.$element.trigger("input").trigger("change");return}this.current(function(v){for(var y=[],S=0;S<v.length;S++){var D=v[S].id;D!==f.id&&y.indexOf(D)===-1&&y.push(D)}p.$element.val(y),p.$element.trigger("input").trigger("change")})}},u.prototype.bind=function(f,p){var v=this;this.container=f,f.on("select",function(y){v.select(y.data)}),f.on("unselect",function(y){v.unselect(y.data)})},u.prototype.destroy=function(){this.$element.find("*").each(function(){i.RemoveData(this)})},u.prototype.query=function(f,p){var v=[],y=this,S=this.$element.children();S.each(function(){if(!(this.tagName.toLowerCase()!=="option"&&this.tagName.toLowerCase()!=="optgroup")){var D=o(this),F=y.item(D),M=y.matches(f,F);M!==null&&v.push(M)}}),p({results:v})},u.prototype.addOptions=function(f){this.$element.append(f)},u.prototype.option=function(f){var p;f.children?(p=document.createElement("optgroup"),p.label=f.text):(p=document.createElement("option"),p.textContent!==void 0?p.textContent=f.text:p.innerText=f.text),f.id!==void 0&&(p.value=f.id),f.disabled&&(p.disabled=!0),f.selected&&(p.selected=!0),f.title&&(p.title=f.title);var v=this._normalizeItem(f);return v.element=p,i.StoreData(p,"data",v),o(p)},u.prototype.item=function(f){var p={};if(p=i.GetData(f[0],"data"),p!=null)return p;var v=f[0];if(v.tagName.toLowerCase()==="option")p={id:f.val(),text:f.text(),disabled:f.prop("disabled"),selected:f.prop("selected"),title:f.prop("title")};else if(v.tagName.toLowerCase()==="optgroup"){p={text:f.prop("label"),children:[],title:f.prop("title")};for(var y=f.children("option"),S=[],D=0;D<y.length;D++){var F=o(y[D]),M=this.item(F);S.push(M)}p.children=S}return p=this._normalizeItem(p),p.element=f[0],i.StoreData(f[0],"data",p),p},u.prototype._normalizeItem=function(f){f!==Object(f)&&(f={id:f,text:f}),f=o.extend({},{text:""},f);var p={selected:!1,disabled:!1};return f.id!=null&&(f.id=f.id.toString()),f.text!=null&&(f.text=f.text.toString()),f._resultId==null&&f.id&&this.container!=null&&(f._resultId=this.generateResultId(this.container,f)),f.children&&(f.children=f.children.map(u.prototype._normalizeItem)),o.extend({},p,f)},u.prototype.matches=function(f,p){var v=this.options.get("matcher");return v(f,p)},u}),r.define("select2/data/array",["./select","../utils","jquery"],function(t,i,o){function u(f,p){this._dataToConvert=p.get("data")||[],u.__super__.constructor.call(this,f,p)}return i.Extend(u,t),u.prototype.bind=function(f,p){u.__super__.bind.call(this,f,p),this.addOptions(this.convertToOptions(this._dataToConvert))},u.prototype.select=function(f){var p=this.$element.find("option").filter(function(v,y){return y.value==f.id.toString()});p.length===0&&(p=this.option(f),this.addOptions(p)),u.__super__.select.call(this,f)},u.prototype.convertToOptions=function(f){var p=this,v=this.$element.find("option"),y=v.map(function(){return p.item(o(this)).id}).get(),S=[];function D(w){return function(){return o(this).val()==w.id}}for(var F=0;F<f.length;F++){var M=this._normalizeItem(f[F]);if(y.indexOf(M.id)>=0){var A=v.filter(D(M)),L=this.item(A),H=o.extend(!0,{},M,L),U=this.option(H);A.replaceWith(U);continue}var ee=this.option(M);if(M.children){var Z=this.convertToOptions(M.children);ee.append(Z)}S.push(ee)}return S},u}),r.define("select2/data/ajax",["./array","../utils","jquery"],function(t,i,o){function u(f,p){this.ajaxOptions=this._applyDefaults(p.get("ajax")),this.ajaxOptions.processResults!=null&&(this.processResults=this.ajaxOptions.processResults),u.__super__.constructor.call(this,f,p)}return i.Extend(u,t),u.prototype._applyDefaults=function(f){var p={data:function(v){return o.extend({},v,{q:v.term})},transport:function(v,y,S){var D=o.ajax(v);return D.then(y),D.fail(S),D}};return o.extend({},p,f,!0)},u.prototype.processResults=function(f){return f},u.prototype.query=function(f,p){var v=this;this._request!=null&&(typeof this._request.abort=="function"&&this._request.abort(),this._request=null);var y=o.extend({type:"GET"},this.ajaxOptions);typeof y.url=="function"&&(y.url=y.url.call(this.$element,f)),typeof y.data=="function"&&(y.data=y.data.call(this.$element,f));function S(){var D=y.transport(y,function(F){var M=v.processResults(F,f);M&&M.results&&Array.isArray(M.results)?M.results=M.results.map(u.prototype._normalizeItem):v.options.get("debug")&&window.console&&console.error&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),p(M)},function(){D&&"status"in D&&(D.status===0||D.status==="0")||v.trigger("results:message",{message:"errorLoading"})});v._request=D}this.ajaxOptions.delay&&f.term!=null?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(S,this.ajaxOptions.delay)):S()},u}),r.define("select2/data/tags",["jquery"],function(t){function i(o,u,f){var p=f.get("tags"),v=f.get("createTag");v!==void 0&&(this.createTag=v);var y=f.get("insertTag");if(y!==void 0&&(this.insertTag=y),o.call(this,u,f),Array.isArray(p))for(var S=0;S<p.length;S++){var D=p[S],F=this._normalizeItem(D),M=this.option(F);this.$element.append(M)}}return i.prototype.query=function(o,u,f){var p=this;if(this._removeOldTags(),u.term==null||u.page!=null){o.call(this,u,f);return}function v(y,S){for(var D=y.results,F=0;F<D.length;F++){var M=D[F],A=M.children!=null&&!v({results:M.children},!0),L=(M.text||"").toUpperCase(),H=(u.term||"").toUpperCase(),U=L===H;if(U||A){if(S)return!1;y.data=D,f(y);return}}if(S)return!0;var ee=p.createTag(u);if(ee!=null){var Z=p.option(ee);Z.attr("data-select2-tag","true"),p.addOptions([Z]),p.insertTag(D,ee)}y.results=D,f(y)}o.call(this,u,v)},i.prototype.createTag=function(o,u){if(u.term==null)return null;var f=u.term.trim();return f===""?null:{id:f,text:f}},i.prototype.insertTag=function(o,u,f){u.unshift(f)},i.prototype._removeOldTags=function(o){var u=this.$element.find("option[data-select2-tag]");u.each(function(){this.selected||t(this).remove()})},i}),r.define("select2/data/tokenizer",["jquery"],function(t){function i(o,u,f){var p=f.get("tokenizer");p!==void 0&&(this.tokenizer=p),o.call(this,u,f)}
12return i.prototype.bind=function(o,u,f){o.call(this,u,f),this.$search=u.dropdown.$search||u.selection.$search||f.find(".select2-search__field")},i.prototype.query=function(o,u,f){var p=this;function v(D){var F=p._normalizeItem(D),M=p.$element.find("option").filter(function(){return t(this).val()===F.id});if(!M.length){var A=p.option(F);A.attr("data-select2-tag",!0),p._removeOldTags(),p.addOptions([A])}y(F)}function y(D){p.trigger("select",{data:D})}u.term=u.term||"";var S=this.tokenizer(u,this.options,v);S.term!==u.term&&(this.$search.length&&(this.$search.val(S.term),this.$search.trigger("focus")),u.term=S.term),o.call(this,u,f)},i.prototype.tokenizer=function(o,u,f,p){for(var v=f.get("tokenSeparators")||[],y=u.term,S=0,D=this.createTag||function(H){return{id:H.term,text:H.term}};S<y.length;){var F=y[S];if(v.indexOf(F)===-1){S++;continue}var M=y.substr(0,S),A=t.extend({},u,{term:M}),L=D(A);if(L==null){S++;continue}p(L),y=y.substr(S+1)||"",S=0}return{term:y}},i}),r.define("select2/data/minimumInputLength",[],function(){function t(i,o,u){this.minimumInputLength=u.get("minimumInputLength"),i.call(this,o,u)}return t.prototype.query=function(i,o,u){if(o.term=o.term||"",o.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:o.term,params:o}});return}i.call(this,o,u)},t}),r.define("select2/data/maximumInputLength",[],function(){function t(i,o,u){this.maximumInputLength=u.get("maximumInputLength"),i.call(this,o,u)}return t.prototype.query=function(i,o,u){if(o.term=o.term||"",this.maximumInputLength>0&&o.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:o.term,params:o}});return}i.call(this,o,u)},t}),r.define("select2/data/maximumSelectionLength",[],function(){function t(i,o,u){this.maximumSelectionLength=u.get("maximumSelectionLength"),i.call(this,o,u)}return t.prototype.bind=function(i,o,u){var f=this;i.call(this,o,u),o.on("select",function(){f._checkIfMaximumSelected()})},t.prototype.query=function(i,o,u){var f=this;this._checkIfMaximumSelected(function(){i.call(f,o,u)})},t.prototype._checkIfMaximumSelected=function(i,o){var u=this;this.current(function(f){var p=f!=null?f.length:0;if(u.maximumSelectionLength>0&&p>=u.maximumSelectionLength){u.trigger("results:message",{message:"maximumSelected",args:{maximum:u.maximumSelectionLength}});return}o&&o()})},t}),r.define("select2/dropdown",["jquery","./utils"],function(t,i){function o(u,f){this.$element=u,this.options=f,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var u=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return u.attr("dir",this.options.get("dir")),this.$dropdown=u,u},o.prototype.bind=function(){},o.prototype.position=function(u,f){},o.prototype.destroy=function(){this.$dropdown.remove()},o}),r.define("select2/dropdown/search",["jquery"],function(t){function i(){}return i.prototype.render=function(o){var u=o.call(this),f=this.options.get("translations").get("search"),p=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=p,this.$search=p.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",f()),u.prepend(p),u},i.prototype.bind=function(o,u,f){var p=this,v=u.id+"-results";o.call(this,u,f),this.$search.on("keydown",function(y){p.trigger("keypress",y),p._keyUpPrevented=y.isDefaultPrevented()}),this.$search.on("input",function(y){t(this).off("keyup")}),this.$search.on("keyup input",function(y){p.handleSearch(y)}),u.on("open",function(){p.$search.attr("tabindex",0),p.$search.attr("aria-controls",v),p.$search.trigger("focus"),window.setTimeout(function(){p.$search.trigger("focus")},0)}),u.on("close",function(){p.$search.attr("tabindex",-1),p.$search[0].removeAttribute("aria-controls"),p.$search[0].removeAttribute("aria-activedescendant"),p.$search.val(""),p.$search.trigger("blur")}),u.on("focus",function(){u.isOpen()||p.$search.trigger("focus")}),u.on("results:all",function(y){if(y.query.term==null||y.query.term===""){var S=p.showSearch(y);
12S?p.$searchContainer[0].classList.remove("select2-search--hide"):p.$searchContainer[0].classList.add("select2-search--hide")}}),u.on("results:focus",function(y){y.data._resultId?p.$search.attr("aria-activedescendant",y.data._resultId):p.$search[0].removeAttribute("aria-activedescendant")})},i.prototype.handleSearch=function(o){if(!this._keyUpPrevented){var u=this.$search.val();this.trigger("query",{term:u})}this._keyUpPrevented=!1},i.prototype.showSearch=function(o,u){return!0},i}),r.define("select2/dropdown/hidePlaceholder",[],function(){function t(i,o,u,f){this.placeholder=this.normalizePlaceholder(u.get("placeholder")),i.call(this,o,u,f)}return t.prototype.append=function(i,o){o.results=this.removePlaceholder(o.results),i.call(this,o)},t.prototype.normalizePlaceholder=function(i,o){return typeof o=="string"&&(o={id:"",text:o}),o},t.prototype.removePlaceholder=function(i,o){for(var u=o.slice(0),f=o.length-1;f>=0;f--){var p=o[f];this.placeholder.id===p.id&&u.splice(f,1)}return u},t}),r.define("select2/dropdown/infiniteScroll",["jquery"],function(t){function i(o,u,f,p){this.lastParams={},o.call(this,u,f,p),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return i.prototype.append=function(o,u){this.$loadingMore.remove(),this.loading=!1,o.call(this,u),this.showLoadingMore(u)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},i.prototype.bind=function(o,u,f){var p=this;o.call(this,u,f),u.on("query",function(v){p.lastParams=v,p.loading=!0}),u.on("query:append",function(v){p.lastParams=v,p.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},i.prototype.loadMoreIfNeeded=function(){var o=t.contains(document.documentElement,this.$loadingMore[0]);if(!(this.loading||!o)){var u=this.$results.offset().top+this.$results.outerHeight(!1),f=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1);u+50>=f&&this.loadMore()}},i.prototype.loadMore=function(){this.loading=!0;var o=t.extend({},{page:1},this.lastParams);o.page++,this.trigger("query:append",o)},i.prototype.showLoadingMore=function(o,u){return u.pagination&&u.pagination.more},i.prototype.createLoadingMore=function(){var o=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),u=this.options.get("translations").get("loadingMore");return o.html(u(this.lastParams)),o},i}),r.define("select2/dropdown/attachBody",["jquery","../utils"],function(t,i){function o(u,f,p){this.$dropdownParent=t(p.get("dropdownParent")||document.body),u.call(this,f,p)}return o.prototype.bind=function(u,f,p){var v=this;u.call(this,f,p),f.on("open",function(){v._showDropdown(),v._attachPositioningHandler(f),v._bindContainerResultHandlers(f)}),f.on("close",function(){v._hideDropdown(),v._detachPositioningHandler(f)}),this.$dropdownContainer.on("mousedown",function(y){y.stopPropagation()})},o.prototype.destroy=function(u){u.call(this),this.$dropdownContainer.remove()},o.prototype.position=function(u,f,p){f.attr("class",p.attr("class")),f[0].classList.remove("select2"),f[0].classList.add("select2-container--open"),f.css({position:"absolute",top:-999999}),this.$container=p},o.prototype.render=function(u){var f=t("<span></span>"),p=u.call(this);return f.append(p),this.$dropdownContainer=f,f},o.prototype._hideDropdown=function(u){this.$dropdownContainer.detach()},o.prototype._bindContainerResultHandlers=function(u,f){if(!this._containerResultsHandlersBound){var p=this;f.on("results:all",function(){p._positionDropdown(),p._resizeDropdown()}),f.on("results:append",function(){p._positionDropdown(),p._resizeDropdown()}),f.on("results:message",function(){p._positionDropdown(),p._resizeDropdown()}),f.on("select",function(){p._positionDropdown(),p._resizeDropdown()}),f.on("unselect",function(){p._positionDropdown(),p._resizeDropdown()}),this._containerResultsHandlersBound=!0}},o.prototype._attachPositioningHandler=function(u,f){var p=this,v="scroll.select2."+f.id,y="resize.select2."+f.id,S="orientationchange.select2."+f.id,D=this.$container.parents().filter(i.hasScroll);D.each(function(){i.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})}),D.on(v,function(F){var M=i.GetData(this,"select2-scroll-position");t(this).scrollTop(M.y)}),t(window).on(v+" "+y+" "+S,function(F){p._positionDropdown(),p._resizeDropdown()})},o.prototype._detachPositioningHandler=function(u,f){var p="scroll.
12select2."+f.id,v="resize.select2."+f.id,y="orientationchange.select2."+f.id,S=this.$container.parents().filter(i.hasScroll);S.off(p),t(window).off(p+" "+v+" "+y)},o.prototype._positionDropdown=function(){var u=t(window),f=this.$dropdown[0].classList.contains("select2-dropdown--above"),p=this.$dropdown[0].classList.contains("select2-dropdown--below"),v=null,y=this.$container.offset();y.bottom=y.top+this.$container.outerHeight(!1);var S={height:this.$container.outerHeight(!1)};S.top=y.top,S.bottom=y.top+S.height;var D={height:this.$dropdown.outerHeight(!1)},F={top:u.scrollTop(),bottom:u.scrollTop()+u.height()},M=F.top<y.top-D.height,A=F.bottom>y.bottom+D.height,L={left:y.left,top:S.bottom},H=this.$dropdownParent;H.css("position")==="static"&&(H=H.offsetParent());var U={top:0,left:0};(t.contains(document.body,H[0])||H[0].isConnected)&&(U=H.offset()),L.top-=U.top,L.left-=U.left,!f&&!p&&(v="below"),!A&&M&&!f?v="above":!M&&A&&f&&(v="below"),(v=="above"||f&&v!=="below")&&(L.top=S.top-U.top-D.height),v!=null&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+v),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+v)),this.$dropdownContainer.css(L)},o.prototype._resizeDropdown=function(){var u={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(u.minWidth=u.width,u.position="relative",u.width="auto"),this.$dropdown.css(u)},o.prototype._showDropdown=function(u){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},o}),r.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(o){for(var u=0,f=0;f<o.length;f++){var p=o[f];p.children?u+=t(p.children):u++}return u}function i(o,u,f,p){this.minimumResultsForSearch=f.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),o.call(this,u,f,p)}return i.prototype.showSearch=function(o,u){return t(u.data.results)<this.minimumResultsForSearch?!1:o.call(this,u)},i}),r.define("select2/dropdown/selectOnClose",["../utils"],function(t){function i(){}return i.prototype.bind=function(o,u,f){var p=this;o.call(this,u,f),u.on("close",function(v){p._handleSelectOnClose(v)})},i.prototype._handleSelectOnClose=function(o,u){if(u&&u.originalSelect2Event!=null){var f=u.originalSelect2Event;if(f._type==="select"||f._type==="unselect")return}var p=this.getHighlightedResults();if(!(p.length<1)){var v=t.GetData(p[0],"data");v.element!=null&&v.element.selected||v.element==null&&v.selected||this.trigger("select",{data:v})}},i}),r.define("select2/dropdown/closeOnSelect",[],function(){function t(){}return t.prototype.bind=function(i,o,u){var f=this;i.call(this,o,u),o.on("select",function(p){f._selectTriggered(p)}),o.on("unselect",function(p){f._selectTriggered(p)})},t.prototype._selectTriggered=function(i,o){var u=o.originalEvent;u&&(u.ctrlKey||u.metaKey)||this.trigger("close",{originalEvent:u,originalSelect2Event:o})},t}),r.define("select2/dropdown/dropdownCss",["../utils"],function(t){function i(){}return i.prototype.render=function(o){var u=o.call(this),f=this.options.get("dropdownCssClass")||"";return f.indexOf(":all:")!==-1&&(f=f.replace(":all:",""),t.copyNonInternalCssClasses(u[0],this.$element[0])),f.trim().split(" ").forEach(function(p){p.length>0&&u[0].classList.add(p)}),u},i}),r.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(t){function i(){}return i.prototype.highlightFirstItem=function(o){var u=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(u.length>0){var f=u.first(),p=t.GetData(f[0],"data"),v=p.element;if(v&&v.getAttribute&&v.getAttribute("data-select2-tag")==="true"){f.trigger("mouseenter");return}}o.call(this)},i}),r.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var i=t.input.length-t.maximum,o="Please delete "+i+" character";return i!=1&&(o+="s"),o},inputTooShort:function(t){var i=t.minimum-t.input.length,o="Please enter "+i+" or more characters";return o},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var i="You can only select "+t.maximum+" item";return t.maximum!=1&&(i+="s"),i},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),r.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(t,i,o,u,f,p,v,y,S,D,F,M,A,L,H,U,ee,Z,w,xe,De,Ke,ye,_e,ie,me,Y,Ee,we,Ie,nt){function at(){this.reset()}at.prototype.apply=function(j){if(j=t.extend(!0,{},this.defaults,j),j.dataAdapter==null&&(j.ajax!=null?j.dataAdapter=H:j.data!=null?j.dataAdapter=L:j.dataAdapter=A,j.minimumInputLength>0&&(j.dataAdapter=D.Decorate(j.dataAdapter,Z)),j.maximumInputLength>0&&(j.dataAdapter=D.Decorate(j.dataAdapter,w)),j.maximumSelectionLength>0&&(j.dataAdapter=D.Decorate(j.dataAdapter,xe)),j.tags&&(j.dataAdapter=D.Decorate(j.dataAdapter,U)),(j.tokenSeparators!=null||j.tokenizer!=null)&&(j.dataAdapter=D.Decorate(j.dataAdapter,ee))),j.resultsAdapter==null&&(j.resultsAdapter=i,j.ajax!=null&&(j.resultsAdapter=D.Decorate(j.resultsAdapter,_e)),j.placeholder!=null&&(j.resultsAdapter=D.Decorate(j.resultsAdapter,ye)),j.selectOnClose&&(j.resultsAdapter=D.Decorate(j.resultsAdapter,Y)),j.tags&&(j.resultsAdapter=D.Decorate(j.resultsAdapter,Ie))),j.dropdownAdapter==null){if(j.multiple)j.dropdownAdapter=De;else{var I=D.Decorate(De,Ke);j.dropdownAdapter=I}j.minimumResultsForSearch!==0&&(j.dropdownAdapter=D.Decorate(j.dropdownAdapter,me)),j.closeOnSelect&&(j.dropdownAdapter=D.Decorate(j.dropdownAdapter,Ee)),j.dropdownCssClass!=null&&(j.dropdownAdapter=D.Decorate(j.dropdownAdapter,we)),j.dropdownAdapter=D.Decorate(j.dropdownAdapter,ie)}j.selectionAdapter==null&&(j.multiple?j.selectionAdapter=u:j.selectionAdapter=o,j.placeholder!=null&&(j.selectionAdapter=D.Decorate(j.selectionAdapter,f)),j.allowClear&&(j.selectionAdapter=D.Decorate(j.selectionAdapter,p)),j.multiple&&(j.selectionAdapter=D.Decorate(j.selectionAdapter,v)),j.selectionCssClass!=null&&(j.selectionAdapter=D.Decorate(j.selectionAdapter,y)),j.selectionAdapter=D.Decorate(j.selectionAdapter,S)),j.language=this._resolveLanguage(j.language),j.language.push("en");for(var pe=[],ze=0;ze<j.language.length;ze++){var Re=j.language[ze];pe.indexOf(Re)===-1&&pe.push(Re)}return j.language=pe,j.translations=this._processTranslations(j.language,j.debug),j},at.prototype.reset=function(){function j(pe){function ze(Re){return M[Re]||Re}
12return pe.replace(/[^\u0000-\u007E]/g,ze)}function I(pe,ze){if(pe.term==null||pe.term.trim()==="")return ze;if(ze.children&&ze.children.length>0){for(var Re=t.extend(!0,{},ze),We=ze.children.length-1;We>=0;We--){var ct=ze.children[We],ft=I(pe,ct);ft==null&&Re.children.splice(We,1)}return Re.children.length>0?Re:I(pe,Re)}var St=j(ze.text).toUpperCase(),vt=j(pe.term).toUpperCase();return St.indexOf(vt)>-1?ze:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:D.escapeMarkup,language:{},matcher:I,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(pe){return pe},templateResult:function(pe){return pe.text},templateSelection:function(pe){return pe.text},theme:"default",width:"resolve"}},at.prototype.applyFromElement=function(j,I){var pe=j.language,ze=this.defaults.language,Re=I.prop("lang"),We=I.closest("[lang]").prop("lang"),ct=Array.prototype.concat.call(this._resolveLanguage(Re),this._resolveLanguage(pe),this._resolveLanguage(ze),this._resolveLanguage(We));return j.language=ct,j},at.prototype._resolveLanguage=function(j){if(!j)return[];if(t.isEmptyObject(j))return[];if(t.isPlainObject(j))return[j];var I;Array.isArray(j)?I=j:I=[j];for(var pe=[],ze=0;ze<I.length;ze++)if(pe.push(I[ze]),typeof I[ze]=="string"&&I[ze].indexOf("-")>0){var Re=I[ze].split("-"),We=Re[0];pe.push(We)}return pe},at.prototype._processTranslations=function(j,I){for(var pe=new F,ze=0;ze<j.length;ze++){var Re=new F,We=j[ze];if(typeof We=="string")try{Re=F.loadPath(We)}catch{try{We=this.defaults.amdLanguageBase+We,Re=F.loadPath(We)}catch{I&&window.console&&console.warn&&console.warn('Select2: The language file for "'+We+'" could not be automatically loaded. A fallback will be used instead.')}}else t.isPlainObject(We)?Re=new F(We):Re=We;pe.extend(Re)}return pe},at.prototype.set=function(j,I){function pe(ct,ft){return ft.toUpperCase()}var ze=j.replace(/-([a-z])/g,pe),Re={};Re[ze]=I;var We=D._convertData(Re);t.extend(!0,this.defaults,We)};var ut=new at;return ut}),r.define("select2/options",["jquery","./defaults","./utils"],function(t,i,o){function u(f,p){this.options=f,p!=null&&this.fromElement(p),p!=null&&(this.options=i.applyFromElement(this.options,p)),this.options=i.apply(this.options)}return u.prototype.fromElement=function(f){var p=["select2"];this.options.multiple==null&&(this.options.multiple=f.prop("multiple")),this.options.disabled==null&&(this.options.disabled=f.prop("disabled")),this.options.autocomplete==null&&f.prop("autocomplete")&&(this.options.autocomplete=f.prop("autocomplete")),this.options.dir==null&&(f.prop("dir")?this.options.dir=f.prop("dir"):f.closest("[dir]").prop("dir")?this.options.dir=f.closest("[dir]").prop("dir"):this.options.dir="ltr"),f.prop("disabled",this.options.disabled),f.prop("multiple",this.options.multiple),o.GetData(f[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),o.StoreData(f[0],"data",o.GetData(f[0],"select2Tags")),o.StoreData(f[0],"tags",!0)),o.GetData(f[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),f.attr("ajax--url",o.GetData(f[0],"ajaxUrl")),o.StoreData(f[0],"ajax-Url",o.GetData(f[0],"ajaxUrl")));var v={};function y(ee,Z){return Z.toUpperCase()}for(var S=0;S<f[0].attributes.length;S++){var D=f[0].attributes[S].name,F="data-";if(D.substr(0,F.length)==F){var M=D.substring(F.length),A=o.GetData(f[0],M),L=M.replace(/-([a-z])/g,y);v[L]=A}}t.fn.jquery&&t.fn.jquery.substr(0,2)=="1."&&f[0].dataset&&(v=t.extend(!0,{},f[0].dataset,v));var H=t.extend(!0,{},o.GetData(f[0]),v);H=o._convertData(H);for(var U in H)p.indexOf(U)>-1||(t.isPlainObject(this.options[U])?t.extend(this.options[U],H[U]):this.options[U]=H[U]);return this},u.prototype.get=function(f){return this.options[f]},u.prototype.set=function(f,p){this.options[f]=p},u}),r.define("select2/core",["jquery","./options","./utils","./keys"],function(t,i,o,u){var f=function(p,v){o.GetData(p[0],"select2")!=null&&o.GetData(p[0],"select2").destroy(),this.$element=p,this.id=this._generateId(p),v=v||{},this.options=new i(v,p),f.__super__.constructor.call(this);var y=p.attr("tabindex")||0;o.StoreData(p[0],"old-tabindex",y),p.attr("tabindex","-1");var S=this.options.get("dataAdapter");this.dataAdapter=new S(p,this.options);var D=this.render();this._placeContainer(D);var F=this.options.get("selectionAdapter");this.selection=new F(p,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,D);var M=this.options.get("dropdownAdapter");this.dropdown=new M(p,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,D);var A=this.options.get("resultsAdapter");this.results=new A(p,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var L=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(H){L.trigger("selection:update",{data:H})}),p[0].classList.add("select2-hidden-accessible"),p.attr("aria-hidden","true"),this._syncAttributes(),o.StoreData(p[0],"select2",this),p.data("select2",this)};return o.Extend(f,o.Observable),f.prototype._generateId=function(p){var v="";return p.attr("id")!=null?v=p.attr("id"):p.attr("name")!=null?v=p.attr("name")+"-"+o.generateChars(2):v=o.generateChars(4),v=v.replace(/(:|\.|\[|\]|,)/g,""),v="select2-"+v,v},f.prototype._placeContainer=function(p){p.insertAfter(this.$element);var v=this._resolveWidth(this.$element,this.options.get("width"));v!=null&&p.css("width",v)},f.prototype._resolveWidth=function(p,v){var y=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(v=="resolve"){var S=this._resolveWidth(p,"style");return S??this._resolveWidth(p,"element")}if(v=="element"){var D=p.outerWidth(!1);return D<=0?"auto":D+"px"}if(v=="style"){var F=p.attr("style");if(typeof F!="string")return null;for(var M=F.split(";"),A=0,L=M.length;A<L;A=A+1){var H=M[A].replace(/\s/g,""),U=H.match(y);if(U!==null&&U.length>=1)return U[1]}return null}if(v=="computedstyle"){var ee=window.getComputedStyle(p[0]);return ee.width}return v},f.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},f.prototype._registerDomEvents=function(){var p=this;this.$element.on("change.select2",function(){p.dataAdapter.current(function(v){p.trigger("selection:update",{data:v})})}),this.$element.on("focus.select2",function(v){p.trigger("focus",v)}),this._syncA=o.bind(this._syncAttributes,this),this._syncS=o.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(v){p._syncA(),p._syncS(v)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},f.prototype._registerDataEvents=function(){var p=this;this.dataAdapter.on("*",function(v,y){p.trigger(v,y)})},f.prototype._registerSelectionEvents=function(){var p=this,v=["toggle","focus"];this.selection.on("toggle",function(){p.toggleDropdown()}),this.selection.on("focus",function(y){p.focus(y)}),this.selection.on("*",function(y,S){v.indexOf(y)===-1&&p.trigger(y,S)})},f.prototype._registerDropdownEvents=function(){var p=this;this.dropdown.on("*",function(v,y){p.trigger(v,y)})},f.prototype._registerResultsEvents=function(){var p=this;this.results.on("*",function(v,y){p.trigger(v,y)})},f.prototype._registerEvents=function(){var p=this;this.on("open",function(){p.$container[0].classList.add("select2-container--open")}),this.on("close",function(){p.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){p.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){p.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){p.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(v){p.isOpen()||p.trigger("open",{}),this.dataAdapter.query(v,function(y){p.trigger("results:all",{data:y,query:v})})}),this.on("query:append",function(v){this.dataAdapter.query(v,function(y){p.trigger("results:append",{data:y,query:v})})}),this.on("keypress",function(v){var y=v.which;p.isOpen()?y===u.ESC||y===u.UP&&v.altKey?(p.close(v),v.preventDefault()):y===u.ENTER||y===u.TAB?(p.trigger("results:select",{}),v.preventDefault()):y===u.SPACE&&v.ctrlKey?(p.trigger("results:toggle",{}),v.preventDefault()):y===u.UP?(p.trigger("results:previous",{}),v.preventDefault()):y===u.DOWN&&(p.trigger("results:next",{}),v.preventDefault()):(y===u.ENTER||y===u.SPACE||y===u.DOWN&&v.altKey)&&(p.open(),v.preventDefault())})},f.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},f.prototype._isChangeMutation=function(p){var v=this;if(p.addedNodes&&p.addedNodes.length>0)for(var y=0;y<p.addedNodes.length;y++){var S=p.addedNodes[y];if(S.selected)return!0}else{if(p.removedNodes&&p.removedNodes.length>0)return!0;
12if(Array.isArray(p))return p.some(function(D){return v._isChangeMutation(D)})}return!1},f.prototype._syncSubtree=function(p){var v=this._isChangeMutation(p),y=this;v&&this.dataAdapter.current(function(S){y.trigger("selection:update",{data:S})})},f.prototype.trigger=function(p,v){var y=f.__super__.trigger,S={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(v===void 0&&(v={}),p in S){var D=S[p],F={prevented:!1,name:p,args:v};if(y.call(this,D,F),F.prevented){v.prevented=!0;return}}y.call(this,p,v)},f.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},f.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},f.prototype.close=function(p){this.isOpen()&&this.trigger("close",{originalEvent:p})},f.prototype.isEnabled=function(){return!this.isDisabled()},f.prototype.isDisabled=function(){return this.options.get("disabled")},f.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},f.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},f.prototype.focus=function(p){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},f.prototype.enable=function(p){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(p==null||p.length===0)&&(p=[!0]);var v=!p[0];this.$element.prop("disabled",v)},f.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var p=[];return this.dataAdapter.current(function(v){p=v}),p},f.prototype.val=function(p){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),p==null||p.length===0)return this.$element.val();var v=p[0];Array.isArray(v)&&(v=v.map(function(y){return y.toString()})),this.$element.val(v).trigger("input").trigger("change")},f.prototype.destroy=function(){o.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",o.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),o.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},f.prototype.render=function(){var p=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return p.attr("dir",this.options.get("dir")),this.$container=p,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),o.StoreData(p[0],"element",this.$element),p},f}),r.define("jquery-mousewheel",["jquery"],function(t){return t}),r.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(t,i,o,u,f){if(t.fn.select2==null){var p=["open","close","destroy"];t.fn.select2=function(v){if(v=v||{},typeof v=="object")return this.each(function(){var D=t.extend(!0,{},v);new o(t(this),D)}),this;if(typeof v=="string"){var y,S=Array.prototype.slice.call(arguments,1);return this.each(function(){var D=f.GetData(this,"select2");D==null&&window.console&&console.error&&console.error("The select2('"+v+"') method was called on an element that is not using Select2."),y=D[v].apply(D,S)}),p.indexOf(v)>-1?this:y}else throw new Error("Invalid arguments for Select2: "+v)}}return t.fn.select2.defaults==null&&(t.fn.select2.defaults=u),o}),{define:r.define,require:r.require}})(),s=c.require("jquery.select2");return l.fn.select2.amd=c,s})})(Sc)),Sc.exports}var Tx=kx();const op=Oa(Tx);typeof op=="function"&&typeof wo.fn.select2!="function"&&op(window,wo);(function(n){var l='<div class="modaal-loading-spinner"><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div></div>',c={init:function(t,i){var o=this;if(o.dom=n("body"),o.$elem=n(i),o.options=n.extend({},n.fn.modaal.options,o.$elem.data(),t),o.xhr=null,o.scope={is_open:!1,id:"modaal_"+new Date().getTime()+Math.random().toString(16).substring(2),source:o.options.content_source?o.options.content_source:o.$elem.attr("href")},o.$elem.attr("data-modaal-scope",o.scope.id),o.private_options={active_class:"is_active"},o.lastFocus=null,o.options.is_locked||o.options.type=="confirm"||o.options.hide_close?o.scope.close_btn="":o.scope.close_btn='<button type="button" class="modaal-close" id="modaal-close" aria-label="'+o.options.close_aria_label+'"><span>'+o.options.close_text+"</span></button>",o.options.animation==="none"&&(o.options.animation_speed=0,o.options.after_callback_delay=0),n(i).on("click.Mod
12aal",function(f){f.preventDefault(),o.create_modaal(o,f)}),o.options.outer_controls===!0)var u="outer";else var u="inner";o.scope.prev_btn='<button type="button" class="modaal-gallery-control modaal-gallery-prev modaal-gallery-prev-'+u+'" id="modaal-gallery-prev" aria-label="Previous image (use left arrow to change)"><span>Previous Image</span></button>',o.scope.next_btn='<button type="button" class="modaal-gallery-control modaal-gallery-next modaal-gallery-next-'+u+'" id="modaal-gallery-next" aria-label="Next image (use right arrow to change)"><span>Next Image</span></button>',o.options.start_open===!0&&o.create_modaal(o)},create_modaal:function(o,i){var o=this,u;if(o.lastFocus=o.$elem,!(o.options.should_open===!1||typeof o.options.should_open=="function"&&o.options.should_open()===!1)){switch(o.options.before_open.call(o,i),o.options.type){case"inline":o.create_basic();break;case"ajax":u=o.options.source(o.$elem,o.scope.source),o.fetch_ajax(u);break;case"confirm":o.options.is_locked=!0,o.create_confirm();break;case"image":o.create_image();break;case"iframe":u=o.options.source(o.$elem,o.scope.source),o.create_iframe(u);break;case"video":o.create_video(o.scope.source);break;case"instagram":o.create_instagram();break}o.watch_events()}},watch_events:function(){var t=this;t.dom.off("click.Modaal keyup.Modaal keydown.Modaal"),t.dom.on("keydown.Modaal",function(i){var o=i.keyCode,u=i.target;o==9&&t.scope.is_open&&(n.contains(document.getElementById(t.scope.id),u)||n("#"+t.scope.id).find('*[tabindex="0"]').focus())}),t.dom.on("keyup.Modaal",function(i){var o=i.keyCode,u=i.target;if(i.shiftKey&&i.keyCode==9&&t.scope.is_open&&(n.contains(document.getElementById(t.scope.id),u)||n("#"+t.scope.id).find(".modaal-close").focus()),!t.options.is_locked&&o==27&&t.scope.is_open){if(n(document.activeElement).is("input:not(:checkbox):not(:radio)"))return!1;t.modaal_close();return}if(t.options.type=="image"){o==37&&t.scope.is_open&&!n("#"+t.scope.id+" .modaal-gallery-prev").hasClass("is_hidden")&&t.gallery_update("prev"),o==39&&t.scope.is_open&&!n("#"+t.scope.id+" .modaal-gallery-next").hasClass("is_hidden")&&t.gallery_update("next");return}}),t.dom.on("click.Modaal",function(i){var o=n(i.target);if(!t.options.is_locked&&(t.options.overlay_close&&o.is(".modaal-inner-wrapper")||o.is(".modaal-close")||o.closest(".modaal-close").length)){t.modaal_close();return}if(o.is(".modaal-confirm-btn")){o.is(".modaal-ok")&&t.options.confirm_callback.call(t,t.lastFocus),o.is(".modaal-cancel")&&t.options.confirm_cancel_callback.call(t,t.lastFocus),t.modaal_close();return}if(o.is(".modaal-gallery-control")){if(o.hasClass("is_hidden"))return;o.is(".modaal-gallery-prev")&&t.gallery_update("prev"),o.is(".modaal-gallery-next")&&t.gallery_update("next");return}})},build_modal:function(t){var i=this,o="";i.options.type=="instagram"&&(o=" modaal-instagram");var u=i.options.type=="video"?"modaal-video-wrap":"modaal-content",f;switch(i.options.animation){case"fade":f=" modaal-start_fade";break;case"slide-down":f=" modaal-start_slidedown";break;default:f=" modaal-start_none"}var p="";i.options.fullscreen&&(p=" modaal-fullscreen"),(i.options.custom_class!==""||typeof i.options.custom_class<"u")&&(i.options.custom_class=" "+i.options.custom_class);var v="";i.options.width&&i.options.height&&typeof i.options.width=="number"&&typeof i.options.height=="number"?v=' style="max-width:'+i.options.width+"px;height:"+i.options.height+'px;overflow:auto;"':i.options.width&&typeof i.options.width=="number"?v=' style="max-width:'+i.options.width+'px;"':i.options.height&&typeof i.options.height=="number"&&(v=' style="height:'+i.options.height+'px;overflow:auto;"'),(i.options.type=="image"||i.options.type=="video"||i.options.type=="instagram"||i.options.fullscreen)&&(v="");var y="";i.is_touch()&&(y=' style="cursor:pointer;"');var S='<div class="modaal-wrapper modaal-'+i.options.type+f+o+p+i.options.custom_class+'" id="'+i.scope.id+'"><div class="modaal-outer-wrapper"><div class="modaal-inner-wrapper"'+y+">";i.options.type!="video"&&(S+='<div class="modaal-container"'+v+">"),S+='<div class="'+u+' modaal-focus" aria-hidden="false" aria-label="'+i.options.accessible_title+" - "+i.options.close_aria_label+'" role="dialog">',i.options.type=="inline"?S+='<div class="modaal-content-container" role="document"></div>':S+=t,S+="</div>"+i.scope.close_btn,i.options.type!="video"&&(S+="</div>
12"),S+="</div>",i.options.type=="image"&&i.options.outer_controls===!0&&(S+=i.scope.prev_btn+i.scope.next_btn),S+="</div></div>",n("#"+i.scope.id+"_overlay").length<1&&i.dom.append(S),i.options.type=="inline"&&t.appendTo("#"+i.scope.id+" .modaal-content-container"),i.modaal_overlay("show")},create_basic:function(){var t=this,i=n(t.scope.source),o="";i.length?(o=i.contents().detach(),i.empty()):o="Content could not be loaded. Please check the source and try again.",t.build_modal(o)},create_instagram:function(){var t=this,i=t.options.instagram_id,o="",u="Instagram photo couldn't be loaded, please check the embed code and try again.";if(t.build_modal('<div class="modaal-content-container'+(t.options.loading_class!=""?" "+t.options.loading_class:"")+'">'+t.options.loading_content+"</div>"),i!=""&&i!==null&&i!==void 0){var f="https://api.instagram.com/oembed?url=http://instagr.am/p/"+i+"/";n.ajax({url:f,dataType:"jsonp",cache:!1,success:function(p){t.dom.append('<div id="temp-ig" style="width:0;height:0;overflow:hidden;">'+p.html+"</div>"),t.dom.attr("data-igloaded")?window.instgrm.Embeds.process():t.dom.attr("data-igloaded","true");var v="#"+t.scope.id+" .modaal-content-container";n(v).length>0&&setTimeout(function(){n("#temp-ig").contents().clone().appendTo(v),n("#temp-ig").remove()},1e3)},error:function(){o=u;var p=n("#"+t.scope.id+" .modaal-content-container");p.length>0&&(p.removeClass(t.options.loading_class).addClass(t.options.ajax_error_class),p.html(o))}})}else o=u;return!1},fetch_ajax:function(t){var i=this;i.options.accessible_title==null&&(i.options.accessible_title="Dialog Window"),i.xhr!==null&&(i.xhr.abort(),i.xhr=null),i.build_modal('<div class="modaal-content-container'+(i.options.loading_class!=""?" "+i.options.loading_class:"")+'">'+i.options.loading_content+"</div>"),i.xhr=n.ajax(t,{success:function(o){var u=n("#"+i.scope.id).find(".modaal-content-container");u.length>0&&(u.removeClass(i.options.loading_class),u.html(o),i.options.ajax_success.call(i,u))},error:function(o){if(o.statusText!="abort"){var u=n("#"+i.scope.id+" .modaal-content-container");u.length>0&&(u.removeClass(i.options.loading_class).addClass(i.options.ajax_error_class),u.html("Content could not be loaded. Please check the source and try again."))}}})},create_confirm:function(){var t=this,i;i='<div class="modaal-content-container"><h1 id="modaal-title">'+t.options.confirm_title+'</h1><div class="modaal-confirm-content">'+t.options.confirm_content+'</div><div class="modaal-confirm-wrap"><button type="button" class="modaal-confirm-btn modaal-ok" aria-label="Confirm">'+t.options.confirm_button_text+'</button><button type="button" class="modaal-confirm-btn modaal-cancel" aria-label="Cancel">'+t.options.confirm_cancel_button_text+"</button></div></div></div>",t.build_modal(i)},create_image:function(){var t=this,i,o="",u;if(t.$elem.is("[data-group]")||t.$elem.is("[rel]")){var f=t.$elem.is("[data-group]"),p=f?t.$elem.attr("data-group"):t.$elem.attr("rel"),v=n(f?'[data-group="'+p+'"]':'[rel="'+p+'"]');v.removeAttr("data-gallery-active","is_active"),t.$elem.attr("data-gallery-active","is_active"),u=v.length-1;var y=[];o='<div class="modaal-gallery-item-wrap">',v.each(function(ee,Z){var w="",xe="",De="",Ke=!1,ye=!1,_e=Z.getAttribute("data-modaal-desc"),ie=Z.getAttribute("data-gallery-active");n(Z).attr("data-modaal-content-source")?w=n(Z).attr("data-modaal-content-source"):n(Z).attr("href")?w=n(Z).attr("href"):n(Z).attr("src")?w=n(Z).attr("src"):(w="trigger requires href or data-modaal-content-source attribute",ye=!0),_e!=""&&_e!==null&&_e!==void 0?(xe=_e,De='<div class="modaal-gallery-label"><span class="modaal-accessible-hide">Image '+(ee+1)+" - </span>"+_e.replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</div>"):De='<div class="modaal-gallery-label"><span class="modaal-accessible-hide">Image '+(ee+1)+"</span></div>",ie&&(Ke=!0);var me={url:w,alt:xe,rawdesc:_e,desc:De,active:Ke,src_error:ye};y.push(me)});for(var S=0;S<y.length;S++){var D="",F=y[S].rawdesc?"Image: "+y[S].rawdesc:"Image "+S+" no description";y[S].active&&(D=" "+t.private_options.active_class);var M=y[S].src_error?y[S].url:'<img src="'+y[S].url+'" alt=" " style="width:100%">';o+='<div class="modaal-gallery-item gallery-item-'+S+D+'" aria-label="'+F+'">'+M+y[S].desc+"</div>"}
12o+="</div>",t.options.outer_controls!=!0&&(o+=t.scope.prev_btn+t.scope.next_btn)}else{var A,L=!1;t.$elem.attr("data-modaal-content-source")?A=t.$elem.attr("data-modaal-content-source"):t.$elem.attr("href")?A=t.$elem.attr("href"):t.$elem.attr("src")?A=t.$elem.attr("src"):(A="trigger requires href or data-modaal-content-source attribute",L=!0);var H="",U="",F="";t.$elem.attr("data-modaal-desc")?(F=t.$elem.attr("data-modaal-desc"),H=t.$elem.attr("data-modaal-desc"),U='<div class="modaal-gallery-label"><span class="modaal-accessible-hide">Image - </span>'+H.replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</div>"):F="Image with no description";var M=L?A:'<img src="'+A+'" alt=" " style="width:100%">';o='<div class="modaal-gallery-item is_active" aria-label="'+F+'">'+M+U+"</div>"}i=o,t.build_modal(i),n(".modaal-gallery-item.is_active").is(".gallery-item-0")&&n(".modaal-gallery-prev").hide(),n(".modaal-gallery-item.is_active").is(".gallery-item-"+u)&&n(".modaal-gallery-next").hide()},gallery_update:function(t){var i=this,o=n("#"+i.scope.id),u=o.find(".modaal-gallery-item"),f=u.length-1;if(f==0)return!1;var p=o.find(".modaal-gallery-prev"),v=o.find(".modaal-gallery-next"),y=250,S=0,D=0,F=o.find(".modaal-gallery-item."+i.private_options.active_class),M=t=="next"?F.next(".modaal-gallery-item"):F.prev(".modaal-gallery-item");if(i.options.before_image_change.call(i,F,M),t=="prev"&&o.find(".gallery-item-0").hasClass("is_active"))return!1;if(t=="next"&&o.find(".gallery-item-"+f).hasClass("is_active"))return!1;F.stop().animate({opacity:0}
vendor: 1,389 bytes, line 12
12,y,function(){M.addClass("is_next").css({position:"absolute",display:"block",opacity:0});var A=n(document).width(),L=A>1140?280:50;S=o.find(".modaal-gallery-item.is_next").width(),D=o.find(".modaal-gallery-item.is_next").height();var H=o.find(".modaal-gallery-item.is_next img").prop("naturalWidth"),U=o.find(".modaal-gallery-item.is_next img").prop("naturalHeight");H>A-L?(S=A-L,o.find(".modaal-gallery-item.is_next").css({width:S}),o.find(".modaal-gallery-item.is_next img").css({width:S}),D=o.find(".modaal-gallery-item.is_next").find("img").height()):(S=H,D=U),o.find(".modaal-gallery-item-wrap").stop().animate({width:S,height:D},y,function(){F.removeClass(i.private_options.active_class+" "+i.options.gallery_active_class).removeAttr("style"),F.find("img").removeAttr("style"),M.addClass(i.private_options.active_class+" "+i.options.gallery_active_class).removeClass("is_next").css("position",""),M.stop().animate({opacity:1},y,function(){n(this).removeAttr("style").css({width:"100%"}),n(this).find("img").css("width","100%"),o.find(".modaal-gallery-item-wrap").removeAttr("style"),i.options.after_image_change.call(i,M)}),o.find(".modaal-gallery-item").removeAttr("tabindex"),o.find(".modaal-gallery-item."+i.private_options.active_class).attr("tabindex","0").focus(),o.find(".modaal-gallery-item."+i.private_options.active_class).is(".gallery-item-0")?p.stop().animate({opacity:0}
12,150,function(){n(this).hide()}):p.stop().css({display:"block",opacity:p.css("opacity")}).animate({opacity:1},150),o.find(".modaal-gallery-item."+i.private_options.active_class).is(".gallery-item-"+f)?v.stop().animate({opacity:0},150,function(){n(this).hide()}):v.stop().css({display:"block",opacity:p.css("opacity")}).animate({opacity:1},150)})})},create_video:function(t){var i=this,o;o='<iframe src="'+t+'" class="modaal-video-frame" frameborder="0" allowfullscreen></iframe>',i.build_modal('<div class="modaal-video-container">'+o+"</div>")},create_iframe:function(t){var i=this,o;i.options.width!==null||i.options.width!==void 0||i.options.height!==null||i.options.height!==void 0?o='<iframe src="'+t+'" class="modaal-iframe-elem" frameborder="0" allowfullscreen></iframe>':o='<div class="modaal-content-container">Please specify a width and height for your iframe</div>',i.build_modal(o)},modaal_open:function(){var t=this,i=n("#"+t.scope.id),o=t.options.animation;o==="none"&&(i.removeClass("modaal-start_none"),t.options.after_open.call(t,i)),o==="fade"&&i.removeClass("modaal-start_fade"),o==="slide-down"&&i.removeClass("modaal-start_slide_down");var u=i;n(".modaal-wrapper *[tabindex=0]").removeAttr("tabindex"),t.options.type=="image"?u=n("#"+t.scope.id).find(".modaal-gallery-item."+t.private_options.active_class):i.find(".modaal-iframe-elem").length?u=i.find(".modaal-iframe-elem"):i.find(".modaal-video-wrap").length?u=i.find(".modaal-video-wrap"):u=i.find(".modaal-focus"),u.attr("tabindex","0").focus(),o!=="none"&&setTimeout(function(){t.options.after_open.call(t,i)},t.options.after_callback_delay)},modaal_close:function(){var t=this,i=n("#"+t.scope.id);t.options.before_close.call(t,i),t.xhr!==null&&(t.xhr.abort(),t.xhr=null),t.options.animation==="none"&&i.addClass("modaal-start_none"),t.options.animation==="fade"&&i.addClass("modaal-start_fade"),t.options.animation==="slide-down"&&i.addClass("modaal-start_slide_down"),setTimeout(function(){t.options.type=="inline"&&n("#"+t.scope.id+" .modaal-content-container").contents().detach().appendTo(t.scope.source),i.remove(),t.options.after_close.call(t),t.scope.is_open=!1},t.options.after_callback_delay),t.modaal_overlay("hide"),t.lastFocus!=null&&t.lastFocus.focus()},modaal_overlay:function(t){var i=this;t=="show"?(i.scope.is_open=!0,i.options.background_scroll||i.dom.addClass("modaal-noscroll"),n("#"+i.scope.id+"_overlay").length<1&&i.dom.append('<div class="modaal-overlay" id="'+i.scope.id+'_overlay"></div>'),n("#"+i.scope.id+"_overlay").css("background",i.options.background).stop().animate({opacity:i.options.overlay_opacity},i.options.animation_speed,function(){i.modaal_open()})):t=="hide"&&n("#"+i.scope.id+"_overlay").stop().animate({opacity:0}
12,i.options.animation_speed,function(){n(this).remove(),i.dom.removeClass("modaal-noscroll")})},is_touch:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},s=[];n.fn.modaal=function(t){return this.each(function(i){var o=n(this).data("modaal");if(o){if(typeof t=="string")switch(t){case"open":o.create_modaal(o);break;case"close":o.modaal_close();break}}else{var u=Object.create(c);u.init(t,this),n.data(this,"modaal",u),s.push({element:n(this).attr("class"),options:t})}})},n.fn.modaal.options={type:"inline",content_source:null,animation:"fade",animation_speed:300,after_callback_delay:350,is_locked:!1,hide_close:!1,background:"#000",overlay_opacity:"0.8",overlay_close:!0,accessible_title:"Dialog Window",start_open:!1,fullscreen:!1,custom_class:"",background_scroll:!1,should_open:!0,close_text:"Close",close_aria_label:"Close (Press escape to close)",width:null,height:null,before_open:function(){},after_open:function(){},before_close:function(){},after_close:function(){},source:function(t,i){return i},confirm_button_text:"Confirm",confirm_cancel_button_text:"Cancel",confirm_title:"Confirm Title",confirm_content:"<p>This is the default confirm dialog content. Replace me through the options</p>",confirm_callback:function(){},confirm_cancel_callback:function(){},gallery_active_class:"gallery_active_item",outer_controls:!1,before_image_change:function(t,i){},after_image_change:function(t){},loading_content:l,loading_class:"is_loading",ajax_error_class:"modaal-error",ajax_success:function(){},instagram_id:null};function r(t){var i={},o=!1;t.attr("data-modaal-type")&&(o=!0,i.type=t.attr("data-modaal-type")),t.attr("data-modaal-content-source")&&(o=!0,i.content_source=t.attr("data-modaal-content-source")),t.attr("data-modaal-animation")&&(o=!0,i.animation=t.attr("data-modaal-animation")),t.attr("data-modaal-animation-speed")&&(o=!0,i.animation_speed=t.attr("data-modaal-animation-speed")),t.attr("data-modaal-after-callback-delay")&&(o=!0,i.after_callback_delay=t.attr("data-modaal-after-callback-delay")),t.attr("data-modaal-is-locked")&&(o=!0,i.is_locked=t.attr("data-modaal-is-locked")==="true"),t.attr("data-modaal-hide-close")&&(o=!0,i.hide_close=t.attr("data-modaal-hide-close")==="true"),t.attr("data-modaal-background")&&(o=!0,i.background=t.attr("data-modaal-background")),t.attr("data-modaal-overlay-opacity")&&(o=!0,i.overlay_opacity=t.attr("data-modaal-overlay-opacity")),t.attr("data-modaal-overlay-close")&&(o=!0,i.overlay_close=t.attr("data-modaal-overlay-close")!=="false"),t.attr("data-modaal-accessible-title")&&(o=!0,i.accessible_title=t.attr("data-modaal-accessible-title")),t.attr("data-modaal-start-open")&&(o=!0,i.start_open=t.attr("data-modaal-start-open")==="true"),t.attr("data-modaal-fullscreen")&&(o=!0,i.fullscreen=t.attr("data-modaal-fullscreen")==="true"),t.attr("data-modaal-custom-class")&&(o=!0,i.custom_class=t.attr("data-modaal-custom-class")),t.attr("data-modaal-close-text")&&(o=!0,i.close_text=t.attr("data-modaal-close-text")),t.attr("data-modaal-close-aria-label")&&(o=!0,i.close_aria_label=t.attr("data-modaal-close-aria-label")),t.attr("data-modaal-background-scroll")&&(o=!0,i.background_scroll=t.attr("data-modaal-background-scroll")==="true"),t.attr("data-modaal-width")&&(o=!0,i.width=parseInt(t.attr("data-modaal-width"))),t.attr("data-modaal-height")&&(o=!0,i.height=parseInt(t.attr("data-modaal-height"))),t.attr("data-modaal-confirm-button-text")&&(o=!0,i.confirm_button_text=t.attr("data-modaal-confirm-button-text")),t.attr("data-modaal-confirm-cancel-button-text")&&(o=!0,i.confirm_cancel_button_text=t.attr("data-modaal-confirm-cancel-button-text")),t.attr("data-modaal-confirm-title")&&(o=!0,i.confirm_title=t.attr("data-modaal-confirm-title")),t.attr("data-modaal-confirm-content")&&(o=!0,i.confirm_content=t.attr("data-modaal-confirm-content")),t.attr("data-modaal-gallery-active-class")&&(o=!0,i.gallery_active_class=t.attr("data-modaal-gallery-active-class")),t.attr("data-modaal-loading-content")&&(o=!0,i.loading_content=t.attr("data-modaal-loading-content")),t.attr("data-modaal-loading-class")&&(o=!0,i.loading_class=t.attr("data-modaal-loading-class")),t.attr("data-modaal-ajax-error-class")&&(o=!0,i.ajax_error_class=t.attr("data-modaal-ajax-error-class")),t.attr("data-modaal-instagram-id")&&(o=!0,i.instagram_id=t.attr("data-modaal-instagram-id")),o&&t.modaal(i)}n(function(){var t=n(".modaal");t.length&&t.each(function(){var u=n(this);r(u)});var i=new MutationObserver(function(u){u.forEach(function(f){f.addedNodes&&f.addedNodes.length>0&&[].some.call(f.addedNodes,function(p){var v=n(p);(v.is("a")||v.is("button"))&&(v.hasClass("modaal")?r(v):s.forEach(function(y){if(y.element==v.attr("class"))return n(v).modaal(y.options),!1}))})})}),o={subtree:!0,attributes:!0,childList:!0,characterData:!0}
12;setTimeout(function(){i.observe(document.body,o)},500)})})(jQuery);(function(n,l,c,s){function r(i,o){var u=this;typeof o=="object"&&(delete o.refresh,delete o.render,n.extend(this,o)),this.$element=n(i),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src"));var f=(this.position+"").toLowerCase().match(/\S+/g)||[];if(f.length<1&&f.push("center"),f.length==1&&f.push(f[0]),f[0]!="top"&&f[0]!="bottom"&&f[1]!="left"&&f[1]!="right"||(f=[f[1],f[0]]),this.positionX!==s&&(f[0]=this.positionX.toLowerCase()),this.positionY!==s&&(f[1]=this.positionY.toLowerCase()),u.positionX=f[0],u.positionY=f[1],this.positionX!="left"&&this.positionX!="right"&&(isNaN(parseInt(this.positionX))?this.positionX="center":this.positionX=parseInt(this.positionX)),this.positionY!="top"&&this.positionY!="bottom"&&(isNaN(parseInt(this.positionY))?this.positionY="center":this.positionY=parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageSrc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:'url("'+this.imageSrc+'")',backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:'url("'+this.imageSrc+'")',backgroundSize:"cover",backgroundPosition:this.position}),this;this.$mirror=n("<div />").prependTo(this.mirrorContainer);var p=this.$element.find(">.parallax-slider"),v=!1;p.length==0?this.$slider=n("<img />").prependTo(this.$mirror):(this.$slider=p.prependTo(this.$mirror),v=!0),this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"}),this.$slider.addClass("parallax-slider").one("load",function(){u.naturalHeight&&u.naturalWidth||(u.naturalHeight=this.naturalHeight||this.height||1,u.naturalWidth=this.naturalWidth||this.width||1),u.aspectRatio=u.naturalWidth/u.naturalHeight,r.isSetup||r.setup(),r.sliders.push(u),r.isFresh=!1,r.requestRender()}),v||(this.$slider[0].src=this.imageSrc),(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||p.length>0)&&this.$slider.trigger("load")}(function(){for(var i=0,o=["ms","moz","webkit","o"],u=0;u<o.length&&!l.requestAnimationFrame;++u)l.requestAnimationFrame=l[o[u]+"RequestAnimationFrame"],l.cancelAnimationFrame=l[o[u]+"CancelAnimationFrame"]||l[o[u]+"CancelRequestAnimationFrame"];l.requestAnimationFrame||(l.requestAnimationFrame=function(f){var p=new Date().getTime(),v=Math.max(0,16-(p-i)),y=l.setTimeout(function(){f(p+v)},v);return i=p+v,y}),l.cancelAnimationFrame||(l.cancelAnimationFrame=function(f){clearTimeout(f)})})(),n.extend(r.prototype,{speed:.2,bleed:0,zIndex:-100,iosFix:!0,androidFix:!0,position:"center",overScrollFix:!1,mirrorContainer:"body",refresh:function(){this.boxWidth=this.$element.outerWidth(),this.boxHeight=this.$element.outerHeight()+2*this.bleed,this.boxOffsetTop=this.$element.offset().top-this.bleed,this.boxOffsetLeft=this.$element.offset().left,this.boxOffsetBottom=this.boxOffsetTop+this.boxHeight;var i,o=r.winHeight,u=r.docHeight,f=Math.min(this.boxOffsetTop,u-o),p=Math.max(this.boxOffsetTop+this.boxHeight-o,0),v=this.boxHeight+(f-p)*(1-this.speed)|0,y=(this.boxOffsetTop-f)*(1-this.speed)|0;v*this.aspectRatio>=this.boxWidth?(this.imageWidth=v*this.aspectRatio|0,this.imageHeight=v,this.offsetBaseTop=y,i=this.imageWidth-this.boxWidth,this.positionX=="left"?this.offsetLeft=0:this.positionX=="right"?this.offsetLeft=-i:isNaN(this.positionX)?this.offsetLeft=-i/2|0:this.offsetLeft=Math.max(this.positionX,-i)):(this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0,i=this.imageHeight-v,this.positionY=="top"?this.offsetBaseTop=y:this.positionY=="bottom"?this.offsetBaseTop=y-i:isNaN(this.positionY)?this.offsetBaseTop=y-i/2|0:this.offsetBaseTop=y+Math.max(this.positionY,-i))},render:function(){var i=r.scrollTop,o=r.scrollLeft,u=this.overScrollFix?r.overScroll:0,f=i+r.winHeight;this.boxOffsetBottom>i&&this.boxOffsetTop<=f?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-i,this.mirrorLeft=this.boxOffsetLeft-o,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden",this.$mirror.css({transform:"translate3d("+this.mirrorLeft+"px, "+(this.mirrorTop-u)+"px, 0px)",visibility:this.visibility,height:this.boxHeight,width:this.boxWidth}),this.$slider.css({transform:"translate3d("+this.offsetLeft+"px, "+this.offsetTop+"px, 0px)",position:"absolute",height:this.imageHeight,width:this.imageWidth,maxWidth:"none"})}}),n.extend(r,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){function i(){if(y==l.pageYOffset)return l.requestAnimationFrame(i),!1;y=l.pageYOffset,o.render(),l.requestAnimationFrame(i)}if(!this.isReady){var o=this,u=n(c),f=n(l),p=function(){r.winHeight=f.height(),r.winWidth=f.
12width(),r.docHeight=u.height(),r.docWidth=u.width()},v=function(){var S=f.scrollTop(),D=r.docHeight-r.winHeight,F=r.docWidth-r.winWidth;r.scrollTop=Math.max(0,Math.min(D,S)),r.scrollLeft=Math.max(0,Math.min(F,f.scrollLeft())),r.overScroll=Math.max(S-D,Math.min(S,0))};f.on("resize.px.parallax load.px.parallax",function(){p(),o.refresh(),r.isFresh=!1,r.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){v(),r.requestRender()}),p(),v(),this.isReady=!0;var y=-1;i()}},configure:function(i){typeof i=="object"&&(delete i.refresh,delete i.render,n.extend(this.prototype,i))},refresh:function(){n.each(this.sliders,function(){this.refresh()}),this.isFresh=!0},render:function(){this.isFresh||this.refresh(),n.each(this.sliders,function(){this.render()})},requestRender:function(){var i=this;i.render(),i.isBusy=!1},destroy:function(i){var o,u=n(i).data("px.parallax");for(u.$mirror.remove(),o=0;o<this.sliders.length;o+=1)this.sliders[o]==u&&this.sliders.splice(o,1);n(i).data("px.parallax",!1),this.sliders.length===0&&(n(l).off("scroll.px.parallax resize.px.parallax load.px.parallax"),this.isReady=!1,r.isSetup=!1)}});var t=n.fn.parallax;n.fn.parallax=function(i){return this.each(function(){var o=n(this),u=typeof i=="object"&&i;this==l||this==c||o.is("body")?r.configure(u):o.data("px.parallax")?typeof i=="object"&&n.extend(o.data("px.parallax"),u):(u=n.extend({},o.data(),u),o.data("px.parallax",new r(this,u))),typeof i=="string"&&(i=="destroy"?r.destroy(this):r[i]())})},n.fn.parallax.Constructor=r,n.fn.parallax.noConflict=function(){return n.fn.parallax=t,this},n(function(){n('[data-parallax="scroll"]').parallax()})})(jQuery,window,document);var Dc={exports:{}};var ap;function Fx(){return ap||(ap=1,(function(n,l){(function(c){var s=null,r=null;(function(){var t=["webkit","moz","o","ms"],i=c.document.createElement("div"),o=-1;for(o=0;o<t.length&&!c.requestAnimationFrame;o++)c.requestAnimationFrame=c[t[o]+"RequestAnimationFrame"];typeof i.nextElementSibling>"u"&&Object.defineProperty(c.Element.prototype,"nextElementSibling",{get:function(){for(var u=this.nextSibling;u;){if(u.nodeType===1)return u;u=u.nextSibling}return null}}),(function(u){u.matches=u.matches||u.machesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector||function(f){return Array.prototype.indexOf.call(this.parentElement.querySelectorAll(f),this)>-1}})(c.Element.prototype),Object.keys||(Object.keys=(function(){var u=Object.prototype.hasOwnProperty,f=!1,p=[],v=-1;return f=!{toString:null}.propertyIsEnumerable("toString"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],v=p.length,function(y){var S=[],D="",F=-1;if(typeof y!="object"&&(typeof y!="function"||y===null))throw new TypeError("Object.keys called on non-object");for(D in y)u.call(y,D)&&S.push(D);if(f)for(F=0;F<v;F++)u.call(y,p[F])&&S.push(p[F]);return S}})()),Array.isArray||(Array.isArray=function(u){return Object.prototype.toString.call(u)==="[object Array]"}),typeof Object.create!="function"&&(Object.create=(function(u){var f=function(){};return function(p,v){if(p!==Object(p)&&p!==null)throw TypeError("Argument must be an object, or null");f.prototype=p||{};var y=new f;return f.prototype=null,v!==u&&Object.defineProperties(y,v),p===null&&(y.__proto__=null),y}})()),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),Array.prototype.indexOf||(Array.prototype.indexOf=function(u){var f,p,v,y;if(this===null)throw new TypeError;if(v=Object(this),y=v.length>>>0,y===0||(f=0,arguments.length>1&&(f=Number(arguments[1]),f!==f?f=0:f!==0&&f!==1/0&&f!==-1/0&&(f=(f>0||-1)*Math.floor(Math.abs(f)))),f>=y))return-1;for(p=f>=0?f:Math.max(y-Math.abs(f),0);p<y;p++)if(p in v&&v[p]===u)return p;return-1}),Function.prototype.bind||(Function.prototype.bind=function(u){var f,p,v,y;if(typeof this!="function")throw new TypeError;return f=Array.prototype.slice.call(arguments,1),p=this,v=function(){},y=function(){return p.apply(this instanceof v?this:u,f.concat(Array.prototype.slice.call(arguments)))},this.prototype&&(v.prototype=this.prototype),y.prototype=new v,y}),c.Element.prototype.dispatchEvent||(c.Element.prototype.dispatchEvent=function(u){try{return this.fireEvent("on"+u.type,u)}catch{}})})(),s=function(t,i,o){var u=null,f=!1,p=null,v=null,y=null,S=null,D=[],F="",M=[],A=-1;if(y=o||c.document,(f=arguments[3])&&(f=typeof f=="boolean"),typeof t=="string")M=y.querySelectorAll(t);else if(t&&typeof t=="object"&&r.isElement(t,y))M=[t];else if(t&&typeof t=="object"&&t.length)M=t;
12else throw new Error(s.messages.errorFactoryInvalidContainer());if(M.length<1)throw new Error(s.messages.errorFactoryContainerNotFound());for(A=0;(u=M[A])&&!(A>0&&!f);A++)u.id?F=u.id:(F="MixItUp"+r.randomHex(),u.id=F),s.instances[F]instanceof s.Mixer?(p=s.instances[F],(!i||i&&i.debug&&i.debug.showWarnings!==!1)&&console.warn(s.messages.warningFactoryPreexistingInstance())):(p=new s.Mixer,p.attach(u,y,F,i),s.instances[F]=p),v=new s.Facade(p),i&&i.debug&&i.debug.enable?D.push(p):D.push(v);return f?S=new s.Collection(D):S=D[0],S},s.use=function(t){s.Base.prototype.callActions.call(s,"beforeUse",arguments),typeof t=="function"&&t.TYPE==="mixitup-extension"?typeof s.extensions[t.NAME]>"u"&&(t(s),s.extensions[t.NAME]=t):t.fn&&t.fn.jquery&&(s.libraries.$=t),s.Base.prototype.callActions.call(s,"afterUse",arguments)},s.instances={},s.extensions={},s.libraries={},r={hasClass:function(t,i){return!!t.className.match(new RegExp("(\\s|^)"+i+"(\\s|$)"))},addClass:function(t,i){this.hasClass(t,i)||(t.className+=t.className?" "+i:i)},removeClass:function(t,i){if(this.hasClass(t,i)){var o=new RegExp("(\\s|^)"+i+"(\\s|$)");t.className=t.className.replace(o," ").trim()}},extend:function(t,i,o,u){var f=[],p="",v=-1;o=o||!1,u=u||!1;try{if(Array.isArray(i))for(v=0;v<i.length;v++)f.push(v);else i&&(f=Object.keys(i));for(v=0;v<f.length;v++)p=f[v],!o||typeof i[p]!="object"||this.isElement(i[p])?t[p]=i[p]:Array.isArray(i[p])?(t[p]||(t[p]=[]),this.extend(t[p],i[p],o,u)):(t[p]||(t[p]={}),this.extend(t[p],i[p],o,u))}catch(y){if(u)this.handleExtendError(y,t);else throw y}return t},handleExtendError:function(t,i){var o=/property "?(\w*)"?[,:] object/i,u=null,f="",p="",v="",y="",S="",D=-1,F=-1;if(t instanceof TypeError&&(u=o.exec(t.message))){f=u[1];for(S in i){for(F=0;F<f.length&&f.charAt(F)===S.charAt(F);)F++;F>D&&(D=F,y=S)}throw D>1&&(v=s.messages.errorConfigInvalidPropertySuggestion({probableMatch:y})),p=s.messages.errorConfigInvalidProperty({erroneous:f,suggestion:v}),new TypeError(p)}throw t},template:function(t){for(var i=/\${([\w]*)}/g,o={},u=null;u=i.exec(t);)o[u[1]]=new RegExp("\\${"+u[1]+"}","g");return function(f){var p="",v=t;f=f||{};for(p in o)v=v.replace(o[p],typeof f[p]<"u"?f[p]:"");return v}},on:function(t,i,o,u){t&&(t.addEventListener?t.addEventListener(i,o,u):t.attachEvent&&(t["e"+i+o]=o,t[i+o]=function(){t["e"+i+o](c.event)},t.attachEvent("on"+i,t[i+o])))},off:function(t,i,o){t&&(t.removeEventListener?t.removeEventListener(i,o,!1):t.detachEvent&&(t.detachEvent("on"+i,t[i+o]),t[i+o]=null))},getCustomEvent:function(t,i,o){var u=null;return o=o||c.document,typeof c.CustomEvent=="function"?u=new c.CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0}):typeof o.createEvent=="function"?(u=o.createEvent("CustomEvent"),u.initCustomEvent(t,!0,!0,i)):(u=o.createEventObject(),u.type=t,u.returnValue=!1,u.cancelBubble=!1,u.detail=i),u},getOriginalEvent:function(t){return t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t},index:function(t,i){for(var o=0;(t=t.previousElementSibling)!==null;)(!i||t.matches(i))&&++o;return o}
12,camelCase:function(t){return t.toLowerCase().replace(/([_-][a-z])/g,function(i){return i.toUpperCase().replace(/[_-]/,"")})},pascalCase:function(t){return(t=this.camelCase(t)).charAt(0).toUpperCase()+t.slice(1)},dashCase:function(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()},isElement:function(t,i){return i=i||c.document,c.HTMLElement&&t instanceof c.HTMLElement||i.defaultView&&i.defaultView.HTMLElement&&t instanceof i.defaultView.HTMLElement?!0:t!==null&&t.nodeType===1&&typeof t.nodeName=="string"},createElement:function(t,i){var o=null,u=null;for(i=i||c.document,o=i.createDocumentFragment(),u=i.createElement("div"),u.innerHTML=t.trim();u.firstChild;)o.appendChild(u.firstChild);return o},removeWhitespace:function(t){for(var i;t&&t.nodeName==="#text";)i=t,t=t.previousSibling,i.parentElement&&i.parentElement.removeChild(i)},isEqualArray:function(t,i){var o=t.length;if(o!==i.length)return!1;for(;o--;)if(t[o]!==i[o])return!1;return!0},deepEquals:function(t,i){var o;if(typeof t=="object"&&t&&typeof i=="object"&&i){if(Object.keys(t).length!==Object.keys(i).length)return!1;for(o in t)if(!i.hasOwnProperty(o)||!this.deepEquals(t[o],i[o]))return!1}else if(t!==i)return!1;return!0},arrayShuffle:function(t){for(var i=t.slice(),o=i.length,u=o,f=-1,p=[];u--;)f=~~(Math.random()*o),p=i[u],i[u]=i[f],i[f]=p;return i},arrayFromList:function(t){var i,o;try{return Array.prototype.slice.call(t)}catch{for(i=[],o=0;o<t.length;o++)i.push(t[o]);return i}},debounce:function(t,i,o){var u;return function(){var f=this,p=arguments,v=o&&!u,y=null;y=function(){u=null,o||t.apply(f,p)},clearTimeout(u),u=setTimeout(y,i),v&&t.apply(f,p)}},position:function(t){for(var i=0,o=0,u=t;t;)i-=t.scrollLeft,o-=t.scrollTop,t===u&&(i+=t.offsetLeft,o+=t.offsetTop,u=t.offsetParent),t=t.parentElement;return{x:i,y:o}},getHypotenuse:function(t,i){var o=t.x-i.x,u=t.y-i.y;return o=o<0?o*-1:o,u=u<0?u*-1:u,Math.sqrt(Math.pow(o,2)+Math.pow(u,2))},getIntersectionRatio:function(t,i){var o=t.width*t.height,u=-1,f=-1,p=-1,v=-1;return u=Math.max(0,Math.min(t.left+t.width,i.left+i.width)-Math.max(t.left,i.left)),f=Math.max(0,Math.min(t.top+t.height,i.top+i.height)-Math.max(t.top,i.top)),p=f*u,v=p/o,v},closestParent:function(t,i,o,u){var f=t.parentNode;if(u=u||c.document,o&&t.matches(i))return t;for(;f&&f!=u.body;){if(f.matches&&f.matches(i))return f;if(f.parentNode)f=f.parentNode;else return null}return null},children:function(t,i,o){var u=[],f="";return o=o||c.doc,t&&(t.id||(f="Temp"+this.randomHexKey(),t.id=f),u=o.querySelectorAll("#"+t.id+" > "+i),f&&t.removeAttribute("id")),u},clean:function(t){var i=[],o=-1;for(o=0;o<t.length;o++)t[o]!==""&&i.push(t[o]);return i},defer:function(t){var i=null,o=null,u=null;return o=new this.Deferred,s.features.has.promises?o.promise=new Promise(function(f,p){o.resolve=f,o.reject=p}):(u=c.jQuery||t.$)&&typeof u.Deferred=="function"?(i=u.Deferred(),o.promise=i.promise(),o.resolve=i.resolve,o.reject=i.reject):c.console&&console.warn(s.messages.warningNoPromiseImplementation()),o},all:function(t,i){var o=null;return s.features.has.promises?Promise.all(t):(o=c.jQuery||i.$)&&typeof o.when=="function"?o.when.apply(o,t).done(function(){return arguments}):(c.console&&console.warn(s.messages.warningNoPromiseImplementation()),[])},getPrefix:function(t,i,o){var u=-1,f="";if(r.dashCase(i)in t.style)return"";for(u=0;f=o[u];u++)if(f+i in t.style)return f.toLowerCase();return"unsupported"},randomHex:function(){return("00000"+(Math.random()*16777216<<0).toString(16)).substr(-6).toUpperCase()},getDocumentState:function(t){return t=typeof t.body=="object"?t:c.document,{scrollTop:c.pageYOffset,scrollLeft:c.pageXOffset,docHeight:t.documentElement.scrollHeight,docWidth:t.documentElement.scrollWidth,viewportHeight:t.documentElement.clientHeight,viewportWidth:t.documentElement.clientWidth}},bind:function(t,i){return function(){return i.apply(t,arguments)}},isVisible:function(t){var i=null;return!!(t.offsetParent||(i=c.getComputedStyle(t),i.position==="fixed"&&i.visibility!=="hidden"&&i.opacity!=="0"))},seal:function(t){typeof Object.seal=="function"&&Object.seal(t)},freeze:function(t){typeof Object.freeze=="function"&&Object.freeze(t)},compareVersions:function(t,i){var o=t.split("."),u=i.split("."),f=-1,p=-1,v=-1;for(v=0;v<o.length;v++){if(f=parseInt(o[v].replace(/[^\d.]/g,"")),p=parseInt(u[v].replace(/[^\d.]/g,"")||0),p<f)return!1;if(p>f)return!0}return!0},Deferred:function(){this.promise=null,this.resolve=null,this.reject=null,this.id=r.randomHex()},isEmptyObject:function(t){var i="";if(typeof Object.keys=="function")return Object.keys(t).length===0;for(i in t)if(t.hasOwnProperty(i))return!1;return!0},getClassname:function(t,i,o){var u="";
12return u+=t.block,u.length&&(u+=t.delineatorElement),u+=t["element"+this.pascalCase(i)],o&&(u.length&&(u+=t.delineatorModifier),u+=o),u},getProperty:function(t,i){var o=i.split("."),u=null,f="",p=0;if(!i)return t;for(u=function(v){return v?v[f]:null};p<o.length;)f=o[p],t=u(t),p++;return typeof t<"u"?t:null}},s.h=r,s.Base=function(){},s.Base.prototype={constructor:s.Base,callActions:function(t,i){var o=this,u=o.constructor.actions[t],f="";if(!(!u||r.isEmptyObject(u)))for(f in u)u[f].apply(o,i)},callFilters:function(t,i,o){var u=this,f=u.constructor.filters[t],p=i,v="";if(!f||r.isEmptyObject(f))return p;o=o||[];for(v in f)o=r.arrayFromList(o),o.unshift(p),p=f[v].apply(u,o);return p}},s.BaseStatic=function(){this.actions={},this.filters={},this.extend=function(t){r.extend(this.prototype,t)},this.registerAction=function(t,i,o){(this.actions[t]=this.actions[t]||{})[i]=o},this.registerFilter=function(t,i,o){(this.filters[t]=this.filters[t]||{})[i]=o}},s.Features=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.boxSizingPrefix="",this.transformPrefix="",this.transitionPrefix="",this.boxSizingPrefix="",this.transformProp="",this.transformRule="",this.transitionProp="",this.perspectiveProp="",this.perspectiveOriginProp="",this.has=new s.Has,this.canary=null,this.BOX_SIZING_PROP="boxSizing",this.TRANSITION_PROP="transition",this.TRANSFORM_PROP="transform",this.PERSPECTIVE_PROP="perspective",this.PERSPECTIVE_ORIGIN_PROP="perspectiveOrigin",this.VENDORS=["Webkit","moz","O","ms"],this.TWEENABLE=["opacity","width","height","marginRight","marginBottom","x","y","scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],this.callActions("afterConstruct")},s.BaseStatic.call(s.Features),s.Features.prototype=Object.create(s.Base.prototype),r.extend(s.Features.prototype,{constructor:s.Features,init:function(){var t=this;t.callActions("beforeInit",arguments),t.canary=document.createElement("div"),t.setPrefixes(),t.runTests(),t.callActions("beforeInit",arguments)},runTests:function(){var t=this;t.callActions("beforeRunTests",arguments),t.has.promises=typeof c.Promise=="function",t.has.transitions=t.transitionPrefix!=="unsupported",t.callActions("afterRunTests",arguments),r.freeze(t.has)},setPrefixes:function(){var t=this;t.callActions("beforeSetPrefixes",arguments),t.transitionPrefix=r.getPrefix(t.canary,"Transition",t.VENDORS),t.transformPrefix=r.getPrefix(t.canary,"Transform",t.VENDORS),t.boxSizingPrefix=r.getPrefix(t.canary,"BoxSizing",t.VENDORS),t.boxSizingProp=t.boxSizingPrefix?t.boxSizingPrefix+r.pascalCase(t.BOX_SIZING_PROP):t.BOX_SIZING_PROP,t.transitionProp=t.transitionPrefix?t.transitionPrefix+r.pascalCase(t.TRANSITION_PROP):t.TRANSITION_PROP,t.transformProp=t.transformPrefix?t.transformPrefix+r.pascalCase(t.TRANSFORM_PROP):t.TRANSFORM_PROP,t.transformRule=t.transformPrefix?"-"+t.transformPrefix+"-"+t.TRANSFORM_PROP:t.TRANSFORM_PROP,t.perspectiveProp=t.transformPrefix?t.transformPrefix+r.pascalCase(t.PERSPECTIVE_PROP):t.PERSPECTIVE_PROP,t.perspectiveOriginProp=t.transformPrefix?t.transformPrefix+r.pascalCase(t.PERSPECTIVE_ORIGIN_PROP):t.PERSPECTIVE_ORIGIN_PROP,t.callActions("afterSetPrefixes",arguments)}}),s.Has=function(){this.transitions=!1,this.promises=!1,r.seal(this)},s.features=new s.Features,s.features.init(),s.ConfigAnimation=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.effects="fade scale",this.effectsIn="",this.effectsOut="",this.duration=600,this.easing="ease",this.applyPerspective=!0,this.perspectiveDistance="3000px",this.perspectiveOrigin="50% 50%",this.queue=!0,this.queueLimit=3,this.animateResizeContainer=!0,this.animateResizeTargets=!1,this.staggerSequence=null,this.reverseOut=!1,this.nudge=!0,this.clampHeight=!0,this.clampWidth=!0,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigAnimation),s.ConfigAnimation.prototype=Object.create(s.Base.prototype),s.ConfigAnimation.prototype.constructor=s.ConfigAnimation,s.ConfigBehavior=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.liveSort=!1,this.callActions("afterConstruct"),r.seal(this)}
vendor: 8,440 bytes, line 12
12,s.BaseStatic.call(s.ConfigBehavior),s.ConfigBehavior.prototype=Object.create(s.Base.prototype),s.ConfigBehavior.prototype.constructor=s.ConfigBehavior,s.ConfigCallbacks=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.onMixStart=null,this.onMixBusy=null,this.onMixEnd=null,this.onMixFail=null,this.onMixClick=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigCallbacks),s.ConfigCallbacks.prototype=Object.create(s.Base.prototype),s.ConfigCallbacks.prototype.constructor=s.ConfigCallbacks,s.ConfigControls=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.live=!1,this.scope="global",this.toggleLogic="or",this.toggleDefault="all",this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigControls),s.ConfigControls.prototype=Object.create(s.Base.prototype),s.ConfigControls.prototype.constructor=s.ConfigControls,s.ConfigClassNames=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.block="mixitup",this.elementContainer="container",this.elementFilter="control",this.elementSort="control",this.elementMultimix="control",this.elementToggle="control",this.modifierActive="active",this.modifierDisabled="disabled",this.modifierFailed="failed",this.delineatorElement="-",this.delineatorModifier="-",this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigClassNames),s.ConfigClassNames.prototype=Object.create(s.Base.prototype),s.ConfigClassNames.prototype.constructor=s.ConfigClassNames,s.ConfigData=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.uidKey="",this.dirtyCheck=!1,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigData),s.ConfigData.prototype=Object.create(s.Base.prototype),s.ConfigData.prototype.constructor=s.ConfigData,s.ConfigDebug=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.enable=!1,this.showWarnings=!0,this.fauxAsync=!1,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigDebug),s.ConfigDebug.prototype=Object.create(s.Base.prototype),s.ConfigDebug.prototype.constructor=s.ConfigDebug,s.ConfigLayout=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.allowNestedTargets=!0,this.containerClassName="",this.siblingBefore=null,this.siblingAfter=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigLayout),s.ConfigLayout.prototype=Object.create(s.Base.prototype),s.ConfigLayout.prototype.constructor=s.ConfigLayout,s.ConfigLoad=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.filter="all",this.sort="default:asc",this.dataset=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigLoad),s.ConfigLoad.prototype=Object.create(s.Base.prototype),s.ConfigLoad.prototype.constructor=s.ConfigLoad,s.ConfigSelectors=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.target=".mix",this.control="",this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigSelectors),s.ConfigSelectors.prototype=Object.create(s.Base.prototype),s.ConfigSelectors.prototype.constructor=s.ConfigSelectors,s.ConfigRender=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.target=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigRender),s.ConfigRender.prototype=Object.create(s.Base.prototype),s.ConfigRender.prototype.constructor=s.ConfigRender,s.ConfigTemplates=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.ConfigTemplates),s.ConfigTemplates.prototype=Object.create(s.Base.prototype),s.ConfigTemplates.prototype.constructor=s.ConfigTemplates,s.Config=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.animation=new s.ConfigAnimation,this.behavior=new s.ConfigBehavior,this.callbacks=new s.ConfigCallbacks,this.controls=new s.ConfigControls,this.classNames=new s.ConfigClassNames,this.data=new s.ConfigData,this.debug=new s.ConfigDebug,this.layout=new s.ConfigLayout,this.load=new s.ConfigLoad,this.selectors=new s.ConfigSelectors,this.render=new s.ConfigRender,this.templates=new s.ConfigTemplates,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.Config),s.Config.prototype=Object.create(s.Base.prototype),s.Config.prototype.constructor=s.Config,s.MixerDom=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.document=null,this.body=null,this.container=null,this.parent=null,this.targets=[],this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.MixerDom),s.MixerDom.prototype=Object.create(s.Base.prototype),s.MixerDom.prototype.constructor=s.MixerDom,s.UiClassNames=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.base="",this.active="",this.disabled="",this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.UiClassNames),s.UiClassNames.prototype=Object.create(s.Base.prototype),s.UiClassNames.prototype.constructor=s.UiClassNames,s.CommandDataset=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.dataset=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.CommandDataset),s.CommandDataset.prototype=Object.create(s.Base.prototype),s.CommandDataset.prototype.constructor=s.CommandDataset,s.CommandMultimix=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.filter=null,this.sort=null,this.insert=null,this.remove=null,this.changeLayout=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.CommandMultimix),s.CommandMultimix.prototype=Object.create(s.Base.prototype),s.CommandMultimix.prototype.constructor=s.CommandMultimix,s.CommandFilter=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.selector="",this.collection=null,this.action="show",this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.CommandFilter),s.CommandFilter.prototype=Object.create(s.Base.prototype),s.CommandFilter.prototype.constructor=s.CommandFilter,s.CommandSort=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.sortString="",this.attribute="",this.order="asc",this.collection=null,this.next=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.CommandSort),s.CommandSort.prototype=Object.create(s.Base.prototype),s.CommandSort.prototype.constructor=s.CommandSort,s.CommandInsert=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.index=0,this.collection=[],this.position="before",this.sibling=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.CommandInsert),s.CommandInsert.prototype=Object.create(s.Base.prototype),s.CommandInsert.prototype.constructor=s.CommandInsert,s.CommandRemove=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.targets=[],this.collection=[],this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.CommandRemove),s.CommandRemove.prototype=Object.create(s.Base.prototype),s.CommandRemove.prototype.constructor=s.CommandRemove,s.CommandChangeLayout=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.containerClassName="",this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.CommandChangeLayout),s.CommandChangeLayout.prototype=Object.create(s.Base.prototype),s.CommandChangeLayout.prototype.constructor=s.CommandChangeLayout,s.ControlDefinition=function(t,i,o,u){s.Base.call(this),this.callActions("beforeConstruct"),this.type=t,this.selector=i,this.live=o||!1,this.parent=u||"",this.callActions("afterConstruct"),r.freeze(this),r.seal(this)},s.BaseStatic.call(s.ControlDefinition),s.ControlDefinition.prototype=Object.create(s.Base.prototype),s.ControlDefinition.prototype.constructor=s.ControlDefinition,s.controlDefinitions=[],s.controlDefinitions.push(new s.ControlDefinition("multimix","[data-filter][data-sort]")),s.controlDefinitions.push(new s.ControlDefinition("filter","[data-filter]")),s.controlDefinitions.push(new s.ControlDefinition("sort","[data-sort]")),s.controlDefinitions.push(new s.ControlDefinition("toggle","[data-toggle]")),s.Control=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.selector="",this.bound=[],this.pending=-1,this.type="",this.status="inactive",this.filter="",this.sort="",this.canDisable=!1,this.handler=null,this.classNames=new s.UiClassNames,this.callActions("afterConstruct"),r.seal(this)}
12,s.BaseStatic.call(s.Control),s.Control.prototype=Object.create(s.Base.prototype),r.extend(s.Control.prototype,{constructor:s.Control,init:function(t,i,o){var u=this;if(this.callActions("beforeInit",arguments),u.el=t,u.type=i,u.selector=o,u.selector)u.status="live";else switch(u.canDisable=typeof u.el.disable=="boolean",u.type){case"filter":u.filter=u.el.getAttribute("data-filter");break;case"toggle":u.filter=u.el.getAttribute("data-toggle");break;case"sort":u.sort=u.el.getAttribute("data-sort");break;case"multimix":u.filter=u.el.getAttribute("data-filter"),u.sort=u.el.getAttribute("data-sort");break}u.bindClick(),s.controls.push(u),this.callActions("afterInit",arguments)},isBound:function(t){var i=this,o=!1;return this.callActions("beforeIsBound",arguments),o=i.bound.indexOf(t)>-1,i.callFilters("afterIsBound",o,arguments)},addBinding:function(t){var i=this;this.callActions("beforeAddBinding",arguments),i.isBound()||i.bound.push(t),this.callActions("afterAddBinding",arguments)},removeBinding:function(t){var i=this,o=-1;this.callActions("beforeRemoveBinding",arguments),(o=i.bound.indexOf(t))>-1&&i.bound.splice(o,1),i.bound.length<1&&(i.unbindClick(),o=s.controls.indexOf(i),s.controls.splice(o,1),i.status==="active"&&i.renderStatus(i.el,"inactive")),this.callActions("afterRemoveBinding",arguments)},bindClick:function(){var t=this;this.callActions("beforeBindClick",arguments),t.handler=function(i){t.handleClick(i)},r.on(t.el,"click",t.handler),this.callActions("afterBindClick",arguments)},unbindClick:function(){var t=this;this.callActions("beforeUnbindClick",arguments),r.off(t.el,"click",t.handler),t.handler=null,this.callActions("afterUnbindClick",arguments)},handleClick:function(t){var i=this,o=null,u=null,f=!1,p=void 0,v={},y=null,S=[],D=-1;if(this.callActions("beforeHandleClick",arguments),this.pending=0,u=i.bound[0],i.selector?o=r.closestParent(t.target,u.config.selectors.control+i.selector,!0,u.dom.document):o=i.el,!o){i.callActions("afterHandleClick",arguments);return}switch(i.type){case"filter":v.filter=i.filter||o.getAttribute("data-filter");break;case"sort":v.sort=i.sort||o.getAttribute("data-sort");break;case"multimix":v.filter=i.filter||o.getAttribute("data-filter"),v.sort=i.sort||o.getAttribute("data-sort");break;case"toggle":v.filter=i.filter||o.getAttribute("data-toggle"),i.status==="live"?f=r.hasClass(o,i.classNames.active):f=i.status==="active";break}for(D=0;D<i.bound.length;D++)y=new s.CommandMultimix,r.extend(y,v),S.push(y);for(S=i.callFilters("commandsHandleClick",S,arguments),i.pending=i.bound.length,D=0;u=i.bound[D];D++)v=S[D],v&&(u.lastClicked||(u.lastClicked=o),s.events.fire("mixClick",u.dom.container,{state:u.state,instance:u,originalEvent:t,control:u.lastClicked},u.dom.document),!(typeof u.config.callbacks.onMixClick=="function"&&(p=u.config.callbacks.onMixClick.call(u.lastClicked,u.state,t,u),p===!1))&&(i.type==="toggle"?f?u.toggleOff(v.filter):u.toggleOn(v.filter):u.multimix(v)));this.callActions("afterHandleClick",arguments)},update:function(t,i){var o=this,u=new s.CommandMultimix;o.callActions("beforeUpdate",arguments),o.pending--,o.pending=Math.max(0,o.pending),!(o.pending>0)&&(o.status==="live"?o.updateLive(t,i):(u.sort=o.sort,u.filter=o.filter,o.callFilters("actionsUpdate",u,arguments),o.parseStatusChange(o.el,t,u,i)),o.callActions("afterUpdate",arguments))},updateLive:function(t,i){var o=this,u=null,f=null,p=null,v=-1;
vendor: 4,700 bytes, line 12
12if(o.callActions("beforeUpdateLive",arguments),!!o.el){for(u=o.el.querySelectorAll(o.selector),v=0;p=u[v];v++){switch(f=new s.CommandMultimix,o.type){case"filter":f.filter=p.getAttribute("data-filter");break;case"sort":f.sort=p.getAttribute("data-sort");break;case"multimix":f.filter=p.getAttribute("data-filter"),f.sort=p.getAttribute("data-sort");break;case"toggle":f.filter=p.getAttribute("data-toggle");break}f=o.callFilters("actionsUpdateLive",f,arguments),o.parseStatusChange(p,t,f,i)}o.callActions("afterUpdateLive",arguments)}},parseStatusChange:function(t,i,o,u){var f=this,p="",v="",y=-1;switch(f.callActions("beforeParseStatusChange",arguments),f.type){case"filter":i.filter===o.filter?f.renderStatus(t,"active"):f.renderStatus(t,"inactive");break;case"multimix":i.sort===o.sort&&i.filter===o.filter?f.renderStatus(t,"active"):f.renderStatus(t,"inactive");break;case"sort":i.sort.match(/:asc/g)&&(p=i.sort.replace(/:asc/g,"")),i.sort===o.sort||p===o.sort?f.renderStatus(t,"active"):f.renderStatus(t,"inactive");break;case"toggle":for(u.length<1&&f.renderStatus(t,"inactive"),i.filter===o.filter&&f.renderStatus(t,"active"),y=0;y<u.length;y++){if(v=u[y],v===o.filter){f.renderStatus(t,"active");break}f.renderStatus(t,"inactive")}break}f.callActions("afterParseStatusChange",arguments)},renderStatus:function(t,i){var o=this;switch(o.callActions("beforeRenderStatus",arguments),i){case"active":r.addClass(t,o.classNames.active),r.removeClass(t,o.classNames.disabled),o.canDisable&&(o.el.disabled=!1);break;case"inactive":r.removeClass(t,o.classNames.active),r.removeClass(t,o.classNames.disabled),o.canDisable&&(o.el.disabled=!1);break;case"disabled":o.canDisable&&(o.el.disabled=!0),r.addClass(t,o.classNames.disabled),r.removeClass(t,o.classNames.active);break}o.status!=="live"&&(o.status=i),o.callActions("afterRenderStatus",arguments)}}),s.controls=[],s.StyleData=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.x=0,this.y=0,this.top=0,this.right=0,this.bottom=0,this.left=0,this.width=0,this.height=0,this.marginRight=0,this.marginBottom=0,this.opacity=0,this.scale=new s.TransformData,this.translateX=new s.TransformData,this.translateY=new s.TransformData,this.translateZ=new s.TransformData,this.rotateX=new s.TransformData,this.rotateY=new s.TransformData,this.rotateZ=new s.TransformData,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.StyleData),s.StyleData.prototype=Object.create(s.Base.prototype),s.StyleData.prototype.constructor=s.StyleData,s.TransformData=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.value=0,this.unit="",this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.TransformData),s.TransformData.prototype=Object.create(s.Base.prototype),s.TransformData.prototype.constructor=s.TransformData,s.TransformDefaults=function(){s.StyleData.apply(this),this.callActions("beforeConstruct"),this.scale.value=.01,this.scale.unit="",this.translateX.value=20,this.translateX.unit="px",this.translateY.value=20,this.translateY.unit="px",this.translateZ.value=20,this.translateZ.unit="px",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateY.value=90,this.rotateY.unit="deg",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateZ.value=180,this.rotateZ.unit="deg",this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.TransformDefaults),s.TransformDefaults.prototype=Object.create(s.StyleData.prototype),s.TransformDefaults.prototype.constructor=s.TransformDefaults,s.transformDefaults=new s.TransformDefaults,s.EventDetail=function(){this.state=null,this.futureState=null,this.instance=null,this.originalEvent=null},s.Events=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.mixStart=null,this.mixBusy=null,this.mixEnd=null,this.mixFail=null,this.mixClick=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.Events),s.Events.prototype=Object.create(s.Base.prototype),s.Events.prototype.constructor=s.Events,s.Events.prototype.fire=function(t,i,o,u){var f=this,p=null,v=new s.EventDetail;if(f.callActions("beforeFire",arguments),typeof f[t]>"u")throw new Error('Event type "'+t+'" not found.');v.state=new s.State,r.extend(v.state,o.state),o.futureState&&(v.futureState=new s.State,r.extend(v.futureState,o.futureState)),v.instance=o.instance,o.originalEvent&&(v.originalEvent=o.originalEvent),p=r.getCustomEvent(t,v,u),f.callFilters("eventFire",p,arguments),i.dispatchEvent(p)},s.events=new s.Events,s.QueueItem=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.args=[],this.instruction=null,this.triggerElement=null,this.deferred=null,this.isToggling=!1,this.callActions("afterConstruct"),r.seal(this)}
12,s.BaseStatic.call(s.QueueItem),s.QueueItem.prototype=Object.create(s.Base.prototype),s.QueueItem.prototype.constructor=s.QueueItem,s.Mixer=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.config=new s.Config,this.id="",this.isBusy=!1,this.isToggling=!1,this.incPadding=!0,this.controls=[],this.targets=[],this.origOrder=[],this.cache={},this.toggleArray=[],this.targetsMoved=0,this.targetsImmovable=0,this.targetsBound=0,this.targetsDone=0,this.staggerDuration=0,this.effectsIn=null,this.effectsOut=null,this.transformIn=[],this.transformOut=[],this.queue=[],this.state=null,this.lastOperation=null,this.lastClicked=null,this.userCallback=null,this.userDeferred=null,this.dom=new s.MixerDom,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.Mixer),s.Mixer.prototype=Object.create(s.Base.prototype),r.extend(s.Mixer.prototype,{constructor:s.Mixer,attach:function(t,i,o,u){var f=this,p=null,v=-1;for(f.callActions("beforeAttach",arguments),f.id=o,u&&r.extend(f.config,u,!0,!0),f.sanitizeConfig(),f.cacheDom(t,i),f.config.layout.containerClassName&&r.addClass(f.dom.container,f.config.layout.containerClassName),s.features.has.transitions||(f.config.animation.enable=!1),typeof c.console>"u"&&(f.config.debug.showWarnings=!1),f.config.data.uidKey&&(f.config.controls.enable=!1),f.indexTargets(),f.state=f.getInitialState(),v=0;p=f.lastOperation.toHide[v];v++)p.hide();f.config.controls.enable&&(f.initControls(),f.buildToggleArray(null,f.state),f.updateControls({filter:f.state.activeFilter,sort:f.state.activeSort})),f.parseEffects(),f.callActions("afterAttach",arguments)},sanitizeConfig:function(){var t=this;t.callActions("beforeSanitizeConfig",arguments),t.config.controls.scope=t.config.controls.scope.toLowerCase().trim(),t.config.controls.toggleLogic=t.config.controls.toggleLogic.toLowerCase().trim(),t.config.controls.toggleDefault=t.config.controls.toggleDefault.toLowerCase().trim(),t.config.animation.effects=t.config.animation.effects.trim(),t.callActions("afterSanitizeConfig",arguments)},getInitialState:function(){var t=this,i=new s.State,o=new s.Operation;if(t.callActions("beforeGetInitialState",arguments),i.activeContainerClassName=t.config.layout.containerClassName,t.config.load.dataset){if(!t.config.data.uidKey||typeof t.config.data.uidKey!="string")throw new TypeError(s.messages.errorConfigDataUidKeyNotSet());o.startDataset=o.newDataset=i.activeDataset=t.config.load.dataset.slice(),o.startContainerClassName=o.newContainerClassName=i.activeContainerClassName,o.show=t.targets.slice(),i=t.callFilters("stateGetInitialState",i,arguments)}else i.activeFilter=t.parseFilterArgs([t.config.load.filter]).command,i.activeSort=t.parseSortArgs([t.config.load.sort]).command,i.totalTargets=t.targets.length,i=t.callFilters("stateGetInitialState",i,arguments),i.activeSort.collection||i.activeSort.attribute||i.activeSort.order==="random"||i.activeSort.order==="desc"?(o.newSort=i.activeSort,t.sortOperation(o),t.printSort(!1,o),t.targets=o.newOrder):o.startOrder=o.newOrder=t.targets,o.startFilter=o.newFilter=i.activeFilter,o.startSort=o.newSort=i.activeSort,o.startContainerClassName=o.newContainerClassName=i.activeContainerClassName,o.newFilter.selector==="all"?o.newFilter.selector=t.config.selectors.target:o.newFilter.selector==="none"&&(o.newFilter.selector="");return o=t.callFilters("operationGetInitialState",o,[i]),t.lastOperation=o,o.newFilter&&t.filterOperation(o),i=t.buildState(o),i},cacheDom:function(t,i){var o=this;o.callActions("beforeCacheDom",arguments),o.dom.document=i,o.dom.body=o.dom.document.querySelector("body"),o.dom.container=t,o.dom.parent=t,o.callActions("afterCacheDom",arguments)},indexTargets:function(){var t=this,i=null,o=null,u=null,f=-1;if(t.callActions("beforeIndexTargets",arguments),t.dom.targets=t.config.layout.allowNestedTargets?t.dom.container.querySelectorAll(t.config.selectors.target):r.children(t.dom.container,t.config.selectors.target,t.dom.document),t.dom.targets=r.arrayFromList(t.dom.targets),t.targets=[],(u=t.config.load.dataset)&&u.length!==t.dom.targets.length)throw new Error(s.messages.errorDatasetPrerenderedMismatch());if(t.dom.targets.length){for(f=0;o=t.dom.targets[f];f++)i=new s.Target,i.init(o,t,u?u[f]:void 0),i.isInDom=!0,t.targets.push(i);t.dom.parent=t.dom.targets[0].parentElement===t.dom.container?t.dom.container:t.dom.targets[0].parentElement}t.origOrder=t.targets,t.callActions("afterIndexTargets",arguments)}
12,initControls:function(){var t=this,i="",o=null,u=null,f=null,p=null,v=null,y=-1,S=-1;switch(t.callActions("beforeInitControls",arguments),t.config.controls.scope){case"local":f=t.dom.container;break;case"global":f=t.dom.document;break;default:throw new Error(s.messages.errorConfigInvalidControlsScope())}for(y=0;i=s.controlDefinitions[y];y++)if(t.config.controls.live||i.live){if(i.parent){if(p=t.dom[i.parent],!p||p.length<0)continue;typeof p.length!="number"&&(p=[p])}else p=[f];for(S=0;u=p[S];S++)v=t.getControl(u,i.type,i.selector),t.controls.push(v)}else for(o=f.querySelectorAll(t.config.selectors.control+i.selector),S=0;u=o[S];S++)v=t.getControl(u,i.type,""),v&&t.controls.push(v);t.callActions("afterInitControls",arguments)},getControl:function(t,i,o){var u=this,f=null,p=-1;if(u.callActions("beforeGetControl",arguments),!o)for(p=0;f=s.controls[p];p++){if(f.el===t&&f.isBound(u))return u.callFilters("controlGetControl",null,arguments);if(f.el===t&&f.type===i&&f.selector===o)return f.addBinding(u),u.callFilters("controlGetControl",f,arguments)}return f=new s.Control,f.init(t,i,o),f.classNames.base=r.getClassname(u.config.classNames,i),f.classNames.active=r.getClassname(u.config.classNames,i,u.config.classNames.modifierActive),f.classNames.disabled=r.getClassname(u.config.classNames,i,u.config.classNames.modifierDisabled),f.addBinding(u),u.callFilters("controlGetControl",f,arguments)},getToggleSelector:function(){var t=this,i=t.config.controls.toggleLogic==="or"?", ":"",o="";return t.callActions("beforeGetToggleSelector",arguments),t.toggleArray=r.clean(t.toggleArray),o=t.toggleArray.join(i),o===""&&(o=t.config.controls.toggleDefault),t.callFilters("selectorGetToggleSelector",o,arguments)},buildToggleArray:function(t,i){var o=this,u="";if(o.callActions("beforeBuildToggleArray",arguments),t&&t.filter)u=t.filter.selector.replace(/\s/g,"");else if(i)u=i.activeFilter.selector.replace(/\s/g,"");else return;(u===o.config.selectors.target||u==="all")&&(u=""),o.config.controls.toggleLogic==="or"?o.toggleArray=u.split(","):o.toggleArray=o.splitCompoundSelector(u),o.toggleArray=r.clean(o.toggleArray),o.callActions("afterBuildToggleArray",arguments)},splitCompoundSelector:function(t){var i=t.split(/([\.\[])/g),o=[],u="",f=-1;for(i[0]===""&&i.shift(),f=0;f<i.length;f++)f%2===0&&(u=""),u+=i[f],f%2!==0&&o.push(u);return o},updateControls:function(t){var i=this,o=null,u=new s.CommandMultimix,f=-1;for(i.callActions("beforeUpdateControls",arguments),t.filter?u.filter=t.filter.selector:u.filter=i.state.activeFilter.selector,t.sort?u.sort=i.buildSortString(t.sort):u.sort=i.buildSortString(i.state.activeSort),u.filter===i.config.selectors.target&&(u.filter="all"),u.filter===""&&(u.filter="none"),r.freeze(u),f=0;o=i.controls[f];f++)o.update(u,i.toggleArray);i.callActions("afterUpdateControls",arguments)},buildSortString:function(t){var i=this,o="";return o+=t.sortString,t.next&&(o+=" "+i.buildSortString(t.next)),o},insertTargets:function(t,i){var o=this,u=null,f=-1,p=null,v=null,y=null,S=-1;if(o.callActions("beforeInsertTargets",arguments),typeof t.index>"u"&&(t.index=0),u=o.getNextSibling(t.index,t.sibling,t.position),p=o.dom.document.createDocumentFragment(),u?f=r.index(u,o.config.selectors.target):f=o.targets.length,t.collection){for(S=0;y=t.collection[S];S++){if(o.dom.targets.indexOf(y)>-1)throw new Error(s.messages.errorInsertPreexistingElement());y.style.display="none",p.appendChild(y),p.appendChild(o.dom.document.createTextNode(" ")),!(!r.isElement(y,o.dom.document)||!y.matches(o.config.selectors.target))&&(v=new s.Target,v.init(y,o),v.isInDom=!0,o.targets.splice(f,0,v),f++)}o.dom.parent.insertBefore(p,u)}i.startOrder=o.origOrder=o.targets,o.callActions("afterInsertTargets",arguments)},getNextSibling:function(t,i,o){var u=this,f=null;return t=Math.max(t,0),i&&o==="before"?f=i:i&&o==="after"?f=i.nextElementSibling||null:u.targets.length>0&&typeof t<"u"?f=t<u.targets.length||!u.targets.length?u.targets[t].dom.el:u.targets[u.targets.length-1].dom.el.nextElementSibling:u.targets.length===0&&u.dom.parent.children.length>0&&(u.config.layout.siblingAfter?f=u.config.layout.siblingAfter:u.config.layout.siblingBefore?f=u.config.layout.siblingBefore.nextElementSibling:u.dom.parent.children[0]),u.callFilters("elementGetNextSibling",f,arguments)},filterOperation:function(t){var i=this,o=!1,u=-1,f="",p=null,v=-1;for(i.callActions("beforeFilterOperation",arguments),f=t.newFilter.action,v=0;p=t.newOrder[v];v++)t.newFilter.collection?o=t.newFilter.collection.indexOf(p.dom.el)>-1:t.newFilter.selector===""?o=!1:o=p.dom.el.matches(t.newFilter.selector),i.evaluateHideShow(o,p,f,t);if(t.toRemove.length)for(v=0;p=t.show[v];v++)t.toRemove.indexOf(p)>-1&&(t.show.splice(v,1),(u=t.toShow.indexOf(p))>
12-1&&t.toShow.splice(u,1),t.toHide.push(p),t.hide.push(p),v--);t.matching=t.show.slice(),t.show.length===0&&t.newFilter.selector!==""&&i.targets.length!==0&&(t.hasFailed=!0),i.callActions("afterFilterOperation",arguments)},evaluateHideShow:function(t,i,o,u){var f=this,p=!1,v=Array.prototype.slice.call(arguments,1);p=f.callFilters("testResultEvaluateHideShow",t,v),f.callActions("beforeEvaluateHideShow",arguments),p===!0&&o==="show"||p===!1&&o==="hide"?(u.show.push(i),!i.isShown&&u.toShow.push(i)):(u.hide.push(i),i.isShown&&u.toHide.push(i)),f.callActions("afterEvaluateHideShow",arguments)},sortOperation:function(t){var i=this,o=[],u=null,f=null,p=-1;if(i.callActions("beforeSortOperation",arguments),t.startOrder=i.targets,t.newSort.collection){for(o=[],p=0;f=t.newSort.collection[p];p++){if(i.dom.targets.indexOf(f)<0)throw new Error(s.messages.errorSortNonExistentElement());u=new s.Target,u.init(f,i),u.isInDom=!0,o.push(u)}t.newOrder=o}else t.newSort.order==="random"?t.newOrder=r.arrayShuffle(t.startOrder):t.newSort.attribute===""?(t.newOrder=i.origOrder.slice(),t.newSort.order==="desc"&&t.newOrder.reverse()):(t.newOrder=t.startOrder.slice(),t.newOrder.sort(function(v,y){return i.compare(v,y,t.newSort)}));r.isEqualArray(t.newOrder,t.startOrder)&&(t.willSort=!1),i.callActions("afterSortOperation",arguments)},compare:function(t,i,o){var u=this,f=o.order,p=u.getAttributeValue(t,o.attribute),v=u.getAttributeValue(i,o.attribute);return isNaN(p*1)||isNaN(v*1)?(p=p.toLowerCase(),v=v.toLowerCase()):(p=p*1,v=v*1),p<v?f==="asc"?-1:1:p>v?f==="asc"?1:-1:p===v&&o.next?u.compare(t,i,o.next):0},getAttributeValue:function(t,i){var o=this,u="";return u=t.dom.el.getAttribute("data-"+i),u===null&&o.config.debug.showWarnings&&console.warn(s.messages.warningInconsistentSortingAttributes({attribute:"data-"+i})),o.callFilters("valueGetAttributeValue",u||0,arguments)},printSort:function(t,i){var o=this,u=t?i.newOrder:i.startOrder,f=t?i.startOrder:i.newOrder,p=u.length?u[u.length-1].dom.el.nextElementSibling:null,v=c.document.createDocumentFragment(),y=null,S=null,D=null,F=-1;for(o.callActions("beforePrintSort",arguments),F=0;S=u[F];F++)D=S.dom.el,D.style.position!=="absolute"&&(r.removeWhitespace(D.previousSibling),D.parentElement.removeChild(D));for(y=p?p.previousSibling:o.dom.parent.lastChild,y&&y.nodeName==="#text"&&r.removeWhitespace(y),F=0;S=f[F];F++)D=S.dom.el,r.isElement(v.lastChild)&&v.appendChild(c.document.createTextNode(" ")),v.appendChild(D);o.dom.parent.firstChild&&o.dom.parent.firstChild!==p&&v.insertBefore(c.document.createTextNode(" "),v.childNodes[0]),p?(v.appendChild(c.document.createTextNode(" ")),o.dom.parent.insertBefore(v,p)):o.dom.parent.appendChild(v),o.callActions("afterPrintSort",arguments)},parseSortString:function(t,i){var o=this,u=t.split(" "),f=i,p=[],v=-1;for(v=0;v<u.length;v++){switch(p=u[v].split(":"),f.sortString=u[v],f.attribute=r.dashCase(p[0]),f.order=p[1]||"asc",f.attribute){case"default":f.attribute="";break;case"random":f.attribute="",f.order="random";break}if(!f.attribute||f.order==="random")break;v<u.length-1&&(f.next=new s.CommandSort,r.freeze(f),f=f.next)}return o.callFilters("commandsParseSort",i,arguments)},parseEffects:function(){var t=this,i="",o=t.config.animation.effectsIn||t.config.animation.effects,u=t.config.animation.effectsOut||t.config.animation.effects;t.callActions("beforeParseEffects",arguments),t.effectsIn=new s.StyleData,t.effectsOut=new s.StyleData,t.transformIn=[],t.transformOut=[],t.effectsIn.opacity=t.effectsOut.opacity=1,t.parseEffect("fade",o,t.effectsIn,t.transformIn),t.parseEffect("fade",u,t.effectsOut,t.transformOut,!0);for(i in s.transformDefaults)s.transformDefaults[i]instanceof s.TransformData&&(t.parseEffect(i,o,t.effectsIn,t.transformIn),t.parseEffect(i,u,t.effectsOut,t.transformOut,!0));t.parseEffect("stagger",o,t.effectsIn,t.transformIn),t.parseEffect("stagger",u,t.effectsOut,t.transformOut,!0),t.callActions("afterParseEffects",arguments)},parseEffect:function(t,i,o,u,f){var p=this,v=/\(([^)]+)\)/,y=-1,S="",D=[],F="",M=["%","px","em","rem","vh","vw","deg"],A="",L=-1;
12if(p.callActions("beforeParseEffect",arguments),typeof i!="string")throw new TypeError(s.messages.errorConfigInvalidAnimationEffects());if(i.indexOf(t)<0){t==="stagger"&&(p.staggerDuration=0);return}switch(y=i.indexOf(t+"("),y>-1&&(S=i.substring(y),D=v.exec(S),F=D[1]),t){case"fade":o.opacity=F?parseFloat(F):0;break;case"stagger":p.staggerDuration=F?parseFloat(F):100;break;default:if(f&&p.config.animation.reverseOut&&t!=="scale"?o[t].value=(F?parseFloat(F):s.transformDefaults[t].value)*-1:o[t].value=F?parseFloat(F):s.transformDefaults[t].value,F){for(L=0;A=M[L];L++)if(F.indexOf(A)>-1){o[t].unit=A;break}}else o[t].unit=s.transformDefaults[t].unit;u.push(t+"("+o[t].value+o[t].unit+")")}p.callActions("afterParseEffect",arguments)},buildState:function(t){var i=this,o=new s.State,u=null,f=-1;for(i.callActions("beforeBuildState",arguments),f=0;u=i.targets[f];f++)(!t.toRemove.length||t.toRemove.indexOf(u)<0)&&o.targets.push(u.dom.el);for(f=0;u=t.matching[f];f++)o.matching.push(u.dom.el);for(f=0;u=t.show[f];f++)o.show.push(u.dom.el);for(f=0;u=t.hide[f];f++)(!t.toRemove.length||t.toRemove.indexOf(u)<0)&&o.hide.push(u.dom.el);return o.id=i.id,o.container=i.dom.container,o.activeFilter=t.newFilter,o.activeSort=t.newSort,o.activeDataset=t.newDataset,o.activeContainerClassName=t.newContainerClassName,o.hasFailed=t.hasFailed,o.totalTargets=i.targets.length,o.totalShow=t.show.length,o.totalHide=t.hide.length,o.totalMatching=t.matching.length,o.triggerElement=t.triggerElement,i.callFilters("stateBuildState",o,arguments)},goMix:function(t,i){var o=this,u=null;return o.callActions("beforeGoMix",arguments),(!o.config.animation.duration||!o.config.animation.effects||!r.isVisible(o.dom.container))&&(t=!1),!i.toShow.length&&!i.toHide.length&&!i.willSort&&!i.willChangeLayout&&(t=!1),!i.startState.show.length&&!i.show.length&&(t=!1),s.events.fire("mixStart",o.dom.container,{state:i.startState,futureState:i.newState,instance:o},o.dom.document),typeof o.config.callbacks.onMixStart=="function"&&o.config.callbacks.onMixStart.call(o.dom.container,i.startState,i.newState,o),r.removeClass(o.dom.container,r.getClassname(o.config.classNames,"container",o.config.classNames.modifierFailed)),o.userDeferred?u=o.userDeferred:u=o.userDeferred=r.defer(s.libraries),o.isBusy=!0,!t||!s.features.has.transitions?(o.config.debug.fauxAsync?setTimeout(function(){o.cleanUp(i)},o.config.animation.duration):o.cleanUp(i),o.callFilters("promiseGoMix",u.promise,arguments)):(c.pageYOffset!==i.docState.scrollTop&&c.scrollTo(i.docState.scrollLeft,i.docState.scrollTop),o.config.animation.applyPerspective&&(o.dom.parent.style[s.features.perspectiveProp]=o.config.animation.perspectiveDistance,o.dom.parent.style[s.features.perspectiveOriginProp]=o.config.animation.perspectiveOrigin),o.config.animation.animateResizeContainer&&i.startHeight!==i.newHeight&&i.viewportDeltaY!==i.startHeight-i.newHeight&&(o.dom.parent.style.height=i.startHeight+"px"),o.config.animation.animateResizeContainer&&i.startWidth!==i.newWidth&&i.viewportDeltaX!==i.startWidth-i.newWidth&&(o.dom.parent.style.width=i.startWidth+"px"),i.startHeight===i.newHeight&&(o.dom.parent.style.height=i.startHeight+"px"),i.startWidth===i.newWidth&&(o.dom.parent.style.width=i.startWidth+"px"),i.startHeight===i.newHeight&&i.startWidth===i.newWidth&&(o.dom.parent.style.overflow="hidden"),requestAnimationFrame(function(){o.moveTargets(i)}),o.callFilters("promiseGoMix",u.promise,arguments))},getStartMixData:function(t){var i=this,o=c.getComputedStyle(i.dom.parent),u=i.dom.parent.getBoundingClientRect(),f=null,p={},v=-1,y=o[s.features.boxSizingProp];for(i.incPadding=y==="border-box",i.callActions("beforeGetStartMixData",arguments),v=0;f=t.show[v];v++)p=f.getPosData(),t.showPosData[v]={startPosData:p};for(v=0;f=t.toHide[v];v++)p=f.getPosData(),t.toHidePosData[v]={startPosData:p};t.startX=u.left,t.startY=u.top,t.startHeight=i.incPadding?u.height:u.height-parseFloat(o.paddingTop)-parseFloat(o.paddingBottom)-parseFloat(o.borderTop)-parseFloat(o.borderBottom),t.startWidth=i.incPadding?u.width:u.width-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight)-parseFloat(o.borderLeft)-parseFloat(o.borderRight),i.callActions("afterGetStartMixData",arguments)},setInter:function(t){var i=this,o=null,u=-1;for(i.callActions("beforeSetInter",arguments),i.config.animation.clampHeight&&(i.dom.parent.style.height=t.startHeight+"px",i.dom.parent.style.overflow="hidden"),i.config.animation.clampWidth&&(i.dom.parent.style.width=t.startWidth+"px",i.dom.parent.style.overflow="hidden"),u=0;o=t.toShow[u];u++)o.show();t.willChangeLayout&&(r.removeClass(i.dom.container,t.startContainerClassName),r.addClass(i.dom.container,t.newContainerClassName)),i.callActions("afterSetInter",arguments)},getInterMixData:function(t){var i=this,o=null,u=-1;for(i.callActions("beforeGetInterMixData",arguments),u=0;o=t.show[u];u++)t.showPosData[u].interPosData=o.getPosData();for(u=0;o=t.toHide[u];u++)t.toHidePosData[u].interPosData=o.getPosData();i.callActions("afterGetInterMixData",arguments)},setFinal:function(t){var i=this,o=null,u=-1;for(i.callActions("beforeSetFinal",arguments),t.willSort&&i.printSort(!1,t),u=0;o=t.toHide[u];u++)o.hide();i.callActions("afterSetFinal",arguments)},getFinalMixData:function(t){var i=this,o=null,u=null,f=null,p=-1;for(i.callActions("beforeGetFinalMixData",arguments),p=0;f=t.show[p];p++)t.showPosData[p].finalPosData=f.getPosData();for(p=0;f=t.toHide[p];p++)t.toHidePosData[p].finalPosData=f.getPosData();for((i.config.animation.clampHeight||i.config.animation.clampWidth)&&(i.dom.parent.style.height=i.dom.parent.style.width=i.dom.parent.style.overflow=""),i.incPadding||(o=c.getComputedStyle(i.dom.parent)),u=i.dom.parent.getBoundingClientRect(),t.newX=u.left,t.newY=u.top,t.newHeight=i.incPadding?u.height:u.height-parseFloat(o.paddingTop)-parseFloat(o.paddingBottom)-parseFloat(o.borderTop)-parseFloat(o.borderBottom),t.newWidth=i.incPadding?u.width:u.width-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight)-parseFloat(o.borderLeft)-parseFloat(o.borderRight),t.viewportDeltaX=t.docState.viewportWidth-this.dom.document.documentElement.clientWidth,t.viewportDeltaY=t.docState.viewportHe
12ight-this.dom.document.documentElement.clientHeight,t.willSort&&i.printSort(!0,t),p=0;f=t.toShow[p];p++)f.hide();for(p=0;f=t.toHide[p];p++)f.show();t.willChangeLayout&&(r.removeClass(i.dom.container,t.newContainerClassName),r.addClass(i.dom.container,i.config.layout.containerClassName)),i.callActions("afterGetFinalMixData",arguments)},getTweenData:function(t){var i=this,o=null,u=null,f=Object.getOwnPropertyNames(i.effectsIn),p="",v=null,y=-1,S=-1,D=-1,F=-1;for(i.callActions("beforeGetTweenData",arguments),D=0;o=t.show[D];D++)for(u=t.showPosData[D],u.posIn=new s.StyleData,u.posOut=new s.StyleData,u.tweenData=new s.StyleData,o.isShown?(u.posIn.x=u.startPosData.x-u.interPosData.x,u.posIn.y=u.startPosData.y-u.interPosData.y):u.posIn.x=u.posIn.y=0,u.posOut.x=u.finalPosData.x-u.interPosData.x,u.posOut.y=u.finalPosData.y-u.interPosData.y,u.posIn.opacity=o.isShown?1:i.effectsIn.opacity,u.posOut.opacity=1,u.tweenData.opacity=u.posOut.opacity-u.posIn.opacity,!o.isShown&&!i.config.animation.nudge&&(u.posIn.x=u.posOut.x,u.posIn.y=u.posOut.y),u.tweenData.x=u.posOut.x-u.posIn.x,u.tweenData.y=u.posOut.y-u.posIn.y,i.config.animation.animateResizeTargets&&(u.posIn.width=u.startPosData.width,u.posIn.height=u.startPosData.height,y=(u.startPosData.width||u.finalPosData.width)-u.interPosData.width,u.posIn.marginRight=u.startPosData.marginRight-y,S=(u.startPosData.height||u.finalPosData.height)-u.interPosData.height,u.posIn.marginBottom=u.startPosData.marginBottom-S,u.posOut.width=u.finalPosData.width,u.posOut.height=u.finalPosData.height,y=(u.finalPosData.width||u.startPosData.width)-u.interPosData.width,u.posOut.marginRight=u.finalPosData.marginRight-y,S=(u.finalPosData.height||u.startPosData.height)-u.interPosData.height,u.posOut.marginBottom=u.finalPosData.marginBottom-S,u.tweenData.width=u.posOut.width-u.posIn.width,u.tweenData.height=u.posOut.height-u.posIn.height,u.tweenData.marginRight=u.posOut.marginRight-u.posIn.marginRight,u.tweenData.marginBottom=u.posOut.marginBottom-u.posIn.marginBottom),F=0;p=f[F];F++)v=i.effectsIn[p],!(!(v instanceof s.TransformData)||!v.value)&&(u.posIn[p].value=v.value,u.posOut[p].value=0,u.tweenData[p].value=u.posOut[p].value-u.posIn[p].value,u.posIn[p].unit=u.posOut[p].unit=u.tweenData[p].unit=v.unit);for(D=0;o=t.toHide[D];D++)for(u=t.toHidePosData[D],u.posIn=new s.StyleData,u.posOut=new s.StyleData,u.tweenData=new s.StyleData,u.posIn.x=o.isShown?u.startPosData.x-u.interPosData.x:0,u.posIn.y=o.isShown?u.startPosData.y-u.interPosData.y:0,u.posOut.x=i.config.animation.nudge?0:u.posIn.x,u.posOut.y=i.config.animation.nudge?0:u.posIn.y,u.tweenData.x=u.posOut.x-u.posIn.x,u.tweenData.y=u.posOut.y-u.posIn.y,i.config.animation.animateResizeTargets&&(u.posIn.width=u.startPosData.width,u.posIn.height=u.startPosData.height,y=u.startPosData.width-u.interPosData.width,u.posIn.marginRight=u.startPosData.marginRight-y,S=u.startPosData.height-u.interPosData.height,u.posIn.marginBottom=u.startPosData.marginBottom-S),u.posIn.opacity=1,u.posOut.opacity=i.effectsOut.opacity,u.tweenData.opacity=u.posOut.opacity-u.posIn.opacity,F=0;p=f[F];F++)v=i.effectsOut[p],!(!(v instanceof s.TransformData)||!v.value)&&(u.posIn[p].value=0,u.posOut[p].value=v.value,u.tweenData[p].value=u.posOut[p].value-u.posIn[p].value,u.posIn[p].unit=u.posOut[p].unit=u.tweenData[p].unit=v.unit);i.callActions("afterGetTweenData",arguments)},moveTargets:function(t){var i=this,o=null,u=null,f=null,p="",v=!1,y=-1,S=-1,D=i.checkProgress.bind(i);for(i.callActions("beforeMoveTargets",arguments),S=0;o=t.show[S];S++)u=new s.IMoveData,f=t.showPosData[S],p=o.isShown?"none":"show",v=i.willTransition(p,t.hasEffect,f.posIn,f.posOut),v&&y++,o.show(),u.posIn=f.posIn,u.posOut=f.posOut,u.statusChange=p,u.staggerIndex=y,u.operation=t,u.callback=v?D:null,o.move(u);for(S=0;o=t.toHide[S];S++)f=t.toHidePosData[S],u=new s.IMoveData,p="hide",v=i.willTransition(p,f.posIn,f.posOut),u.posIn=f.posIn,u.posOut=f.posOut,u.statusChange=p,u.staggerIndex=S,u.operation=t,u.callback=v?D:null,o.move(u);i.config.animation.animateResizeContainer&&(i.dom.parent.style[s.features.transitionProp]="height "+i.config.animation.duration+"ms ease, width "+i.config.animation.duration+"ms ease ",requestAnimationFrame(function(){t.startHeight!==t.newHeight&&t.viewportDeltaY!==t.startHeight-t.newHeight&&(i.dom.parent.style.height=t.newHeight+"px"),t.startWidth!==t.newWidth&&t.viewportDeltaX!==t.startWidth-t.newWidth&&(i.dom.parent.style.width=t.newWidth+"px")})),t.willChangeLayout&&(r.removeClass(i.dom.container,i.config.layout.ContainerClassName),r.addClass(i.dom.container,t.newContainerClassName)),i.callActions("afterMoveTargets",arguments)},hasEffect:function(){var t=this,i=["scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],o="",u=null,f=!1,p=-1,v=-1;if(t.effectsIn.opacity!==1)return t.callFilters("resultHasEffect",!0,arguments);for(v=0;o=i[v];v++)if(u=t.effectsIn[o],p=u.value!=="undefined"?u.value:u,p!==0){f=!0;break}return t.callFilters("resultHasEffect",f,arguments)},willTransition:function(t,i,o,u){var f=this,p=!1;return r.isVisible(f.dom.container)?t!=="none"&&i||o.x!==u.x||o.y!==u.y?p=!0:f.config.animation.animateResizeTargets?p=o.width!==u.width||o.height!==u.height||o.marginRight!==u.marginRight||o.marginTop!==u.marginTop:p=!1:p=!1,f.callFilters("resultWillTransition",p,arguments)},checkProgress:function(t){var i=this;i.targetsDone++,i.targetsBound===i.targetsDone&&i.cleanUp(t)},cleanUp:function(t){var i=this,o=null,u=null,f=null,p=null,v=-1;for(i.callActions("beforeCleanUp",arguments),i.targetsMoved=i.targetsImmovable=i.targetsBound=i.targetsDone=0,v=0;o=t.show[v];v++)o.cleanUp(),o.show();for(v=0;o=t.toHide[v];v++)o.cleanUp(),o.hide();if(t.willSort&&i.printSort(!1,t),i.dom.parent.style[s.features.transitionProp]=i.dom.parent.style.height=i.dom.parent.style.width=i.dom.parent.style.overflow=i.dom.parent.style[s.features.perspectiveProp]=i.dom.parent.style[s.features.perspectiveOriginProp]="",t.willChangeLayout&&(r.removeClass(i.dom.container,t.startContainerClassName),r.addClass(i.dom.container,t.newContainerClassName)),t.toRemove.length){for(v=0;o=i.targets[v];v++)t.toRemove.indexOf(o)>-1&&((u=o.dom.el.previousSibling)&&u.nodeName==="#text"&&(f=o.dom.el.nextSibling)&&f.nodeName==="#text"&&r.removeWhitespace(u),t.willSort||i.dom.parent.removeChild(o.dom.el),i.targets.splice(v,1),o.isInDom=!1,v--);i.origOrder=i.targets}t.willSort&&(i.targets=t.newOrder),i.state=t.newState,i.lastOperation=t,i.dom.targets=i.state.targets,s.events.fire("mixEnd",i.dom.container,{state:i.state,instance:i},i.dom.document),typeof i.config.callbacks.onMixEnd=="function"&&i.config.callbacks.onMixEnd.call(i.dom.container,i.state,i),t.hasFailed&&(s.events.fire("mixFail",i.dom.container,{state:i.state,instance:i},i.dom.document),typeof i.config.callbacks.onMixFail=="function"&&i.config.callbacks.onMixFail.call(i.dom.container,i.state,i),r.addClass(i.dom.container,r.getClassname(i.config.classNames,"container",i.config.classNames.modifierFailed))),typeof i.userCallback=="function"&&i.userCallback.call(i.dom.container,i.state,i),typeof i.userDeferred.resolve=="function"&&i.userDeferred.resolve(i.state),i.userCallback=null,i.userDeferred=null,i.lastClicked=null,i.isToggling=!1,i.isBusy=!1,i.queue.length&&(i.callActions("beforeReadQueueCleanUp",arguments),p=i.queue.shift(),i.userDeferred=p.deferred,i.isToggling=p.isToggling,i.lastClicked=p.triggerElement,p.instruction.command instanceof s.CommandMultimix?i.multimix.apply(i,p.args):i.dataset.apply(i,p.args)),i.callActions("afterCleanUp",arguments)},parseMultimixArgs:function(t){var i=this,o=new s.UserInstruction,u=null,f=-1;for(o.animate=i.config.animation.enable,o.command=new s.CommandMultimix,f=0;f<t.length;f++)u=t[f],u!==null&&(typeof u=="object"?r.extend(o.command,u):typeof u=="boolean"?o.animate=u:typeof u=="function"&&(o.callback=u));return o.command.insert&&!(o.command.insert instanceof s.CommandInsert)&&(o.command.insert=i.parseInsertArgs([o.command.insert]).command),o.command.remove&&!(o.command.remove instanceof s.CommandRemove)&&(o.command.remove=i.parseRemoveArgs([o.command.remove]).command),o.command.filter&&!(o.command.filter instanceof s.CommandFilter)&&(o.command.filter=i.parseFilterArgs([o.command.filter]).command),o.command.sort&&!(o.command.sort instanceof s.CommandSort)&&(o.command.sort=i.parseSortArgs([o.command.sort]).command),o.command.changeLayout&&!(o.command.changeLayout instanceof s.CommandChangeLayout)&&(o.command.changeLayout=i.parseChangeLayoutArgs([o.command.changeLayout]).command),o=i.callFilters("instructionParseMultimixArgs",o,arguments),r.freeze(o),o},parseFilterArgs:function(t){var i=this,o=new s.UserInstruction,u=null,f=-1;for(o.animate=i.config.animation.enable,o.command=new s.CommandFilter,f=0;f<t.length;f++)u=t[f],typeof u=="string"?o.command.selector=u:u===null?o.command.collection=[]:typeof u=="object"&&r.isElement(u,i.dom.document)?o.command.collection=[u]:typeof u=="object"&&typeof u.length<"u"?o.command.collection=r.arrayFromList(u):typeof u=="object"?r.extend(o.command,u):typeof u=="boolean"?o.animate=u:typeof u=="function"&&(o.callback=u);if(o.command.selector&&o.command.collection)throw new Error(s.messages.errorFilterInvalidArguments());return o=i.callFilters("instructionParseFilterArgs",o,arguments),r.freeze(o),o},parseSortArgs:function(t){var i=this,o=new s.UserInstruction,u=null,f="",p=-1;for(o.animate=i.config.animation.enable,o.command=new s.CommandSort,p=0;p<t.length;p++)if(u=t[p],u!==null)switch(typeof u){case"string":f=u;break;case"object":u.length&&(o.command.collection=r.arrayFromList(u));break;case"boolean":o.animate=u;break;case"function":o.callback=u;break}return f&&(o.command=i.parseSortString(f,o.command)),o=i.callFilters("instructionParseSortArgs",o,arguments),r.freeze(o),o},parseInsertArgs:function(t){var i=this,o=new s.UserInstruction,u=null,f=-1;for(o.animate=i.config.animation.enable,o.command=new s.CommandInsert,f=0;f<t.length;f++)u=t[f],u!==null&&(typeof u=="number"?o.command.index=u:typeof u=="string"&&["before","after"].indexOf(u)>-1?o.command.position=u:typeof u=="string"?o.command.collection=r.arrayFromList(r.createElement(u).childNodes):typeof u=="object"&&r.isElement(u,i.dom.document)?o.command.collection.length?o.command.sibling=u:o.command.collection=[u]:typeof u=="object"&&u.length?o.command.collection.length?o.command.sibling=u[0]:o.command.collection=u:typeof u=="object"&&u.childNodes&&u.childNodes.length?o.command.collection.length?o.command.sibling=u.childNodes[0]:o.command.collection=r.arrayFromList(u.childNodes):typeof u=="object"?r.extend(o.command,u):typeof u=="boolean"?o.animate=u:typeof u=="function"&&(o.callback=u));if(o.command.index&&o.command.sibling)throw new Error(s.messages.errorInsertInvalidArguments());return!o.command.collection.length&&i.config.debug.showWarnings&&console.warn(s.messages.warningInsertNoElements()),o=i.callFilters("instructionParseInsertArgs",o,arguments),r.freeze(o),o},parseRemoveArgs:function(t){var i=this,o=new s.UserInstruction,u=null,f=null,p=-1;for(o.animate=i.config.animation.enable,o.command=new s.CommandRemove,p=0;p<t.length;p++)if(f=t[p],f!==null)switch(typeof f){case"number":i.targets[f]&&(o.command.targets[0]=i.targets[f]);break;case"string":o.command.collection=r.arrayFromList(i.dom.parent.querySelectorAll(f));break;case"object":f&&f.length?o.command.collection=f:r.isElement(f,i.dom.document)?o.command.collection=[f]:r.extend(o.command,f);break;case"boolean":o.animate=f;break;case"function":o.callback=f;break}if(o.command.collection.length)for(p=0;u=i.targets[p];p++)o.command.collection.indexOf(u.dom.el)>-1&&o.command.targets.push(u);return!o.command.targets.length&&i.config.debug.showWarnings&&console.warn(s.messages.warningRemoveNoElements()),r.freeze(o),o},parseDatasetArgs:function(t){var i=this,o=new s.UserInstruction,u=null,f=-1;for(o.animate=i.config.animation.enable,o.command=new s.CommandDataset,f=0;f<t.length;f++)if(u=t[f],u!==null)switch(typeof u){case"object":Array.isArray(u)||t
vendor: 10,034 bytes, line 12
12ypeof u.length=="number"?o.command.dataset=u:r.extend(o.command,u);break;case"boolean":o.animate=u;break;case"function":o.callback=u;break}return r.freeze(o),o},parseChangeLayoutArgs:function(t){var i=this,o=new s.UserInstruction,u=null,f=-1;for(o.animate=i.config.animation.enable,o.command=new s.CommandChangeLayout,f=0;f<t.length;f++)if(u=t[f],u!==null)switch(typeof u){case"string":o.command.containerClassName=u;break;case"object":r.extend(o.command,u);break;case"boolean":o.animate=u;break;case"function":o.callback=u;break}return r.freeze(o),o},queueMix:function(t){var i=this,o=null,u="";return i.callActions("beforeQueueMix",arguments),o=r.defer(s.libraries),i.config.animation.queue&&i.queue.length<i.config.animation.queueLimit?(t.deferred=o,i.queue.push(t),i.config.controls.enable&&(i.isToggling?(i.buildToggleArray(t.instruction.command),u=i.getToggleSelector(),i.updateControls({filter:{selector:u}})):i.updateControls(t.instruction.command))):(i.config.debug.showWarnings&&console.warn(s.messages.warningMultimixInstanceQueueFull()),o.resolve(i.state),s.events.fire("mixBusy",i.dom.container,{state:i.state,instance:i},i.dom.document),typeof i.config.callbacks.onMixBusy=="function"&&i.config.callbacks.onMixBusy.call(i.dom.container,i.state,i)),i.callFilters("promiseQueueMix",o.promise,arguments)},getDataOperation:function(t){var i=this,o=new s.Operation,u=[];if(o=i.callFilters("operationUnmappedGetDataOperation",o,arguments),i.dom.targets.length&&!(u=i.state.activeDataset||[]).length)throw new Error(s.messages.errorDatasetNotSet());return o.id=r.randomHex(),o.startState=i.state,o.startDataset=u,o.newDataset=t.slice(),i.diffDatasets(o),o.startOrder=i.targets,o.newOrder=o.show,i.config.animation.enable&&(i.getStartMixData(o),i.setInter(o),o.docState=r.getDocumentState(i.dom.document),i.getInterMixData(o),i.setFinal(o),i.getFinalMixData(o),i.parseEffects(),o.hasEffect=i.hasEffect(),i.getTweenData(o)),i.targets=o.show.slice(),o.newState=i.buildState(o),Array.prototype.push.apply(i.targets,o.toRemove),o=i.callFilters("operationMappedGetDataOperation",o,arguments),o},diffDatasets:function(t){var i=this,o=[],u=[],f=[],p=null,v=null,y=null,S=null,D=null,F={},M="",A=-1;for(i.callActions("beforeDiffDatasets",arguments),A=0;p=t.newDataset[A];A++){if(typeof(M=p[i.config.data.uidKey])>"u"||M.toString().length<1)throw new TypeError(s.messages.errorDatasetInvalidUidKey({uidKey:i.config.data.uidKey}));if(!F[M])F[M]=!0;else throw new Error(s.messages.errorDatasetDuplicateUid({uid:M}));(v=i.cache[M])instanceof s.Target?(i.config.data.dirtyCheck&&!r.deepEquals(p,v.data)&&(y=v.render(p),v.data=p,y!==v.dom.el&&(v.isInDom&&(v.unbindEvents(),i.dom.parent.replaceChild(y,v.dom.el)),v.isShown||(y.style.display="none"),v.dom.el=y,v.isInDom&&v.bindEvents())),y=v.dom.el):(v=new s.Target,v.init(null,i,p),v.hide()),v.isInDom?(D=v.dom.el.nextElementSibling,u.push(M),S&&(S.lastElementChild&&S.appendChild(i.dom.document.createTextNode(" ")),i.insertDatasetFrag(S,v.dom.el,f),S=null)):(S||(S=i.dom.document.createDocumentFragment()),S.lastElementChild&&S.appendChild(i.dom.document.createTextNode(" ")),S.appendChild(v.dom.el),v.isInDom=!0,v.unbindEvents(),v.bindEvents(),v.hide(),t.toShow.push(v),f.push(v)),t.show.push(v)}for(S&&(D=D||i.config.layout.siblingAfter,D&&S.appendChild(i.dom.document.createTextNode(" ")),i.insertDatasetFrag(S,D,f)),A=0;p=t.startDataset[A];A++)M=p[i.config.data.uidKey],v=i.cache[M],t.show.indexOf(v)<0?(t.hide.push(v),t.toHide.push(v),t.toRemove.push(v)):o.push(M);r.isEqualArray(o,u)||(t.willSort=!0),i.callActions("afterDiffDatasets",arguments)},insertDatasetFrag:function(t,i,o){var u=this,f=i?r.arrayFromList(u.dom.parent.children).indexOf(i):u.targets.length;for(u.dom.parent.insertBefore(t,i);o.length;)u.targets.splice(f,0,o.shift()),f++},willSort:function(t,i){var o=this,u=!1;return o.config.behavior.liveSort||t.order==="random"||t.attribute!==i.attribute||t.order!==i.order||t.collection!==i.collection||t.next===null&&i.next||t.next&&i.next===null?u=!0:t.next&&i.next?u=o.willSort(t.next,i.next):u=!1,o.callFilters("resultWillSort",u,arguments)},show:function(){var t=this;return t.filter("all")},hide:function(){var t=this;return t.filter("none")},isMixing:function(){var t=this;return t.isBusy},filter:function(){var t=this,i=t.parseFilterArgs(arguments);return t.multimix({filter:i.command},i.animate,i.callback)},toggleOn:function(){var t=this,i=t.parseFilterArgs(arguments),o=i.command.selector,u="";return t.isToggling=!0,t.toggleArray.indexOf(o)<0&&t.toggleArray.push(o),u=t.getToggleSelector(),t.multimix({filter:u},i.animate,i.callback)},toggleOff:function(){var t=this,i=t.parseFilterArgs(arguments),o=i.command.selector,u=t.toggleArray.indexOf(o),f="";return t.isToggling=!0,u>-1&&t.toggleArray.splice(u,1),f=t.getToggleSelector(),t.multimix({filter:f},i.animate,i.callback)},sort:function(){var t=this,i=t.parseSortArgs(arguments);return t.multimix({sort:i.command},i.animate,i.callback)},changeLayout:function(){var t=this,i=t.parseChangeLayoutArgs(arguments);return t.multimix({changeLayout:i.command},i.animate,i.callback)},dataset:function(){var t=this,i=t.parseDatasetArgs(arguments),o=null,u=null,f=!1;return t.callActions("beforeDataset",arguments),t.isBusy?(u=new s.QueueItem,u.args=arguments,u.instruction=i,t.queueMix(u)):(i.callback&&(t.userCallback=i.callback),f=i.animate^t.config.animation.enable?i.animate:t.config.animation.enable,o=t.getDataOperation(i.command.dataset),t.goMix(f,o))},multimix:function(){var t=this,i=null,o=!1,u=null,f=t.parseMultimixArgs(arguments);return t.callActions("beforeMultimix",arguments),t.isBusy?(u=new s.QueueItem,u.args=arguments,u.instruction=f,u.triggerElement=t.lastClicked,u.isToggling=t.isToggling,t.queueMix(u)):(i=t.getOperation(f.command),t.config.controls.enable&&(f.command.filter&&!t.isToggling&&(t.toggleArray.length=0,t.buildToggleArray(i.command)),t.queue.length<1&&t.updateControls(i.command)),f.callback&&(t.userCallback=f.callback),o=f.animate^t.config.animation.enable?f.animate:t.config.animation.enable,t.callFilters("operationMultimix",i,arguments),t.goMix(o,i))},getOperation:function(t){var i=this,o=t.sort,u=t.filter,f=t.changeLayout,p=t.remove,v=t.insert,y=new s.Operation;return y=i.callFilters("operationUnmappedGetOperation",y,arguments),y.id=r.randomHex(),y.command=t,y.startState=i.state,y.triggerElement=i.lastClicked,i.isBusy?(i.config.debug.showWarnings&&console.warn(s.messages.warningGetOperationInstanceBusy()),null):(v&&i.insertTargets(v,y),p&&(y.toRemove=p.targets),y.startSort=y.newSort=y.startState.activeSort,y.startOrder=y.newOrder=i.targets,o&&(y.startSort=y.startState.activeSort,y.newSort=o,y.willSort=i.willSort(o,y.startState.activeSort),y.willSort&&i.sortOperation(y)),y.startFilter=y.startState.activeFilter,u?y.newFilter=u:y.newFilter=r.extend(new s.CommandFilter,y.startFilter),y.newFilter.selector==="all"?y.newFilter.selector=i.config.selectors.target:y.newFilter.selector==="none"&&(y.newFilter.selector=""),i.filterOperation(y),y.startContainerClassName=y.startState.activeContainerClassName,f?(y.newContainerClassName=f.containerClassName,y.newContainerClassName!==y.startContainerClassName&&(y.willChangeLayout=!0)):y.newContainerClassName=y.startContainerClassName,i.config.animation.enable&&(i.getStartMixData(y),i.setInter(y),y.docState=r.getDocumentState(i.dom.document),i.getInterMixData(y),i.setFinal(y),i.getFinalMixData(y),i.parseEffects(),y.hasEffect=i.hasEffect(),i.getTweenData(y)),y.willSort&&(i.targets=y.newOrder),y.newState=i.buildState(y),i.callFilters("operationMappedGetOperation",y,arguments))},tween:function(t,i){var o=null,u=null,f=-1,p=-1;for(i=Math.min(i,1),i=Math.max(i,0),p=0;o=t.show[p];p++)u=t.showPosData[p],o.applyTween(u,i);for(p=0;o=t.hide[p];p++)o.isShown&&o.hide(),(f=t.toHide.indexOf(o))>-1&&(u=t.toHidePosData[f],o.isShown||o.show(),o.applyTween(u,i))},insert:function(){var t=this,i=t.parseInsertArgs(arguments);return t.multimix({insert:i.command},i.animate,i.callback)},insertBefore:function(){var t=this,i=t.parseInsertArgs(arguments);return t.insert(i.command.collection,"before",i.command.sibling,i.animate,i.callback)},insertAfter:function(){var t=this,i=t.parseInsertArgs(arguments);return t.insert(i.command.collection,"after",i.command.sibling,i.animate,i.callback)},prepend:function(){var t=this,i=t.parseInsertArgs(arguments);return t.insert(0,i.command.collection,i.animate,i.callback)},append:function(){var t=this,i=t.parseInsertArgs(arguments);return t.insert(t.state.totalTargets,i.command.collection,i.animate,i.callback)},remove:function(){var t=this,i=t.parseRemoveArgs(arguments);return t.multimix({remove:i.command},i.animate,i.callback)},getConfig:function(t){var i=this,o=null;return t?o=r.getProperty(i.config,t):o=i.config,i.callFilters("valueGetConfig",o,arguments)},configure:function(t){var i=this;i.callActions("beforeConfigure",arguments),r.extend(i.config,t,!0,!0),i.callActions("afterConfigure",arguments)},getState:function(){var t=this,i=null;return i=new s.State,r.extend(i,t.state),r.freeze(i),t.callFilters("stateGetState",i,arguments)},forceRefresh:function(){var t=this;t.indexTargets()},forceRender:function(){var t=this,i=null,o=null,u="";for(u in t.cache)i=t.cache[u],o=i.render(i.data),o!==i.dom.el&&(i.isInDom&&(i.unbindEvents(),t.dom.parent.replaceChild(o,i.dom.el)),i.isShown||(o.style.display="none"),i.dom.el=o,i.isInDom&&i.bindEvents());t.state=t.buildState(t.lastOperation)},destroy:function(t){var i=this,o=null,u=null,f=0;for(i.callActions("beforeDestroy",arguments),f=0;o=i.controls[f];f++)o.removeBinding(i);for(f=0;u=i.targets[f];f++)t&&u.show(),u.unbindEvents();i.dom.container.id.match(/^MixItUp/)&&i.dom.container.removeAttribute("id"),delete s.instances[i.id],i.callActions("afterDestroy",arguments)}}),s.IMoveData=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.posIn=null,this.posOut=null,this.operation=null,this.callback=null,this.statusChange="",this.duration=-1,this.staggerIndex=-1,this.callActions("afterConstruct"),r.seal(this)}
12,s.BaseStatic.call(s.IMoveData),s.IMoveData.prototype=Object.create(s.Base.prototype),s.IMoveData.prototype.constructor=s.IMoveData,s.TargetDom=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.TargetDom),s.TargetDom.prototype=Object.create(s.Base.prototype),s.TargetDom.prototype.constructor=s.TargetDom,s.Target=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.sortString="",this.mixer=null,this.callback=null,this.isShown=!1,this.isBound=!1,this.isExcluded=!1,this.isInDom=!1,this.handler=null,this.operation=null,this.data=null,this.dom=new s.TargetDom,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.Target),s.Target.prototype=Object.create(s.Base.prototype),r.extend(s.Target.prototype,{constructor:s.Target,init:function(t,i,o){var u=this,f="";if(u.callActions("beforeInit",arguments),u.mixer=i,t||(t=u.render(o)),u.cacheDom(t),u.bindEvents(),u.dom.el.style.display!=="none"&&(u.isShown=!0),o&&i.config.data.uidKey){if(typeof(f=o[i.config.data.uidKey])>"u"||f.toString().length<1)throw new TypeError(s.messages.errorDatasetInvalidUidKey({uidKey:i.config.data.uidKey}));u.id=f,u.data=o,i.cache[f]=u}u.callActions("afterInit",arguments)},render:function(t){var i=this,o=null,u=null,f=null,p="";if(i.callActions("beforeRender",arguments),o=i.callFilters("renderRender",i.mixer.config.render.target,arguments),typeof o!="function")throw new TypeError(s.messages.errorDatasetRendererNotSet());return p=o(t),p&&typeof p=="object"&&r.isElement(p)?u=p:typeof p=="string"&&(f=document.createElement("div"),f.innerHTML=p,u=f.firstElementChild),i.callFilters("elRender",u,arguments)},cacheDom:function(t){var i=this;i.callActions("beforeCacheDom",arguments),i.dom.el=t,i.callActions("afterCacheDom",arguments)},getSortString:function(t){var i=this,o=i.dom.el.getAttribute("data-"+t)||"";i.callActions("beforeGetSortString",arguments),o=isNaN(o*1)?o.toLowerCase():o*1,i.sortString=o,i.callActions("afterGetSortString",arguments)},show:function(){var t=this;t.callActions("beforeShow",arguments),t.isShown||(t.dom.el.style.display="",t.isShown=!0),t.callActions("afterShow",arguments)},hide:function(){var t=this;t.callActions("beforeHide",arguments),t.isShown&&(t.dom.el.style.display="none",t.isShown=!1),t.callActions("afterHide",arguments)},move:function(t){var i=this;i.callActions("beforeMove",arguments),i.isExcluded||i.mixer.targetsMoved++,i.applyStylesIn(t),requestAnimationFrame(function(){i.applyStylesOut(t)}),i.callActions("afterMove",arguments)},applyTween:function(t,i){var o=this,u="",f=null,p=t.posIn,v=[],y=new s.StyleData,S=-1;for(o.callActions("beforeApplyTween",arguments),y.x=p.x,y.y=p.y,i===0?o.hide():o.isShown||o.show(),S=0;u=s.features.TWEENABLE[S];S++)if(f=t.tweenData[u],u==="x"){if(!f)continue;y.x=p.x+f*i}else if(u==="y"){if(!f)continue;y.y=p.y+f*i}else if(f instanceof s.TransformData){if(!f.value)continue;y[u].value=p[u].value+f.value*i,y[u].unit=f.unit,v.push(u+"("+y[u].value+f.unit+")")}else{if(!f)continue;y[u]=p[u]+f*i,o.dom.el.style[u]=y[u]}(y.x||y.y)&&v.unshift("translate("+y.x+"px, "+y.y+"px)"),v.length&&(o.dom.el.style[s.features.transformProp]=v.join(" ")),o.callActions("afterApplyTween",arguments)},applyStylesIn:function(t){var i=this,o=t.posIn,u=i.mixer.effectsIn.opacity!==1,f=[];i.callActions("beforeApplyStylesIn",arguments),f.push("translate("+o.x+"px, "+o.y+"px)"),i.mixer.config.animation.animateResizeTargets&&(t.statusChange!=="show"&&(i.dom.el.style.width=o.width+"px",i.dom.el.style.height=o.height+"px"),i.dom.el.style.marginRight=o.marginRight+"px",i.dom.el.style.marginBottom=o.marginBottom+"px"),u&&(i.dom.el.style.opacity=o.opacity),t.statusChange==="show"&&(f=f.concat(i.mixer.transformIn)),i.dom.el.style[s.features.transformProp]=f.join(" "),i.callActions("afterApplyStylesIn",arguments)},applyStylesOut:function(t){var i=this,o=[],u=[],f=i.mixer.config.animation.animateResizeTargets,p=typeof i.mixer.effectsIn.opacity<"u";if(i.callActions("beforeApplyStylesOut",arguments),o.push(i.writeTransitionRule(s.features.transformRule,t.staggerIndex)),t.statusChange!=="none"&&o.push(i.writeTransitionRule("opacity",t.staggerIndex,t.duration)),f&&(o.push(i.writeTransitionRule("width",t.staggerIndex,t.duration)),o.push(i.writeTransitionRule("height",t.staggerIndex,t.duration)),o.push(i.writeTransitionRule("margin",t.staggerIndex,t.duration))),!t.callback){i.mixer.targetsImmovable++,i.mixer.targetsMoved===i.mixer.targetsImmovable&&i.mixer.cleanUp(t.operation);return}switch(i.operation=t.operation,i.callback=t.callback,!i.isExcluded&&i.mixer.targetsBound++,i.isBound=!0,i.applyTransition(o),f&&t.posOut.width>0&&t.posOut.height>0&&(i.dom.el.style.width=t.posOut.width+"px",i.dom.el.style.height=t.posOut.height+"px",i.dom.el.style.marginRight=t.posOut.marginRight+"px",i.dom.el.style.marginBottom=t.posOut.marginBottom+"px"),!i.mixer.config.animation.nudge&&t.statusChange==="hide"&&u.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),t.statusChange){case"hide":p&&(i.dom.el.style.opacity=i.mixer.effectsOut.opacity),u=u.concat(i.mixer.transformOut);break;case"show":p&&(i.dom.el.style.opacity=1)}(i.mixer.config.animation.nudge||!i.mixer.config.animation.nudge&&t.statusChange!=="hide")&&u.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),i.dom.el.style[s.features.transformProp]=u.join(" "),i.callActions("afterApplyStylesOut",arguments)},writeTransitionRule:function(t,i,o){var u=this,f=u.getDelay(i),p="";return p=t+" "+(o>0?o:u.mixer.config.animation.duration)+"ms "+f+"ms "+(t==="opacity"?"linear":u.mixer.config.animation.easing),u.callFilters("ruleWriteTransitionRule",p,arguments)},getDelay:function(t){var i=this,o=-1;return typeof i.mixer.config.animation.staggerSequence=="function"&&(t=i.mixer.config.animation.staggerSequence.call(i,t,i.state)),o=i.mixer.staggerDuration?t*i.mixer.staggerDuration:0,i.callFilters("delayGetDelay",o,arguments)},applyTransition:function(t){var i=this,o=t.join(", ");i.callActions("beforeApplyTransition",arguments),i.dom.el.style[s.features.transitionProp]=o,i.callActions("afterApplyTransition",arguments)},handleTransitionEnd:function(t){var i=this,o=t.propertyName,u=i.mixer.config.animation.animateResizeTargets;i.callActions("beforeHandleTransitionEnd",arguments),i.isBound&&t.target.matches(i.mixer.config.selectors.target)&&(o.indexOf("transform")>-1||o.indexOf("opacity")>-1||u&&o.indexOf("height")>-1||u&&o.indexOf("width")>-1||u&&o.indexOf("margin")>-1)&&(i.callback.call(i,i.operation),i.isBound=!1,i.callback=null,i.operation=null),i.callActions("afterHandleTransitionEnd",arguments)},eventBus:function(t){var i=this;switch(i.callActions("beforeEventBus",arguments),t.type){case"webkitTransitionEnd":case"transitionend":i.handleTransitionEnd(t)}i.callActions("afterEventBus",arguments)},unbindEvents:function(){var t=this;t.callActions("beforeUnbindEvents",arguments),r.off(t.dom.el,"webkitTransitionEnd",t.handler),r.off(t.dom.el,"transitionend",t.handler),t.callActions("afterUnbindEvents",arguments)},bindEvents:function(){var t=this,i="";t.callActions("beforeBindEvents",arguments),i=s.features.transitionPrefix==="webkit"?"webkitTransitionEnd":"transitionend",t.handler=function(o){return t.eventBus(o)},r.on(t.dom.el,i,t.handler),t.callActions("afterBindEvents",arguments)},getPosData:function(t){var i=this,o={},u=null,f=new s.StyleData;return i.callActions("beforeGetPosData",arguments),f.x=i.dom.el.offsetLeft,f.y=i.dom.el.offsetTop,(i.mixer.config.animation.animateResizeTargets||t)&&(u=i.dom.el.getBoundingClientRect(),f.top=u.top,f.right=u.right,f.bottom=u.bottom,f.left=u.left,f.width=u.width,f.height=u.height),i.mixer.config.animation.animateResizeTargets&&(o=c.getComputedStyle(i.dom.el),f.marginBottom=parseFloat(o.marginBottom),f.marginRight=parseFloat(o.marginRight)),i.callFilters("posDataGetPosData",f,arguments)},cleanUp:function(){var t=this;t.callActions("beforeCleanUp",arguments),t.dom.el.style[s.features.transformProp]="",t.dom.el.style[s.features.transitionProp]="",t.dom.el.style.opacity="",t.mixer.config.animation.animateResizeTargets&&(t.dom.el.style.width="",t.dom.el.style.height="",t.dom.el.style.marginRight="",t.dom.el.style.marginBottom=""),t.callActions("afterCleanUp",arguments)}}),s.Collection=function(t){var i=null,o=-1;for(this.callActions("beforeConstruct"),o=0;i=t[o];o++)this[o]=i;this.length=t.length,this.callActions("afterConstruct"),r.freeze(this)}
vendor: 5,480 bytes, line 12
12,s.BaseStatic.call(s.Collection),s.Collection.prototype=Object.create(s.Base.prototype),r.extend(s.Collection.prototype,{constructor:s.Collection,mixitup:function(t){var i=this,o=null,u=Array.prototype.slice.call(arguments),f=[],p=-1;for(this.callActions("beforeMixitup"),u.shift(),p=0;o=i[p];p++)f.push(o[t].apply(o,u));return i.callFilters("promiseMixitup",r.all(f,s.libraries),arguments)}}),s.Operation=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.args=[],this.command=null,this.showPosData=[],this.toHidePosData=[],this.startState=null,this.newState=null,this.docState=null,this.willSort=!1,this.willChangeLayout=!1,this.hasEffect=!1,this.hasFailed=!1,this.triggerElement=null,this.show=[],this.hide=[],this.matching=[],this.toShow=[],this.toHide=[],this.toMove=[],this.toRemove=[],this.startOrder=[],this.newOrder=[],this.startSort=null,this.newSort=null,this.startFilter=null,this.newFilter=null,this.startDataset=null,this.newDataset=null,this.viewportDeltaX=0,this.viewportDeltaY=0,this.startX=0,this.startY=0,this.startHeight=0,this.startWidth=0,this.newX=0,this.newY=0,this.newHeight=0,this.newWidth=0,this.startContainerClassName="",this.startDisplay="",this.newContainerClassName="",this.newDisplay="",this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.Operation),s.Operation.prototype=Object.create(s.Base.prototype),s.Operation.prototype.constructor=s.Operation,s.State=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.activeFilter=null,this.activeSort=null,this.activeContainerClassName="",this.container=null,this.targets=[],this.hide=[],this.show=[],this.matching=[],this.totalTargets=-1,this.totalShow=-1,this.totalHide=-1,this.totalMatching=-1,this.hasFailed=!1,this.triggerElement=null,this.activeDataset=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.State),s.State.prototype=Object.create(s.Base.prototype),s.State.prototype.constructor=s.State,s.UserInstruction=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.command={},this.animate=!1,this.callback=null,this.callActions("afterConstruct"),r.seal(this)},s.BaseStatic.call(s.UserInstruction),s.UserInstruction.prototype=Object.create(s.Base.prototype),s.UserInstruction.prototype.constructor=s.UserInstruction,s.Messages=function(){s.Base.call(this),this.callActions("beforeConstruct"),this.ERROR_FACTORY_INVALID_CONTAINER="[MixItUp] An invalid selector or element reference was passed to the mixitup factory function",this.ERROR_FACTORY_CONTAINER_NOT_FOUND="[MixItUp] The provided selector yielded no container element",this.ERROR_CONFIG_INVALID_ANIMATION_EFFECTS="[MixItUp] Invalid value for `animation.effects`",this.ERROR_CONFIG_INVALID_CONTROLS_SCOPE="[MixItUp] Invalid value for `controls.scope`",this.ERROR_CONFIG_INVALID_PROPERTY='[MixitUp] Invalid configuration object property "${erroneous}"${suggestion}',this.ERROR_CONFIG_INVALID_PROPERTY_SUGGESTION='. Did you mean "${probableMatch}"?',this.ERROR_CONFIG_DATA_UID_KEY_NOT_SET="[MixItUp] To use the dataset API, a UID key must be specified using `data.uidKey`",this.ERROR_DATASET_INVALID_UID_KEY='[MixItUp] The specified UID key "${uidKey}" is not present on one or more dataset items',this.ERROR_DATASET_DUPLICATE_UID='[MixItUp] The UID "${uid}" was found on two or more dataset items. UIDs must be unique.',this.ERROR_INSERT_INVALID_ARGUMENTS="[MixItUp] Please provider either an index or a sibling and position to insert, not both",this.ERROR_INSERT_PREEXISTING_ELEMENT="[MixItUp] An element to be inserted already exists in the container",this.ERROR_FILTER_INVALID_ARGUMENTS="[MixItUp] Please provide either a selector or collection `.filter()`, not both",this.ERROR_DATASET_NOT_SET="[MixItUp] To use the dataset API with pre-rendered targets, a starting dataset must be set using `load.dataset`",this.ERROR_DATASET_PRERENDERED_MISMATCH="[MixItUp] `load.dataset` does not match pre-rendered targets",this.ERROR_DATASET_RENDERER_NOT_SET="[MixItUp] To insert an element via the dataset API, a target renderer function must be provided to `render.target`",this.ERROR_SORT_NON_EXISTENT_ELEMENT="[MixItUp] An element to be sorted does not already exist in the container",this.WARNING_FACTORY_PREEXISTING_INSTANCE="[MixItUp] WARNING: This element already has an active MixItUp instance. The provided configuration object will be ignored. If you wish to perform additional methods on this instance, please create a reference.",this.WARNING_INSERT_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.insert()`",this.WARNING_REMOVE_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.remove()`",this.WARNING_MULTIMIX_INSTANCE_QUEUE_FULL="[MixItUp] WARNING: An operation was requested but the MixItUp instance was busy. The operation was rejected because the queue is full or queuing is disabled.",this.WARNING_GET_OPERATION_INSTANCE_BUSY="[MixItUp] WARNING: Operations can be be created while the MixItUp instance is busy.",this.WARNING_NO_PROMISE_IMPLEMENTATION="[MixItUp] WARNING: No Promise implementations could be found. If you wish to use promises with MixItUp please install an ES6 Promise polyfill.",this.WARNING_INCONSISTENT_SORTING_ATTRIBUTES='[MixItUp] WARNING: The requested sorting data attribute "${attribute}" was not present on one or more target elements which may product unexpected sort output',this.callActions("afterConstruct"),this.compileTemplates(),r.seal(this)}
12,s.BaseStatic.call(s.Messages),s.Messages.prototype=Object.create(s.Base.prototype),s.Messages.prototype.constructor=s.Messages,s.Messages.prototype.compileTemplates=function(){var t="",i="";for(t in this)typeof(i=this[t])=="string"&&(this[r.camelCase(t)]=r.template(i))},s.messages=new s.Messages,s.Facade=function(i){s.Base.call(this),this.callActions("beforeConstruct",arguments),this.configure=i.configure.bind(i),this.show=i.show.bind(i),this.hide=i.hide.bind(i),this.filter=i.filter.bind(i),this.toggleOn=i.toggleOn.bind(i),this.toggleOff=i.toggleOff.bind(i),this.sort=i.sort.bind(i),this.changeLayout=i.changeLayout.bind(i),this.multimix=i.multimix.bind(i),this.dataset=i.dataset.bind(i),this.tween=i.tween.bind(i),this.insert=i.insert.bind(i),this.insertBefore=i.insertBefore.bind(i),this.insertAfter=i.insertAfter.bind(i),this.prepend=i.prepend.bind(i),this.append=i.append.bind(i),this.remove=i.remove.bind(i),this.destroy=i.destroy.bind(i),this.forceRefresh=i.forceRefresh.bind(i),this.forceRender=i.forceRender.bind(i),this.isMixing=i.isMixing.bind(i),this.getOperation=i.getOperation.bind(i),this.getConfig=i.getConfig.bind(i),this.getState=i.getState.bind(i),this.callActions("afterConstruct",arguments),r.freeze(this),r.seal(this)},s.BaseStatic.call(s.Facade),s.Facade.prototype=Object.create(s.Base.prototype),s.Facade.prototype.constructor=s.Facade,n.exports=s,s.BaseStatic.call(s.constructor),s.NAME="mixitup",s.CORE_VERSION="3.3.2"})(window)})(Dc)),Dc.exports}var Ox=Fx();const im=Oa(Ox);var Lx=(function(n){var l=function(c){var s,r=c.h;if(s=[["A",/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g],["AA",/[\uA732]/g],["AE",/[\u00C6\u01FC\u01E2]/g],["AO",/[\uA734]/g],["AU",/[\uA736]/g],["AV",/[\uA738\uA73A]/g],["AY",/[\uA73C]/g],["B",/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g],["C",/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g],["D",/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g],["DZ",/[\u01F1\u01C4]/g],["Dz",/[\u01F2\u01C5]/g],["E",/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g],["F",/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g],["G",/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g],["H",/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g],["I",/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g],["J",/[\u004A\u24BF\uFF2A\u0134\u0248]/g],["K",/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g],["L",/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g],["LJ",/[\u01C7]/g],["Lj",/[\u01C8]/g],["M",/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g],["N",/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g],["NJ",/[\u01CA]/g],["Nj",/[\u01CB]/g],["O",/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g],["OI",/[\u01A2]/g],["OO",/[\uA74E]/g],["OU",/[\u0222]/g],["P",/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g],["Q",/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g],["R",/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g],["S",/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g],["T",/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g],["TZ",/[\uA728]/g],["U",/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g],["V",/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g],["VY",/[\uA760]/g],["W",/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g],["X",/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g],["Y",/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g],["Z",/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g],["a",/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g],["aa",/[\uA733]/g],["ae",/[\u00E6\u01FD\u01E3]/g],["ao",/[\uA735]/g],["au",/[\uA737]/g],["av",/[\uA739\uA73B]/g],["ay",/[\uA73D]/g],["b",/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g],["c",/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g],["d",/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g],["dz",/[\u01F3\u01C6]/g],["e",/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g],["f",/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g],["g",/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g],["h",/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g],["hv",/[\u0195]/g],["i",/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g],["j",/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g],["k",/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g],["l",/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g],["lj",/[\u01C9]/g],["m",/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g],["n",/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g],["nj",/[\u01CC]/g],["o",/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u
121ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g],["oi",/[\u01A3]/g],["ou",/[\u0223]/g],["oo",/[\uA74F]/g],["p",/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g],["q",/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g],["r",/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g],["s",/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g],["t",/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g],["tz",/[\uA729]/g],["u",/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g],["v",/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g],["vy",/[\uA761]/g],["w",/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g],["x",/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g],["y",/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g],["z",/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g]],!c.CORE_VERSION||!r.compareVersions(l.REQUIRE_CORE_VERSION,c.CORE_VERSION))throw new Error("[MixItUp Multifilter] MixItUp Multifilter v"+l.EXTENSION_VERSION+" requires at least MixItUp v"+l.REQUIRE_CORE_VERSION);c.ConfigCallbacks.registerAction("afterConstruct","multifilter",function(){this.onParseFilterGroups=null}),c.ConfigMultifilter=function(){this.enable=!1,this.logicWithinGroup="or",this.logicBetweenGroups="and",this.minSearchLength=3,this.parseOn="change",this.keyupThrottleDuration=350,r.seal(this)},c.Config.registerAction("beforeConstruct","multifilter",function(){this.multifilter=new c.ConfigMultifilter}),c.MultifilterFormEventTracker=function(){this.form=null,this.totalBound=0,this.totalHandled=0,r.seal(this)},c.FilterGroupDom=function(){this.el=null,this.form=null,r.seal(this)},c.FilterGroup=function(){this.name="",this.dom=new c.FilterGroupDom,this.activeSelectors=[],this.activeFilters=[],this.activeToggles=[],this.handler=null,this.mixer=null,this.logic="or",this.parseOn="change",this.keyupTimeout=-1,r.seal(this)},r.extend(c.FilterGroup.prototype,{init:function(t,i){var o=this,u=t.getAttribute("data-logic");o.dom.el=t,this.name=o.dom.el.getAttribute("data-filter-group")||"",o.cacheDom(),o.dom.form&&o.enableButtons(),o.mixer=i,(u&&u.toLowerCase()==="and"||i.config.multifilter.logicWithinGroup==="and")&&(o.logic="and"),o.bindEvents()},cacheDom:function(){var t=this;t.dom.form=r.closestParent(t.dom.el,"form",!0)},enableButtons:function(){var t=this,i=t.dom.form.querySelectorAll('button[type="submit"]:disabled'),o=null,u=-1;for(u=0;o=i[u];u++)o.disabled&&(o.disabled=!1)},bindEvents:function(){var t=this;t.handler=function(i){switch(i.type){case"reset":case"submit":t.handleFormEvent(i);break;default:t["handle"+r.pascalCase(i.type)](i)}},r.on(t.dom.el,"click",t.handler),r.on(t.dom.el,"change",t.handler),r.on(t.dom.el,"keyup",t.handler),t.dom.form&&(r.on(t.dom.form,"reset",t.handler),r.on(t.dom.form,"submit",t.handler))},unbindEvents:function(){var t=this;r.off(t.dom.el,"click",t.handler),r.off(t.dom.el,"change",t.handler),r.off(t.dom.el,"keyup",t.handler),t.dom.form&&(r.off(t.dom.form,"reset",t.handler),r.off(t.dom.form,"submit",t.handler)),t.handler=null},handleClick:function(t){var i=this,o=i.mixer,u=null,f=r.closestParent(t.target,"[data-filter], [data-toggle]",!0),p="",v=-1,y="";f&&((p=i.mixer.config.selectors.control)&&!f.matches(p)||(t.stopPropagation(),o.lastClicked||(o.lastClicked=f),typeof o.config.callbacks.onMixClick=="function"&&(u=o.config.callbacks.onMixClick.call(o.lastClicked,o.state,t,i),u===!1)||(f.matches("[data-filter]")?(y=f.getAttribute("data-filter"),i.activeToggles=[],i.activeSelectors=i.activeFilters=[y]):f.matches("[data-toggle]")&&(y=f.getAttribute("data-toggle"),i.activeFilters=[],(v=i.activeToggles.indexOf(y))>-1?i.activeToggles.splice(v,1):i.activeToggles.push(y),i.logic==="and"?i.activeSelectors=[i.activeToggles]:i.activeSelectors=i.activeToggles),i.updateControls(),i.mixer.config.multifilter.parseOn==="change"&&i.mixer.parseFilterGroups())))},handleChange:function(t){var i=this,o=t.target;switch(t.stopPropagation(),o.type){case"text":case"search":case"email":case"select-one":case"radio":i.getSingleValue(o);break;case"checkbox":case"select-multiple":i.getMultipleValues(o)}i.mixer.config.multifilter.parseOn==="change"&&i.mixer.parseFilterGroups()},handleKeyup:function(t){var i=this,o=t.target;
12if(!(["text","search","email"].indexOf(o.type)<0)){if(i.mixer.config.multifilter.parseOn!=="change")return void i.mixer.getSingleValue(o);clearTimeout(i.keyupTimeout),i.keyupTimeout=setTimeout(function(){i.getSingleValue(o),i.mixer.parseFilterGroups()},i.mixer.config.multifilter.keyupThrottleDuration)}},handleFormEvent:function(t){var i=this,o=null,u=null,f=-1;if(t.type==="submit"&&t.preventDefault(),t.type==="reset"&&(i.activeFilters=i.activeToggles=i.activeSelectors=[],i.updateControls()),i.mixer.multifilterFormEventTracker)o=i.mixer.multifilterFormEventTracker;else for(o=i.mixer.multifilterFormEventTracker=new c.MultifilterFormEventTracker,o.form=t.target,f=0;u=i.mixer.filterGroups[f];f++)u.dom.form===t.target&&o.totalBound++;t.target===o.form&&(o.totalHandled++,o.totalHandled===o.totalBound&&(i.mixer.multifilterFormEventTracker=null,t.type!=="submit"&&i.mixer.config.multifilter.parseOn!=="change"||i.mixer.parseFilterGroups()))},getSingleValue:function(t){var i=this,o=null,u="",f="",p="",v=-1;if(t.type.match(/text|search|email/g)){if(u=t.getAttribute("data-search-attribute"),!u)throw new Error("[MixItUp MultiFilter] A valid `data-search-attribute` must be present on text inputs");if(t.value.length<i.mixer.config.multifilter.minSearchLength)return void(i.activeSelectors=i.activeFilters=i.activeToggles=[""]);for(p=t.value.toLowerCase().trim(),v=0;o=s[v];v++)p=p.replace(o[1],o[0]);p=p.replace(/\W+/g," "),f="["+u+'*="'+p+'"]'}else f=t.value;typeof t.value=="string"&&(i.activeSelectors=i.activeToggles=i.activeFilters=f?[f]:[])},getMultipleValues:function(t){var i=this,o=[],u="",f=null,p=null,v=-1;switch(t.type){case"checkbox":u='input[type="checkbox"]';break;case"select-multiple":u="option"}for(p=i.dom.el.querySelectorAll(u),v=0;f=p[v];v++)(f.checked||f.selected)&&f.value&&o.push(f.value);i.activeFilters=[],i.activeToggles=o,i.logic==="and"?i.activeSelectors=[o]:i.activeSelectors=o},updateControls:function(t){var i=this,o=null,u="",f="",p="",v=-1;for(u=i.mixer.config.selectors.control.trim(),f=["[data-filter]"+u,"[data-toggle]"+u].join(", "),t=t||i.dom.el.querySelectorAll(f),v=0;o=t[v];v++)p=o.getAttribute("data-toggle")?"toggle":"filter",i.updateControl(o,p)},updateControl:function(t,i){var o=this,u=t.getAttribute("data-"+i),f=o.activeToggles.concat(o.activeFilters),p="";p=r.getClassname(o.mixer.config.classNames,i,o.mixer.config.classNames.modifierActive),f.indexOf(u)>-1?r.addClass(t,p):r.removeClass(t,p)},updateUi:function(){var t=this,i=t.dom.el.querySelectorAll("[data-filter], [data-toggle]"),o=t.dom.el.querySelectorAll('input[type="radio"], input[type="checkbox"], option'),u=t.activeToggles.concat(t.activeFilters),f=!1,p=null,v=-1;for(i.length&&t.updateControls(i,!0),v=0;p=o[v];v++)switch(f=u.indexOf(p.value)>-1,p.tagName.toLowerCase()){case"option":p.selected=f;break;case"input":p.checked=f}}}),c.MixerDom.registerAction("afterConstruct","multifilter",function(){this.filterGroups=[]}),c.Mixer.registerAction("afterConstruct","multifilter",function(){this.filterGroups=[],this.filterGroupsHash={},this.multifilterFormEventTracker=null}),c.Mixer.registerAction("afterCacheDom","multifilter",function(){var t=this,i=null;if(t.config.multifilter.enable){switch(t.config.controls.scope){case"local":i=t.dom.container;break;case"global":i=t.dom.document;break;default:throw new Error(c.messages.ERROR_CONFIG_INVALID_CONTROLS_SCOPE)}t.dom.filterGroups=i.querySelectorAll("[data-filter-group]")}}),c.Mixer.registerAction("beforeInitControls","multifilter",function(){var t=this;t.config.multifilter.enable&&(t.config.controls.live=!0)}),c.Mixer.registerAction("afterSanitizeConfig","multifilter",function(){var t=this;t.config.multifilter.logicBetweenGroups=t.config.multifilter.logicBetweenGroups.toLowerCase().trim(),t.config.multifilter.logicWithinGroup=t.config.multifilter.logicWithinGroup.toLowerCase().trim()}),c.Mixer.registerAction("afterAttach","multifilter",function(){var t=this;t.dom.filterGroups.length&&t.indexFilterGroups()}),c.Mixer.registerAction("afterUpdateControls","multifilter",function(){var t=this,i=null,o=-1;for(o=0;i=t.filterGroups[o];o++)i.updateControls()}),c.Mixer.registerAction("beforeDestroy","multifilter",function(){var t=this,i=null,o=-1;for(o=0;i=t.filterGroups[o];o++)i.unbindEvents()}),c.Mixer.extend({indexFilterGroups:function(){var t=this,i=null,o=null,u=-1;for(u=0;o=t.dom.filterGroups[u];u++)if(i=new c.FilterGroup,i.init(o,t),t.filterGroups.push(i),i.name){if(typeof t.filterGroupsHash[i.name]<"u")throw new Error('[MixItUp MultiFilter] A filter group with name "'+i.name+'" already exists');t.filterGroupsHash[i.name]=i}},parseParseFilterGroupsArgs:function(t){var i=this,o=new c.UserInstruction,u=null,f=-1;for(o.animate=i.config.animation.enable,o.command=new c.CommandFilter,f=0;f<t.length;f++)u=t[f],typeof u=="boolean"?o.animate=u:typeof u=="function"&&(o.callback=u);return r.freeze(o),o},getFilterGroupPaths:function(){var t=this,i=null,o=null,u=null,f=[],p=[],v=[],y=-1;for(y=0;y<t.filterGroups.length;y++)(u=t.filterGroups[y].activeSelectors).length&&(f.push(u),v.push(0));return i=function(){var S=null,D=[],F=-1;for(F=0;F<f.length;F++)S=f[F][v[F]],Array.isArray(S)&&(S=S.join("")),D.push(S);D=r.clean(D),p.push(D)},o=function(S){S=S||0;for(var D=f[S];v[S]<D.length;)S<f.length-1?o(S+1):i(),v[S]++;v[S]=0}
12,f.length?(o(),p):""},buildSelectorFromPaths:function(t){var i=this,o=null,u=[],f="",p="",v=-1;if(!t.length)return"";if(i.config.multifilter.logicBetweenGroups==="or"&&(p=", "),t.length>1){for(v=0;v<t.length;v++)o=t[v],f=o.join(p),u.indexOf(f)<0&&u.push(f);return u.join(", ")}return t[0].join(p)},parseFilterGroups:function(){var t=this,i=t.parseFilterArgs(arguments),o=t.getFilterGroupPaths(),u=t.buildSelectorFromPaths(o),f=null,p={};return u===""&&(u=t.config.controls.toggleDefault),i.command.selector=u,p.filter=i.command,typeof(f=t.config.callbacks.onParseFilterGroups)=="function"&&(p=f(p)),t.multimix(p,i.animate,i.callback)},setFilterGroupSelectors:function(t,i){var o=this,u=null;if(i=Array.isArray(i)?i:[i],typeof(u=o.filterGroupsHash[t])>"u")throw new Error('[MixItUp MultiFilter] No filter group could be found with the name "'+t+'"');u.activeToggles=i.slice(),u.logic==="and"?u.activeSelectors=[u.activeToggles]:u.activeSelectors=u.activeToggles,u.updateUi(u.activeToggles)},getFilterGroupSelectors:function(t){var i=this,o=null;if(typeof(o=i.filterGroupsHash[t])>"u")throw new Error('[MixItUp MultiFilter] No filter group could be found with the name "'+t+'"');return o.activeSelectors.slice()}}),c.Facade.registerAction("afterConstruct","multifilter",function(t){this.parseFilterGroups=t.parseFilterGroups.bind(t),this.setFilterGroupSelectors=t.setFilterGroupSelectors.bind(t),this.getFilterGroupSelectors=t.getFilterGroupSelectors.bind(t)})};return l.TYPE="mixitup-extension",l.NAME="mixitup-multifilter",l.EXTENSION_VERSION="3.3.6",l.REQUIRE_CORE_VERSION="^3.1.2",l})();im.use(Lx);window.mixitup=im;var of=!1,af=!1,So=[],sf=-1,$f=!1;function Mx(n){Px(n)}function Ix(){$f=!0}function Rx(){$f=!1,nm()}function Px(n){So.includes(n)||So.push(n),nm()}function Bx(n){let l=So.indexOf(n);l!==-1&&l>sf&&So.splice(l,1)}function nm(){if(!af&&!of){if($f)return;of=!0,queueMicrotask(Nx)}}function Nx(){of=!1,af=!0;for(let n=0;n<So.length;n++)So[n](),sf=n;So.length=0,sf=-1,af=!1}var La,Ro,Ma,rm,lf=!0;function Hx(n){lf=!1,n(),lf=!0}function zx(n){La=n.reactive,Ma=n.release,Ro=l=>n.effect(l,{scheduler:c=>{lf?Mx(c):c()}}),rm=n.raw}function sp(n){Ro=n}function jx(n){let l=()=>{};return[s=>{let r=Ro(s);return n._x_effects||(n._x_effects=new Set,n._x_runEffects=()=>{n._x_effects.forEach(t=>t())}),n._x_effects.add(r),l=()=>{r!==void 0&&(n._x_effects.delete(r),Ma(r))},r},()=>{l()}]}function om(n,l){let c=!0,s,r,t=Ro(()=>{let i=n(),o=JSON.stringify(i);if(!c&&(typeof i=="object"||i!==s)){let u=typeof s=="object"?JSON.parse(r):s;queueMicrotask(()=>{l(i,u)})}s=i,r=o,c=!1});return()=>Ma(t)}async function Wx(n){Ix();try{await n(),await Promise.resolve()}finally{Rx()}}var am=[],sm=[],lm=[];function $x(n){lm.push(n)}function qf(n,l){typeof l=="function"?(n._x_cleanups||(n._x_cleanups=[]),n._x_cleanups.push(l)):(l=n,sm.push(l))}function um(n){am.push(n)}function cm(n,l,c){n._x_attributeCleanups||(n._x_attributeCleanups={}),n._x_attributeCleanups[l]||(n._x_attributeCleanups[l]=[]),n._x_attributeCleanups[l].push(c)}function fm(n,l){n._x_attributeCleanups&&Object.entries(n._x_attributeCleanups).forEach(([c,s])=>{(l===void 0||l.includes(c))&&(s.forEach(r=>r()),delete n._x_attributeCleanups[c])})}function qx(n){for(n._x_effects?.forEach(Bx);n._x_cleanups?.length;)n._x_cleanups.pop()()}var Uf=new MutationObserver(Kf),Gf=!1;function Xf(){Uf.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Gf=!0}function dm(){Ux(),Uf.disconnect(),Gf=!1}var As=[];function Ux(){let n=Uf.takeRecords();As.push(()=>n.length>0&&Kf(n));let l=As.length;queueMicrotask(()=>{if(As.length===l)for(;As.length>0;)As.shift()()})}function wi(n){if(!Gf)return n();dm();let l=n();return Xf(),l}var Yf=!1,fu=[];function Gx(){Yf=!0}function Xx(){Yf=!1,Kf(fu),fu=[]}function Kf(n){if(Yf){fu=fu.concat(n);return}let l=[],c=new Set,s=new Map,r=new Map;for(let t=0;t<n.length;t++)if(!n[t].target._x_ignoreMutationObserver&&(n[t].type==="childList"&&(n[t].removedNodes.forEach(i=>{i.nodeType===1&&i._x_marker&&c.add(i)}),n[t].addedNodes.forEach(i=>{if(i.nodeType===1){if(c.has(i)){c.delete(i);return}i._x_marker||l.push(i)}})),n[t].type==="attributes")){let i=n[t].target,o=n[t].attributeName,u=n[t].oldValue,f=()=>{s.has(i)||s.set(i,[]),s.get(i).push({name:o,value:i.getAttribute(o)})},p=()=>{r.has(i)||r.set(i,[]),r.get(i).push(o)};i.hasAttribute(o)&&u===null?f():i.hasAttribute(o)?(p(),f()):p()}r.forEach((t,i)=>{fm(i,t)}
vendor: 15,185 bytes, lines 12-16
12),s.forEach((t,i)=>{am.forEach(o=>o(i,t))});for(let t of c)l.some(i=>i.contains(t))||sm.forEach(i=>i(t));for(let t of l)t.isConnected&&lm.forEach(i=>i(t));l=null,c=null,s=null,r=null}function hm(n){return Lo(Oo(n))}function tl(n,l,c){return n._x_dataStack=[l,...Oo(c||n)],()=>{n._x_dataStack=n._x_dataStack.filter(s=>s!==l)}}function Oo(n){return n._x_dataStack?n._x_dataStack:typeof ShadowRoot=="function"&&n instanceof ShadowRoot?Oo(n.host):n.parentNode?Oo(n.parentNode):[]}function Lo(n){return new Proxy({objects:n},Yx)}function pm(n,l){return n===null||n===Object.prototype?null:Object.prototype.hasOwnProperty.call(n,l)?n:pm(Object.getPrototypeOf(n),l)}var Yx={ownKeys({objects:n}){return Array.from(new Set(n.flatMap(l=>Object.keys(l))))},has({objects:n},l){return l==Symbol.unscopables?!1:n.some(c=>Object.prototype.hasOwnProperty.call(c,l)||Reflect.has(c,l))},get({objects:n},l,c){return l=="toJSON"?Kx:Reflect.get(n.find(s=>Reflect.has(s,l))||{},l,c)},set({objects:n},l,c,s){let r;for(const i of n)if(r=pm(i,l),r)break;r||(r=n[n.length-1]);const t=Object.getOwnPropertyDescriptor(r,l);return t?.set&&t?.get?t.set.call(s,c)||!0:Reflect.set(r,l,c)}};function Kx(){return Reflect.ownKeys(this).reduce((l,c)=>(l[c]=Reflect.get(this,c),l),{})}function Vf(n){let l=s=>typeof s=="object"&&!Array.isArray(s)&&s!==null,c=(s,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(s)).forEach(([t,{value:i,enumerable:o}])=>{if(o===!1||i===void 0||typeof i=="object"&&i!==null&&i.__v_skip)return;let u=r===""?t:`${r}.${t}`;typeof i=="object"&&i!==null&&i._x_interceptor?s[t]=i.initialize(n,u,t):l(i)&&i!==s&&!(i instanceof Element)&&c(i,u)})};return c(n)}function gm(n,l=()=>{}){let c={initialValue:void 0,_x_interceptor:!0,initialize(s,r,t){return n(this.initialValue,()=>Vx(s,r),i=>uf(s,r,i),r,t)}};return l(c),s=>{if(typeof s=="object"&&s!==null&&s._x_interceptor){let r=c.initialize.bind(c);c.initialize=(t,i,o)=>{let u=s.initialize(t,i,o);return c.initialValue=u,r(t,i,o)}}else c.initialValue=s;return c}}function Vx(n,l){return l.split(".").reduce((c,s)=>c[s],n)}function uf(n,l,c){if(typeof l=="string"&&(l=l.split(".")),l.length===1)n[l[0]]=c;else{if(l.length===0)throw error;return n[l[0]]||(n[l[0]]={}),uf(n[l[0]],l.slice(1),c)}}var mm={};function Yn(n,l){mm[n]=l}function Gs(n,l){let c=Zx(l);return Object.entries(mm).forEach(([s,r])=>{Object.defineProperty(n,`$${s}`,{get(){return r(l,c)},enumerable:!1})}),n}function Zx(n){let[l,c]=Em(n),s={interceptor:gm,...l};return qf(n,c),s}function Qx(n,l,c,...s){try{return c(...s)}catch(r){Xs(r,n,l)}}function Xs(...n){return vm(...n)}var vm=ew;function Jx(n){vm=n}function ew(n,l,c=void 0){n=Object.assign(n??{message:"No error message given."},{el:l,expression:c}),console.warn(`Alpine Expression Error: ${n.message}
13
14${c?'Expression: "'+c+`"
15
16`:""}`,l),setTimeout(()=>{throw n},0)}var Ca=!0;function ym(n){let l=Ca;Ca=!1;let c=n();return Ca=l,c}function Do(n,l,c={}){let s;return un(n,l)(r=>s=r,c),s}function un(...n){return bm(...n)}var bm=()=>{};function tw(n){bm=n}var xm;function iw(n){xm=n}function nw(n,l){let c={};Gs(c,n);let s=[c,...Oo(n)],r=typeof l=="function"?rw(s,l):aw(s,l,n);return Qx.bind(null,n,l,r)}function rw(n,l){return(c=()=>{},{scope:s={},params:r=[],context:t}={})=>{if(!Ca){Ys(c,l,Lo([s,...n]),r);return}let i=l.apply(Lo([s,...n]),r);Ys(c,i)}}var Ac={};function ow(n,l){if(Ac[n])return Ac[n];let c=Object.getPrototypeOf(async function(){}).constructor,s=/^[\n\s]*if.*\(.*\)/.test(n.trim())||/^(let|const)\s/.test(n.trim())?`(async()=>{ ${n} })()`:n,t=(()=>{try{let i=new c(["__self","scope"],`with (scope) { __self.result = ${s} }; __self.finished = true; return __self.result;`);return Object.defineProperty(i,"name",{value:`[Alpine] ${n}`}),i}catch(i){return Xs(i,l,n),Promise.resolve()}})();return Ac[n]=t,t}function aw(n,l,c){let s=ow(l,c);return(r=()=>{},{scope:t={},params:i=[],context:o}={})=>{s.result=void 0,s.finished=!1;let u=Lo([t,...n]);if(typeof s=="function"){let f=s.call(o,s,u).catch(p=>Xs(p,c,l));s.finished?(Ys(r,s.result,u,i,c),s.result=void 0):f.then(p=>{Ys(r,p,u,i,c)}).catch(p=>Xs(p,c,l)).finally(()=>s.result=void 0)}}}function Ys(n,l,c,s,r){if(Ca&&typeof l=="function"){let t=l.apply(c,s);t instanceof Promise?t.then(i=>Ys(n,i,c,s)).catch(i=>Xs(i,r,l)):n(t)}else typeof l=="object"&&l instanceof Promise?l.then(t=>n(t)):n(l)}function sw(...n){return xm(...n)}function lw(n,l,c={}){let s={};Gs(s,n);let r=[s,...Oo(n)],t=Lo([c.scope??{},...r]),i=c.params??[];if(l.includes("await")){let o=Object.getPrototypeOf(async function(){}).constructor,u=/^[\n\s]*if.*\(.*\)/.test(l.trim())||/^(let|const)\s/.test(l.trim())?`(async()=>{ ${l} })()`:l;return new o(["scope"],`with (scope) { let __result = ${u}; return __result }`).call(c.context,t)}else{let o=/^[\n\s]*if.*\(.*\)/.test(l.trim())||/^(let|const)\s/.test(l.trim())?`(()=>{ ${l} })()`:l,f=new Function(["scope"],`with (scope) { let __result = ${o}; return __result }`).call(c.context,t);return typeof f=="function"&&Ca?f.apply(t,i):f}}var Zf="x-";function Ia(n=""){return Zf+n}function uw(n){Zf=n}var du={};function Ti(n,l){return du[n]=l,{before(c){if(!du[c]){console.warn(String.raw`Cannot find directive \`${c}\`. \`${n}\` will use the default order of execution`);return}const s=Co.indexOf(c);Co.splice(s>=0?s:Co.indexOf("DEFAULT"),0,n)}}}function cw(n){return Object.keys(du).includes(n)}function Qf(n,l,c){if(l=Array.from(l),n._x_virtualDirectives){let t=Object.entries(n._x_virtualDirectives).map(([o,u])=>({name:o,value:u})),i=wm(t);t=t.map(o=>i.find(u=>u.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),l=l.concat(t)}let s={};return l.map(Am((t,i)=>s[t]=i)).filter(km).map(hw(s,c)).sort(pw).map(t=>dw(n,t))}function wm(n){return Array.from(n).map(Am()).filter(l=>!km(l))}var cf=!1,Ms=new Map,Cm=Symbol();function fw(n){cf=!0;let l=Symbol();Cm=l,Ms.set(l,[]);let c=()=>{for(;Ms.get(l).length;)Ms.get(l).shift()();Ms.delete(l)},s=()=>{cf=!1,c()};n(c),s()}function Em(n){let l=[],c=o=>l.push(o),[s,r]=jx(n);return l.push(r),[{Alpine:Pa,effect:s,cleanup:c,evaluateLater:un.bind(un,n),evaluate:Do.bind(Do,n)},()=>l.forEach(o=>o())]}function dw(n,l){let c=()=>{},s=du[l.type]||c,[r,t]=Em(n);cm(n,l.original,t);let i=()=>{n._x_ignore||n._x_ignoreSelf||(s.inline&&s.inline(n,l,r),s=s.bind(s,n,l,r),cf?Ms.get(Cm).push(s):s())};return i.runCleanups=t,i}var Sm=(n,l)=>({name:c,value:s})=>(c.startsWith(n)&&(c=c.replace(n,l)),{name:c,value:s}),Dm=n=>n;function Am(n=()=>{}){return({name:l,value:c})=>{let{name:s,value:r}=_m.reduce((t,i)=>i(t),{name:l,value:c});return s!==l&&n(s,l),{name:s,value:r}}}var _m=[];function Jf(n){_m.push(n)}function km({name:n}){return Tm().test(n)}var Tm=()=>new RegExp(`^${Zf}([^:^.]+)\\b`);function hw(n,l){return({name:c,value:s})=>{c===s&&(s="");let r=c.match(Tm()),t=c.match(/:([a-zA-Z0-9\-_:]+)/),i=c.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],o=l||n[c]||c;return{type:r?r[1]:null,value:t?t[1]:null,modifiers:i.map(u=>u.replace(".","")),expression:s,original:o}}}var ff="DEFAULT",Co=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",ff,"teleport"];function pw(n,l){let c=Co.indexOf(n.type)===-1?ff:n.type,s=Co.indexOf(l.type)===-1?ff:l.type;return Co.indexOf(c)-Co.indexOf(s)}function Bs(n,l,c={},s={}){return n.dispatchEvent(new CustomEvent(l,{detail:c,bubbles:!0,composed:!0,cancelable:!0,...s}))}function Mo(n,l){if(typeof ShadowRoot=="function"&&n instanceof ShadowRoot){Array.from(n.children).forEach(r=>Mo(r,l));return}let c=!1;if(l(n,()=>c=!0),c)return;let s=n.firstElementChild;for(;s;)Mo(s,l),s=s.nextElementSibling}function lr(n,...l){console.warn(`Alpine Warning: ${n}`,...l)}var lp=!1;function gw(){lp&&lr("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),lp=!0,document.body||lr("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Bs(document,"alpine:init"),Bs(document,"alpine:initializing"),Xf(),$x(l=>Sr(l,Mo)),qf(l=>Ra(l)),um((l,c)=>{Qf(l,c).forEach(s=>s())});let n=l=>!Su(l.parentElement,!0);Array.from(document.querySelectorAll(Lm().join(","))).filter(n).forEach(l=>{Sr(l)}),Bs(document,"alpine:initialized"),setTimeout(()=>{bw()})}var ed=[],Fm=[];function Om(){return ed.map(n=>n())}function Lm(){return ed.concat(Fm).map(n=>n())}function Mm(n){ed.push(n)}function Im(n){Fm.push(n)}function Su(n,l=!1){return Cr(n,c=>{if((l?Lm():Om()).some(r=>c.matches(r)))return!0})}function Cr(n,l){if(n){if(l(n))return n;if(n._x_teleportBack)return Cr(n._x_teleportBack,l);if(n.parentNode instanceof ShadowRoot)return Cr(n.parentNode.host,l);if(n.parentElement)return Cr(n.parentElement,l)}}function mw(n){return Om().some(l=>n.matches(l))}var Rm=[];function vw(n){Rm.push(n)}var yw=1;function Sr(n,l=Mo,c=()=>{}){Cr(n,s=>s._x_ignore)||fw(()=>{l(n,(s,r)=>{s._x_marker||(c(s,r),Rm.forEach(t=>t(s,r)),Qf(s,s.attributes).forEach(t=>t()),s._x_ignore||(s._x_marker=yw++),s._x_ignore&&r())})})}function Ra(n,l=Mo){l(n,c=>{qx(c),fm(c),delete c._x_marker})}function bw(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([l,c,s])=>{cw(c)||s.some(r=>{if(document.querySelector(r))return lr(`found "${r}", but missing ${l} plugin`),!0})})}var df=[],td=!1;function id(n=()=>{}){return queueMicrotask(()=>{td||setTimeout(()=>{hf()})}),new Promise(l=>{df.push(()=>{n(),l()})})}function hf(){for(td=!1;df.length;)df.shift()()}function xw(){td=!0}function nd(n,l){return Array.isArray(l)?up(n,l.join(" ")):typeof l=="object"&&l!==null?ww(n,l):typeof l=="function"?nd(n,l()):up(n,l)}function pf(n){return n.split(/\s/).filter(Boolean)}function up(n,l){let c=r=>pf(r).filter(t=>!n.classList.contains(t)).filter(Boolean),s=r=>(n.classList.add(...r),()=>{n.classList.remove(...r)});return l=l===!0?l="":l||"",s(c(l))}function ww(n,l){let c=Object.entries(l).flatMap(([i,o])=>o?pf(i):!1).filter(Boolean),s=Object.entries(l).flatMap(([i,o])=>o?!1:pf(i)).filter(Boolean),r=[],t=[];return s.forEach(i=>{n.classList.contains(i)&&(n.classList.remove(i),t.push(i))}),c.forEach(i=>{n.classList.contains(i)||(n.classList.add(i),r.push(i))}),()=>{t.forEach(i=>n.classList.add(i)),r.forEach(i=>n.classList.remove(i))}}function Du(n,l){return typeof l=="object"&&l!==null?Cw(n,l):Ew(n,l)}function Cw(n,l){let c={};return Object.entries(l).forEach(([s,r])=>{c[s]=n.style[s],s.startsWith("--")||(s=Sw(s)),n.style.setProperty(s,r)}),setTimeout(()=>{n.style.length===0&&n.removeAttribute("style")}),()=>{Du(n,c)}}function Ew(n,l){let c=n.getAttribute("style",l);return n.setAttribute("style",l),()=>{n.setAttribute("style",c||"")}}function Sw(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function gf(n,l=()=>{}){let c=!1;return function(){c?l.apply(this,arguments):(c=!0,n.apply(this,arguments))}}Ti("transition",(n,{value:l,modifiers:c,expression:s},{evaluate:r})=>{typeof s=="function"&&(s=r(s)),s!==!1&&(!s||typeof s=="boolean"?Aw(n,c,l):Dw(n,s,l))});function Dw(n,l,c){Pm(n,nd,""),{enter:r=>{n._x_transition.enter.during=r},"enter-start":r=>{n._x_transition.enter.start=r},"enter-end":r=>{n._x_transition.enter.end=r},leave:r=>{n._x_transition.leave.during=r},"leave-start":r=>{n._x_transition.leave.start=r},"leave-end":r=>{n._x_transition.leave.end=r}}[c](l)}function Aw(n,l,c){Pm(n,Du);let s=!l.includes("in")&&!l.includes("out")&&!c,r=s||l.includes("in")||["enter"].includes(c),t=s||l.includes("out")||["leave"].includes(c);l.includes("in")&&!s&&(l=l.filter((A,L)=>L<l.indexOf("out"))),l.includes("out")&&!s&&(l=l.filter((A,L)=>L>l.indexOf("out")));let i=!l.includes("opacity")&&!l.includes("scale"),o=i||l.includes("opacity"),u=i||l.includes("scale"),f=o?0:1,p=u?_s(l,"scale",95)/100:1,v=_s(l,"delay",0)/1e3,y=_s(l,"origin","center"),S="opacity, transform",D=_s(l,"duration",150)/1e3,F=_s(l,"duration",75)/1e3,M="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(n._x_transition.enter.during={transformOrigin:y,transitionDelay:`${v}s`,transitionProperty:S,transitionDuration:`${D}s`,transitionTimingFunction:M},n._x_transition.enter.start={opacity:f,transform:`scale(${p})`},n._x_transition.enter.end={opacity:1,transform:"scale(1)"}),t&&(n._x_transition.leave.during={transformOrigin:y,transitionDelay:`${v}s`,transitionProperty:S,transitionDuration:`${F}s`,transitionTimingFunction:M},n._x_transition.leave.start={opacity:1,transform:"scale(1)"},n._x_transition.leave.end={opacity:f,transform:`scale(${p})`})}function Pm(n,l,c={}){n._x_transition||(n._x_transition={enter:{during:c,start:c,end:c},leave:{during:c,start:c,end:c},in(s=()=>{},r=()=>{}){mf(n,l,{during:this.enter.during,start:this.enter.start,end:this.enter.end},s,r)},out(s=()=>{},r=()=>{}){mf(n,l,{during:this.leave.during,start:this.leave.start,end:this.leave.end},s,r)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(n,l,c,s){const r=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let t=()=>r(c);if(l){n._x_transition&&(n._x_transition.enter||n._x_transition.leave)?n._x_transition.enter&&(Object.entries(n._x_transition.enter.during).length||Object.entries(n._x_transition.enter.start).length||Object.entries(n._x_transition.enter.end).length)?n._x_transition.in(c):t():n._x_transition?n._x_transition.in(c):t();return}n._x_hidePromise=n._x_transition?new Promise((i,o)=>{n._x_transition.out(()=>{},()=>i(s)),n._x_transitioning&&n._x_transitioning.beforeCancel(()=>o({isFromCancelledTransition:!0}))}):Promise.resolve(s),queueMicrotask(()=>{let i=Bm(n);i?(i._x_hideChildren||(i._x_hideChildren=[]),i._x_hideChildren.push(n)):r(()=>{let o=u=>{let f=Promise.all([u._x_hidePromise,...(u._x_hideChildren||[]).map(o)]).then(([p])=>p?.());return delete u._x_hidePromise,delete u._x_hideChildren,f};o(n).catch(u=>{if(!u.isFromCancelledTransition)throw u})})})};function Bm(n){let l=n.parentNode;if(l)return l._x_hidePromise?l:Bm(l)}function mf(n,l,{during:c,start:s,end:r}={},t=()=>{},i=()=>{}){if(n._x_transitioning&&n._x_transitioning.cancel(),Object.keys(c).length===0&&Object.keys(s).length===0&&Object.keys(r).length===0){t(),i();return}let o,u,f;_w(n,{start(){o=l(n,s)},during(){u=l(n,c)},before:t,end(){o(),f=l(n,r)},after:i,cleanup(){u(),f()}})}function _w(n,l){let c,s,r,t=gf(()=>{wi(()=>{c=!0,s||l.before(),r||(l.end(),hf()),l.after(),n.isConnected&&l.cleanup(),delete n._x_transitioning})});n._x_transitioning={beforeCancels:[],beforeCancel(i){this.beforeCancels.push(i)},cancel:gf(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();t()}),finish:t},wi(()=>{l.start(),l.during()}),xw(),requestAnimationFrame(()=>{if(c)return;let i=Number(getComputedStyle(n).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,o=Number(getComputedStyle(n).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;i===0&&(i=Number(getComputedStyle(n).animationDuration.replace("s",""))*1e3),wi(()=>{l.before()}),s=!0,requestAnimationFrame(()=>{c||(wi(()=>{l.end()}),hf(),setTimeout(n._x_transitioning.finish,i+o),r=!0)})})}function _s(n,l,c){if(n.indexOf(l)===-1)return c;const s=n[n.indexOf(l)+1];if(!s||l==="scale"&&isNaN(s))return c;if(l==="duration"||l==="delay"){let r=s.match(/([0-9]+)ms/);if(r)return r[1]}
16return l==="origin"&&["top","right","left","center","bottom"].includes(n[n.indexOf(l)+2])?[s,n[n.indexOf(l)+2]].join(" "):s}var Vr=!1;function Qr(n,l=()=>{}){return(...c)=>Vr?l(...c):n(...c)}function kw(n){return(...l)=>Vr&&n(...l)}var Nm=[];function Au(n){Nm.push(n)}function Tw(n,l){Nm.forEach(c=>c(n,l)),Vr=!0,Hm(()=>{Sr(l,(c,s)=>{s(c,()=>{})})}),Vr=!1}var vf=!1;function Fw(n,l){l._x_dataStack||(l._x_dataStack=n._x_dataStack),Vr=!0,vf=!0,Hm(()=>{Ow(l)}),Vr=!1,vf=!1}function Ow(n){let l=!1;Sr(n,(s,r)=>{Mo(s,(t,i)=>{if(l&&mw(t))return i();l=!0,r(t,i)})})}function Hm(n){let l=Ro;sp((c,s)=>{let r=l(c);return Ma(r),()=>{}}),n(),sp(l)}function zm(n,l,c,s=[]){switch(n._x_bindings||(n._x_bindings=La({})),n._x_bindings[l]=c,l=s.includes("camel")?Hw(l):l,l){case"value":Lw(n,c);break;case"style":Iw(n,c);break;case"class":Mw(n,c);break;case"selected":case"checked":Rw(n,l,c);break;default:jm(n,l,c);break}}function Lw(n,l){if(rd(n))n.attributes.value===void 0&&(n.value=l);else if(hu(n))Number.isInteger(l)?n.value=l:!Array.isArray(l)&&typeof l!="boolean"&&![null,void 0].includes(l)?n.value=String(l):Array.isArray(l)?n.checked=l.some(c=>zw(c,n.value)):n.checked=!!l;else if(n.tagName==="SELECT")Nw(n,l);else{if(n.value===l)return;n.value=l===void 0?"":l}}function Mw(n,l){n._x_undoAddedClasses&&n._x_undoAddedClasses(),n._x_undoAddedClasses=nd(n,l)}function Iw(n,l){n._x_undoAddedStyles&&n._x_undoAddedStyles(),n._x_undoAddedStyles=Du(n,l)}function Rw(n,l,c){jm(n,l,c),Bw(n,l,c)}function jm(n,l,c){[null,void 0,!1].includes(c)&&Ww(l)?n.removeAttribute(l):(Wm(l)&&(c=l),Pw(n,l,c))}function Pw(n,l,c){n.getAttribute(l)!=c&&n.setAttribute(l,c)}function Bw(n,l,c){n[l]!==c&&(n[l]=c)}function Nw(n,l){const c=[].concat(l).map(s=>s+"");Array.from(n.options).forEach(s=>{s.selected=c.includes(s.value)})}function Hw(n){return n.toLowerCase().replace(/-(\w)/g,(l,c)=>c.toUpperCase())}function zw(n,l){return n==l}function Jl(n){return[1,"1","true","on","yes",!0].includes(n)?!0:[0,"0","false","off","no",!1].includes(n)?!1:n?!!n:null}var jw=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function Wm(n){return jw.has(n)}function Ww(n){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(n)}function $w(n,l,c){return n._x_bindings&&n._x_bindings[l]!==void 0?n._x_bindings[l]:$m(n,l,c)}function qw(n,l,c,s=!0){if(n._x_bindings&&n._x_bindings[l]!==void 0)return n._x_bindings[l];if(n._x_inlineBindings&&n._x_inlineBindings[l]!==void 0){let r=n._x_inlineBindings[l];return r.extract=s,ym(()=>Do(n,r.expression))}return $m(n,l,c)}function $m(n,l,c){let s=n.getAttribute(l);return s===null?typeof c=="function"?c():c:s===""?!0:Wm(l)?!![l,"true"].includes(s):s}function hu(n){return n.type==="checkbox"||n.localName==="ui-checkbox"||n.localName==="ui-switch"}function rd(n){return n.type==="radio"||n.localName==="ui-radio"}function qm(n,l){let c;return function(){const s=this,r=arguments,t=function(){c=null,n.apply(s,r)};clearTimeout(c),c=setTimeout(t,l)}}function Um(n,l){let c;return function(){let s=this,r=arguments;c||(n.apply(s,r),c=!0,setTimeout(()=>c=!1,l))}}function Gm({get:n,set:l},{get:c,set:s}){let r=!0,t,i=Ro(()=>{let o=n(),u=c();if(r)s(_c(o)),r=!1;else{let f=JSON.stringify(o),p=JSON.stringify(u);f!==t?s(_c(o)):f!==p&&l(_c(u))}t=JSON.stringify(n()),JSON.stringify(c())});return()=>{Ma(i)}}function _c(n){return typeof n=="object"?JSON.parse(JSON.stringify(n)):n}function Uw(n){(Array.isArray(n)?n:[n]).forEach(c=>c(Pa))}var yo={},cp=!1;function Gw(n,l){if(cp||(yo=La(yo),cp=!0),l===void 0)return yo[n];yo[n]=l,Vf(yo[n]),typeof l=="object"&&l!==null&&l.hasOwnProperty("init")&&typeof l.init=="function"&&yo[n].init()}function Xw(){return yo}var Xm={};function Yw(n,l){let c=typeof l!="function"?()=>l:l;return n instanceof Element?Ym(n,c()):(Xm[n]=c,()=>{})}function Kw(n){return Object.entries(Xm).forEach(([l,c])=>{Object.defineProperty(n,l,{get(){return(...s)=>c(...s)}})}),n}function Ym(n,l,c){let s=[];for(;s.length;)s.pop()();let r=Object.entries(l).map(([i,o])=>({name:i,value:o})),t=wm(r);return r=r.map(i=>t.find(o=>o.name===i.name)?{name:`x-bind:${i.name}`,value:`"${i.value}"`}:i),Qf(n,r,c).map(i=>{s.push(i.runCleanups),i()}),()=>{for(;s.length;)s.pop()()}}var Km={};function Vw(n,l){Km[n]=l}function Zw(n,l){return Object.entries(Km).forEach(([c,s])=>{Object.defineProperty(n,c,{get(){return(...r)=>s.bind(l)(...r)},enumerable:!1})}),n}var Qw={get reactive(){return La},get release(){return Ma},get effect(){return Ro},get raw(){return rm},get transaction(){return Wx},version:"3.15.12",flushAndStopDeferringMutations:Xx,dontAutoEvaluateFunctions:ym,disableEffectScheduling:Hx,startObservingMutations:Xf,stopObservingMutations:dm,setReactivityEngine:zx,onAttributeRemoved:cm,onAttributesAdded:um,closestDataStack:Oo,skipDuringClone:Qr,onlyDuringClone:kw,addRootSelector:Mm,addInitSelector:Im,setErrorHandler:Jx,interceptClone:Au,addScopeToNode:tl,deferMutations:Gx,mapAttributes:Jf,evaluateLater:un,interceptInit:vw,initInterceptors:Vf,injectMagics:Gs,setEvaluator:tw,setRawEvaluator:iw,mergeProxies:Lo,extractProp:qw,findClosest:Cr,onElRemoved:qf,closestRoot:Su,destroyTree:Ra,interceptor:gm,transition:mf,setStyles:Du,mutateDom:wi,directive:Ti,entangle:Gm,throttle:Um,debounce:qm,evaluate:Do,evaluateRaw:sw,initTree:Sr,nextTick:id,prefixed:Ia,prefix:uw,plugin:Uw,magic:Yn,store:Gw,start:gw,clone:Fw,cloneNode:Tw,bound:$w,$data:hm,watch:om,walk:Mo,data:Vw,bind:Yw},Pa=Qw;function Jw(n,l){const c=Object.create(null),s=n.split(",");for(let r=0;r<s.length;r++)c[s[r]]=!0;return r=>!!c[r]}var e1=Object.freeze({}),t1=Object.prototype.hasOwnProperty,_u=(n,l)=>t1.call(n,l),Ao=Array.isArray,Ns=n=>Vm(n)==="[object Map]",i1=n=>typeof n=="string",od=n=>typeof n=="symbol",ku=n=>n!==null&&typeof n=="object",n1=Object.prototype.toString,Vm=n=>n1.call(n),Zm=n=>Vm(n).slice(8,-1),ad=n=>i1(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,r1=n=>{const l=Object.create(null);return c=>l[c]||(l[c]=n(c))},o1=r1(n=>n.charAt(0).toUpperCase()+n.slice(1)),Qm=(n,l)=>n!==l&&(n===n||l===l),yf=new WeakMap,ks=[],or,_o=Symbol("iterate"),bf=Symbol("Map key iterate");function a1(n){return n&&n._isEffect===!0}function s1(n,l=e1){a1(n)&&(n=n.raw);const c=c1(n,l);return l.lazy||c(),c}function l1(n){n.active&&(Jm(n),n.options.onStop&&n.options.onStop(),n.active=!1)}var u1=0;function c1(n,l){const c=function(){if(!c.active)return n();if(!ks.includes(c)){Jm(c);try{return d1(),ks.push(c),or=c,n()}finally{ks.pop(),ev(),or=ks[ks.length-1]}}};return c.id=u1++,c.allowRecurse=!!l.allowRecurse,c._isEffect=!0,c.active=!0,c.raw=n,c.deps=[],c.options=l,c}function Jm(n){const{deps:l}=n;if(l.length){for(let c=0;c<l.length;c++)l[c].delete(n);l.length=0}}var _a=!0,sd=[];function f1(){sd.push(_a),_a=!1}function d1(){sd.push(_a),_a=!0}function ev(){const n=sd.pop();_a=n===void 0?!0:n}function Xn(n,l,c){if(!_a||or===void 0)return;let s=yf.get(n);s||yf.set(n,s=new Map);let r=s.get(c);r||s.set(c,r=new Set),r.has(or)||(r.add(or),or.deps.push(r),or.options.onTrack&&or.options.onTrack({effect:or,target:n,type:l,ke
16y:c}))}function Zr(n,l,c,s,r,t){const i=yf.get(n);if(!i)return;const o=new Set,u=p=>{p&&p.forEach(v=>{(v!==or||v.allowRecurse)&&o.add(v)})};if(l==="clear")i.forEach(u);else if(c==="length"&&Ao(n))i.forEach((p,v)=>{(v==="length"||v>=s)&&u(p)});else switch(c!==void 0&&u(i.get(c)),l){case"add":Ao(n)?ad(c)&&u(i.get("length")):(u(i.get(_o)),Ns(n)&&u(i.get(bf)));break;case"delete":Ao(n)||(u(i.get(_o)),Ns(n)&&u(i.get(bf)));break;case"set":Ns(n)&&u(i.get(_o));break}const f=p=>{p.options.onTrigger&&p.options.onTrigger({effect:p,target:n,key:c,type:l,newValue:s,oldValue:r,oldTarget:t}),p.options.scheduler?p.options.scheduler(p):p()};o.forEach(f)}var h1=Jw("__proto__,__v_isRef,__isVue"),tv=new Set(Object.getOwnPropertyNames(Symbol).map(n=>Symbol[n]).filter(od)),p1=iv(),g1=iv(!0),fp=m1();function m1(){const n={};return["includes","indexOf","lastIndexOf"].forEach(l=>{n[l]=function(...c){const s=oi(this);for(let t=0,i=this.length;t<i;t++)Xn(s,"get",t+"");const r=s[l](...c);return r===-1||r===!1?s[l](...c.map(oi)):r}}),["push","pop","shift","unshift","splice"].forEach(l=>{n[l]=function(...c){f1();const s=oi(this)[l].apply(this,c);return ev(),s}}),n}function iv(n=!1,l=!1){return function(s,r,t){if(r==="__v_isReactive")return!n;if(r==="__v_isReadonly")return n;if(r==="__v_raw"&&t===(n?l?F1:av:l?T1:ov).get(s))return s;const i=Ao(s);if(!n&&i&&_u(fp,r))return Reflect.get(fp,r,t);const o=Reflect.get(s,r,t);return(od(r)?tv.has(r):h1(r))||(n||Xn(s,"get",r),l)?o:xf(o)?!i||!ad(r)?o.value:o:ku(o)?n?sv(o):fd(o):o}}var v1=y1();function y1(n=!1){return function(c,s,r,t){let i=c[s];if(!n&&(r=oi(r),i=oi(i),!Ao(c)&&xf(i)&&!xf(r)))return i.value=r,!0;const o=Ao(c)&&ad(s)?Number(s)<c.length:_u(c,s),u=Reflect.set(c,s,r,t);return c===oi(t)&&(o?Qm(r,i)&&Zr(c,"set",s,r,i):Zr(c,"add",s,r)),u}}function b1(n,l){const c=_u(n,l),s=n[l],r=Reflect.deleteProperty(n,l);return r&&c&&Zr(n,"delete",l,void 0,s),r}function x1(n,l){const c=Reflect.has(n,l);return(!od(l)||!tv.has(l))&&Xn(n,"has",l),c}function w1(n){return Xn(n,"iterate",Ao(n)?"length":_o),Reflect.ownKeys(n)}var C1={get:p1,set:v1,deleteProperty:b1,has:x1,ownKeys:w1},E1={get:g1,set(n,l){return console.warn(`Set operation on key "${String(l)}" failed: target is readonly.`,n),!0},deleteProperty(n,l){return console.warn(`Delete operation on key "${String(l)}" failed: target is readonly.`,n),!0}},ld=n=>ku(n)?fd(n):n,ud=n=>ku(n)?sv(n):n,cd=n=>n,Tu=n=>Reflect.getPrototypeOf(n);function Bl(n,l,c=!1,s=!1){n=n.__v_raw;const r=oi(n),t=oi(l);l!==t&&!c&&Xn(r,"get",l),!c&&Xn(r,"get",t);const{has:i}=Tu(r),o=s?cd:c?ud:ld;if(i.call(r,l))return o(n.get(l));if(i.call(r,t))return o(n.get(t));n!==r&&n.get(l)}function Nl(n,l=!1){const c=this.__v_raw,s=oi(c),r=oi(n);return n!==r&&!l&&Xn(s,"has",n),!l&&Xn(s,"has",r),n===r?c.has(n):c.has(n)||c.has(r)}function Hl(n,l=!1){return n=n.__v_raw,!l&&Xn(oi(n),"iterate",_o),Reflect.get(n,"size",n)}function dp(n){n=oi(n);const l=oi(this);return Tu(l).has.call(l,n)||(l.add(n),Zr(l,"add",n,n)),this}function hp(n,l){l=oi(l);const c=oi(this),{has:s,get:r}=Tu(c);let t=s.call(c,n);t?rv(c,s,n):(n=oi(n),t=s.call(c,n));const i=r.call(c,n);return c.set(n,l),t?Qm(l,i)&&Zr(c,"set",n,l,i):Zr(c,"add",n,l),this}function pp(n){const l=oi(this),{has:c,get:s}=Tu(l);let r=c.call(l,n);r?rv(l,c,n):(n=oi(n),r=c.call(l,n));const t=s?s.call(l,n):void 0,i=l.delete(n);return r&&Zr(l,"delete",n,void 0,t),i}function gp(){const n=oi(this),l=n.size!==0,c=Ns(n)?new Map(n):new Set(n),s=n.clear();return l&&Zr(n,"clear",void 0,void 0,c),s}function zl(n,l){return function(s,r){const t=this,i=t.__v_raw,o=oi(i),u=l?cd:n?ud:ld;return!n&&Xn(o,"iterate",_o),i.forEach((f,p)=>s.call(r,u(f),u(p),t))}}function jl(n,l,c){return function(...s){const r=this.__v_raw,t=oi(r),i=Ns(t),o=n==="entries"||n===Symbol.iterator&&i,u=n==="keys"&&i,f=r[n](...s),p=c?cd:l?ud:ld;return!l&&Xn(t,"iterate",u?bf:_o),{next(){const{value:v,done:y}=f.next();return y?{value:v,done:y}:{value:o?[p(v[0]),p(v[1])]:p(v),done:y}},[Symbol.iterator](){return this}}}}function $r(n){return function(...l){{const c=l[0]?`on key "${l[0]}" `:"";console.warn(`${o1(n)} operation ${c}failed: target is readonly.`,oi(this))}return n==="delete"?!1:this}}function S1(){const n={get(t){return Bl(this,t)},get size(){return Hl(this)},has:Nl,add:dp,set:hp,delete:pp,clear:gp,forEach:zl(!1,!1)},l={get(t){return Bl(this,t,!1,!0)},get size(){return Hl(this)},has:Nl,add:dp,set:hp,delete:pp,clear:gp,forEach:zl(!1,!0)},c={get(t){return Bl(this,t,!0)},get size(){return Hl(this,!0)},has(t){return Nl.call(this,t,!0)},add:$r("add"),set:$r("set"),delete:$r("delete"),clear:$r("clear"),forEach:zl(!0,!1)},s={get(t){return Bl(this,t,!0,!0)},get size(){return Hl(this,!0)},has(t){return Nl.call(this,t,!0)},add:$r("add"),set:$r("set"),delete:$r("delete"),clear:$r("clear"),forEach:zl(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(t=>{n[t]=jl(t,!1,!1),c[t]=jl(t,!0,!1),l[t]=jl(t,!1,!0),s[t]=jl(t,!0,!0)}),[n,c,l,s]}var[D1,A1]=S1();function nv(n,l){const c=n?A1:D1;return(s,r,t)=>r==="__v_isReactive"?!n:r==="__v_isReadonly"?n:r==="__v_raw"?s:Reflect.get(_u(c,r)&&r in s?c:s,r,t)}var _1={get:nv(!1)},k1={get:nv(!0)};function rv(n,l,c){const s=oi(c);if(s!==c&&l.call(n,s)){const r=Zm(n);console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var ov=new WeakMap,T1=new WeakMap,av=new WeakMap,F1=new WeakMap;function O1(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function L1(n){return n.__v_skip||!Object.isExtensible(n)?0:O1(Zm(n))}function fd(n){return n&&n.__v_isReadonly?n:lv(n,!1,C1,_1,ov)}function sv(n){return lv(n,!0,E1,k1,av)}function lv(n,l,c,s,r){if(!ku(n))return console.warn(`value cannot be made reactive: ${String(n)}`),n;if(n.__v_raw&&!(l&&n.__v_isReactive))return n;const t=r.get(n);if(t)return t;const i=L1(n);if(i===0)return n;const o=new Proxy(n,i===2?s:c);return r.set(n,o),o}function oi(n){return n&&oi(n.__v_raw)||n}function xf(n){return!!(n&&n.__v_isRef===!0)}Yn("nextTick",()=>id);Yn("dispatch",n=>Bs.bind(Bs,n));Yn("watch",(n,{evaluateLater:l,cleanup:c})=>(s,r)=>{let t=l(s),o=om(()=>{let u;return t(f=>u=f),u},r);c(o)});Yn("store",Xw);Yn("data",n=>hm(n));Yn("root",n=>Su(n));Yn("refs",n=>(n._x_refs_proxy||(n._x_refs_proxy=Lo(M1(n))),n._x_refs_proxy));function M1(n){let l=[];return Cr(n,c=>
vendor: 12,464 bytes, line 16
16{c._x_refs&&l.push(c._x_refs)}),l}var kc={};function uv(n){return kc[n]||(kc[n]=0),++kc[n]}function I1(n,l){return Cr(n,c=>{if(c._x_ids&&c._x_ids[l])return!0})}function R1(n,l){n._x_ids||(n._x_ids={}),n._x_ids[l]||(n._x_ids[l]=uv(l))}Yn("id",(n,{cleanup:l})=>(c,s=null)=>{let r=`${c}${s?`-${s}`:""}`;return P1(n,r,l,()=>{let t=I1(n,c),i=t?t._x_ids[c]:uv(c);return s?`${c}-${i}-${s}`:`${c}-${i}`})});Au((n,l)=>{n._x_id&&(l._x_id=n._x_id)});function P1(n,l,c,s){if(n._x_id||(n._x_id={}),n._x_id[l])return n._x_id[l];let r=s();return n._x_id[l]=r,c(()=>{delete n._x_id[l]}),r}Yn("el",n=>n);cv("Focus","focus","focus");cv("Persist","persist","persist");function cv(n,l,c){Yn(l,s=>lr(`You can't use [$${l}] without first installing the "${n}" plugin here: https://alpinejs.dev/plugins/${c}`,s))}Ti("modelable",(n,{expression:l},{effect:c,evaluateLater:s,cleanup:r})=>{let t=s(l),i=()=>{let p;return t(v=>p=v),p},o=s(`${l} = __placeholder`),u=p=>o(()=>{},{scope:{__placeholder:p}}),f=i();u(f),queueMicrotask(()=>{if(!n._x_model)return;n._x_removeModelListeners.default();let p=n._x_model.get,v=n._x_model.setWithModifiers,y=Gm({get(){return p()},set(S){v(S)}},{get(){return i()},set(S){u(S)}});r(y)})});Ti("teleport",(n,{modifiers:l,expression:c},{cleanup:s})=>{n.tagName.toLowerCase()!=="template"&&lr("x-teleport can only be used on a <template> tag",n);let r=mp(c),t=n.content.cloneNode(!0).firstElementChild;n._x_teleport=t,t._x_teleportBack=n,n.setAttribute("data-teleport-template",!0),t.setAttribute("data-teleport-target",!0),n._x_forwardEvents&&n._x_forwardEvents.forEach(o=>{t.addEventListener(o,u=>{u.stopPropagation(),n.dispatchEvent(new u.constructor(u.type,u))})}),tl(t,{},n);let i=(o,u,f)=>{f.includes("prepend")?u.parentNode.insertBefore(o,u):f.includes("append")?u.parentNode.insertBefore(o,u.nextSibling):u.appendChild(o)};wi(()=>{Qr(()=>{i(t,r,l),Sr(t)})()}),n._x_teleportPutBack=()=>{let o=mp(c);wi(()=>{i(n._x_teleport,o,l)})},s(()=>wi(()=>{t.remove(),Ra(t)}))});var B1=document.createElement("div");function mp(n){let l=Qr(()=>document.querySelector(n),()=>B1)();return l||lr(`Cannot find x-teleport element for selector: "${n}"`),l}var fv=()=>{};fv.inline=(n,{modifiers:l},{cleanup:c})=>{l.includes("self")?n._x_ignoreSelf=!0:n._x_ignore=!0,c(()=>{l.includes("self")?delete n._x_ignoreSelf:delete n._x_ignore})};Ti("ignore",fv);Ti("effect",Qr((n,{expression:l},{effect:c})=>{c(un(n,l))}));function va(n,l,c,s){let r=n,t=u=>s(u),i={},o=(u,f)=>p=>f(u,p);return c.includes("dot")&&(l=N1(l)),c.includes("camel")&&(l=H1(l)),c.includes("capture")&&(i.capture=!0),c.includes("window")&&(r=window),c.includes("document")&&(r=document),c.includes("passive")&&(i.passive=c[c.indexOf("passive")+1]!=="false"),t=dv(c,t),c.includes("prevent")&&(t=o(t,(u,f)=>{f.preventDefault(),u(f)})),c.includes("stop")&&(t=o(t,(u,f)=>{f.stopPropagation(),u(f)})),c.includes("once")&&(t=o(t,(u,f)=>{u(f),r.removeEventListener(l,t,i)})),(c.includes("away")||c.includes("outside"))&&(r=document,t=o(t,(u,f)=>{n.contains(f.target)||f.target.isConnected!==!1&&(n.offsetWidth<1&&n.offsetHeight<1||n._x_isShown!==!1&&u(f))})),c.includes("self")&&(t=o(t,(u,f)=>{f.target===n&&u(f)})),l==="submit"&&(t=o(t,(u,f)=>{f.target._x_pendingModelUpdates&&f.target._x_pendingModelUpdates.forEach(p=>p()),u(f)})),(j1(l)||hv(l))&&(t=o(t,(u,f)=>{W1(f,c)||u(f)})),r.addEventListener(l,t,i),()=>{r.removeEventListener(l,t,i)}}function dv(n,l){if(n.includes("debounce")){let c=n[n.indexOf("debounce")+1]||"invalid-wait",s=pu(c.split("ms")[0])?Number(c.split("ms")[0]):250;l=qm(l,s)}if(n.includes("throttle")){let c=n[n.indexOf("throttle")+1]||"invalid-wait",s=pu(c.split("ms")[0])?Number(c.split("ms")[0]):250;l=Um(l,s)}return l}function N1(n){return n.replace(/-/g,".")}function H1(n){return n.toLowerCase().replace(/-(\w)/g,(l,c)=>c.toUpperCase())}function pu(n){return!Array.isArray(n)&&!isNaN(n)}function z1(n){return[" ","_"].includes(n)?n:n.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function j1(n){return["keydown","keyup"].includes(n)}function hv(n){return["contextmenu","click","mouse"].some(l=>n.includes(l))}function W1(n,l){let c=l.filter(t=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(t));if(c.includes("debounce")){let t=c.indexOf("debounce");c.splice(t,pu((c[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(c.includes("throttle")){let t=c.indexOf("throttle");c.splice(t,pu((c[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(c.length===0||c.length===1&&vp(n.key).includes(c[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter(t=>c.includes(t));return c=c.filter(t=>!r.includes(t)),!(r.length>0&&r.filter(i=>((i==="cmd"||i==="super")&&(i="meta"),n[`${i}Key`])).length===r.length&&(hv(n.type)||vp(n.key).includes(c[0])))}function vp(n){if(!n)return[];n=z1(n);let l={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return l[n]=n,Object.keys(l).map(c=>{if(l[c]===n)return c}).filter(c=>c)}Ti("model",(n,{modifiers:l,expression:c},{effect:s,cleanup:r})=>{let t=n;l.includes("parent")&&(t=Cr(n,F=>F!==n));let i=un(t,c),o;typeof c=="string"?o=un(t,`${c} = __placeholder`):typeof c=="function"&&typeof c()=="string"?o=un(t,`${c()} = __placeholder`):o=()=>{};let u=()=>{let F;return i(M=>F=M),yp(F)?F.get():F},f=F=>{let M;i(A=>M=A),yp(M)?M.set(F):o(()=>{},{scope:{__placeholder:F}})};typeof c=="string"&&n.type==="radio"&&wi(()=>{n.hasAttribute("name")||n.setAttribute("name",c)});let p=l.includes("change")||l.includes("lazy"),v=l.includes("blur"),y=l.includes("enter"),S=p||v||y,D;if(Vr)D=()=>{};else if(S){let F=[],M=A=>f(Wl(n,l,A,u()));if(p&&F.push(va(n,"change",l,M)),v&&(F.push(va(n,"blur",l,M)),n.form)){let A=n.form,L=()=>M({target:n});A._x_pendingModelUpdates||(A._x_pendingModelUpdates=[]),A._x_pendingModelUpdates.push(L),r(()=>{A._x_pendingModelUpdates&&A._x_pendingModelUpdates.splice(A._x_pendingModelUpdates.indexOf(L),1)})}y&&F.push(va(n,"keydown",l,A=>{A.key==="Enter"&&M(A)})),D=()=>F.forEach(A=>A())}else{let F=n.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(n.type)?"change":"input";D=va(n,F,l,M=>{f(Wl(n,l,M,u()))})}if(l.includes("fill")&&([void 0,null,""].includes(u())||hu(n)&&Array.isArray(u())||n.tagName.toLowerCase()==="select"&&n.multiple)&&f(Wl(n,l,{target:n},u())),n._x_removeModelListeners||(n._x_removeModelListeners={}),n._x_removeModelListeners.default=D,r(()=>n._x_removeModelListeners.default()),n.form){let F=va(n.form,"reset",[],M=>{id(()=>n._x_model&&n._x_model.set(Wl(n,l,{target:n},u())))});r(()=>F())}n._x_model={get(){return u()},set(F){f(F)},setWithModifiers:dv(l,f)},n._x_forceModelUpdate=F=>{F===void 0&&typeof c=="string"&&c.match(/\./)&&(F=""),wi(()=>{hu(n)?Array.isArray(F)?n.checked=F.some(M=>M==n.value):n.checked=!!F:rd(n)?typeof F=="boolean"?n.checked=Jl(n.value)===F:n.checked=n.value==F:zm(n,"value",F)})},s(()=>{let F=u();l.includes("unintrusive")&&document.activeElement.isSameNode(n)||n._x_forceModelUpdate(F)})});function Wl(n,l,c,s){return wi(()=>{if(c instanceof CustomEvent&&c.detail!==void 0)return c.detail!==null&&c.detail!==void 0?c.detail:c.target.value;if(hu(n))if(Array.isArray(s)){let r=null;return l.includes("number")?r=Tc(c.target.value):l.includes("boolean")?r=Jl(c.target.value):r=c.target.value,c.target.checked?s.includes(r)?s:s.concat([r]):s.filter(t=>!$1(t,r))}else return c.target.checked;else{if(n.tagName.toLowerCase()==="select"&&n.multiple)return l.includes("number")?Array.from(c.target.selectedOptions).map(r=>{let t=r.value||r.text;return Tc(t)}):l.includes("boolean")?Array.from(c.target.selectedOptions).map(r=>{let t=r.value||r.text;return Jl(t)}):Array.from(c.target.selectedOptions).map(r=>r.value||r.text);{let r;return rd(n)?c.target.checked?r=c.target.value:r=s:r=c.target.value,l.includes("number")?Tc(r):l.includes("boolean")?Jl(r):l.includes("trim")?r.trim():r}}})}function Tc(n){let l=n?parseFloat(n):null;return q1(l)?l:n}function $1(n,l){return n==l}function q1(n){return!Array.isArray(n)&&!isNaN(n)}function yp(n){return n!==null&&typeof n=="object"&&typeof n.get=="function"&&typeof n.set=="function"}Ti("cloak",n=>queueMicrotask(()=>wi(()=>n.removeAttribute(Ia("cloak")))));Im(()=>`[${Ia("init")}]`);Ti("init",Qr((n,{expression:l},{evaluate:c})=>typeof l=="string"?!!l.trim()&&c(l,{},!1):c(l,{},!1)));Ti("text",(n,{expression:l},{effect:c,evaluateLater:s})=>{let r=s(l);c(()=>{r(t=>{wi(()=>{n.textContent=t})})})});Ti("html",(n,{expression:l},{effect:c,evaluateLater:s})=>{let r=s(l);c(()=>{r(t=>{wi(()=>{n.innerHTML=t??"",n._x_ignoreSelf=!0,Sr(n),delete n._x_ignoreSelf})})})});Jf(Sm(":",Dm(Ia("bind:"))));var pv=(n,{value:l,modifiers:c,expression:s,original:r},{effect:t,cleanup:i})=>{if(!l){let u={};Kw(u),un(n,s)(p=>{Ym(n,p,r)},{scope:u});return}if(l==="key")return U1(n,s);if(n._x_inlineBindings&&n._x_inlineBindings[l]&&n._x_inlineBindings[l].extract)return;let o=un(n,s);t(()=>o(u=>{u===void 0&&typeof s=="string"&&s.match(/\./)&&(u=""),wi(()=>zm(n,l,u,c))})),i(()=>{n._x_undoAddedClasses&&n._x_undoAddedClasses(),n._x_undoAddedStyles&&n._x_undoAddedStyles()})};pv.inline=(n,{value:l,modifiers:c,expression:s})=>{l&&(n._x_inlineBindings||(n._x_inlineBindings={}),n._x_inlineBindings[l]={expression:s,extract:!1})};Ti("bind",pv);function U1(n,l){n._x_keyExpression=l}Mm(()=>`[${Ia("data")}]`);Ti("data",(n,{expression:l},{cleanup:c})=>{if(G1(n))return;l=l===""?"{}":l;let s={};Gs(s,n);let r={};Zw(r,s);let t=Do(n,l,{scope:r});(t===void 0||t===!0)&&(t={}),Gs(t,n);let i=La(t);Vf(i);let o=tl(n,i);i.init&&Do(n,i.init),c(()=>{i.destroy&&Do(n,i.destroy),o()})});Au((n,l)=>{n._x_dataStack&&(l._x_dataStack=n._x_dataStack,l.setAttribute("data-has-alpine-state",!0))});function G1(n){return Vr?vf?!0:n.hasAttribute("data-has-alpine-state"):!1}Ti("show",(n,{modifiers:l,expression:c},{effect:s})=>{let r=un(n,c);n._x_doHide||(n._x_doHide=()=>{wi(()=>{n.style.setProperty("display","none",l.includes("important")?"important":void 0)})}),n._x_doShow||(n._x_doShow=()=>{wi(()=>{n.style.length===1&&n.style.display==="none"?n.removeAttribute("style"):n.style.removeProperty("display")})});let t=()=>{n._x_doHide(),n._x_isShown=!1},i=()=>{n._x_doShow(),n._x_isShown=!0},o=()=>setTimeout(i),u=gf(v=>v?i():t(),v=>{typeof n._x_toggleAndCascadeWithTransitions=="function"?n._x_toggleAndCascadeWithTransitions(n,v,i,t):v?o():t()}),f,p=!0;s(()=>r(v=>{!p&&v===f||(l.includes("immediate")&&(v?o():t()),u(v),f=v,p=!1)}))});Ti("for",(n,{expression:l},{effect:c,cleanup:s})=>{let r=K1(l),t=un(n,r.items),i=un(n,n._x_keyExpression||"index");n._x_lookup=new Map,c(()=>Y1(n,r,t,i)),s(()=>{n._x_lookup.forEach(o=>wi(()=>{Ra(o),o.remove()})),delete n._x_lookup})});function X1(n){return l=>{Object.entries(l).forEach(([c,s])=>{n[c]=s})}}function Y1(n,l,c,s){c(r=>{Z1(r)&&(r=Array.from({length:r},(f,p)=>p+1)),r==null&&(r=[]),r instanceof Set&&(r=Array.from(r)),r instanceof Map&&(r=Array.from(r));let t=n._x_lookup,i=new Map;n._x_lookup=i;let o=Q1(r),u=Object.entries(r).map(([f,p])=>{o||(f=parseInt(f));let v=V1(l,p,f,r),y;return s(S=>{typeof S=="object"&&lr("x-for key cannot be an object, it must be a string or an integer",n),t.has(S)&&(i.set(S,t.get(S)),t.delete(S)),y=S},{scope:{index:f,...v}}),[y,v]});wi(()=>{t.forEach(v=>{Ra(v),v.remove()});let f=new Set,p=n;u.forEach(([v,y])=>{if(i.has(v)){let F=i.get(v);F._x_refreshXForScope(y),p.nextElementSibling!==F&&(p.nextElementSibling&&F.replaceWith(p.nextElementSibling),p.after(F)),p=F,F._x_currentIfEl&&(F.nextElementSibling!==F._x_currentIfEl&&p.after(F._x_currentIfEl),p=F._x_currentIfEl);return}n.content.children.length>1&&lr("x-for templates require a single root element, additional elements will be ignored.",n);let S=document.importNode(n.content,!0).firstElementChild,D=La(y);tl(S,D,n),S._x_refreshXForScope=X1(D),i.set(v,S),f.add(S),p.after(S),p=S}),Qr(()=>f.forEach(v=>Sr(v)))()})})}function K1(n){let l=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,c=/^\s*\(|\)\s*$/g,s=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=n.match(s);if(!r)return;let t={};t.items=r[2].trim();let i=r[1].replace(c,"").trim(),o=i.match(l);return o?(t.item=i.replace(l,"").trim(),t.index=o[1].trim(),o[2]&&(t.collection=o[2].trim())):t.item=i,t}function V1(n,l,c,s){let r={};return/^\[.*\]$/.test(n.item)&&Array.isArray(l)?n.item.replace("[","").replace("]","").split(",").map(i=>
16i.trim()).forEach((i,o)=>{r[i]=l[o]}):/^\{.*\}$/.test(n.item)&&!Array.isArray(l)&&typeof l=="object"?n.item.replace("{","").replace("}","").split(",").map(i=>i.trim()).forEach(i=>{r[i]=l[i]}):r[n.item]=l,n.index&&(r[n.index]=c),n.collection&&(r[n.collection]=s),r}function Z1(n){return typeof n!="object"&&!isNaN(n)}function Q1(n){return typeof n=="object"&&!Array.isArray(n)}function gv(){}gv.inline=(n,{expression:l},{cleanup:c})=>{let s=Su(n);s&&(s._x_refs||(s._x_refs={}),s._x_refs[l]=n,c(()=>delete s._x_refs[l]))};Ti("ref",gv);Ti("if",(n,{expression:l},{effect:c,cleanup:s})=>{n.tagName.toLowerCase()!=="template"&&lr("x-if can only be used on a <template> tag",n);let r=un(n,l),t=()=>{if(n._x_currentIfEl)return n._x_currentIfEl;let o=n.content.cloneNode(!0).firstElementChild;return tl(o,{},n),wi(()=>{n.after(o),Qr(()=>Sr(o))()}),n._x_currentIfEl=o,n._x_undoIf=()=>{wi(()=>{Ra(o),o.remove()}),delete n._x_currentIfEl},o},i=()=>{n._x_undoIf&&(n._x_undoIf(),delete n._x_undoIf)};c(()=>r(o=>{o?t():i()})),s(()=>n._x_undoIf&&n._x_undoIf())});Ti("id",(n,{expression:l},{evaluate:c})=>{c(l).forEach(r=>R1(n,r))});Au((n,l)=>{n._x_ids&&(l._x_ids=n._x_ids)});Jf(Sm("@",Dm(Ia("on:"))));Ti("on",Qr((n,{value:l,modifiers:c,expression:s},{cleanup:r})=>{let t=s?un(n,s):()=>{};n.tagName.toLowerCase()==="template"&&(n._x_forwardEvents||(n._x_forwardEvents=[]),n._x_forwardEvents.includes(l)||n._x_forwardEvents.push(l));let i=va(n,l,c,o=>{t(()=>{},{scope:{$event:o},params:[o]})});r(()=>i())}));Fu("Collapse","collapse","collapse");Fu("Intersect","intersect","intersect");Fu("Focus","trap","focus");Fu("Mask","mask","mask");function Fu(n,l,c){Ti(l,s=>lr(`You can't use [x-${l}] without first installing the "${n}" plugin here: https://alpinejs.dev/plugins/${c}`,s))}Pa.setEvaluator(nw);Pa.setRawEvaluator(lw);Pa.setReactivityEngine({reactive:fd,effect:s1,release:l1,raw:oi});var J1=Pa,mv=J1,eu={exports:{}},eC=eu.exports,bp;function tC(){return bp||(bp=1,(function(n,l){(function(c,s){n.exports=s()})(eC,function(){return(function(c){function s(t){if(r[t])return r[t].exports;var i=r[t]={exports:{},id:t,loaded:!1};return c[t].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}var r={};return s.m=c,s.c=r,s.p="dist/",s(0)})([function(c,s,r){function t(me){return me&&me.__esModule?me:{default:me}}var i=Object.assign||function(me){for(var Y=1;Y<arguments.length;Y++){var Ee=arguments[Y];for(var we in Ee)Object.prototype.hasOwnProperty.call(Ee,we)&&(me[we]=Ee[we])}return me},o=r(1),u=(t(o),r(6)),f=t(u),p=r(7),v=t(p),y=r(8),S=t(y),D=r(9),F=t(D),M=r(10),A=t(M),L=r(11),H=t(L),U=r(14),ee=t(U),Z=[],w=!1,xe={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},De=function(){var me=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(me&&(w=!0),w)return Z=(0,H.default)(Z,xe),(0,A.default)(Z,xe.once),Z},Ke=function(){Z=(0,ee.default)(),De()},ye=function(){Z.forEach(function(me,Y){me.node.removeAttribute("data-aos"),me.node.removeAttribute("data-aos-easing"),me.node.removeAttribute("data-aos-duration"),me.node.removeAttribute("data-aos-delay")})},_e=function(me){return me===!0||me==="mobile"&&F.default.mobile()||me==="phone"&&F.default.phone()||me==="tablet"&&F.default.tablet()||typeof me=="function"&&me()===!0},ie=function(me){xe=i(xe,me),Z=(0,ee.default)();var Y=document.all&&!window.atob;return _e(xe.disable)||Y?ye():(xe.disableMutationObserver||S.default.isSupported()||(console.info(`
17      aos: MutationObserver is not supported on this browser,
18      code mutations observing has been disabled.
19      You may have to call "refreshHard()" by yourself.
20    `),xe.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",xe.easing),document.querySelector("body").setAttribute("data-aos-duration",xe.duration),document.querySelector("body").setAttribute("data-aos-delay",xe.delay),xe.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?De(!0):xe.startEvent==="load"?window.addEventListener(xe.startEvent,function(){De(!0)}):document.addEventListener(xe.startEvent,function(){De(!0)}),window.addEventListener("resize",(0,v.default)(De,xe.debounceDelay,!0)),window.addEventListener("orientationchange",(0,v.default)(De,xe.debounceDelay,!0)),window.addEventListener("scroll",(0,f.default)(function(){(0,A.default)(Z,xe.once)},xe.throttleDelay)),xe.disableMutationObserver||S.default.ready("[data-aos]",Ke),Z)};c.exports={init:ie,refresh:De,refreshHard:Ke}},function(c,s){},,,,,function(c,s){(function(r){function t(_e,ie,me){function Y(gt){var $e=pe,rt=ze;return pe=ze=void 0,St=gt,We=_e.apply(rt,$e)}function Ee(gt){return St=gt,ct=setTimeout(nt,ie),vt?Y(gt):We}function we(gt){var $e=gt-ft,rt=gt-St,Ht=ie-$e;return ot?Ke(Ht,Re-rt):Ht}function Ie(gt){var $e=gt-ft,rt=gt-St;return ft===void 0||$e>=ie||$e<0||ot&&rt>=Re}function nt(){var gt=ye();return Ie(gt)?at(gt):void(ct=setTimeout(nt,we(gt)))}function at(gt){return ct=void 0,pt&&pe?Y(gt):(pe=ze=void 0,We)}
20function ut(){ct!==void 0&&clearTimeout(ct),St=0,pe=ft=ze=ct=void 0}function j(){return ct===void 0?We:at(ye())}function I(){var gt=ye(),$e=Ie(gt);if(pe=arguments,ze=this,ft=gt,$e){if(ct===void 0)return Ee(ft);if(ot)return ct=setTimeout(nt,ie),Y(ft)}return ct===void 0&&(ct=setTimeout(nt,ie)),We}var pe,ze,Re,We,ct,ft,St=0,vt=!1,ot=!1,pt=!0;if(typeof _e!="function")throw new TypeError(y);return ie=p(ie)||0,o(me)&&(vt=!!me.leading,ot="maxWait"in me,Re=ot?De(p(me.maxWait)||0,ie):Re,pt="trailing"in me?!!me.trailing:pt),I.cancel=ut,I.flush=j,I}function i(_e,ie,me){var Y=!0,Ee=!0;if(typeof _e!="function")throw new TypeError(y);return o(me)&&(Y="leading"in me?!!me.leading:Y,Ee="trailing"in me?!!me.trailing:Ee),t(_e,ie,{leading:Y,maxWait:ie,trailing:Ee})}function o(_e){var ie=typeof _e>"u"?"undefined":v(_e);return!!_e&&(ie=="object"||ie=="function")}function u(_e){return!!_e&&(typeof _e>"u"?"undefined":v(_e))=="object"}function f(_e){return(typeof _e>"u"?"undefined":v(_e))=="symbol"||u(_e)&&xe.call(_e)==D}function p(_e){if(typeof _e=="number")return _e;if(f(_e))return S;if(o(_e)){var ie=typeof _e.valueOf=="function"?_e.valueOf():_e;_e=o(ie)?ie+"":ie}if(typeof _e!="string")return _e===0?_e:+_e;_e=_e.replace(F,"");var me=A.test(_e);return me||L.test(_e)?H(_e.slice(2),me?2:8):M.test(_e)?S:+_e}var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},y="Expected a function",S=NaN,D="[object Symbol]",F=/^\s+|\s+$/g,M=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,L=/^0o[0-7]+$/i,H=parseInt,U=(typeof r>"u"?"undefined":v(r))=="object"&&r&&r.Object===Object&&r,ee=(typeof self>"u"?"undefined":v(self))=="object"&&self&&self.Object===Object&&self,Z=U||ee||Function("return this")(),w=Object.prototype,xe=w.toString,De=Math.max,Ke=Math.min,ye=function(){return Z.Date.now()};c.exports=i}).call(s,(function(){return this})())},function(c,s){(function(r){function t(ye,_e,ie){function me(pt){var gt=I,$e=pe;return I=pe=void 0,ft=pt,Re=ye.apply($e,gt)}function Y(pt){return ft=pt,We=setTimeout(Ie,_e),St?me(pt):Re}function Ee(pt){var gt=pt-ct,$e=pt-ft,rt=_e-gt;return vt?De(rt,ze-$e):rt}function we(pt){var gt=pt-ct,$e=pt-ft;return ct===void 0||gt>=_e||gt<0||vt&&$e>=ze}function Ie(){var pt=Ke();return we(pt)?nt(pt):void(We=setTimeout(Ie,Ee(pt)))}function nt(pt){return We=void 0,ot&&I?me(pt):(I=pe=void 0,Re)}function at(){We!==void 0&&clearTimeout(We),ft=0,I=ct=pe=We=void 0}function ut(){return We===void 0?Re:nt(Ke())}function j(){var pt=Ke(),gt=we(pt);if(I=arguments,pe=this,ct=pt,gt){if(We===void 0)return Y(ct);if(vt)return We=setTimeout(Ie,_e),me(ct)}return We===void 0&&(We=setTimeout(Ie,_e)),Re}var I,pe,ze,Re,We,ct,ft=0,St=!1,vt=!1,ot=!0;if(typeof ye!="function")throw new TypeError(v);return _e=f(_e)||0,i(ie)&&(St=!!ie.leading,vt="maxWait"in ie,ze=vt?xe(f(ie.maxWait)||0,_e):ze,ot="trailing"in ie?!!ie.trailing:ot),j.cancel=at,j.flush=ut,j}function i(ye){var _e=typeof ye>"u"?"undefined":p(ye);return!!ye&&(_e=="object"||_e=="function")}function o(ye){return!!ye&&(typeof ye>"u"?"undefined":p(ye))=="object"}function u(ye){return(typeof ye>"u"?"undefined":p(ye))=="symbol"||o(ye)&&w.call(ye)==S}function f(ye){if(typeof ye=="number")return ye;if(u(ye))return y;if(i(ye)){var _e=typeof ye.valueOf=="function"?ye.valueOf():ye;ye=i(_e)?_e+"":_e}if(typeof ye!="string")return ye===0?ye:+ye;ye=ye.replace(D,"");var ie=M.test(ye);return ie||A.test(ye)?L(ye.slice(2),ie?2:8):F.test(ye)?y:+ye}var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},v="Expected a function",y=NaN,S="[object Symbol]",D=/^\s+|\s+$/g,F=/^[-+]0x[0-9a-f]+$/i,M=/^0b[01]+$/i,A=/^0o[0-7]+$/i,L=parseInt,H=(typeof r>"u"?"undefined":p(r))=="object"&&r&&r.Object===Object&&r,U=(typeof self>"u"?"undefined":p(self))=="object"&&self&&self.Object===Object&&self,ee=H||U||Function("return this")(),Z=Object.prototype,w=Z.toString,xe=Math.max,De=Math.min,Ke=function(){return ee.Date.now()};c.exports=t}).call(s,(function(){return this})())},function(c,s){function r(p){var v=void 0,y=void 0;for(v=0;v<p.length;v+=1)if(y=p[v],y.dataset&&y.dataset.aos||y.children&&r(y.children))return!0;return!1}function t(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function i(){return!!t()}function o(p,v){var y=window.document,S=t(),D=new S(u);f=v,D.observe(y.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function u(p){p&&p.forEach(function(v){var y=Array.prototype.slice.call(v.addedNodes),S=Array.prototype.slice.call(v.removedNodes
20),D=y.concat(S);if(r(D))return f()})}Object.defineProperty(s,"__esModule",{value:!0});var f=function(){};s.default={isSupported:i,ready:o}},function(c,s){function r(y,S){if(!(y instanceof S))throw new TypeError("Cannot call a class as a function")}function t(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(s,"__esModule",{value:!0});var i=(function(){function y(S,D){for(var F=0;F<D.length;F++){var M=D[F];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(S,M.key,M)}}return function(S,D,F){return D&&y(S.prototype,D),F&&y(S,F),S}})(),o=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,u=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,f=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,p=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
20sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,v=(function(){function y(){r(this,y)}return i(y,[{key:"phone",value:function(){var S=t();return!(!o.test(S)&&!u.test(S.substr(0,4)))}},{key:"mobile",value:function(){var S=t();return!(!f.test(S)&&!p.test(S.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),y})();s.default=new v},function(c,s){Object.defineProperty(s,"__esModule",{value:!0});var r=function(i,o,u){var f=i.node.getAttribute("data-aos-once");o>i.position?i.node.classList.add("aos-animate"):typeof f<"u"&&(f==="false"||!u&&f!=="true")&&i.node.classList.remove("aos-animate")},t=function(i,o){var u=window.pageYOffset,f=window.innerHeight;i.forEach(function(p,v){r(p,f+u,o)})};s.default=t},function(c,s,r){function t(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(s,"__esModule",{value:!0});var i=r(12),o=t(i),u=function(f,p){return f.forEach(function(v,y){v.node.classList.add("aos-init"),v.position=(0,o.default)(v.node,p.offset)}),f};s.default=u},function(c,s,r){function t(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(s,"__esModule",{value:!0});var i=r(13),o=t(i),u=function(f,p){var v=0,y=0,S=window.innerHeight,D={offset:f.getAttribute("data-aos-offset"),anchor:f.getAttribute("data-aos-anchor"),anchorPlacement:f.getAttribute("data-aos-anchor-placement")};switch(D.offset&&!isNaN(D.offset)&&(y=parseInt(D.offset)),D.anchor&&document.querySelectorAll(D.anchor)&&(f=document.querySelectorAll(D.anchor)[0]),v=(0,o.default)(f).top,D.anchorPlacement){case"top-bottom":break;case"center-bottom":v+=f.offsetHeight/2;break;case"bottom-bottom":v+=f.offsetHeight;break;case"top-center":v+=S/2;break;case"bottom-center":v+=S/2+f.offsetHeight;break;case"center-center":v+=S/2+f.offsetHeight/2;break;case"top-top":v+=S;break;case"bottom-top":v+=f.offsetHeight+S;break;case"center-top":v+=f.offsetHeight/2+S}return D.anchorPlacement||D.offset||isNaN(p)||(y=p),v+y};s.default=u},function(c,s){Object.defineProperty(s,"__esModule",{value:!0});var r=function(t){for(var i=0,o=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)i+=t.offsetLeft-(t.tagName!="BODY"?t.scrollLeft:0),o+=t.offsetTop-(t.tagName!="BODY"?t.scrollTop:0),t=t.offsetParent;return{top:o,left:i}};s.default=r},function(c,s){Object.defineProperty(s,"__esModule",{value:!0});var r=function(t){return t=t||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(t,function(i){return{node:i}})};s.default=r}])})})(eu)),eu.exports}var iC=tC();const vv=Oa(iC);var Fc={exports:{}},Oc={exports:{}};var xp;function dd(){return xp||(xp=1,(function(n){(function(l,c){n.exports?n.exports=c():l.getSize=c()})(window,function(){function c(S){var D=parseFloat(S),F=S.indexOf("%")==-1&&!isNaN(D);return F&&D}function s(){}var r=typeof console>"u"?s:function(S){console.error(S)},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],i=t.length;function o(){for(var S={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},D=0;D<i;D++){var F=t[D];S[F]=0}return S}function u(S){var D=getComputedStyle(S);return D||r("Style returned "+D+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),D}var f=!1,p;function v(){if(!f){f=!0;var S=document.createElement("div");S.style.width="200px",S.style.padding="1px 2px 3px 4px",S.style.borderStyle="solid",S.style.borderWidth="1px 2px 3px 4px",S.style.boxSizing="border-box";var D=document.body||document.documentElement;D.appendChild(S);var F=u(S);p=Math.round(c(F.width))==200,y.isBoxSizeOuter=p,D.removeChild(S)}}function y(S){if(v(),typeof S=="string"&&(S=document.querySelector(S)),!(!S||typeof S!="object"||!S.nodeType)){var D=u(S);if(D.display=="none")return o();var F={};F.width=S.offsetWidth,F.height=S.offsetHeight;for(var M=F.isBorderBox=D.boxSizing=="border-box",A=0;A<i;A++){var L=t[A],H=D[L],U=parseFloat(H);F[L]=isNaN(U)?0:U}var ee=F.paddingLeft+F.paddingRight,Z=F.paddingTop+F.paddingBottom,w=F.marginLeft+F.marginRight,xe=F.marginTop+F.marginBottom,De=F.borderLeftWidth+F.borderRightWidth,Ke=F.borderTopWidth+F.borderBottomWidth,ye=M&&p,_e=c(D.width);_e!==!1&&(F.width=_e+(ye?0:ee+De));var ie=c(D.height);return ie!==!1&&(F.height=ie+(ye?0:Z+Ke)),F.innerWidth=F.width-(ee+De),F.innerHeight=F.height-(Z+Ke),F.outerWidth=F.width+w,F.outerHeight=F.height+xe,F}}return y})})(Oc)),Oc.exports}var Lc={exports:{}},tu={exports:{}},nC=tu.exports,wp;function yv(){return wp||(wp=1,(function(n){(function(l,c){n.exports?n.exports=c():l.EvEmitter=c()})(typeof window<"u"?window:nC,function(){function l(){}var c=l.prototype;return c.on=function(s,r){if(!(!s||!r)){var t=this._events=this._events||{},i=t[s]=t[s]||[];return i.indexOf(r)==-1&&i.push(r),this}},c.once=function(s,r){if(!(!s||!r)){this.on(s,r);var t=this._onceEvents=this._onceEvents||{},i=t[s]=t[s]||{};return i[r]=!0,this}},c.off=function(s,r){var t=this._events&&this._events[s];if(!(!t||!t.length)){var i=t.indexOf(r);return i!=-1&&t.splice(i,1),this}},c.emitEvent=function(s,r){var t=this._events&&this._events[s];if(!(!t||!t.length)){t=t.slice(0),r=r||[];for(var i=this._onceEvents&&this._onceEvents[s],o=0;o<t.length;o++){var u=t[o],f=i&&i[u];f&&(this.off(s,u),delete i[u]),u.apply(this,r)}return this}},c.allOff=function(){delete this._events,delete this._onceEvents},l})})(tu)),tu.exports}var Mc={exports:{}},Ic={exports:{}},Cp;function rC(){return Cp||(Cp=1,(function(n){(function(l,c){n.exports?n.exports=c():l.matchesSelector=c()})(window,function(){var c=(function(){var s=window.Element.prototype;if(s.matches)return"matches";if(s.matchesSelector)return"matchesSelector";for(var r=["webkit","moz","ms","o"],t=0;t<r.length;t++){var i=r[t],o=i+"MatchesSelector";if(s[o])return o}})();return function(r,t){return r[c](t)}})})(Ic)),Ic.exports}var Ep;function oC(){return Ep||(Ep=1,(function(n){(function(l,c){n.exports?n.exports=c(l,rC()):l.fizzyUIUtils=c(l,l.matchesSelector)})(window,function(c,s){var r={};r.extend=function(o,u){for(var f in u)o[f]=u[f];return o},r.modulo=function(o,u){return(o%u+u)%u};var t=Array.prototype.slice;
20r.makeArray=function(o){if(Array.isArray(o))return o;if(o==null)return[];var u=typeof o=="object"&&typeof o.length=="number";return u?t.call(o):[o]},r.removeFrom=function(o,u){var f=o.indexOf(u);f!=-1&&o.splice(f,1)},r.getParent=function(o,u){for(;o.parentNode&&o!=document.body;)if(o=o.parentNode,s(o,u))return o},r.getQueryElement=function(o){return typeof o=="string"?document.querySelector(o):o},r.handleEvent=function(o){var u="on"+o.type;this[u]&&this[u](o)},r.filterFindElements=function(o,u){o=r.makeArray(o);var f=[];return o.forEach(function(p){if(p instanceof HTMLElement){if(!u){f.push(p);return}s(p,u)&&f.push(p);for(var v=p.querySelectorAll(u),y=0;y<v.length;y++)f.push(v[y])}}),f},r.debounceMethod=function(o,u,f){f=f||100;var p=o.prototype[u],v=u+"Timeout";o.prototype[u]=function(){var y=this[v];clearTimeout(y);var S=arguments,D=this;this[v]=setTimeout(function(){p.apply(D,S),delete D[v]},f)}},r.docReady=function(o){var u=document.readyState;u=="complete"||u=="interactive"?setTimeout(o):document.addEventListener("DOMContentLoaded",o)},r.toDashed=function(o){return o.replace(/(.)([A-Z])/g,function(u,f,p){return f+"-"+p}).toLowerCase()};var i=c.console;return r.htmlInit=function(o,u){r.docReady(function(){var f=r.toDashed(u),p="data-"+f,v=document.querySelectorAll("["+p+"]"),y=document.querySelectorAll(".js-"+f),S=r.makeArray(v).concat(r.makeArray(y)),D=p+"-options",F=c.jQuery;S.forEach(function(M){var A=M.getAttribute(p)||M.getAttribute(D),L;try{L=A&&JSON.parse(A)}catch(U){i&&i.error("Error parsing "+p+" on "+M.className+": "+U);return}var H=new o(M,L);F&&F.data(M,u,H)})})},r})})(Mc)),Mc.exports}var Rc={exports:{}},Sp;function aC(){return Sp||(Sp=1,(function(n){(function(l,c){n.exports?n.exports=c(yv(),dd()):(l.Outlayer={},l.Outlayer.Item=c(l.EvEmitter,l.getSize))})(window,function(c,s){function r(M){for(var A in M)return!1;return A=null,!0}var t=document.documentElement.style,i=typeof t.transition=="str
20ing"?"transition":"WebkitTransition",o=typeof t.transform=="string"?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[i],f={transform:o,transition:i,transitionDuration:i+"Duration",transitionProperty:i+"Property",transitionDelay:i+"Delay"};function p(M,A){M&&(this.element=M,this.layout=A,this.position={x:0,y:0},this._create())}var v=p.prototype=Object.create(c.prototype);v.constructor=p,v._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},v.handleEvent=function(M){var A="on"+M.type;this[A]&&this[A](M)},v.getSize=function(){this.size=s(this.element)},v.css=function(M){var A=this.element.style;for(var L in M){var H=f[L]||L;A[H]=M[L]}},v.getPosition=function(){var M=getComputedStyle(this.element),A=this.layout._getOption("originLeft"),L=this.layout._getOption("originTop"),H=M[A?"left":"right"],U=M[L?"top":"bottom"],ee=parseFloat(H),Z=parseFloat(U),w=this.layout.size;H.indexOf("%")!=-1&&(ee=ee/100*w.width),U.indexOf("%")!=-1&&(Z=Z/100*w.height),ee=isNaN(ee)?0:ee,Z=isNaN(Z)?0:Z,ee-=A?w.paddingLeft:w.paddingRight,Z-=L?w.paddingTop:w.paddingBottom,this.position.x=ee,this.position.y=Z},v.layoutPosition=function(){var M=this.layout.size,A={},L=this.layout._getOption("originLeft"),H=this.layout._getOption("originTop"),U=L?"paddingLeft":"paddingRight",ee=L?"left":"right",Z=L?"right":"left",w=this.position.x+M[U];A[ee]=this.getXValue(w),A[Z]="";var xe=H?"paddingTop":"paddingBottom",De=H?"top":"bottom",Ke=H?"bottom":"top",ye=this.position.y+M[xe];A[De]=this.getYValue(ye),A[Ke]="",this.css(A),this.emitEvent("layout",[this])},v.getXValue=function(M){var A=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!A?M/this.layout.size.width*100+"%":M+"px"},v.getYValue=function(M){var A=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&A?M/this.layout.size.height*100+"%":M+"px"},v._transitionTo=function(M,A){this.getPosition();var L=this.position.x,H=this.position.y,U=M==this.position.x&&A==this.position.y;if(this.setPosition(M,A),U&&!this.isTransitioning){this.layoutPosition();return}var ee=M-L,Z=A-H,w={};w.transform=this.getTranslate(ee,Z),this.transition({to:w,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},v.getTranslate=function(M,A){var L=this.layout._getOption("originLeft"),H=this.layout._getOption("originTop");return M=L?M:-M,A=H?A:-A,"translate3d("+M+"px, "+A+"px, 0)"},v.goTo=function(M,A){this.setPosition(M,A),this.layoutPosition()},v.moveTo=v._transitionTo,v.setPosition=function(M,A){this.position.x=parseFloat(M),this.position.y=parseFloat(A)},v._nonTransition=function(M){this.css(M.to),M.isCleaning&&this._removeStyles(M.to);for(var A in M.onTransitionEnd)M.onTransitionEnd[A].call(this)},v.transition=function(M){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(M);return}var A=this._transn;for(var L in M.onTransitionEnd)A.onEnd[L]=M.onTransitionEnd[L];for(L in M.to)A.ingProperties[L]=!0,M.isCleaning&&(A.clean[L]=!0);M.from&&(this.css(M.from),this.element.offsetHeight),this.enableTransition(M.to),this.css(M.to),this.isTransitioning=!0};function y(M){return M.replace(/([A-Z])/g,function(A){return"-"+A.toLowerCase()})}var S="opacity,"+y(o);v.enableTransition=function(){if(!this.isTransitioning){var M=this.layout.options.transitionDuration;M=typeof M=="number"?M+"ms":M,this.css({transitionProperty:S,transitionDuration:M,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},v.onwebkitTransitionEnd=function(M){this.ontransitionend(M)},v.onotransitionend=function(M){this.ontransitionend(M)};var D={"-webkit-transform":"transform"};v.ontransitionend=function(M){if(M.target===this.element){var A=this._transn,L=D[M.propertyName]||M.propertyName;if(delete A.ingProperties[L],r(A.ingProperties)&&this.disableTransition(),L in A.clean&&(this.element.style[M.propertyName]="",delete A.clean[L]),L in A.onEnd){var H=A.onEnd[L];H.call(this),delete A.onEnd[L]}this.emitEvent("transitionEnd",[this])}},v.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},v._removeStyles=function(M){var A={};for(var L in M)A[L]="";this.css(A)};var F={transitionProperty:"",transitionDuration:"",transitionDelay:""};return v.removeTransitionStyles=function(){this.css(F)},v.stagger=function(M){M=isNaN(M)?0:M,this.staggerDelay=M+"ms"},v.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},v.remove=function(){if(!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()}),this.hide()},v.reveal=function(){delete this.isHidden,this.css({display:""});var M=this.layout.options,A={},L=this.getHideRevealTransitionEndProperty("visibleStyle");A[L]=this.onRevealTransitionEnd,this.transition({from:M.hiddenStyle,to:M.visibleStyle,isCleaning:!0,onTransitionEnd:A})},v.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},v.getHideRevealTransitionEndProperty=function(M){var A=this.layout.options[M];if(A.opacity)return"opacity";for(var L in A)return L},v.hide=function(){this.isHidden=!0,this.css({display:""});var M=this.layout.options,A={},L=this.getHideRevealTransitionEndProperty("hiddenStyle");A[L]=this.onHideTransitionEnd,this.transition({from:M.visibleStyle,to:M.hiddenStyle,isCleaning:!0,onTransitionEnd:A})},v.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},v.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},p})})(Rc)),Rc.exports}var Dp;function bv(){return Dp||(Dp=1,(function(n){(function(l,c){n.exports?n.exports=c(l,yv(),dd(),oC(),aC()):l.Outlayer=c(l,l.EvEmitter,l.getSize,l.fizzyUIUtils,l.Outlayer.Item)})(window,function(c,s,r,t,i){var o=c.console,u=c.jQuery,f=function(){},p=0,v={};function y(A,L){var H=t.getQueryElement(A);if(!H){o&&o.error("Bad element for "+this.constructor.namespace+": "+(H||A));return}this.element=H,u&&(this.$element=u(this.element)),this.options=t.extend({},this.constructor.defaults),this.option(L);var U=++p;this.element.outlayerGUID=U,v[U]=this,this._create();var ee=this._getOption("initLayout");ee&&this.layout()}y.namespace="outlayer",y.Item=i,y.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var S=y.prototype;t.extend(S,s.prototype),S.option=function(A){t.extend(this.options,A)},S._getOption=function(A){var L=this.constructor.compatOptions[A];return L&&this.options[L]!==void 0?this.options[L]:this.options[A]}
20,y.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},S._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),t.extend(this.element.style,this.options.containerStyle);var A=this._getOption("resize");A&&this.bindResize()},S.reloadItems=function(){this.items=this._itemize(this.element.children)},S._itemize=function(A){for(var L=this._filterFindItemElements(A),H=this.constructor.Item,U=[],ee=0;ee<L.length;ee++){var Z=L[ee],w=new H(Z,this);U.push(w)}return U},S._filterFindItemElements=function(A){return t.filterFindElements(A,this.options.itemSelector)},S.getItemElements=function(){return this.items.map(function(A){return A.element})},S.layout=function(){this._resetLayout(),this._manageStamps();var A=this._getOption("layoutInstant"),L=A!==void 0?A:!this._isLayoutInited;this.layoutItems(this.items,L),this._isLayoutInited=!0},S._init=S.layout,S._resetLayout=function(){this.getSize()},S.getSize=function(){this.size=r(this.element)},S._getMeasurement=function(A,L){var H=this.options[A],U;H?(typeof H=="string"?U=this.element.querySelector(H):H instanceof HTMLElement&&(U=H),this[A]=U?r(U)[L]:H):this[A]=0},S.layoutItems=function(A,L){A=this._getItemsForLayout(A),this._layoutItems(A,L),this._postLayout()},S._getItemsForLayout=function(A){return A.filter(function(L){return!L.isIgnored})},S._layoutItems=function(A,L){if(this._emitCompleteOnItems("layout",A),!(!A||!A.length)){var H=[];A.forEach(function(U){var ee=this._getItemLayoutPosition(U);ee.item=U,ee.isInstant=L||U.isLayoutInstant,H.push(ee)},this),this._processLayoutQueue(H)}},S._getItemLayoutPosition=function(){return{x:0,y:0}},S._processLayoutQueue=function(A){this.updateStagger(),A.forEach(function(L,H){this._positionItem(L.item,L.x,L.y,L.isInstant,H)},this)},S.updateStagger=function(){var A=this.options.stagger;if(A==null){this.stagger=0;return}return this.stagger=M(A),this.stagger},S._positionItem=function(A,L,H,U,ee){U?A.goTo(L,H):(A.stagger(ee*this.stagger),A.moveTo(L,H))},S._postLayout=function(){this.resizeContainer()},S.resizeContainer=function(){var A=this._getOption("resizeContainer");if(A){var L=this._getContainerSize();L&&(this._setContainerMeasure(L.width,!0),this._setContainerMeasure(L.height,!1))}},S._getContainerSize=f,S._setContainerMeasure=function(A,L){if(A!==void 0){var H=this.size;H.isBorderBox&&(A+=L?H.paddingLeft+H.paddingRight+H.borderLeftWidth+H.borderRightWidth:H.paddingBottom+H.paddingTop+H.borderTopWidth+H.borderBottomWidth),A=Math.max(A,0),this.element.style[L?"width":"height"]=A+"px"}},S._emitCompleteOnItems=function(A,L){var H=this;function U(){H.dispatchEvent(A+"Complete",null,[L])}var ee=L.length;if(!L||!ee){U();return}var Z=0;function w(){Z++,Z==ee&&U()}L.forEach(function(xe){xe.once(A,w)})},S.dispatchEvent=function(A,L,H){var U=L?[L].concat(H):H;if(this.emitEvent(A,U),u)if(this.$element=this.$element||u(this.element),L){var ee=u.Event(L);ee.type=A,this.$element.trigger(ee,H)}else this.$element.trigger(A,H)},S.ignore=function(A){var L=this.getItem(A);L&&(L.isIgnored=!0)},S.unignore=function(A){var L=this.getItem(A);L&&delete L.isIgnored},S.stamp=function(A){A=this._find(A),A&&(this.stamps=this.stamps.concat(A),A.forEach(this.ignore,this))},S.unstamp=function(A){A=this._find(A),A&&A.forEach(function(L){t.removeFrom(this.stamps,L),this.unignore(L)},this)},S._find=function(A){if(A)return typeof A=="string"&&(A=this.element.querySelectorAll(A)),A=t.makeArray(A),A},S._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},S._getBoundingRect=function(){var A=this.element.getBoundingClientRect(),L=this.size;this._boundingRect={left:A.left+L.paddingLeft+L.borderLeftWidth,top:A.top+L.paddingTop+L.borderTopWidth,right:A.right-(L.paddingRight+L.borderRightWidth),bottom:A.bottom-(L.paddingBottom+L.borderBottomWidth)}},S._manageStamp=f,S._getElementOffset=function(A){var L=A.getBoundingClientRect(),H=this._boundingRect,U=r(A),ee={left:L.left-H.left-U.marginLeft,top:L.top-H.top-U.marginTop,right:H.right-L.right-U.marginRight,bottom:H.bottom-L.bottom-U.marginBottom};return ee},S.handleEvent=t.handleEvent,S.bindResize=function(){c.addEventListener("resize",this),this.isResizeBound=!0},S.unbindResize=function(){c.removeEventListener("resize",this),this.isResizeBound=!1},S.onresize=function(){this.resize()},t.debounceMethod(y,"onresize",100),S.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()},S.needsResizeLayout=function(){var A=r(this.element),L=this.size&&A;return L&&A.innerWidth!==this.size.innerWidth},S.addItems=function(A){var L=this._itemize(A);return L.length&&(this.items=this.items.concat(L)),L},S.appended=function(A){var L=this.addItems(A);L.length&&(this.layoutItems(L,!0),this.reveal(L))},S.prepended=function(A){var L=this._itemize(A);if(L.length){var H=this.items.slice(0);this.items=L.concat(H),this._resetLayout(),this._manageStamps(),this.layoutItems(L,!0),this.reveal(L),this.layoutItems(H)}},S.reveal=function(A){if(this._emitCompleteOnItems("reveal",A),!(!A||!A.length)){var L=this.updateStagger();A.forEach(function(H,U){H.stagger(U*L),H.reveal()})}},S.hide=function(A){if(this._emitCompleteOnItems("hide",A),!(!A||!A.length)){var L=this.updateStagger();A.forEach(function(H,U){H.stagger(U*L),H.hide()})}},S.revealItemElements=function(A){var L=this.getItems(A);this.reveal(L)},S.hideItemElements=function(A){var L=this.getItems(A);this.hide(L)},S.getItem=function(A){for(var L=0;L<this.items.length;L++){var H=this.items[L];if(H.element==A)return H}},S.getItems=function(A){A=t.makeArray(A);var L=[];return A.forEach(function(H){var U=this.getItem(H);U&&L.push(U)},this),L},S.remove=function(A){var L=this.getItems(A);this._emitCompleteOnItems("remove",L),!(!L||!L.length)&&L.forEac
20h(function(H){H.remove(),t.removeFrom(this.items,H)},this)},S.destroy=function(){var A=this.element.style;A.height="",A.position="",A.width="",this.items.forEach(function(H){H.destroy()}),this.unbindResize();var L=this.element.outlayerGUID;delete v[L],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},y.data=function(A){A=t.getQueryElement(A);var L=A&&A.outlayerGUID;return L&&v[L]},y.create=function(A,L){var H=D(y);return H.defaults=t.extend({},y.defaults),t.extend(H.defaults,L),H.compatOptions=t.extend({},y.compatOptions),H.namespace=A,H.data=y.data,H.Item=D(i),t.htmlInit(H,A),u&&u.bridget&&u.bridget(A,H),H};function D(A){function L(){A.apply(this,arguments)}return L.prototype=Object.create(A.prototype),L.prototype.constructor=L,L}var F={ms:1,s:1e3};function M(A){if(typeof A=="number")return A;var L=A.match(/(^\d*\.?\d*)(\w*)/),H=L&&L[1],U=L&&L[2];if(!H.length)return 0;H=parseFloat(H);var ee=F[U]||1;return H*ee}return y.Item=i,y})})(Lc)),Lc.exports}var Pc={exports:{}},Ap;function hd(){return Ap||(Ap=1,(function(n){(function(l,c){n.exports?n.exports=c():(l.Packery=l.Packery||{},l.Packery.Rect=c())})(window,function(){function c(r){for(var t in c.defaults)this[t]=c.defaults[t];for(t in r)this[t]=r[t]}c.defaults={x:0,y:0,width:0,height:0};var s=c.prototype;return s.contains=function(r){var t=r.width||0,i=r.height||0;return this.x<=r.x&&this.y<=r.y&&this.x+this.width>=r.x+t&&this.y+this.height>=r.y+i},s.overlaps=function(r){var t=this.x+this.width,i=this.y+this.height,o=r.x+r.width,u=r.y+r.height;return this.x<o&&t>r.x&&this.y<u&&i>r.y},s.getMaximalFreeRects=function(r){if(!this.overlaps(r))return!1;var t=[],i,o=this.x+this.width,u=this.y+this.height,f=r.x+r.width,p=r.y+r.height;return this.y<r.y&&(i=new c({x:this.x,y:this.y,width:this.width,height:r.y-this.y}),t.push(i)),o>f&&(i=new c({x:f,y:this.y,width:o-f,height:this.height}),t.push(i)),u>p&&(i=new c({x:this.x,y:p,width:this.width,height:u-p}),t.push(i)),this.x<r.x&&(i=new c({x:this.x,y:this.y,width:r.x-this.x,height:this.height}),t.push(i)),t},s.canFit=function(r){return this.width>=r.width&&this.height>=r.height},c})})(Pc)),Pc.exports}var Bc={exports:{}},_p;function sC(){return _p||(_p=1,(function(n){(function(l,c){if(n.exports)n.exports=c(hd());else{var s=l.Packery=l.Packery||{};s.Packer=c(s.Rect)}})(window,function(c){function s(i,o,u){this.width=i||0,this.height=o||0,this.sortDirection=u||"downwardLeftToRight",this.reset()}var r=s.prototype;r.reset=function(){this.spaces=[];var i=new c({x:0,y:0,width:this.width,height:this.height});this.spaces.push(i),this.sorter=t[this.sortDirection]||t.downwardLeftToRight},r.pack=function(i){for(var o=0;o<this.spaces.length;o++){var u=this.spaces[o];if(u.canFit(i)){this.placeInSpace(i,u);break}}},r.columnPack=function(i){for(var o=0;o<this.spaces.length;o++){var u=this.spaces[o],f=u.x<=i.x&&u.x+u.width>=i.x+i.width&&u.height>=i.height-.01;if(f){i.y=u.y,this.placed(i);break}}},r.rowPack=function(i){for(var o=0;o<this.spaces.length;o++){var u=this.spaces[o],f=u.y<=i.y&&u.y+u.height>=i.y+i.height&&u.width>=i.width-.01;if(f){i.x=u.x,this.placed(i);break}}},r.placeInSpace=function(i,o){i.x=o.x,i.y=o.y,this.placed(i)},r.placed=function(i){for(var o=[],u=0;u<this.spaces.length;u++){var f=this.spaces[u],p=f.getMaximalFreeRects(i);p?o.push.apply(o,p):o.push(f)}this.spaces=o,this.mergeSortSpaces()},r.mergeSortSpaces=function(){s.mergeRects(this.spaces),this.spaces.sort(this.sorter)},r.addSpace=function(i){this.spaces.push(i),this.mergeSortSpaces()},s.mergeRects=function(i){var o=0,u=i[o];e:for(;u;){for(var f=0,p=i[o+f];p;){if(p==u)f++;else if(p.contains(u)){i.splice(o,1),u=i[o];continue e}else u.contains(p)?i.splice(o+f,1):f++;p=i[o+f]}o++,u=i[o]}return i};var t={downwardLeftToRight:function(i,o){return i.y-o.y||i.x-o.x},rightwardTopToBottom:function(i,o){return i.x-o.x||i.y-o.y}};return s})})(Bc)),Bc.exports}var Nc={exports:{}},kp;function lC(){return kp||(kp=1,(function(n){(function(l,c){n.exports?n.exports=c(bv(),hd()):l.Packery.Item=c(l.Outlayer,l.Packery.Rect)})(window,function(c,s){var r=document.documentElement.style,t=typeof r.transform=="string"?"transform":"WebkitTransform",i=function(){c.Item.apply(this,arguments)},o=i.prototype=Object.create(c.Item.prototype),u=o._create;o._create=function(){u.call(this),this.rect=new s};var f=o.moveTo;return o.moveTo=function(p,v){var y=Math.abs(this.position.x-p),S=Math.abs(this.position.y-v),D=this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&y<1&&S<1;if(D){this.goTo(p,v);return}f.apply(this,arguments)},o.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&t&&(this.element.style[t]="none"),this.isTransitioning=!1,this.get
20Size(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},o.disablePlacing=function(){this.isPlacing=!1},o.removeElem=function(){var p=this.element.parentNode;p&&p.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},o.showDropPlaceholder=function(){var p=this.dropPlaceholder;p||(p=this.dropPlaceholder=document.createElement("div"),p.className="packery-drop-placeholder",p.style.position="absolute"),p.style.width=this.size.width+"px",p.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(p)},o.positionDropPlaceholder=function(){this.dropPlaceholder.style[t]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},o.hideDropPlaceholder=function(){var p=this.dropPlaceholder.parentNode;p&&p.removeChild(this.dropPlaceholder)},i})})(Nc)),Nc.exports}var Tp;function uC(){return Tp||(Tp=1,(function(n){(function(l,c){n.exports?n.exports=c(dd(),bv(),hd(),sC(),lC()):l.Packery=c(l.getSize,l.Outlayer,l.Packery.Rect,l.Packery.Packer,l.Packery.Item)})(window,function(c,s,r,t,i){r.prototype.canFit=function(D){return this.width>=D.width-1&&this.height>=D.height-1};var o=s.create("packery");o.Item=i;var u=o.prototype;u._create=function(){s.prototype._create.call(this),this.packer=new t,this.shiftPacker=new t,this.isEnabled=!0,this.dragItemCount=0;var D=this;this.handleDraggabilly={dragStart:function(){D.itemDragStart(this.element)},dragMove:function(){D.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){D.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(M,A){A&&D.itemDragStart(M.currentTarget)},drag:function(M,A){A&&D.itemDragMove(M.currentTarget,A.position.left,A.position.top)},stop:function(M,A){A&&D.itemDragEnd(M.currentTarget)}}},u._resetLayout=function(){this.getSize(),this._getMeasurements();var D,F,M;this._getOption("horizontal")?(D=1/0,F=this.size.innerHeight+this.gutter,M="rightwardTopToBottom"):(D=this.size.innerWidth+this.gutter,F=1/0,M="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=D,this.packer.height=this.shiftPacker.height=F,this.packer.sortDirection=this.shiftPacker.sortDirection=M,this.packer.reset(),this.maxY=0,this.maxX=0},u._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},u._getItemLayoutPosition=function(D){if(this._setRectSize(D.element,D.rect),this.isShifting||this.dragItemCount>0){var F=this._getPackMethod();this.packer[F](D.rect)}else this.packer.pack(D.rect);return this._setMaxXY(D.rect),D.rect},u.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},u._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},u._setMaxXY=function(D){this.maxX=Math.max(D.x+D.width,this.maxX),this.maxY=Math.max(D.y+D.height,this.maxY)},u._setRectSize=function(D,F){var M=c(D),A=M.outerWidth,L=M.outerHeight;(A||L)&&(A=this._applyGridGutter(A,this.columnWidth),L=this._applyGridGutter(L,this.rowHeight)),F.width=Math.min(A,this.packer.width),F.height=Math.min(L,this.packer.height)},u._applyGridGutter=function(D,F){if(!F)return D+this.gutter;F+=this.gutter;var M=D%F,A=M&&M<1?"round":"ceil";return D=Math[A](D/F)*F,D},u._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},u._manageStamp=function(D){var F=this.getItem(D),M;if(F&&F.isPlacing)M=F.rect;else{var A=this._getElementOffset(D);M=new r({x:this._getOption("originLeft")?A.left:A.right,y:this._getOption("originTop")?A.top:A.bottom})}this._setRectSize(D,M),this.packer.placed(M),this._setMaxXY(M)};function f(D,F){return D.position.y-F.position.y||D.position.x-F.position.x}function p(D,F){return D.position.x-F.position.x||D.position.y-F.position.y}u.sortItemsByPosition=function(){var D=this._getOption("horizontal")?p:f;this.items.sort(D)},u.fit=function(D,F,M){var A=this.getItem(D);A&&(this.stamp(A.element),A.enablePlacing(),this.updateShiftTargets(A),F=F===void 0?A.rect.x:F,M=M===void 0?A.rect.y:M,this.shift(A,F,M),this._bindFitEvents(A),A.moveTo(A.rect.x,A.rect.y),this.shiftLayout(),this.unstamp(A.element),this.sortItems
20ByPosition(),A.disablePlacing())},u._bindFitEvents=function(D){var F=this,M=0;function A(){M++,M==2&&F.dispatchEvent("fitComplete",null,[D])}D.once("layout",A),this.once("layoutComplete",A)},u.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},u.needsResizeLayout=function(){var D=c(this.element),F=this._getOption("horizontal")?"innerHeight":"innerWidth";return D[F]!=this.size[F]},u.resizeShiftPercentLayout=function(){var D=this._getItemsForLayout(this.items),F=this._getOption("horizontal"),M=F?"y":"x",A=F?"height":"width",L=F?"rowHeight":"columnWidth",H=F?"innerHeight":"innerWidth",U=this[L];if(U=U&&U+this.gutter,U){this._getMeasurements();var ee=this[L]+this.gutter;D.forEach(function(xe){var De=Math.round(xe.rect[M]/U);xe.rect[M]=De*ee})}else{var Z=c(this.element)[H]+this.gutter,w=this.packer[A];D.forEach(function(xe){xe.rect[M]=xe.rect[M]/w*Z})}this.shiftLayout()},u.itemDragStart=function(D){if(this.isEnabled){this.stamp(D);var F=this.getItem(D);F&&(F.enablePlacing(),F.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(F))}},u.updateShiftTargets=function(D){this.shiftPacker.reset(),this._getBoundingRect();var F=this._getOption("originLeft"),M=this._getOption("originTop");this.stamps.forEach(function(ie){var me=this.getItem(ie);if(!(me&&me.isPlacing)){var Y=this._getElementOffset(ie),Ee=new r({x:F?Y.left:Y.right,y:M?Y.top:Y.bottom});this._setRectSize(ie,Ee),this.shiftPacker.placed(Ee)}},this);var A=this._getOption("horizontal"),L=A?"rowHeight":"columnWidth",H=A?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var U,ee=this[L];if(ee=ee&&ee+this.gutter,ee){var Z=Math.ceil(D.rect[H]/ee),w=Math.floor((this.shiftPacker[H]+this.gutter)/ee);U=(w-Z)*ee;for(var xe=0;xe<w;xe++){var De=A?0:xe*ee,Ke=A?xe*ee:0;this._addShiftTarget(De,Ke,U)}}else U=this.shiftPacker[H]+this.gutter-D.rect[H],this._addShiftTarget(0,0,U);var ye=this._getItemsForLayout(this.items),_e=this._getPackMethod();ye.forEach(function(ie){var me=ie.rect;this._setRectSize(ie.element,me),this.shiftPacker[_e](me),this._addShiftTarget(me.x,me.y,U);var Y=A?me.x+me.width:me.x,Ee=A?me.y:me.y+me.height;if(this._addShiftTarget(Y,Ee,U),ee)for(var we=Math.round(me[H]/ee),Ie=1;Ie<we;Ie++){var nt=A?Y:me.x+ee*Ie,at=A?me.y+ee*Ie:Ee;this._addShiftTarget(nt,at,U)}},this)},u._addShiftTarget=function(D,F,M){var A=this._getOption("horizontal")?F:D;if(!(A!==0&&A>M)){var L=D+","+F,H=this.shiftTargetKeys.indexOf(L)!=-1;H||(this.shiftTargetKeys.push(L),this.shiftTargets.push({x:D,y:F}))}},u.shift=function(D,F,M){var A,L=1/0,H={x:F,y:M};this.shiftTargets.forEach(function(U){var ee=v(U,H);ee<L&&(A=U,L=ee)}),D.rect.x=A.x,D.rect.y=A.y};function v(D,F){var M=F.x-D.x,A=F.y-D.y;return Math.sqrt(M*M+A*A)}var y=120;u.itemDragMove=function(D,F,M){var A=this.isEnabled&&this.getItem(D);if(!A)return;F-=this.size.paddingLeft,M-=this.size.paddingTop;var L=this;function H(){L.shift(A,F,M),A.positionDropPlaceholder(),L.layout()}var U=new Date,ee=this._itemDragTime&&U-this._itemDragTime<y;ee?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(H,y)):(H(),this._itemDragTime=U)},u.itemDragEnd=function(D){var F=this.isEnabled&&this.getItem(D);if(!F)return;clearTimeout(this.dragTimeout),F.element.classList.add("is-positioning-post-drag");var M=0,A=this;function L(){M++,M==2&&(F.element.classList.remove("is-positioning-post-drag"),F.hideDropPlaceholder(),A.dispatchEvent("dragItemPositioned",null,[F]))}F.once("layout",L),this.once("layoutComplete",L),F.moveTo(F.rect.x,F.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),F.disablePlacing(),this.unstamp(F.element)},u.bindDraggabillyEvents=function(D){this._bindDraggabillyEvents(D,"on")},u.unbindDraggabillyEvents=function(D){this._bindDraggabillyEvents(D,"off")},u._bindDraggabillyEvents=function(D,F){var M=this.handleDraggabilly;D[F]("dragStart",M.dragStart),D[F]("dragMove",M.dragMove),D[F]("dragEnd",M.dragEnd)},u.bindUIDraggableEvents=function(D){this._bindUIDraggableEvents(D,"on")},u.unbindUIDraggableEvents=function(D){this._bindUIDraggableEvents(D,"off")},u._bindUIDraggableEvents=function(D,F){var M=this.handleUIDraggable;D[F]("dragstart",M.start)[F]("drag",M.drag)[F]("dragstop",M.stop)};var S=u.destroy;return u.destroy=function(){S.apply(this,arguments),this.isEnabled=!1},o.Rect=r,o.Packer=t,o})})(Fc)),Fc.exports}var cC=uC();const fC=Oa(cC);var iu={exports:{}},dC=iu.exports,Fp;function Dn(){return Fp||(Fp=1,(function(n,l){(function(c,s){n.exports=s()})(dC,(function(){var c=navigator.userAgent,s=navigator.platform,r=/gecko\/\d/i.test(c),t=/MSIE \d/.test(c),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(c),o=/Edge\/(\d+)/.exec(c),u=t||i||o,f=u&&(t?document.documentMode||6:+(o||i)[1]),p=!o&&/WebKit\//.test(c),v=p&&/Qt\/\d+\.\d+/.test(c),y=!o&&/Chrome\/(\d+)/.exec(c),S=y&&+y[1],D=/Opera\//.test(c),F=/Apple Computer/.test(navigator.vendor),M=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(c),A=/PhantomJS/.test(c),L=F&&
20(/Mobile\/\w+/.test(c)||navigator.maxTouchPoints>2),H=/Android/.test(c),U=L||H||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(c),ee=L||/Mac/.test(s),Z=/\bCrOS\b/.test(c),w=/win/i.test(s),xe=D&&c.match(/Version\/(\d*\.\d*)/);xe&&(xe=Number(xe[1])),xe&&xe>=15&&(D=!1,p=!0);var De=ee&&(v||D&&(xe==null||xe<12.11)),Ke=r||u&&f>=9;function ye(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _e=function(e,a){var h=e.className,d=ye(a).exec(h);if(d){var g=h.slice(d.index+d[0].length);e.className=h.slice(0,d.index)+(g?d[1]+g:"")}};function ie(e){for(var a=e.childNodes.length;a>0;--a)e.removeChild(e.firstChild);return e}function me(e,a){return ie(e).appendChild(a)}function Y(e,a,h,d){var g=document.createElement(e);if(h&&(g.className=h),d&&(g.style.cssText=d),typeof a=="string")g.appendChild(document.createTextNode(a));else if(a)for(var x=0;x<a.length;++x)g.appendChild(a[x]);return g}function Ee(e,a,h,d){var g=Y(e,a,h,d);return g.setAttribute("role","presentation"),g}var we;document.createRange?we=function(e,a,h,d){var g=document.createRange();return g.setEnd(d||e,h),g.setStart(e,a),g}:we=function(e,a,h){var d=document.body.createTextRange();try{d.moveToElementText(e.parentNode)}catch{return d}return d.collapse(!0),d.moveEnd("character",h),d.moveStart("character",a),d};function Ie(e,a){if(a.nodeType==3&&(a=a.parentNode),e.contains)return e.contains(a);do if(a.nodeType==11&&(a=a.host),a==e)return!0;while(a=a.parentNode)}function nt(e){var a=e.ownerDocument||e,h;try{h=e.activeElement}catch{h=a.body||null}for(;h&&h.shadowRoot&&h.shadowRoot.activeElement;)h=h.shadowRoot.activeElement;return h}function at(e,a){var h=e.className;ye(a).test(h)||(e.className+=(h?" ":"")+a)}function ut(e,a){for(var h=e.split(" "),d=0;d<h.length;d++)h[d]&&!ye(h[d]).test(a)&&(a+=" "+h[d]);return a}var j=function(e){e.select()};L?j=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:u&&(j=function(e){try{e.select()}catch{}});function I(e){return e.display.wrapper.ownerDocument}function pe(e){return ze(e.display.wrapper)}function ze(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function Re(e){return I(e).defaultView}function We(e){var a=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,a)}}function ct(e,a,h){a||(a={});for(var d in e)e.hasOwnProperty(d)&&(h!==!1||!a.hasOwnProperty(d))&&(a[d]=e[d]);return a}function ft(e,a,h,d,g){a==null&&(a=e.search(/[^\s\u00a0]/),a==-1&&(a=e.length));for(var x=d||0,E=g||0;;){var T=e.indexOf("	",x);if(T<0||T>=a)return E+(a-x);E+=T-x,E+=h-E%h,x=T+1}}var St=function(){this.id=null,this.f=null,this.time=0,this.handler=We(this.onTimeout,this)};St.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},St.prototype.set=function(e,a){this.f=a;var h=+new Date+e;(!this.id||h<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=h)};function vt(e,a){for(var h=0;h<e.length;++h)if(e[h]==a)return h;return-1}var ot=50,pt={toString:function(){return"CodeMirror.Pass"}},gt={scroll:!1},$e={origin:"*mouse"},rt={origin:"+move"};function Ht(e,a,h){for(var d=0,g=0;;){var x=e.indexOf("	",d);x==-1&&(x=e.length);var E=x-d;if(x==e.length||g+E>=a)return d+Math.min(E,a-g);if(g+=x-d,g+=h-g%h,d=x+1,g>=a)return d}}var Xt=[""];function Qt(e){for(;Xt.length<=e;)Xt.push(Tt(Xt)+" ");return Xt[e]}function Tt(e){return e[e.length-1]}function Ft(e,a){for(var h=[],d=0;d<e.length;d++)h[d]=a(e[d],d);return h}function Yt(e,a,h){for(var d=0,g=h(a);d<e.length&&h(e[d])<=g;)d++;e.splice(d,0,a)}function cn(){}function be(e,a){var h;return Object.create?h=Object.create(e):(cn.prototype=e,h=new cn),a&&ct(a,h),h}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ce(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||le.test(e))}function N(e,a){return a?a.source.indexOf("\\w")>-1&&ce(e)?!0:a.test(e):ce(e)}function q(e){for(var a in e)if(e.hasOwnProperty(a)&&e[a])return!1;return!0}var G=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u
20094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&G.test(e)}function _(e,a,h){for(;(h<0?a>0:a<e.length)&&oe(e.charAt(a));)a+=h;return a}function W(e,a,h){for(var d=a>h?-1:1;;){if(a==h)return a;var g=(a+h)/2,x=d<0?Math.ceil(g):Math.floor(g);if(x==a)return e(x)?a:h;e(x)?h=x:a=x+d}}function K(e,a,h,d){if(!e)return d(a,h,"ltr",0);for(var g=!1,x=0;x<e.length;++x){var E=e[x];(E.from<h&&E.to>a||a==h&&E.to==a)&&(d(Math.max(E.from,a),Math.min(E.to,h),E.level==1?"rtl":"ltr",x),g=!0)}g||d(a,h,"ltr")}var te=null;function se(e,a,h){var d;te=null;for(var g=0;g<e.length;++g){var x=e[g];if(x.from<a&&x.to>a)return g;x.to==a&&(x.from!=x.to&&h=="before"?d=g:te=g),x.from==a&&(x.from!=x.to&&h!="before"?d=g:te=g)}return d??te}var Ce=(function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",a="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function h(B){return B<=247?e.charAt(B):1424<=B&&B<=1524?"R":1536<=B&&B<=1785?a.charAt(B-1536):1774<=B&&B<=2220?"r":8192<=B&&B<=8203?"w":B==8204?"b":"L"}var d=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,g=/[stwN]/,x=/[LRr]/,E=/[Lb1n]/,T=/[1n]/;function O(B,X,J){this.level=B,this.from=X,this.to=J}return function(B,X){var J=X=="ltr"?"L":"R";if(B.length==0||X=="ltr"&&!d.test(B))return!1;for(var ve=B.length,de=[],Te=0;Te<ve;++Te)de.push(h(B.charCodeAt(Te)));for(var Me=0,Be=J;Me<ve;++Me){var Ge=de[Me];Ge=="m"?de[Me]=Be:Be=Ge}for(var Ze=0,Xe=J;Ze<ve;++Ze){var it=de[Ze];it=="1"&&Xe=="r"?de[Ze]="n":x.test(it)&&(Xe=it,it=="r"&&(de[Ze]="R"))}for(var mt=1,ht=de[0];mt<ve-1;++mt){var Rt=de[mt];Rt=="+"&&ht=="1"&&de[mt+1]=="1"?de[mt]="1":Rt==","&&ht==de[mt+1]&&(ht=="1"||ht=="n")&&(de[mt]=ht),ht=Rt}for(var ni=0;ni<ve;++ni){var Ri=de[ni];if(Ri==",")de[ni]="N";else if(Ri=="%"){var ui=void 0;for(ui=ni+1;ui<ve&&de[ui]=="%";++ui);for(var hn=ni&&de[ni-1]=="!"||ui<ve&&de[ui]=="1"?"1":"N",on=ni;on<ui;++on)de[on]=hn;ni=ui-1}}for(var bi=0,an=J;bi<ve;++bi){var Bi=de[bi];an=="L"&&Bi=="1"?de[bi]="L":x.test(Bi)&&(an=Bi)}for(var Di=0;Di<ve;++Di)if(g.test(de[Di])){var xi=void 0;for(xi=Di+1;xi<ve&&g.test(de[xi]);++xi);for(var pi=(Di?de[Di-1]:J)=="L",sn=(xi<ve?de[xi]:J)=="L",fa=pi==sn?pi?"L":"R":J,Wr=Di;Wr<xi;++Wr)de[Wr]=fa;Di=xi-1}for(var $i=[],rr,Pi=0;Pi<ve;)if(E.test(de[Pi])){var gc=Pi;for(++Pi;Pi<ve&&E.test(de[Pi]);++Pi);$i.push(new O(0,gc,Pi))}else{var wr=Pi,fo=$i.length,ho=X=="rtl"?1:0;for(++Pi;Pi<ve&&de[Pi]!="L";++Pi);for(var Ki=wr;Ki<Pi;)if(T.test(de[Ki])){wr<Ki&&($i.splice(fo,0,new O(1,wr,Ki)),fo+=ho);var da=Ki;for(++Ki;Ki<Pi&&T.test(de[Ki]);++Ki);$i.splice(fo,0,new O(2,da,Ki)),fo+=ho,wr=Ki}else++Ki;wr<Pi&&$i.splice(fo,0,new O(1,wr,Pi))}return X=="ltr"&&($i[0].level==1&&(rr=B.match(/^\s+/))&&($i[0].from=rr[0].length,$i.unshift(new O(0,0,rr[0].length))),Tt($i).level==1&&(rr=B.match(/\s+$/))&&(Tt($i).to-=rr[0].length,$i.push(new O(0,ve-rr[0].length,ve)))),X=="rtl"?$i.reverse():$i}})();function re(e,a){var h=e.order;return h==null&&(h=e.order=Ce(e.text,a)),h}var ue=[],Q=function(e,a,h){if(e.addEventListener)e.addEventListener(a,h,!1);else if(e.attachEvent)e.attachEvent("on"+a,h);else{var d=e._handlers||(e._handlers={});d[a]=(d[a]||ue).concat(h)}};function je(e,a){return e._handlers&&e._handlers[a]||ue}function Ne(e,a,h){if(e.removeEventListener)e.removeEventListener(a,h,!1);else if(e.detachEvent)e.detachEvent("on"+a,h);else{var d=e._handlers,g=d&&d[a];if(g){var x=vt(g,h);x>-1&&(d[a]=g.slice(0,x).concat(g.slice(x+1)))}}}function Qe(e,a){var h=je(e,a);if(h.length)for(var d=Array.prototype.slice.call(arguments,2),g=0;g<h.length;++g)h[g].apply(null,d)}
20function qe(e,a,h){return typeof a=="string"&&(a={type:a,preventDefault:function(){this.defaultPrevented=!0}}),Qe(e,h||a.type,e,a),Et(a)||a.codemirrorIgnore}function tt(e){var a=e._handlers&&e._handlers.cursorActivity;if(a)for(var h=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),d=0;d<a.length;++d)vt(h,a[d])==-1&&h.push(a[d])}function yt(e,a){return je(e,a).length>0}function Nt(e){e.prototype.on=function(a,h){Q(this,a,h)},e.prototype.off=function(a,h){Ne(this,a,h)}}function dt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ot(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Et(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Wt(e){dt(e),Ot(e)}function ti(e){return e.target||e.srcElement}function Jt(e){var a=e.which;return a==null&&(e.button&1?a=1:e.button&2?a=3:e.button&4&&(a=2)),ee&&e.ctrlKey&&a==1&&(a=3),a}var fn=(function(){if(u&&f<9)return!1;var e=Y("div");return"draggable"in e||"dragDrop"in e})(),bn;function Po(e){if(bn==null){var a=Y("span","​");me(e,Y("span",[a,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(bn=a.offsetWidth<=1&&a.offsetHeight>2&&!(u&&f<8))}var h=bn?Y("span","​"):Y("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return h.setAttribute("cm-text",""),h}var _r;function Ba(e){if(_r!=null)return _r;var a=me(e,document.createTextNode("AخA")),h=we(a,0,1).getBoundingClientRect(),d=we(a,1,2).getBoundingClientRect();return ie(e),!h||h.left==h.right?!1:_r=d.right-h.right<3}var Kn=`
21
22b`.split(/\n/).length!=3?function(e){for(var a=0,h=[],d=e.length;a<=d;){var g=e.indexOf(`
23`,a);g==-1&&(g=e.length);var x=e.slice(a,e.charAt(g-1)=="\r"?g-1:g),E=x.indexOf("\r");E!=-1?(h.push(x.slice(0,E)),a+=E+1):(h.push(x),a=g+1)}return h}:function(e){return e.split(/\r\n?|\n/)},Na=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var a;try{a=e.ownerDocument.selection.createRange()}catch{}return!a||a.parentElement()!=e?!1:a.compareEndPoints("StartToEnd",a)!=0},Ha=(function(){var e=Y("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")})(),hi=null;function Vn(e){if(hi!=null)return hi;var a=me(e,Y("span","x")),h=a.getBoundingClientRect(),d=we(a,0,1).getBoundingClientRect();return hi=Math.abs(h.left-d.left)>1}var Ei={},Fi={};function xn(e,a){arguments.length>2&&(a.dependencies=Array.prototype.slice.call(arguments,2)),Ei[e]=a}function Rn(e,a){Fi[e]=a}function An(e){if(typeof e=="string"&&Fi.hasOwnProperty(e))e=Fi[e];else if(e&&typeof e.name=="string"&&Fi.hasOwnProperty(e.name)){var a=Fi[e.name];typeof a=="string"&&(a={name:a}),e=be(a,e),e.name=a.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return An("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return An("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function kr(e,a){a=An(a);var h=Ei[a.name];if(!h)return kr(e,"text/plain");var d=h(e,a);if(Pn.hasOwnProperty(a.name)){var g=Pn[a.name];for(var x in g)g.hasOwnProperty(x)&&(d.hasOwnProperty(x)&&(d["_"+x]=d[x]),d[x]=g[x])}if(d.name=a.name,a.helperType&&(d.helperType=a.helperType),a.modeProps)for(var E in a.modeProps)d[E]=a.modeProps[E];return d}var Pn={};function Jr(e,a){var h=Pn.hasOwnProperty(e)?Pn[e]:Pn[e]={};ct(a,h)}function Zn(e,a){if(a===!0)return a;if(e.copyState)return e.copyState(a);var h={};for(var d in a){var g=a[d];g instanceof Array&&(g=g.concat([])),h[d]=g}return h}function Bo(e,a){for(var h;e.innerMode&&(h=e.innerMode(a),!(!h||h.mode==e));)a=h.state,e=h.mode;return h||{mode:e,state:a}}function za(e,a,h){return e.startState?e.startState(a,h):!0}var ai=function(e,a,h){this.pos=this.start=0,this.string=e,this.tabSize=a||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=h};ai.prototype.eol=function(){return this.pos>=this.string.length},ai.prototype.sol=function(){return this.pos==this.lineStart},ai.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ai.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ai.prototype.eat=function(e){var a=this.string.charAt(this.pos),h;if(typeof e=="string"?h=a==e:h=a&&(e.test?e.test(a):e(a)),h)return++this.pos,a},ai.prototype.eatWhile=function(e){for(var a=this.pos;this.eat(e););return this.pos>a},ai.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ai.prototype.skipToEnd=function(){this.pos=this.string.length},ai.prototype.skipTo=function(e){var a=this.string.indexOf(e,this.pos);if(a>-1)return this.pos=a,!0},ai.prototype.backUp=function(e){this.pos-=e},ai.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ft(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ft(this.string,this.lineStart,this.tabSize):0)},ai.prototype.indentation=function(){return ft(this.string,null,this.tabSize)-(this.lineStart?ft(this.string,this.lineStart,this.tabSize):0)},ai.prototype.match=function(e,a,h){if(typeof e=="string"){var d=function(E){return h?E.toLowerCase():E},g=this.string.substr(this.pos,e.length);if(d(g)==d(e))return a!==!1&&(this.pos+=e.length),!0}else{var x=this.string.slice(this.pos).match(e);return x&&x.index>
230?null:(x&&a!==!1&&(this.pos+=x[0].length),x)}},ai.prototype.current=function(){return this.string.slice(this.start,this.pos)},ai.prototype.hideFirstChars=function(e,a){this.lineStart+=e;try{return a()}finally{this.lineStart-=e}},ai.prototype.lookAhead=function(e){var a=this.lineOracle;return a&&a.lookAhead(e)},ai.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function st(e,a){if(a-=e.first,a<0||a>=e.size)throw new Error("There is no line "+(a+e.first)+" in the document.");for(var h=e;!h.lines;)for(var d=0;;++d){var g=h.children[d],x=g.chunkSize();if(a<x){h=g;break}a-=x}return h.lines[a]}function Bn(e,a,h){var d=[],g=a.line;return e.iter(a.line,h.line+1,function(x){var E=x.text;g==h.line&&(E=E.slice(0,h.ch)),g==a.line&&(E=E.slice(a.ch)),d.push(E),++g}),d}function ja(e,a,h){var d=[];return e.iter(a,h,function(g){d.push(g.text)}),d}function _n(e,a){var h=a-e.height;if(h)for(var d=e;d;d=d.parent)d.height+=h}function Vt(e){if(e.parent==null)return null;for(var a=e.parent,h=vt(a.lines,e),d=a.parent;d;a=d,d=d.parent)for(var g=0;d.children[g]!=a;++g)h+=d.children[g].chunkSize();return h+a.first}function Qn(e,a){var h=e.first;e:do{for(var d=0;d<e.children.length;++d){var g=e.children[d],x=g.height;if(a<x){e=g;continue e}a-=x,h+=g.chunkSize()}return h}while(!e.lines);for(var E=0;E<e.lines.length;++E){var T=e.lines[E],O=T.height;if(a<O)break;a-=O}return h+E}function fr(e,a){return a>=e.first&&a<e.first+e.size}function No(e,a){return String(e.lineNumberFormatter(a+e.firstLineNumber))}function Pe(e,a,h){if(h===void 0&&(h=null),!(this instanceof Pe))return new Pe(e,a,h);this.line=e,this.ch=a,this.sticky=h}function bt(e,a){return e.line-a.line||e.ch-a.ch}function Tr(e,a){return e.sticky==a.sticky&&bt(e,a)==0}function Wa(e){return Pe(e.line,e.ch)}function Ho(e,a){return bt(e,a)<0?a:e}function Fr(e,a){return bt(e,a)<0?e:a}function $a(e,a){return Math.max(e.first,Math.min(a,e.first+e.size-1))}function wt(e,a){if(a.line<e.first)return Pe(e.first,0);var h=e.first+e.size-1;return a.line>h?Pe(h,st(e,h).text.length):rl(a,st(e,a.line).text.length)}function rl(e,a){var h=e.ch;return h==null||h>a?Pe(e.line,a):h<0?Pe(e.line,0):e}function ol(e,a){for(var h=[],d=0;d<a.length;d++)h[d]=wt(e,a[d]);return h}var zo=function(e,a){this.state=e,this.lookAhead=a},mi=function(e,a,h,d){this.state=a,this.doc=e,this.line=h,this.maxLookAhead=d||0,this.baseTokens=null,this.baseTokenPos=1};mi.prototype.lookAhead=function(e){var a=this.doc.getLine(this.line+e);return a!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),a},mi.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var a=this.baseTokens[this.baseTokenPos+1];return{type:a&&a.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mi.fromSaved=function(e,a,h){return a instanceof zo?new mi(e,Zn(e.mode,a.state),h,a.lookAhead):new mi(e,Zn(e.mode,a),h)},mi.prototype.save=function(e){var a=e!==!1?Zn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zo(a,this.maxLookAhead):a};function qa(e,a,h,d){var g=[e.state.modeGen],x={};Ga(e,a.text,e.doc.mode,h,function(B,X){return g.push(B,X)},x,d);for(var E=h.state,T=function(B){h.baseTokens=g;var X=e.state.overlays[B],J=1,ve=0;h.state=!0,Ga(e,a.text,X.mode,h,function(de,Te){for(var Me=J;ve<de;){var Be=g[J];Be>de&&g.splice(J,1,de,g[J+1],Be),J+=2,ve=Math.min(de,Be)}if(Te)if(X.opaque)g.splice(Me,J-Me,de,"overlay "+Te),J=Me+2;else for(;Me<J;Me+=2){var Ge=g[Me+1];g[Me+1]=(Ge?Ge+" ":"")+"overlay "+Te}},x),h.state=E,h.baseTokens=null,h.baseTokenPos=1},O=0;O<e.state.overlays.length;++O)T(O);return{styles:g,classes:x.bgClass||x.textClass?x:null}}function Or(e,a,h){if(!a.styles||a.styles[0]!=e.state.modeGen){var d=eo(e,Vt(a)),g=a.text.length>e.options.maxHighlightLength&&Zn(e.doc.mode,d.state),x=qa(e,a,d);g&&(d.state=g),a.stateAfter=d.save(!g),a.styles=x.styles,x.classes?a.styleClasses=x.classes:a.styleClasses&&(a.styleClasses=null),h===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return a.styles}
23function eo(e,a,h){var d=e.doc,g=e.display;if(!d.mode.startState)return new mi(d,!0,a);var x=Xa(e,a,h),E=x>d.first&&st(d,x-1).stateAfter,T=E?mi.fromSaved(d,E,x):new mi(d,za(d.mode),x);return d.iter(x,a,function(O){Ua(e,O.text,T);var B=T.line;O.stateAfter=B==a-1||B%5==0||B>=g.viewFrom&&B<g.viewTo?T.save():null,T.nextLine()}),h&&(d.modeFrontier=T.line),T}function Ua(e,a,h,d){var g=e.doc.mode,x=new ai(a,e.options.tabSize,h);for(x.start=x.pos=d||0,a==""&&Jn(g,h.state);!x.eol();)Nn(g,x,h.state),x.start=x.pos}function Jn(e,a){if(e.blankLine)return e.blankLine(a);if(e.innerMode){var h=Bo(e,a);if(h.mode.blankLine)return h.mode.blankLine(h.state)}}function Nn(e,a,h,d){for(var g=0;g<10;g++){d&&(d[0]=Bo(e,h).mode);var x=e.token(a,h);if(a.pos>a.start)return x}throw new Error("Mode "+e.name+" failed to advance stream.")}var jo=function(e,a,h){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=a||null,this.state=h};function al(e,a,h,d){var g=e.doc,x=g.mode,E;a=wt(g,a);var T=st(g,a.line),O=eo(e,a.line,h),B=new ai(T.text,e.options.tabSize,O),X;for(d&&(X=[]);(d||B.pos<a.ch)&&!B.eol();)B.start=B.pos,E=Nn(x,B,O.state),d&&X.push(new jo(B,E,Zn(g.mode,O.state)));return d?X:new jo(B,E,O.state)}function Lr(e,a){if(e)for(;;){var h=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!h)break;e=e.slice(0,h.index)+e.slice(h.index+h[0].length);var d=h[1]?"bgClass":"textClass";a[d]==null?a[d]=h[2]:new RegExp("(?:^|\\s)"+h[2]+"(?:$|\\s)").test(a[d])||(a[d]+=" "+h[2])}return e}function Ga(e,a,h,d,g,x,E){var T=h.flattenSpans;T==null&&(T=e.options.flattenSpans);var O=0,B=null,X=new ai(a,e.options.tabSize,d),J,ve=e.options.addModeClass&&[null];for(a==""&&Lr(Jn(h,d.state),x);!X.eol();){if(X.pos>e.options.maxHighlightLength?(T=!1,E&&Ua(e,a,d,X.pos),X.pos=a.length,J=null):J=Lr(Nn(h,X,d.state,ve),x),ve){var de=ve[0].name;de&&(J="m-"+(J?de+" "+J:de))}if(!T||B!=J){for(;O<X.start;)O=Math.min(X.start,O+5e3),g(O,B);B=J}X.start=X.pos}for(;O<X.pos;){var Te=Math.min(X.pos,O+5e3);g(Te,B),O=Te}}function Xa(e,a,h){for(var d,g,x=e.doc,E=h?-1:a-(e.doc.mode.innerMode?1e3:100),T=a;T>E;--T){if(T<=x.first)return x.first;var O=st(x,T-1),B=O.stateAfter;if(B&&(!h||T+(B instanceof zo?B.lookAhead:0)<=x.modeFrontier))return T;var X=ft(O.text,null,e.options.tabSize);(g==null||d>X)&&(g=T-1,d=X)}return g}function sl(e,a){if(e.modeFrontier=Math.min(e.modeFrontier,a),!(e.highlightFrontier<a-10)){for(var h=e.first,d=a-1;d>h;d--){var g=st(e,d).stateAfter;if(g&&(!(g instanceof zo)||d+g.lookAhead<a)){h=d+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,h)}}var Ya=!1,Hn=!1;function ll(){Ya=!0}function Mu(){Hn=!0}function Wo(e,a,h){this.marker=e,this.from=a,this.to=h}function dr(e,a){if(e)for(var h=0;h<e.length;++h){var d=e[h];if(d.marker==a)return d}}function Iu(e,a){for(var h,d=0;d<e.length;++d)e[d]!=a&&(h||(h=[])).push(e[d]);return h}function Ru(e,a,h){var d=h&&window.WeakSet&&(h.markedSpans||(h.markedSpans=new WeakSet));d&&e.markedSpans&&d.has(e.markedSpans)?e.markedSpans.push(a):(e.markedSpans=e.markedSpans?e.markedSpans.concat([a]):[a],d&&d.add(e.markedSpans)),a.marker.attachLine(e)}function Pu(e,a,h){var d;if(e)for(var g=0;g<e.length;++g){var x=e[g],E=x.marker,T=x.from==null||(E.inclusiveLeft?x.from<=a:x.from<a);if(T||x.from==a&&E.type=="bookmark"&&(!h||!x.marker.insertLeft)){var O=x.to==null||(E.inclusiveRight?x.to>=a:x.to>a);(d||(d=[])).push(new Wo(E,x.from,O?null:x.to))}}return d}function Bu(e,a,h){var d;if(e)for(var g=0;g<e.length;++g){var x=e[g],E=x.marker,T=x.to==null||(E.inclusiveRight?x.to>=a:x.to>a);if(T||x.from==a&&E.type=="bookmark"&&(!h||x.marker.insertLeft)){var O=x.from==null||(E.inclusiveLeft?x.from<=a:x.from<a);(d||(d=[])).push(new Wo(E,O?null:x.from-a,x.to==null?null:x.to-a))}}return d}function Ka(e,a){if(a.full)return null;var h=fr(e,a.from.line)&&st(e,a.from.line).markedSpans,d=fr(e,a.to.line)&&st(e,a.to.line).markedSpans;if(!h&&!d)return null;var g=a.from.ch,x=a.to.ch,E=bt(a.from,a.to)==0,T=Pu(h,g,E),O=Bu(d,x,E),B=a.text.length==1,X=Tt(a.text).length+(B?g:0);if(T)for(var J=0;J<T.length;++J){var ve=T[J];if(ve.to==null){var de=dr(O,ve.marker);de?B&&(ve.to=de.to==null?null:de.to+X):ve.to=g}}if(O)for(var Te=0;Te<O.length;++Te){var Me=O[Te];if(Me.to!=null&&(Me.to+=X),Me.from==null){var Be=dr(T,Me.marker);Be||(Me.from=X,B&&(T||(T=[])).push(Me))}else Me.from+=X,B&&(T||(T=[])).push(Me)}T&&(T=ul(T)),O&&O!=T&&(O=ul(O));var Ge=[T];if(!B){var Ze=a.text.length-2,Xe;if(Ze>0&&T)for(var it=0;
23it<T.length;++it)T[it].to==null&&(Xe||(Xe=[])).push(new Wo(T[it].marker,null,null));for(var mt=0;mt<Ze;++mt)Ge.push(Xe);Ge.push(O)}return Ge}function ul(e){for(var a=0;a<e.length;++a){var h=e[a];h.from!=null&&h.from==h.to&&h.marker.clearWhenEmpty!==!1&&e.splice(a--,1)}return e.length?e:null}function Nu(e,a,h){var d=null;if(e.iter(a.line,h.line+1,function(de){if(de.markedSpans)for(var Te=0;Te<de.markedSpans.length;++Te){var Me=de.markedSpans[Te].marker;Me.readOnly&&(!d||vt(d,Me)==-1)&&(d||(d=[])).push(Me)}}),!d)return null;for(var g=[{from:a,to:h}],x=0;x<d.length;++x)for(var E=d[x],T=E.find(0),O=0;O<g.length;++O){var B=g[O];if(!(bt(B.to,T.from)<0||bt(B.from,T.to)>0)){var X=[O,1],J=bt(B.from,T.from),ve=bt(B.to,T.to);(J<0||!E.inclusiveLeft&&!J)&&X.push({from:B.from,to:T.from}),(ve>0||!E.inclusiveRight&&!ve)&&X.push({from:T.to,to:B.to}),g.splice.apply(g,X),O+=X.length-3}}return g}function Va(e){var a=e.markedSpans;if(a){for(var h=0;h<a.length;++h)a[h].marker.detachLine(e);e.markedSpans=null}}function $o(e,a){if(a){for(var h=0;h<a.length;++h)a[h].marker.attachLine(e);e.markedSpans=a}}function to(e){return e.inclusiveLeft?-1:0}function Mr(e){return e.inclusiveRight?1:0}function qo(e,a){var h=e.lines.length-a.lines.length;if(h!=0)return h;var d=e.find(),g=a.find(),x=bt(d.from,g.from)||to(e)-to(a);if(x)return-x;var E=bt(d.to,g.to)||Mr(e)-Mr(a);return E||a.id-e.id}function Za(e,a){var h=Hn&&e.markedSpans,d;if(h)for(var g=void 0,x=0;x<h.length;++x)g=h[x],g.marker.collapsed&&(a?g.from:g.to)==null&&(!d||qo(d,g.marker)<0)&&(d=g.marker);return d}function Uo(e){return Za(e,!0)}function Go(e){return Za(e,!1)}function Hu(e,a){var h=Hn&&e.markedSpans,d;if(h)for(var g=0;g<h.length;++g){var x=h[g];x.marker.collapsed&&(x.from==null||x.from<a)&&(x.to==null||x.to>a)&&(!d||qo(d,x.marker)<0)&&(d=x.marker)}return d}function cl(e,a,h,d,g){var x=st(e,a),E=Hn&&x.markedSpans;if(E)for(var T=0;T<E.length;++T){var O=E[T];if(O.marker.collapsed){var B=O.marker.find(0),X=bt(B.from,h)||to(O.marker)-to(g),J=bt(B.to,d)||Mr(O.marker)-Mr(g);if(!(X>=0&&J<=0||X<=0&&J>=0)&&(X<=0&&(O.marker.inclusiveRight&&g.inclusiveLeft?bt(B.to,h)>=0:bt(B.to,h)>0)||X>=0&&(O.marker.inclusiveRight&&g.inclusiveLeft?bt(B.from,d)<=0:bt(B.from,d)<0)))return!0}}}function Hi(e){for(var a;a=Uo(e);)e=a.find(-1,!0).line;return e}function fl(e){for(var a;a=Go(e);)e=a.find(1,!0).line;return e}function Qa(e){for(var a,h;a=Go(e);)e=a.find(1,!0).line,(h||(h=[])).push(e);return h}function Ja(e,a){var h=st(e,a),d=Hi(h);return h==d?a:Vt(d)}function dl(e,a){if(a>e.lastLine())return a;var h=st(e,a),d;if(!er(e,h))return a;for(;d=Go(h);)h=d.find(1,!0).line;return Vt(h)+1}function er(e,a){var h=Hn&&a.markedSpans;if(h){for(var d=void 0,g=0;g<h.length;++g)if(d=h[g],!!d.marker.collapsed){if(d.from==null)return!0;if(!d.marker.widgetNode&&d.from==0&&d.marker.inclusiveLeft&&m(e,a,d))return!0}}}function m(e,a,h){if(h.to==null){var d=h.marker.find(1,!0);return m(e,d.line,dr(d.line.markedSpans,h.marker))}if(h.marker.inclusiveRight&&h.to==a.text.length)return!0;for(var g=void 0,x=0;x<a.markedSpans.length;++x)if(g=a.markedSpans[x],g.marker.collapsed&&!g.marker.widgetNode&&g.from==h.to&&(g.to==null||g.to!=h.from)&&(g.marker.inclusiveLeft||h.marker.inclusiveRight)&&m(e,a,g))return!0}function b(e){e=Hi(e);for(var a=0,h=e.parent,d=0;d<h.lines.length;++d){var g=h.lines[d];if(g==e)break;a+=g.height}for(var x=h.parent;x;h=x,x=h.parent)for(var E=0;E<x.children.length;++E){var T=x.children[E];if(T==h)break;a+=T.height}return a}function C(e){if(e.height==0)return 0;for(var a=e.text.length,h,d=e;h=Uo(d);){var g=h.find(0,!0);d=g.from.line,a+=g.from.ch-g.to.ch}for(d=e;h=Go(d);){var x=h.find(0,!0);a-=d.text.length-x.from.ch,d=x.to.line,a+=d.text.length-x.to.ch}return a}function k(e){var a=e.display,h=e.doc;a.maxLine=st(h,h.first),a.maxLineLength=C(a.maxLine),a.maxLineChanged=!0,h.iter(function(d){var g=C(d);g>a.maxLineLength&&(a.maxLineLength=g,a.maxLine=d)})}var R=function(e,a,h){this.text=e,$o(this,a),this.height=h?h(this):1};R.prototype.lineNo=function(){return Vt(this)},Nt(R);function P(e,a,h,d){e.text=a,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Va(e),$o(e,h);var g=d?d(e):1;g!=e.height&&_n(e,g)}function z(e){e.parent=null,Va(e)}var ae={},ne={};function ge(e,a){if(!e||/^\s*$/.test(e))return null;var h=a.addModeClass?ne:ae;return h[e]||(h[e]=e.replace(/\S+/g,"cm-$&"))}function Fe(e,a){var h=Ee("span",null,null,p?"padding-right: .1px":null),d={pre:Ee("pre",[h],"CodeMirror-line"),content:h,col:0,pos:0,cm:e,trailingSpace:!1,splitSpace
23s:e.getOption("lineWrapping")};a.measure={};for(var g=0;g<=(a.rest?a.rest.length:0);g++){var x=g?a.rest[g-1]:a.line,E=void 0;d.pos=0,d.addToken=Ae,Ba(e.display.measure)&&(E=re(x,e.doc.direction))&&(d.addToken=Dt(d.addToken,E)),d.map=[];var T=a!=e.display.externalMeasured&&Vt(x);Mt(x,d,Or(e,x,T)),x.styleClasses&&(x.styleClasses.bgClass&&(d.bgClass=ut(x.styleClasses.bgClass,d.bgClass||"")),x.styleClasses.textClass&&(d.textClass=ut(x.styleClasses.textClass,d.textClass||""))),d.map.length==0&&d.map.push(0,0,d.content.appendChild(Po(e.display.measure))),g==0?(a.measure.map=d.map,a.measure.cache={}):((a.measure.maps||(a.measure.maps=[])).push(d.map),(a.measure.caches||(a.measure.caches=[])).push({}))}if(p){var O=d.content.lastChild;(/\bcm-tab\b/.test(O.className)||O.querySelector&&O.querySelector(".cm-tab"))&&(d.content.className="cm-tab-wrap-hack")}return Qe(e,"renderLine",e,a.line,d.pre),d.pre.className&&(d.textClass=ut(d.pre.className,d.textClass||"")),d}function Le(e){var a=Y("span","•","cm-invalidchar");return a.title="\\u"+e.charCodeAt(0).toString(16),a.setAttribute("aria-label",a.title),a}function Ae(e,a,h,d,g,x,E){if(a){var T=e.splitSpaces?He(a,e.trailingSpace):a,O=e.cm.state.specialChars,B=!1,X;if(!O.test(a))e.col+=a.length,X=document.createTextNode(T),e.map.push(e.pos,e.pos+a.length,X),u&&f<9&&(B=!0),e.pos+=a.length;else{X=document.createDocumentFragment();for(var J=0;;){O.lastIndex=J;var ve=O.exec(a),de=ve?ve.index-J:a.length-J;if(de){var Te=document.createTextNode(T.slice(J,J+de));u&&f<9?X.appendChild(Y("span",[Te])):X.appendChild(Te),e.map.push(e.pos,e.pos+de,Te),e.col+=de,e.pos+=de}if(!ve)break;J+=de+1;var Me=void 0;if(ve[0]=="	"){var Be=e.cm.options.tabSize,Ge=Be-e.col%Be;Me=X.appendChild(Y("span",Qt(Ge),"cm-tab")),Me.setAttribute("role","presentation"),Me.setAttribute("cm-text","	"),e.col+=Ge}else ve[0]=="\r"||ve[0]==`
24`?(Me=X.appendChild(Y("span",ve[0]=="\r"?"␍":"␤","cm-invalidchar")),Me.setAttribute("cm-text",ve[0]),e.col+=1):(Me=e.cm.options.specialCharPlaceholder(ve[0]),Me.setAttribute("cm-text",ve[0]),u&&f<9?X.appendChild(Y("span",[Me])):X.appendChild(Me),e.col+=1);e.map.push(e.pos,e.pos+1,Me),e.pos++}}if(e.trailingSpace=T.charCodeAt(a.length-1)==32,h||d||g||B||x||E){var Ze=h||"";d&&(Ze+=d),g&&(Ze+=g);var Xe=Y("span",[X],Ze,x);if(E)for(var it in E)E.hasOwnProperty(it)&&it!="style"&&it!="class"&&Xe.setAttribute(it,E[it]);return e.content.appendChild(Xe)}e.content.appendChild(X)}}function He(e,a){if(e.length>1&&!/  /.test(e))return e;for(var h=a,d="",g=0;g<e.length;g++){var x=e.charAt(g);x==" "&&h&&(g==e.length-1||e.charCodeAt(g+1)==32)&&(x=" "),d+=x,h=x==" "}return d}function Dt(e,a){return function(h,d,g,x,E,T,O){g=g?g+" cm-force-border":"cm-force-border";for(var B=h.pos,X=B+d.length;;){for(var J=void 0,ve=0;ve<a.length&&(J=a[ve],!(J.to>B&&J.from<=B));ve++);if(J.to>=X)return e(h,d,g,x,E,T,O);e(h,d.slice(0,J.to-B),g,x,null,T,O),x=null,d=d.slice(J.to-B),B=J.to}}}function qt(e,a,h,d){var g=!d&&h.widgetNode;g&&e.map.push(e.pos,e.pos+a,g),!d&&e.cm.display.input.needsContentAttribute&&(g||(g=e.content.appendChild(document.createElement("span"))),g.setAttribute("cm-marker",h.id)),g&&(e.cm.display.input.setUneditable(g),e.content.appendChild(g)),e.pos+=a,e.trailingSpace=!1}function Mt(e,a,h){var d=e.markedSpans,g=e.text,x=0;if(!d){for(var E=1;E<h.length;E+=2)a.addToken(a,g.slice(x,x=h[E]),ge(h[E+1],a.cm.options));return}for(var T=g.length,O=0,B=1,X="",J,ve,de=0,Te,Me,Be,Ge,Ze;;){if(de==O){Te=Me=Be=ve="",Ze=null,Ge=null,de=1/0;for(var Xe=[],it=void 0,mt=0;mt<d.length;++mt){var ht=d[mt],Rt=ht.marker;if(Rt.type=="bookmark"&&ht.from==O&&Rt.widgetNode)Xe.push(Rt);else if(ht.from<=O&&(ht.to==null||ht.to>O||Rt.collapsed&&ht.to==O&&ht.from==O)){if(ht.to!=null&&ht.to!=O&&de>ht.to&&(de=ht.to,Me=""),Rt.className&&(Te+=" "+Rt.className),Rt.css&&(ve=(ve?ve+";":"")+Rt.css),Rt.startStyle&&ht.from==O&&(Be+=" "+Rt.startStyle),Rt.endStyle&&ht.to==de&&(it||(it=[])).push(Rt.endStyle,ht.to),Rt.title&&((Ze||(Ze={})).title=Rt.title),Rt.attributes)for(var ni in Rt.attributes)(Ze||(Ze={}))[ni]=Rt.attributes[ni];Rt.collapsed&&(!Ge||qo(Ge.marker,Rt)<0)&&(Ge=ht)}else ht.from>O&&de>ht.from&&(de=ht.from)}if(it)for(var Ri=0;Ri<it.length;Ri+=2)it[Ri+1]==de&&(Me+=" "+it[Ri]);if(!Ge||Ge.from==O)for(var ui=0;ui<Xe.length;++ui)qt(a,0,Xe[ui]);if(Ge&&(Ge.from||0)==O){if(qt(a,(Ge.to==null?T+1:Ge.to)-O,Ge.marker,Ge.from==null),Ge.to==null)return;Ge.to==O&&(Ge=!1)}}if(O>=T)break;for(var hn=Math.min(T,de);;){if(X){var on=O+X.length;if(!Ge){var bi=on>hn?X.slice(0,hn-O):X;a.addToken(a,bi,J?J+Te:Te,Be,O+bi.length==de?Me:"",ve,Ze)}if(on>=hn){X=X.slice(hn-O),O=hn;break}O=on,Be=""}X=g.slice(x,x=h[B++]),J=ge(h[B++],a.cm.options)}}}function Si(e,a,h){this.line=a,this.rest=Qa(a),this.size=this.rest?Vt(Tt(this.rest))-h+1:1,this.node=this.text=null,this.hidden=er(e,a)}function si(e,a,h){for(var d=[],g,x=a;x<h;x=g){var E=new Si(e.doc,st(e.doc,x),x);g=x+E.size,d.push(E)}return d}var zi=null;function kn(e){zi?zi.ops.push(e):e.ownsGroup=zi={ops:[e],delayedCallbacks:[]}}function $t(e){var a=e.delayedCallbacks,h=0;do{for(;h<a.length;h++)a[h].call(null);for(var d=0;d<e.ops.length;d++){var g=e.ops[d];if(g.cursorActivityHandlers)for(;g.cursorActivityCalled<g.cursorActivityHandlers.length;)g.cursorActivityHandlers[g.cursorActivityCalled++].call(null,g.cm)}}while(h<a.length)}function hr(e,a){var h=e.ownsGroup;if(h)try{$t(h)}finally{zi=null,a(h)}}var zt=null;function It(e,a){var h=je(e,a);if(h.length){var d=Array.prototype.slice.call(arguments,2),g;zi?g=zi.delayedCallbacks:zt?g=zt:(g=zt=[],setTimeout(io,0));for(var x=function(T){g.push(function(){return h[T].apply(null,d)})},E=0;E<h.length;++E)x(E)}}function io(){var e=zt;zt=null;for(var a=0;a<e.length;++a)e[a]()}function Xo(e,a,h,d){for(var g=0;g<a.changes.length;g++){var x=a.changes[g];x=="text"?tr(e,a):x=="gutter"?Ji(e,a,h,d):x=="class"?Tn(e,a):x=="widget"&&es(e,a,d)}a.changes=null}
vendor: 4,337 bytes, line 24
24function Gi(e){return e.node==e.text&&(e.node=Y("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),u&&f<8&&(e.node.style.zIndex=2)),e.node}function no(e,a){var h=a.bgClass?a.bgClass+" "+(a.line.bgClass||""):a.line.bgClass;if(h&&(h+=" CodeMirror-linebackground"),a.background)h?a.background.className=h:(a.background.parentNode.removeChild(a.background),a.background=null);else if(h){var d=Gi(a);a.background=d.insertBefore(Y("div",null,h),d.firstChild),e.display.input.setUneditable(a.background)}}function wn(e,a){var h=e.display.externalMeasured;return h&&h.line==a.line?(e.display.externalMeasured=null,a.measure=h.measure,h.built):Fe(e,a)}function tr(e,a){var h=a.text.className,d=wn(e,a);a.text==a.node&&(a.node=d.pre),a.text.parentNode.replaceChild(d.pre,a.text),a.text=d.pre,d.bgClass!=a.bgClass||d.textClass!=a.textClass?(a.bgClass=d.bgClass,a.textClass=d.textClass,Tn(e,a)):h&&(a.text.className=h)}function Tn(e,a){no(e,a),a.line.wrapClass?Gi(a).className=a.line.wrapClass:a.node!=a.text&&(a.node.className="");var h=a.textClass?a.textClass+" "+(a.line.textClass||""):a.line.textClass;a.text.className=h||""}function Ji(e,a,h,d){if(a.gutter&&(a.node.removeChild(a.gutter),a.gutter=null),a.gutterBackground&&(a.node.removeChild(a.gutterBackground),a.gutterBackground=null),a.line.gutterClass){var g=Gi(a);a.gutterBackground=Y("div",null,"CodeMirror-gutter-background "+a.line.gutterClass,"left: "+(e.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px; width: "+d.gutterTotalWidth+"px"),e.display.input.setUneditable(a.gutterBackground),g.insertBefore(a.gutterBackground,a.text)}var x=a.line.gutterMarkers;if(e.options.lineNumbers||x){var E=Gi(a),T=a.gutter=Y("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px");if(T.setAttribute("aria-hidden","true"),e.display.input.setUneditable(T),E.insertBefore(T,a.text),a.line.gutterClass&&(T.className+=" "+a.line.gutterClass),e.options.lineNumbers&&(!x||!x["CodeMirror-linenumbers"])&&(a.lineNumber=T.appendChild(Y("div",No(e.options,h),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+d.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),x)for(var O=0;O<e.display.gutterSpecs.length;++O){var B=e.display.gutterSpecs[O].className,X=x.hasOwnProperty(B)&&x[B];X&&T.appendChild(Y("div",[X],"CodeMirror-gutter-elt","left: "+d.gutterLeft[B]+"px; width: "+d.gutterWidth[B]+"px"))}}}function es(e,a,h){a.alignable&&(a.alignable=null);for(var d=ye("CodeMirror-linewidget"),g=a.node.firstChild,x=void 0;g;g=x)x=g.nextSibling,d.test(g.className)&&a.node.removeChild(g);Fn(e,a,h)}function zn(e,a,h,d){var g=wn(e,a);return a.text=a.node=g.pre,g.bgClass&&(a.bgClass=g.bgClass),g.textClass&&(a.textClass=g.textClass),Tn(e,a),Ji(e,a,h,d),Fn(e,a,d),a.node}function Fn(e,a,h){if(hl(e,a.line,a,h,!0),a.rest)for(var d=0;d<a.rest.length;d++)hl(e,a.rest[d],a,h,!1)}function hl(e,a,h,d,g){if(a.widgets)for(var x=Gi(h),E=0,T=a.widgets;E<T.length;++E){var O=T[E],B=Y("div",[O.node],"CodeMirror-linewidget"+(O.className?" "+O.className:""));O.handleMouseEvents||B.setAttribute("cm-ignore-events","true"),zu(O,B,h,d),e.display.input.setUneditable(B),g&&O.above?x.insertBefore(B,h.gutter||h.text):x.appendChild(B),It(O,"redraw")}}function zu(e,a,h,d){if(e.noHScroll){(h.alignable||(h.alignable=[])).push(a);var g=d.wrapperWidth;a.style.left=d.fixedPos+"px",e.coverGutter||(g-=d.gutterTotalWidth,a.style.paddingLeft=d.gutterTotalWidth+"px"),a.style.width=g+"px"}e.coverGutter&&(a.style.zIndex=5,a.style.position="relative",e.noHScroll||(a.style.marginLeft=-d.gutterTotalWidth+"px"))}function ro(e){if(e.height!=null)return e.height;var a=e.doc.cm;if(!a)return 0;if(!Ie(document.body,e.node)){var h="position: relative;";e.coverGutter&&(h+="margin-left: -"+a.display.gutters.offsetWidth+"px;"),e.noHScroll&&(h+="width: "+a.display.wrapper.clientWidth+"px;"),me(a.display.measure,Y("div",[e.node],null,h))}return e.height=e.node.parentNode.offsetHeight}function jt(e,a){for(var h=ti(a);h!=e.wrapper;h=h.parentNode)if(!h||h.nodeType==1&&h.getAttribute("cm-ignore-events")=="true"||h.parentNode==e.sizer&&h!=e.mover)return!0}function pr(e){return e.lineSpace.offsetTop}function en(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}
24function gr(e){if(e.cachedPaddingH)return e.cachedPaddingH;var a=me(e.measure,Y("pre","x","CodeMirror-line-like")),h=window.getComputedStyle?window.getComputedStyle(a):a.currentStyle,d={left:parseInt(h.paddingLeft),right:parseInt(h.paddingRight)};return!isNaN(d.left)&&!isNaN(d.right)&&(e.cachedPaddingH=d),d}function On(e){return ot-e.display.nativeBarWidth}function mr(e){return e.display.scroller.clientWidth-On(e)-e.display.barWidth}function Yo(e){return e.display.scroller.clientHeight-On(e)-e.display.barHeight}function vr(e,a,h){var d=e.options.lineWrapping,g=d&&mr(e);if(!a.measure.heights||d&&a.measure.width!=g){var x=a.measure.heights=[];if(d){a.measure.width=g;for(var E=a.text.firstChild.getClientRects(),T=0;T<E.length-1;T++){var O=E[T],B=E[T+1];Math.abs(O.bottom-B.bottom)>2&&x.push((O.bottom+B.top)/2-h.top)}}x.push(h.bottom-h.top)}}function Ko(e,a,h){if(e.line==a)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var d=0;d<e.rest.length;d++)if(e.rest[d]==a)return{map:e.measure.maps[d],cache:e.measure.caches[d]};for(var g=0;g<e.rest.length;g++)if(Vt(e.rest[g])>h)return{map:e.measure.maps[g],cache:e.measure.caches[g],before:!0}}}function ir(e,a){a=Hi(a);var h=Vt(a),d=e.display.externalMeasured=new Si(e.doc,a,h);d.lineN=h;var g=d.built=Fe(e,d);return d.text=g.pre,me(e.display.lineMeasure,g.pre),d}function ts(e,a,h,d){return tn(e,jn(e,a),h,d)}function yr(e,a){if(a>=e.display.viewFrom&&a<e.display.viewTo)return e.display.view[ao(e,a)];var h=e.display.externalMeasured;if(h&&a>=h.lineN&&a<h.lineN+h.size)return h}function jn(e,a){var h=Vt(a),d=yr(e,h);d&&!d.text?d=null:d&&d.changes&&(Xo(e,d,h,nr(e)),e.curOp.forceUpdate=!0),d||(d=ir(e,a));var g=Ko(d,a,h);return{line:a,view:d,rect:null,map:g.map,cache:g.cache,before:g.before,hasHeights:!1}}function tn(e,a,h,d,g){a.before&&(h=-1);var x=h+(d||""),E;return a.cache.hasOwnProperty(x)?E=a.cache[x]:(a.rect||(a.rect=a.view.text.getBoundingClientRect()),a.hasHeights||(vr(e,a.view,a.rect),a.hasHeights=!0),E=is(e,a,h,d),E.bogus||(a.cache[x]=E)),{left:E.left,right:E.right,top:g?E.rtop:E.top,bottom:g?E.rbottom:E.bottom}}var Vo={left:0,right:0,top:0,bottom:0};function pl(e,a,h){for(var d,g,x,E,T,O,B=0;B<e.length;B+=3)if(T=e[B],O=e[B+1],a<T?(g=0,x=1,E="left"):a<O?(g=a-T,x=g+1):(B==e.length-3||a==O&&e[B+3]>a)&&(x=O-T,g=x-1,a>=O&&(E="right")),g!=null){if(d=e[B+2],T==O&&h==(d.insertLeft?"left":"right")&&(E=h),h=="left"&&g==0)for(;B&&e[B-2]==e[B-3]&&e[B-1].insertLeft;)d=e[(B-=3)+2],E="left";if(h=="right"&&g==O-T)for(;B<e.length-3&&e[B+3]==e[B+4]&&!e[B+5].insertLeft;)d=e[(B+=3)+2],E="right";break}return{node:d,start:g,end:x,collapse:E,coverStart:T,coverEnd:O}}function Zo(e,a){var h=Vo;if(a=="left")for(var d=0;d<e.length&&(h=e[d]).left==h.right;d++);else for(var g=e.length-1;g>=0&&(h=e[g]).left==h.right;g--);return h}function is(e,a,h,d){var g=pl(a.map,h,d),x=g.node,E=g.start,T=g.end,O=g.collapse,B;if(x.nodeType==3){for(var X=0;X<4;X++){for(;E&&oe(a.line.text.charAt(g.coverStart+E));)--E;for(;g.coverStart+T<g.coverEnd&&oe(a.line.text.charAt(g.coverStart+T));)++T;if(u&&f<9&&E==0&&T==g.coverEnd-g.coverStart?B=x.parentNode.getBoundingClientRect():B=Zo(we(x,E,T).getClientRects(),d),B.left||B.right||E==0)break;T=E,E=E-1,O="right"}u&&f<11&&(B=ns(e.display.measure,B))}else{E>0&&(O=d="right");var J;e.options.lineWrapping&&(J=x.getClientRects()).length>1?B=J[d=="right"?J.length-1:0]:B=x.getBoundingClientRect()}if(u&&f<9&&!E&&(!B||!B.left&&!B.right)){var ve=x.parentNode.getClientRects()[0];ve?B={left:ve.left,right:ve.left+ji(e.display),top:ve.top,bottom:ve.bottom}:B=Vo}for(var de=B.top-a.rect.top,Te=B.bottom-a.rect.top,Me=(de+Te)/2,Be=a.view.measure.heights,Ge=0;Ge<Be.length-1&&!(Me<Be[Ge]);Ge++);var Ze=Ge?Be[Ge-1]:0,Xe=Be[Ge],it={left:(O=="right"?B.right:B.left)-a.rect.left,right:(O=="left"?B.left:B.right)-a.rect.left,top:Ze,bottom:Xe};return!B.left&&!B.right&&(it.bogus=!0),e.options.singleCursorHeightPerLine||(it.rtop=de,it.rbottom=Te),it}function ns(e,a){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vn(e))return a;var h=screen.logicalXDPI/screen.deviceXDPI,d=screen.logicalYDPI/screen.deviceYDPI;return{left:a.left*h,right:a.right*h,top:a.top*d,bottom:a.bottom*d}}function gl(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var a=0;a<e.rest.length;a++)e.measure.caches[a]={}}function Qo(e){e.display.externalMeasure=null,ie(e.display.lineMeasure);for(var a=0;a<e.display.view.length;
24a++)gl(e.display.view[a])}function Ir(e){Qo(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function V(e){return y&&H?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function fe(e){return y&&H?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Se(e){var a=Hi(e),h=a.widgets,d=0;if(h)for(var g=0;g<h.length;++g)h[g].above&&(d+=ro(h[g]));return d}function ke(e,a,h,d,g){if(!g){var x=Se(a);h.top+=x,h.bottom+=x}if(d=="line")return h;d||(d="local");var E=b(a);if(d=="local"?E+=pr(e.display):E-=e.display.viewOffset,d=="page"||d=="window"){var T=e.display.lineSpace.getBoundingClientRect();E+=T.top+(d=="window"?0:fe(I(e)));var O=T.left+(d=="window"?0:V(I(e)));h.left+=O,h.right+=O}return h.top+=E,h.bottom+=E,h}function Oe(e,a,h){if(h=="div")return a;var d=a.left,g=a.top;if(h=="page")d-=V(I(e)),g-=fe(I(e));else if(h=="local"||!h){var x=e.display.sizer.getBoundingClientRect();d+=x.left,g+=x.top}var E=e.display.lineSpace.getBoundingClientRect();return{left:d-E.left,top:g-E.top}}function Ue(e,a,h,d,g){return d||(d=st(e.doc,a.line)),ke(e,d,ts(e,d,a.ch,g),h)}function Ye(e,a,h,d,g,x){d=d||st(e.doc,a.line),g||(g=jn(e,d));function E(Te,Me){var Be=tn(e,g,Te,Me?"right":"left",x);return Me?Be.left=Be.right:Be.right=Be.left,ke(e,d,Be,h)}var T=re(d,e.doc.direction),O=a.ch,B=a.sticky;if(O>=d.text.length?(O=d.text.length,B="before"):O<=0&&(O=0,B="after"),!T)return E(B=="before"?O-1:O,B=="before");function X(Te,Me,Be){var Ge=T[Me],Ze=Ge.level==1;return E(Be?Te-1:Te,Ze!=Be)}var J=se(T,O,B),ve=te,de=X(O,J,B=="before");return ve!=null&&(de.other=X(O,ve,B!="before")),de}function lt(e,a){var h=0;a=wt(e.doc,a),e.options.lineWrapping||(h=ji(e.display)*a.ch);var d=st(e.doc,a.line),g=b(d)+pr(e.display);return{left:h,right:h,top:g,bottom:g+d.height}}function Je(e,a,h,d,g){var x=Pe(e,a,h);return x.xRel=g,d&&(x.outside=d),x}function Pt(e,a,h){var d=e.doc;if(h+=e.display.viewOffset,h<0)return Je(d.first,0,null,-1,-1);var g=Qn(d,h),x=d.first+d.size-1;if(g>x)return Je(d.first+d.size-1,st(d,x).text.length,null,1,1);a<0&&(a=0);for(var E=st(d,g);;){var T=xt(e,E,g,a,h),O=Hu(E,T.ch+(T.xRel>0||T.outside>0?1:0));if(!O)return T;var B=O.find(1);if(B.line==g)return B;E=st(d,g=B.line)}}function Ct(e,a,h,d){d-=Se(a);var g=a.text.length,x=W(function(E){return tn(e,h,E-1).bottom<=d},g,0);return g=W(function(E){return tn(e,h,E).top>d},x,g),{begin:x,end:g}}function At(e,a,h,d){h||(h=jn(e,a));var g=ke(e,a,tn(e,h,d),"line").top;return Ct(e,a,h,g)}function Bt(e,a,h,d){return e.bottom<=h?!1:e.top>h?!0:(d?e.left:e.right)>a}function xt(e,a,h,d,g){g-=b(a);var x=jn(e,a),E=Se(a),T=0,O=a.text.length,B=!0,X=re(a,e.doc.direction);if(X){var J=(e.options.lineWrapping?Xi:ii)(e,a,h,x,X,d,g);B=J.level!=1,T=B?J.from:J.to-1,O=B?J.to:J.from-1}var ve=null,de=null,Te=W(function(mt){var ht=tn(e,x,mt);return ht.top+=E,ht.bottom+=E,Bt(ht,d,g,!1)?(ht.top<=g&&ht.left<=d&&(ve=mt,de=ht),!0):!1},T,O),Me,Be,Ge=!1;if(de){var Ze=d-de.left<de.right-d,Xe=Ze==B;Te=ve+(Xe?0:1),Be=Xe?"after":"before",Me=Ze?de.left:de.right}else{!B&&(Te==O||Te==T)&&Te++,Be=Te==0?"after":Te==a.text.length?"before":tn(e,x,Te-(B?1:0)).bottom+E<=g==B?"after":"before";var it=Ye(e,Pe(h,Te,Be),"line",a,x);Me=it.left,Ge=g<it.top?-1:g>=it.bottom?1:0}return Te=_(a.text,Te,1),Je(h,Te,Be,Ge,d-Me)}function ii(e,a,h,d,g,x,E){var T=W(function(J){var ve=g[J],de=ve.level!=1;return Bt(Ye(e,Pe(h,de?ve.to:ve.from,de?"before":"after"),"line",a,d),x,E,!0)},0,g.length-1),O=g[T];if(T>0){var B=O.level!=1,X=Ye(e,Pe(h,B?O.from:O.to,B?"after":"before"),"line",a,d);Bt(X,x,E,!0)&&X.top>E&&(O=g[T-1])}return O}function Xi(e,a,h,d,g,x,E){var T=Ct(e,a,d,E),O=T.begin,B=T.end;/\s/.test(a.text.charAt(B-1))&&B--;for(var X=null,J=null,ve=0;ve<g.length;ve++){var de=g[ve];if(!(de.from>=B||de.to<=O)){var Te=de.level!=1,Me=tn(e,d,Te?Math.min(B,de.to)-1:Math.max(O,de.from)).right,Be=Me<x?x-Me+1e9:
24Me-x;(!X||J>Be)&&(X=de,J=Be)}}return X||(X=g[g.length-1]),X.from<O&&(X={from:O,to:X.to,level:X.level}),X.to>B&&(X={from:X.from,to:B,level:X.level}),X}var li;function Oi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(li==null){li=Y("pre",null,"CodeMirror-line-like");for(var a=0;a<49;++a)li.appendChild(document.createTextNode("x")),li.appendChild(Y("br"));li.appendChild(document.createTextNode("x"))}me(e.measure,li);var h=li.offsetHeight/50;return h>3&&(e.cachedTextHeight=h),ie(e.measure),h||1}function ji(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var a=Y("span","xxxxxxxxxx"),h=Y("pre",[a],"CodeMirror-line-like");me(e.measure,h);var d=a.getBoundingClientRect(),g=(d.right-d.left)/10;return g>2&&(e.cachedCharWidth=g),g||10}function nr(e){for(var a=e.display,h={},d={},g=a.gutters.clientLeft,x=a.gutters.firstChild,E=0;x;x=x.nextSibling,++E){var T=e.display.gutterSpecs[E].className;h[T]=x.offsetLeft+x.clientLeft+g,d[T]=x.clientWidth}return{fixedPos:Li(a),gutterTotalWidth:a.gutters.offsetWidth,gutterLeft:h,gutterWidth:d,wrapperWidth:a.wrapper.clientWidth}}function Li(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ed(e){var a=Oi(e.display),h=e.options.lineWrapping,d=h&&Math.max(5,e.display.scroller.clientWidth/ji(e.display)-3);return function(g){if(er(e.doc,g))return 0;var x=0;if(g.widgets)for(var E=0;E<g.widgets.length;E++)g.widgets[E].height&&(x+=g.widgets[E].height);return h?x+(Math.ceil(g.text.length/d)||1)*a:x+a}}function ju(e){var a=e.doc,h=Ed(e);a.iter(function(d){var g=h(d);g!=d.height&&_n(d,g)})}
24function oo(e,a,h,d){var g=e.display;if(!h&&ti(a).getAttribute("cm-not-content")=="true")return null;var x,E,T=g.lineSpace.getBoundingClientRect();try{x=a.clientX-T.left,E=a.clientY-T.top}catch{return null}var O=Pt(e,x,E),B;if(d&&O.xRel>0&&(B=st(e.doc,O.line).text).length==O.ch){var X=ft(B,B.length,e.options.tabSize)-B.length;O=Pe(O.line,Math.max(0,Math.round((x-gr(e.display).left)/ji(e.display))-X))}return O}function ao(e,a){if(a>=e.display.viewTo||(a-=e.display.viewFrom,a<0))return null;for(var h=e.display.view,d=0;d<h.length;d++)if(a-=h[d].size,a<0)return d}function nn(e,a,h,d){a==null&&(a=e.doc.first),h==null&&(h=e.doc.first+e.doc.size),d||(d=0);var g=e.display;if(d&&h<g.viewTo&&(g.updateLineNumbers==null||g.updateLineNumbers>a)&&(g.updateLineNumbers=a),e.curOp.viewChanged=!0,a>=g.viewTo)Hn&&Ja(e.doc,a)<g.viewTo&&Pr(e);else if(h<=g.viewFrom)Hn&&dl(e.doc,h+d)>g.viewFrom?Pr(e):(g.viewFrom+=d,g.viewTo+=d);else if(a<=g.viewFrom&&h>=g.viewTo)Pr(e);else if(a<=g.viewFrom){var x=ml(e,h,h+d,1);x?(g.view=g.view.slice(x.index),g.viewFrom=x.lineN,g.viewTo+=d):Pr(e)}else if(h>=g.viewTo){var E=ml(e,a,a,-1);E?(g.view=g.view.slice(0,E.index),g.viewTo=E.lineN):Pr(e)}else{var T=ml(e,a,a,-1),O=ml(e,h,h+d,1);T&&O?(g.view=g.view.slice(0,T.index).concat(si(e,T.lineN,O.lineN)).concat(g.view.slice(O.index)),g.viewTo+=d):Pr(e)}var B=g.externalMeasured;B&&(h<B.lineN?B.lineN+=d:a<B.lineN+B.size&&(g.externalMeasured=null))}function Rr(e,a,h){e.curOp.viewChanged=!0;var d=e.display,g=e.display.externalMeasured;if(g&&a>=g.lineN&&a<g.lineN+g.size&&(d.externalMeasured=null),!(a<d.viewFrom||a>=d.viewTo)){var x=d.view[ao(e,a)];if(x.node!=null){var E=x.changes||(x.changes=[]);vt(E,h)==-1&&E.push(h)}}}function Pr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ml(e,a,h,d){var g=ao(e,a),x,E=e.display.view;if(!Hn||h==e.doc.first+e.doc.size)return{index:g,lineN:h};for(var T=e.display.viewFrom,O=0;O<g;O++)T+=E[O].size;if(T!=a){if(d>0){if(g==E.length-1)return null;x=T+E[g].size-a,g++}else x=T-a;a+=x,h+=x}for(;Ja(e.doc,h)!=h;){if(g==(d<0?0:E.length-1))return null;h+=d*E[g-(d<0?1:0)].size,g+=d}return{index:g,lineN:h}}function e0(e,a,h){var d=e.display,g=d.view;g.length==0||a>=d.viewTo||h<=d.viewFrom?(d.view=si(e,a,h),d.viewFrom=a):(d.viewFrom>a?d.view=si(e,a,d.viewFrom).concat(d.view):d.viewFrom<a&&(d.view=d.view.slice(ao(e,a))),d.viewFrom=a,d.viewTo<h?d.view=d.view.concat(si(e,d.viewTo,h)):d.viewTo>h&&(d.view=d.view.slice(0,ao(e,h)))),d.viewTo=h}function Sd(e){for(var a=e.display.view,h=0,d=0;d<a.length;d++){var g=a[d];!g.hidden&&(!g.node||g.changes)&&++h}return h}function rs(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Dd(e,a){a===void 0&&(a=!0);var h=e.doc,d={},g=d.cursors=document.createDocumentFragment(),x=d.selection=document.createDocumentFragment(),E=e.options.$customCursor;E&&(a=!0);for(var T=0;T<h.sel.ranges.length;T++)if(!(!a&&T==h.sel.primIndex)){var O=h.sel.ranges[T];if(!(O.from().line>=e.display.viewTo||O.to().line<e.display.viewFrom)){var B=O.empty();if(E){var X=E(e,O);X&&Wu(e,X,g)}else(B||e.options.showCursorWhenSelecting)&&Wu(e,O.head,g);B||t0(e,O,x)}}return d}function Wu(e,a,h){var d=Ye(e,a,"div",null,null,!e.options.singleCursorHeightPerLine),g=h.appendChild(Y("div"," ","CodeMirror-cursor"));if(g.style.left=d.left+"px",g.style.top=d.top+"px",g.style.height=Math.max(0,d.bottom-d.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var x=Ue(e,a,"div",null,null),E=x.right-x.left;g.style.width=(E>0?E:e.defaultCharWidth())+"px"}if(d.other){var T=h.appendChild(Y("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));T.style.display="",T.style.left=d.other.left+"px",T.style.top=d.other.top+"px",T.style.height=(d.other.bottom-d.other.top)*.85+"px"}}function vl(e,a){return e.top-a.top||e.left-a.left}function t0(e,a,h){var d=e.display,g=e.doc,x=document.createDocumentFragment(),E=gr(e.display),T=E.left,O=Math.max(d.sizerWidth,mr(e)-d.sizer.offsetLeft)-E.right,B=g.direction=="ltr";function X(Xe,it,mt,ht){it<0&&(it=0),it=Math.round(it),ht=Math.round(ht),x.appendChild(Y("div",null,"CodeMirror-selected","position: absolute; left: "+Xe+`px;
25                             top: `+it+"px; width: "+(mt??O-Xe)+`px;
26                             height: `+(ht-it)+"px"))}function J(Xe,it,mt){var ht=st(g,Xe),Rt=ht.text.length,ni,Ri;function ui(bi,an){return Ue(e,Pe(Xe,bi),"div",ht,an)}function hn(bi,an,Bi){var Di=At(e,ht,null,bi),xi=an=="ltr"==(Bi=="after")?"left":"right",pi=Bi=="after"?Di.begin:Di.end-(/\s/.test(ht.text.charAt(Di.end-1))?2:1);return ui(pi,xi)[xi]}var on=re(ht,g.direction);return K(on,it||0,mt??Rt,function(bi,an,Bi,Di){var xi=Bi=="ltr",pi=ui(bi,xi?"left":"right"),sn=ui(an-1,xi?"right":"left"),fa=it==null&&bi==0,Wr=mt==null&&an==Rt,$i=Di==0,rr=!on||Di==on.length-1;if(sn.top-pi.top<=3){var Pi=(B?fa:Wr)&&$i,gc=(B?Wr:fa)&&rr,wr=Pi?T:(xi?pi:sn).left,fo=gc?O:(xi?sn:pi).right;X(wr,pi.top,fo-wr,pi.bottom)}else{var ho,Ki,da,mc;xi?(ho=B&&fa&&$i?T:pi.left,Ki=B?O:hn(bi,Bi,"before"),da=B?T:hn(an,Bi,"after"),mc=B&&Wr&&rr?O:sn.right):(ho=B?hn(bi,Bi,"before"):T,Ki=!B&&fa&&$i?O:pi.right,da=!B&&Wr&&rr?T:sn.left,mc=B?hn(an,Bi,"after"):O),X(ho,pi.top,Ki-ho,pi.bottom),pi.bottom<sn.top&&X(T,pi.bottom,null,sn.top),X(da,sn.top,mc-da,sn.bottom)}(!ni||vl(pi,ni)<0)&&(ni=pi),vl(sn,ni)<0&&(ni=sn),(!Ri||vl(pi,Ri)<0)&&(Ri=pi),vl(sn,Ri)<0&&(Ri=sn)}),{start:ni,end:Ri}}var ve=a.from(),de=a.to();if(ve.line==de.line)J(ve.line,ve.ch,de.ch);else{var Te=st(g,ve.line),Me=st(g,de.line),Be=Hi(Te)==Hi(Me),Ge=J(ve.line,ve.ch,Be?Te.text.length+1:null).end,Ze=J(de.line,Be?0:null,de.ch).start;Be&&(Ge.top<Ze.top-2?(X(Ge.right,Ge.top,null,Ge.bottom),X(T,Ze.top,Ze.left,Ze.bottom)):X(Ge.right,Ge.top,Ze.left-Ge.right,Ge.bottom)),Ge.bottom<Ze.top&&X(T,Ge.bottom,null,Ze.top)}h.appendChild(x)}function $u(e){if(e.state.focused){var a=e.display;clearInterval(a.blinker);var h=!0;a.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?a.blinker=setInterval(function(){e.hasFocus()||Jo(e),a.cursorDiv.style.visibility=(h=!h)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(a.cursorDiv.style.visibility="hidden")}}function Ad(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Uu(e))}function qu(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Jo(e))},100)}
26function Uu(e,a){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Qe(e,"focus",e,a),e.state.focused=!0,at(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),p&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),$u(e))}function Jo(e,a){e.state.delayingBlurEvent||(e.state.focused&&(Qe(e,"blur",e,a),e.state.focused=!1,_e(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function yl(e){for(var a=e.display,h=a.lineDiv.offsetTop,d=Math.max(0,a.scroller.getBoundingClientRect().top),g=a.lineDiv.getBoundingClientRect().top,x=0,E=0;E<a.view.length;E++){var T=a.view[E],O=e.options.lineWrapping,B=void 0,X=0;if(!T.hidden){if(g+=T.line.height,u&&f<8){var J=T.node.offsetTop+T.node.offsetHeight;B=J-h,h=J}else{var ve=T.node.getBoundingClientRect();B=ve.bottom-ve.top,!O&&T.text.firstChild&&(X=T.text.firstChild.getBoundingClientRect().right-ve.left-1)}var de=T.line.height-B;if((de>.005||de<-.005)&&(g<d&&(x-=de),_n(T.line,B),_d(T.line),T.rest))for(var Te=0;Te<T.rest.length;Te++)_d(T.rest[Te]);if(X>e.display.sizerWidth){var Me=Math.ceil(X/ji(e.display));Me>e.display.maxLineLength&&(e.display.maxLineLength=Me,e.display.maxLine=T.line,e.display.maxLineChanged=!0)}}}Math.abs(x)>2&&(a.scroller.scrollTop+=x)}function _d(e){if(e.widgets)for(var a=0;a<e.widgets.length;++a){var h=e.widgets[a],d=h.node.parentNode;d&&(h.height=d.offsetHeight)}}function bl(e,a,h){var d=h&&h.top!=null?Math.max(0,h.top):e.scroller.scrollTop;d=Math.floor(d-pr(e));var g=h&&h.bottom!=null?h.bottom:d+e.wrapper.clientHeight,x=Qn(a,d),E=Qn(a,g);if(h&&h.ensure){var T=h.ensure.from.line,O=h.ensure.to.line;T<x?(x=T,E=Qn(a,b(st(a,T))+e.wrapper.clientHeight)):Math.min(O,a.lastLine())>=E&&(x=Qn(a,b(st(a,O))-e.wrapper.clientHeight),E=O)}return{from:x,to:Math.max(E,x+1)}}function i0(e,a){if(!qe(e,"scrollCursorIntoView")){var h=e.display,d=h.sizer.getBoundingClientRect(),g=null,x=h.wrapper.ownerDocument;if(a.top+d.top<0?g=!0:a.bottom+d.top>(x.defaultView.innerHeight||x.documentElement.clientHeight)&&(g=!1),g!=null&&!A){var E=Y("div","​",null,`position: absolute;
27                         top: `+(a.top-h.viewOffset-pr(e.display))+`px;
28                         height: `+(a.bottom-a.top+On(e)+h.barHeight)+`px;
29                         left: `+a.left+"px; width: "+Math.max(2,a.right-a.left)+"px;");e.display.lineSpace.appendChild(E),E.scrollIntoView(g),e.display.lineSpace.removeChild(E)}}}function n0(e,a,h,d){d==null&&(d=0);var g;!e.options.lineWrapping&&a==h&&(h=a.sticky=="before"?Pe(a.line,a.ch+1,"before"):a,a=a.ch?Pe(a.line,a.sticky=="before"?a.ch-1:a.ch,"after"):a);for(var x=0;x<5;
29x++){var E=!1,T=Ye(e,a),O=!h||h==a?T:Ye(e,h);g={left:Math.min(T.left,O.left),top:Math.min(T.top,O.top)-d,right:Math.max(T.left,O.left),bottom:Math.max(T.bottom,O.bottom)+d};var B=Gu(e,g),X=e.doc.scrollTop,J=e.doc.scrollLeft;if(B.scrollTop!=null&&(as(e,B.scrollTop),Math.abs(e.doc.scrollTop-X)>1&&(E=!0)),B.scrollLeft!=null&&(so(e,B.scrollLeft),Math.abs(e.doc.scrollLeft-J)>1&&(E=!0)),!E)break}return g}function r0(e,a){var h=Gu(e,a);h.scrollTop!=null&&as(e,h.scrollTop),h.scrollLeft!=null&&so(e,h.scrollLeft)}function Gu(e,a){var h=e.display,d=Oi(e.display);a.top<0&&(a.top=0);var g=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:h.scroller.scrollTop,x=Yo(e),E={};a.bottom-a.top>x&&(a.bottom=a.top+x);var T=e.doc.height+en(h),O=a.top<d,B=a.bottom>T-d;if(a.top<g)E.scrollTop=O?0:a.top;else if(a.bottom>g+x){var X=Math.min(a.top,(B?T:a.bottom)-x);X!=g&&(E.scrollTop=X)}var J=e.options.fixedGutter?0:h.gutters.offsetWidth,ve=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:h.scroller.scrollLeft-J,de=mr(e)-h.gutters.offsetWidth,Te=a.right-a.left>de;return Te&&(a.right=a.left+de),a.left<10?E.scrollLeft=0:a.left<ve?E.scrollLeft=Math.max(0,a.left+J-(Te?0:10)):a.right>de+ve-3&&(E.scrollLeft=a.right+(Te?0:10)-de),E}function Xu(e,a){a!=null&&(xl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+a)}function ea(e){xl(e);var a=e.getCursor();e.curOp.scrollToPos={from:a,to:a,margin:e.options.cursorScrollMargin}}function os(e,a,h){(a!=null||h!=null)&&xl(e),a!=null&&(e.curOp.scrollLeft=a),h!=null&&(e.curOp.scrollTop=h)}function o0(e,a){xl(e),e.curOp.scrollToPos=a}function xl(e){var a=e.curOp.scrollToPos;if(a){e.curOp.scrollToPos=null;var h=lt(e,a.from),d=lt(e,a.to);kd(e,h,d,a.margin)}}function kd(e,a,h,d){var g=Gu(e,{left:Math.min(a.left,h.left),top:Math.min(a.top,h.top)-d,right:Math.max(a.right,h.right),bottom:Math.max(a.bottom,h.bottom)+d});os(e,g.scrollLeft,g.scrollTop)}function as(e,a){Math.abs(e.doc.scrollTop-a)<2||(r||Ku(e,{top:a}),Td(e,a,!0),r&&Ku(e),us(e,100))}function Td(e,a,h){a=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,a)),!(e.display.scroller.scrollTop==a&&!h)&&(e.doc.scrollTop=a,e.display.scrollbars.setScrollTop(a),e.display.scroller.scrollTop!=a&&(e.display.scroller.scrollTop=a))}function so(e,a,h,d){a=Math.max(0,Math.min(a,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((h?a==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-a)<2)&&!d)&&(e.doc.scrollLeft=a,Id(e),e.display.scroller.scrollLeft!=a&&(e.display.scroller.scrollLeft=a),e.display.scrollbars.setScrollLeft(a))}function ss(e){var a=e.display,h=a.gutters.offsetWidth,d=Math.round(e.doc.height+en(e.display));return{clientHeight:a.scroller.clientHeight,viewHeight:a.wrapper.clientHeight,scrollWidth:a.scroller.scrollWidth,clientWidth:a.scroller.clientWidth,viewWidth:a.wrapper.clientWidth,barLeft:e.options.fixedGutter?h:0,docHeight:d,scrollHeight:d+On(e)+a.barHeight,nativeBarWidth:a.nativeBarWidth,gutterWidth:h}}var lo=function(e,a,h){this.cm=h;var d=this.vert=Y("div",[Y("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),g=this.horiz=Y("div",[Y("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");d.tabIndex=g.tabIndex=-1,e(d),e(g),Q(d,"scroll",function(){d.clientHeight&&a(d.scrollTop,"vertical")}),Q(g,"scroll",function(){g.clientWidth&&a(g.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,u&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};lo.prototype.update=function(e){var a=e.scrollWidth>e.clientWidth+1,h=e.scrollHeight>e.clientHeight+1,d=e.nativeBarWidth;if(h){this.vert.style.display="block",this.vert.style.bottom=a?d+"px":"0";var g=e.viewHeight-(a?d:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+g)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(a){this.horiz.style.display="block",this.horiz.style.right=h?d+"px":"0",this.horiz.style.left=e.barLeft+"px";var x=e.viewWidth-e.barLeft-(h?d:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+x)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(d==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:h?d:0,bottom:a?d:0}},lo.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},lo.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},lo.prototype.zeroWidthHack=function(){var e=ee&&!M?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new St,this.disableVert=new St}
29,lo.prototype.enableZeroWidthBar=function(e,a,h){e.style.visibility="";function d(){var g=e.getBoundingClientRect(),x=h=="vert"?document.elementFromPoint(g.right-1,(g.top+g.bottom)/2):document.elementFromPoint((g.right+g.left)/2,g.bottom-1);x!=e?e.style.visibility="hidden":a.set(1e3,d)}a.set(1e3,d)},lo.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ls=function(){};ls.prototype.update=function(){return{bottom:0,right:0}},ls.prototype.setScrollLeft=function(){},ls.prototype.setScrollTop=function(){},ls.prototype.clear=function(){};function ta(e,a){a||(a=ss(e));var h=e.display.barWidth,d=e.display.barHeight;Fd(e,a);for(var g=0;g<4&&h!=e.display.barWidth||d!=e.display.barHeight;g++)h!=e.display.barWidth&&e.options.lineWrapping&&yl(e),Fd(e,ss(e)),h=e.display.barWidth,d=e.display.barHeight}function Fd(e,a){var h=e.display,d=h.scrollbars.update(a);h.sizer.style.paddingRight=(h.barWidth=d.right)+"px",h.sizer.style.paddingBottom=(h.barHeight=d.bottom)+"px",h.heightForcer.style.borderBottom=d.bottom+"px solid transparent",d.right&&d.bottom?(h.scrollbarFiller.style.display="block",h.scrollbarFiller.style.height=d.bottom+"px",h.scrollbarFiller.style.width=d.right+"px"):h.scrollbarFiller.style.display="",d.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(h.gutterFiller.style.display="block",h.gutterFiller.style.height=d.bottom+"px",h.gutterFiller.style.width=a.gutterWidth+"px"):h.gutterFiller.style.display=""}var Od={native:lo,null:ls};function Ld(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_e(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Od[e.options.scrollbarStyle](function(a){e.display.wrapper.insertBefore(a,e.display.scrollbarFiller),Q(a,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),a.setAttribute("cm-not-content","true")},function(a,h){h=="horizontal"?so(e,a):as(e,a)},e),e.display.scrollbars.addClass&&at(e.display.wrapper,e.display.scrollbars.addClass)}var a0=0;function uo(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++a0,markArrays:null},kn(e.curOp)}function co(e){var a=e.curOp;a&&hr(a,function(h){for(var d=0;d<h.ops.length;d++)h.ops[d].cm.curOp=null;s0(h)})}function s0(e){for(var a=e.ops,h=0;h<a.length;h++)l0(a[h]);for(var d=0;d<a.length;d++)u0(a[d]);for(var g=0;g<a.length;g++)c0(a[g]);for(var x=0;x<a.length;x++)f0(a[x]);for(var E=0;E<a.length;E++)d0(a[E])}function l0(e){var a=e.cm,h=a.display;p0(a),e.updateMaxLine&&k(a),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<h.viewFrom||e.scrollToPos.to.line>=h.viewTo)||h.maxLineChanged&&a.options.lineWrapping,e.update=e.mustUpdate&&new wl(a,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function u0(e){e.updatedDisplay=e.mustUpdate&&Yu(e.cm,e.update)}function c0(e){var a=e.cm,h=a.display;e.updatedDisplay&&yl(a),e.barMeasure=ss(a),h.maxLineChanged&&!a.options.lineWrapping&&(e.adjustWidthTo=ts(a,h.maxLine,h.maxLine.text.length).left+3,a.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(h.scroller.clientWidth,h.sizer.offsetLeft+e.adjustWidthTo+On(a)+a.display.barWidth),e.maxScrollLeft=Math.max(0,h.sizer.offsetLeft+e.adjustWidthTo-mr(a))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=h.input.prepareSelection())}function f0(e){var a=e.cm;e.adjustWidthTo!=null&&(a.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<a.doc.scrollLeft&&so(a,Math.min(a.display.scroller.scrollLeft,e.maxScrollLeft),!0),a.display.maxLineChanged=!1);var h=e.focus&&e.focus==nt(pe(a));e.preparedSelection&&a.display.input.showSelection(e.preparedSelection,h),(e.updatedDisplay||e.startHeight!=a.doc.height)&&ta(a,e.barMeasure),e.updatedDisplay&&Zu(a,e.barMeasure),e.selectionChanged&&$u(a),a.state.focused&&e.updateInput&&a.display.input.reset(e.typing),h&&Ad(e.cm)}function d0(e){var a=e.cm,h=a.display,d=a.doc;
29if(e.updatedDisplay&&Md(a,e.update),h.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(h.wheelStartX=h.wheelStartY=null),e.scrollTop!=null&&Td(a,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&so(a,e.scrollLeft,!0,!0),e.scrollToPos){var g=n0(a,wt(d,e.scrollToPos.from),wt(d,e.scrollToPos.to),e.scrollToPos.margin);i0(a,g)}var x=e.maybeHiddenMarkers,E=e.maybeUnhiddenMarkers;if(x)for(var T=0;T<x.length;++T)x[T].lines.length||Qe(x[T],"hide");if(E)for(var O=0;O<E.length;++O)E[O].lines.length&&Qe(E[O],"unhide");h.wrapper.offsetHeight&&(d.scrollTop=a.display.scroller.scrollTop),e.changeObjs&&Qe(a,"changes",a,e.changeObjs),e.update&&e.update.finish()}function dn(e,a){if(e.curOp)return a();uo(e);try{return a()}finally{co(e)}}function Mi(e,a){return function(){if(e.curOp)return a.apply(e,arguments);uo(e);try{return a.apply(e,arguments)}finally{co(e)}}}function Yi(e){return function(){if(this.curOp)return e.apply(this,arguments);uo(this);try{return e.apply(this,arguments)}finally{co(this)}}}function Ii(e){return function(){var a=this.cm;if(!a||a.curOp)return e.apply(this,arguments);uo(a);try{return e.apply(this,arguments)}finally{co(a)}}}function us(e,a){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(a,We(h0,e))}function h0(e){var a=e.doc;if(!(a.highlightFrontier>=e.display.viewTo)){var h=+new Date+e.options.workTime,d=eo(e,a.highlightFrontier),g=[];a.iter(d.line,Math.min(a.first+a.size,e.display.viewTo+500),function(x){if(d.line>=e.display.viewFrom){var E=x.styles,T=x.text.length>e.options.maxHighlightLength?Zn(a.mode,d.state):null,O=qa(e,x,d,!0);T&&(d.state=T),x.styles=O.styles;var B=x.styleClasses,X=O.classes;X?x.styleClasses=X:B&&(x.styleClasses=null);for(var J=!E||E.length!=x.styles.length||B!=X&&(!B||!X||B.bgClass!=X.bgClass||B.textClass!=X.textClass),ve=0;!J&&ve<E.length;++ve)J=E[ve]!=x.styles[ve];
29J&&g.push(d.line),x.stateAfter=d.save(),d.nextLine()}else x.text.length<=e.options.maxHighlightLength&&Ua(e,x.text,d),x.stateAfter=d.line%5==0?d.save():null,d.nextLine();if(+new Date>h)return us(e,e.options.workDelay),!0}),a.highlightFrontier=d.line,a.modeFrontier=Math.max(a.modeFrontier,d.line),g.length&&dn(e,function(){for(var x=0;x<g.length;x++)Rr(e,g[x],"text")})}}var wl=function(e,a,h){var d=e.display;this.viewport=a,this.visible=bl(d,e.doc,a),this.editorIsHidden=!d.wrapper.offsetWidth,this.wrapperHeight=d.wrapper.clientHeight,this.wrapperWidth=d.wrapper.clientWidth,this.oldDisplayWidth=mr(e),this.force=h,this.dims=nr(e),this.events=[]};wl.prototype.signal=function(e,a){yt(e,a)&&this.events.push(arguments)},wl.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Qe.apply(null,this.events[e])};function p0(e){var a=e.display;!a.scrollbarsClipped&&a.scroller.offsetWidth&&(a.nativeBarWidth=a.scroller.offsetWidth-a.scroller.clientWidth,a.heightForcer.style.height=On(e)+"px",a.sizer.style.marginBottom=-a.nativeBarWidth+"px",a.sizer.style.borderRightWidth=On(e)+"px",a.scrollbarsClipped=!0)}function g0(e){if(e.hasFocus())return null;var a=nt(pe(e));if(!a||!Ie(e.display.lineDiv,a))return null;var h={activeElt:a};if(window.getSelection){var d=Re(e).getSelection();d.anchorNode&&d.extend&&Ie(e.display.lineDiv,d.anchorNode)&&(h.anchorNode=d.anchorNode,h.anchorOffset=d.anchorOffset,h.focusNode=d.focusNode,h.focusOffset=d.focusOffset)}return h}function m0(e){if(!(!e||!e.activeElt||e.activeElt==nt(ze(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&Ie(document.body,e.anchorNode)&&Ie(document.body,e.focusNode))){var a=e.activeElt.ownerDocument,h=a.defaultView.getSelection(),d=a.createRange();d.setEnd(e.anchorNode,e.anchorOffset),d.collapse(!1),h.removeAllRanges(),h.addRange(d),h.extend(e.focusNode,e.focusOffset)}}function Yu(e,a){var h=e.display,d=e.doc;if(a.editorIsHidden)return Pr(e),!1;if(!a.force&&a.visible.from>=h.viewFrom&&a.visible.to<=h.viewTo&&(h.updateLineNumbers==null||h.updateLineNumbers>=h.viewTo)&&h.renderedView==h.view&&Sd(e)==0)return!1;Rd(e)&&(Pr(e),a.dims=nr(e));var g=d.first+d.size,x=Math.max(a.visible.from-e.options.viewportMargin,d.first),E=Math.min(g,a.visible.to+e.options.viewportMargin);h.viewFrom<x&&x-h.viewFrom<20&&(x=Math.max(d.first,h.viewFrom)),h.viewTo>E&&h.viewTo-E<20&&(E=Math.min(g,h.viewTo)),Hn&&(x=Ja(e.doc,x),E=dl(e.doc,E));var T=x!=h.viewFrom||E!=h.viewTo||h.lastWrapHeight!=a.wrapperHeight||h.lastWrapWidth!=a.wrapperWidth;e0(e,x,E),h.viewOffset=b(st(e.doc,h.viewFrom)),e.display.mover.style.top=h.viewOffset+"px";var O=Sd(e);if(!T&&O==0&&!a.force&&h.renderedView==h.view&&(h.updateLineNumbers==null||h.updateLineNumbers>=h.viewTo))return!1;var B=g0(e);return O>4&&(h.lineDiv.style.display="none"),v0(e,h.updateLineNumbers,a.dims),O>4&&(h.lineDiv.style.display=""),h.renderedView=h.view,m0(B),ie(h.cursorDiv),ie(h.selectionDiv),h.gutters.style.height=h.sizer.style.minHeight=0,T&&(h.lastWrapHeight=a.wrapperHeight,h.lastWrapWidth=a.wrapperWidth,us(e,400)),h.updateLineNumbers=null,!0}function Md(e,a){for(var h=a.viewport,d=!0;;d=!1){if(!d||!e.options.lineWrapping||a.oldDisplayWidth==mr(e)){if(h&&h.top!=null&&(h={top:Math.min(e.doc.height+en(e.display)-Yo(e),h.top)}),a.visible=bl(e.display,e.doc,h),a.visible.from>=e.display.viewFrom&&a.visible.to<=e.display.viewTo)break}else d&&(a.visible=bl(e.display,e.doc,h));if(!Yu(e,a))break;yl(e);var g=ss(e);rs(e),ta(e,g),Zu(e,g),a.force=!1}a.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(a.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ku(e,a){var h=new wl(e,a);if(Yu(e,h)){yl(e),Md(e,h);var d=ss(e);rs(e),ta(e,d),Zu(e,d),h.finish()}}function v0(e,a,h){var d=e.display,g=e.options.lineNumbers,x=d.lineDiv,E=x.firstChild;function T(Te){var Me=Te.nextSibling;return p&&ee&&e.display.currentWheelTarget==Te?Te.style.display="none":Te.parentNode.removeChild(Te),Me}for(var O=d.view,B=d.viewFrom,X=0;X<O.length;X++){var J=O[X];if(!J.hidden)if(!J.node||J.node.parentNode!=x){var ve=zn(e,J,B,h);x.insertBefore(ve,E)}else{for(;E!=J.node;)E=T(E);var de=g&&a!=null&&a<=B&&J.lineNumber;J.changes&&(vt(J.changes,"gutter")>-1&&(de=!1),Xo(e,J,B,h)),de&&(ie(J.lineNumber),J.lineNumber.appendChild(document.createTextNode(No(e.options,B)))),E=J.node.nextSibling}B+=J.size}for(;E;)E=T(E)}function Vu(e){var a=e.gutters.offsetWidth;e.sizer.style.marginLeft=a+"px",It(e,"gutterChanged",e)}function Zu(e,a){e.display.sizer.style.minHeight=a.docHeight+"px",e.display.heightForcer.style.top=a.docHeight+"px",e.display.gutters.style.height=a.docHeight+e.display.barHeight+On(e)+"px"}function Id(e){var a=e.display,h=a.view;if(!(!a.alignWidgets&&(!a.gutters.firstChild||!e.options.fixedGutter))){for(var d=Li(a)-a.scroller.scrollLeft+e.doc.scrollLeft,g=a.gutters.offsetWidth,x=d+"px",E=0;E<h.length;E++)if(!h[E].hidden){e.options.fixedGutter&&(h[E].gutter&&(h[E].gutter.style.left=x),h[E].gutterBackgroun
29d&&(h[E].gutterBackground.style.left=x));var T=h[E].alignable;if(T)for(var O=0;O<T.length;O++)T[O].style.left=x}e.options.fixedGutter&&(a.gutters.style.left=d+g+"px")}}function Rd(e){if(!e.options.lineNumbers)return!1;var a=e.doc,h=No(e.options,a.first+a.size-1),d=e.display;if(h.length!=d.lineNumChars){var g=d.measure.appendChild(Y("div",[Y("div",h)],"CodeMirror-linenumber CodeMirror-gutter-elt")),x=g.firstChild.offsetWidth,E=g.offsetWidth-x;return d.lineGutter.style.width="",d.lineNumInnerWidth=Math.max(x,d.lineGutter.offsetWidth-E)+1,d.lineNumWidth=d.lineNumInnerWidth+E,d.lineNumChars=d.lineNumInnerWidth?h.length:-1,d.lineGutter.style.width=d.lineNumWidth+"px",Vu(e.display),!0}return!1}function Qu(e,a){for(var h=[],d=!1,g=0;g<e.length;g++){var x=e[g],E=null;if(typeof x!="string"&&(E=x.style,x=x.className),x=="CodeMirror-linenumbers")if(a)d=!0;else continue;h.push({className:x,style:E})}return a&&!d&&h.push({className:"CodeMirror-linenumbers",style:null}),h}function Pd(e){var a=e.gutters,h=e.gutterSpecs;ie(a),e.lineGutter=null;for(var d=0;d<h.length;++d){var g=h[d],x=g.className,E=g.style,T=a.appendChild(Y("div",null,"CodeMirror-gutter "+x));E&&(T.style.cssText=E),x=="CodeMirror-linenumbers"&&(e.lineGutter=T,T.style.width=(e.lineNumWidth||1)+"px")}a.style.display=h.length?"":"none",Vu(e)}function cs(e){Pd(e.display),nn(e),Id(e)}function y0(e,a,h,d){var g=this;this.input=h,g.scrollbarFiller=Y("div",null,"CodeMirror-scrollbar-filler"),g.scrollbarFiller.setAttribute("cm-not-content","true"),g.gutterFiller=Y("div",null,"CodeMirror-gutter-filler"),g.gutterFiller.setAttribute("cm-not-content","true"),g.lineDiv=Ee("div",null,"CodeMirror-code"),g.selectionDiv=Y("div",null,null,"position: relative; z-index: 1"),g.cursorDiv=Y("div",null,"CodeMirror-cursors"),g.measure=Y("div",null,"CodeMirror-measure"),g.lineMeasure=Y("div",null,"CodeMirror-measure"),g.lineSpace=Ee("div",[g.measure,g.lineMeasure,g.selectionDiv,g.cursorDiv,g.lineDiv],null,"position: relative; outline: none");var x=Ee("div",[g.lineSpace],"CodeMirror-lines");g.mover=Y("div",[x],null,"position: relative"),g.sizer=Y("div",[g.mover],"CodeMirror-sizer"),g.sizerWidth=null,g.heightForcer=Y("div",null,null,"position: absolute; height: "+ot+"px; width: 1px;"),g.gutters=Y("div",null,"CodeMirror-gutters"),g.lineGutter=null,g.scroller=Y("div",[g.sizer,g.heightForcer,g.gutters],"CodeMirror-scroll"),g.scroller.setAttribute("tabIndex","-1"),g.wrapper=Y("div",[g.scrollbarFiller,g.gutterFiller,g.scroller],"CodeMirror"),y&&S>=105&&(g.wrapper.style.clipPath="inset(0px)"),g.wrapper.setAttribute("translate","no"),u&&f<8&&(g.gutters.style.zIndex=-1,g.scroller.style.paddingRight=0),!p&&!(r&&U)&&(g.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(g.wrapper):e(g.wrapper)),g.viewFrom=g.viewTo=a.first,g.reportedViewFrom=g.reportedViewTo=a.first,g.view=[],g.renderedView=null,g.externalMeasured=null,g.viewOffset=0,g.lastWrapHeight=g.lastWrapWidth=0,g.updateLineNumbers=null,g.nativeBarWidth=g.barHeight=g.barWidth=0,g.scrollbarsClipped=!1,g.lineNumWidth=g.lineNumInnerWidth=g.lineNumChars=null,g.alignWidgets=!1,g.cachedCharWidth=g.cachedTextHeight=g.cachedPaddingH=null,g.maxLine=null,g.maxLineLength=0,g.maxLineChanged=!1,g.wheelDX=g.wheelDY=g.wheelStartX=g.wheelStartY=null,g.shift=!1,g.selForContextMenu=null,g.activeTouch=null,g.gutterSpecs=Qu(d.gutters,d.lineNumbers),Pd(g),h.init(g)}var Cl=0,br=null;u?br=-.53:r?br=15:y?br=-.7:F&&(br=-1/3);function Bd(e){var a=e.wheelDeltaX,h=e.wheelDeltaY;return a==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(a=e.detail),h==null&&e.detail&&e.axis==e.VERTICAL_AXIS?h=e.detail:h==null&&(h=e.wheelDelta),{x:a,y:h}}function b0(e){var a=Bd(e);return a.x*=br,a.y*=br,a}function Nd(e,a){y&&S==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var h=Bd(a),d=h.x,g=h.y,x=br;a.deltaMode===0&&(d=a.deltaX,g=a.deltaY,x=1);var E=e.display,T=E.scroller,O=T.scrollWidth>T.clientWidth,B=T.scrollHeight>T.clientHeight;if(d&&O||g&&B){if(g&&ee&&p){e:for(var X=a.target,J=E.view;X!=T;X=X.parentNode)for(var ve=0;ve<J.length;ve++)if(J[ve].node==X){e.display.currentWheelTarget=X;break e}}if(d&&!r&&!D&&x!=null){g&&B&&as(e,Math.max(0,T.scrollTop+g*x)),so(e,Math.max(0,T.scrollLeft+d*x)),(!g||g&&B)&&dt(a),E.wheelStartX=null;return}if(g&&x!=null){var de=g*x,Te=e.doc.scrollTop,Me=Te+E.wrapper.clientHeight;de<0?Te=Math.max(0,Te+de-50):Me=Math.min(e.doc.height,Me+de+50),Ku(e,{top:Te,bottom:Me})}Cl<20&&a.deltaMode!==0&&(E.wheelStartX==null?(E.wheelStartX=T.scrollLeft,E.wheelStartY=T.scrollTop,E.wheelDX=d,E.wheelDY=g,setTimeout(function(){if(E.wheelStartX!=null){var Be=T.scrollLeft-E.wheelStartX,Ge=T.scrollTop-E.wheelStartY,Ze=Ge&&E.wheelDY&&Ge/E.wheelDY||Be&&E.wheelDX&&Be/E.wheelDX;E.wheelStartX=E.wheelStartY=null,Ze&&(br=(br*Cl+Ze)/(Cl+1),++Cl)}},200)):(E.wheelDX+=d,E.wheelDY+=g))}}var Cn=function(e,a){this.ranges=e,this.primIndex=a};Cn.prototype.primary=function(){return this.ranges[this.primIndex]},Cn.prototype.equals=function(e){if(e==this)return!0;
29if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var a=0;a<this.ranges.length;a++){var h=this.ranges[a],d=e.ranges[a];if(!Tr(h.anchor,d.anchor)||!Tr(h.head,d.head))return!1}return!0},Cn.prototype.deepCopy=function(){for(var e=[],a=0;a<this.ranges.length;a++)e[a]=new Zt(Wa(this.ranges[a].anchor),Wa(this.ranges[a].head));return new Cn(e,this.primIndex)},Cn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Cn.prototype.contains=function(e,a){a||(a=e);for(var h=0;h<this.ranges.length;h++){var d=this.ranges[h];if(bt(a,d.from())>=0&&bt(e,d.to())<=0)return h}return-1};var Zt=function(e,a){this.anchor=e,this.head=a};Zt.prototype.from=function(){return Fr(this.anchor,this.head)},Zt.prototype.to=function(){return Ho(this.anchor,this.head)},Zt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Wn(e,a,h){var d=e&&e.options.selectionsMayTouch,g=a[h];a.sort(function(ve,de){return bt(ve.from(),de.from())}),h=vt(a,g);for(var x=1;x<a.length;x++){var E=a[x],T=a[x-1],O=bt(T.to(),E.from());if(d&&!E.empty()?O>0:O>=0){var B=Fr(T.from(),E.from()),X=Ho(T.to(),E.to()),J=T.empty()?E.from()==E.head:T.from()==T.head;x<=h&&--h,a.splice(--x,2,new Zt(J?X:B,J?B:X))}}return new Cn(a,h)}function Br(e,a){return new Cn([new Zt(e,a||e)],0)}function Nr(e){return e.text?Pe(e.from.line+e.text.length-1,Tt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Hd(e,a){if(bt(e,a.from)<0)return e;if(bt(e,a.to)<=0)return Nr(a);var h=e.line+a.text.length-(a.to.line-a.from.line)-1,d=e.ch;return e.line==a.to.line&&(d+=Nr(a).ch-a.to.ch),Pe(h,d)}function Ju(e,a){for(var h=[],d=0;d<e.sel.ranges.length;d++){var g=e.sel.ranges[d];h.push(new Zt(Hd(g.anchor,a),Hd(g.head,a)))}return Wn(e.cm,h,e.sel.primIndex)}function zd(e,a,h){return e.line==a.line?Pe(h.line,e.ch-a.ch+h.ch):Pe(h.line+(e.line-a.line),e.ch)}function x0(e,a,h){for(var d=[],g=Pe(e.first,0),x=g,E=0;E<a.length;E++){var T=a[E],O=zd(T.from,g,x),B=zd(Nr(T),g,x);if(g=T.to,x=B,h=="around"){var X=e.sel.ranges[E],J=bt(X.head,X.anchor)<0;d[E]=new Zt(J?B:O,J?O:B)}else d[E]=new Zt(O,O)}return new Cn(d,e.sel.primIndex)}function ec(e){e.doc.mode=kr(e.options,e.doc.modeOption),fs(e)}function fs(e){e.doc.iter(function(a){a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,us(e,100),e.state.modeGen++,e.curOp&&nn(e)}function jd(e,a){return a.from.ch==0&&a.to.ch==0&&Tt(a.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function tc(e,a,h,d){function g(Ze){return h?h[Ze]:null}function x(Ze,Xe,it){P(Ze,Xe,it,d),It(Ze,"change",Ze,a)}function E(Ze,Xe){for(var it=[],mt=Ze;mt<Xe;++mt)it.push(new R(B[mt],g(mt),d));return it}var T=a.from,O=a.to,B=a.text,X=st(e,T.line),J=st(e,O.line),ve=Tt(B),de=g(B.length-1),Te=O.line-T.line;if(a.full)e.insert(0,E(0,B.length)),e.remove(B.length,e.size-B.length);else if(jd(e,a)){var Me=E(0,B.length-1);x(J,J.text,de),Te&&e.remove(T.line,Te),Me.length&&e.insert(T.line,Me)}else if(X==J)if(B.length==1)x(X,X.text.slice(0,T.ch)+ve+X.text.slice(O.ch),de);else{var Be=E(1,B.length-1);Be.push(new R(ve+X.text.slice(O.ch),de,d)),x(X,X.text.slice(0,T.ch)+B[0],g(0)),e.insert(T.line+1,Be)}else if(B.length==1)x(X,X.text.slice(0,T.ch)+B[0]+J.text.slice(O.ch),g(0)),e.remove(T.line+1,Te);else{x(X,X.text.slice(0,T.ch)+B[0],g(0)),x(J,ve+J.text.slice(O.ch),de);var Ge=E(1,B.length-1);Te>1&&e.remove(T.line+1,Te-1),e.insert(T.line+1,Ge)}It(e,"change",e,a)}function Hr(e,a,h){function d(g,x,E){if(g.linked)for(var T=0;T<g.linked.length;++T){var O=g.linked[T];if(O.doc!=x){var B=E&&O.sharedHist;h&&!B||(a(O.doc,B),d(O.doc,g,B))}}}d(e,null,!0)}function Wd(e,a){if(a.cm)throw new Error("This document is already in use.");e.doc=a,a.cm=e,ju(e),ec(e),$d(e),e.options.direction=a.direction,e.options.lineWrapping||k(e),e.options.mode=a.modeOption,nn(e)}function $d(e){(e.doc.direction=="rtl"?at:_e)(e.display.lineDiv,"CodeMirror-rtl")}function w0(e){dn(e,function(){$d(e),nn(e)})}function El(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ic(e,a){var h={from:Wa(a.from),to:Nr(a),text:Bn(e,a.from,a.to)};return Gd(e,h,a.from.line,a.to.line+1),Hr(e,function(d){return Gd(d,h,a.from.line,a.to.line+1)},!0),h}function qd(e){for(;e.length;){var a=Tt(e);if(a.ranges)e.pop();else break}}function C0(e,a){if(a)return qd(e.done),Tt(e.done);if(e.done.length&&!Tt(e.done).ranges)return Tt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Tt(e.done)}function Ud(e,a,h,d){var g=e.history;g.undone.length=0;var x=+new Date,E,T;if((g.lastOp==d||g.lastOrigin==a.origin&&a.origin&&(a.origin.charAt(0)=="+"&&g.lastModTime>x-(e.cm?e.cm.options.historyEventDelay:500)||a.origin.charAt(0)=="*"))&&(E=C0(g,g.lastOp==d)))T=Tt(E.changes),bt(a.from,a.to)==0&&bt(a.from,T.to)==0?T.to=Nr(a):E.changes.push(ic(e,a));else{var O=Tt(g.done);for((!O||!O.ranges)&&Sl(e.sel,g.done),E={changes:[ic(e,a)],generation:g.generation},g.done.push(E);g.done.length>g.undoDepth;)g.done.shift(),g.done[0].ranges||g.done.shift()}g.done.push(h),g.generation=++g.maxGeneration,g.lastModTime=g.lastSelTime=x,g.lastOp=g.lastSelOp=d,g.lastOrigin=g.lastSelOrigin=a.origin,T||Qe(e,"historyAdded")}function E0(e,a,h,d){var g=a.charAt(0);return g=="*"||g=="+"&&h.ranges.length==d.ranges.length&&h.somethingSelected()==d.somethingSelected()&&new Date-e.history.lastSelTime
29<=(e.cm?e.cm.options.historyEventDelay:500)}function S0(e,a,h,d){var g=e.history,x=d&&d.origin;h==g.lastSelOp||x&&g.lastSelOrigin==x&&(g.lastModTime==g.lastSelTime&&g.lastOrigin==x||E0(e,x,Tt(g.done),a))?g.done[g.done.length-1]=a:Sl(a,g.done),g.lastSelTime=+new Date,g.lastSelOrigin=x,g.lastSelOp=h,d&&d.clearRedo!==!1&&qd(g.undone)}function Sl(e,a){var h=Tt(a);h&&h.ranges&&h.equals(e)||a.push(e)}function Gd(e,a,h,d){var g=a["spans_"+e.id],x=0;e.iter(Math.max(e.first,h),Math.min(e.first+e.size,d),function(E){E.markedSpans&&((g||(g=a["spans_"+e.id]={}))[x]=E.markedSpans),++x})}function D0(e){if(!e)return null;for(var a,h=0;h<e.length;++h)e[h].marker.explicitlyCleared?a||(a=e.slice(0,h)):a&&a.push(e[h]);return a?a.length?a:null:e}function A0(e,a){var h=a["spans_"+e.id];if(!h)return null;for(var d=[],g=0;g<a.text.length;++g)d.push(D0(h[g]));return d}function Xd(e,a){var h=A0(e,a),d=Ka(e,a);if(!h)return d;if(!d)return h;for(var g=0;g<h.length;++g){var x=h[g],E=d[g];if(x&&E)e:for(var T=0;T<E.length;++T){for(var O=E[T],B=0;B<x.length;++B)if(x[B].marker==O.marker)continue e;x.push(O)}else E&&(h[g]=E)}return h}function ia(e,a,h){for(var d=[],g=0;g<e.length;++g){var x=e[g];if(x.ranges){d.push(h?Cn.prototype.deepCopy.call(x):x);continue}var E=x.changes,T=[];d.push({changes:T});for(var O=0;O<E.length;++O){var B=E[O],X=void 0;if(T.push({from:B.from,to:B.to,text:B.text}),a)for(var J in B)(X=J.match(/^spans_(\d+)$/))&&vt(a,Number(X[1]))>-1&&(Tt(T)[J]=B[J],delete B[J])}}return d}function nc(e,a,h,d){if(d){var g=e.anchor;if(h){var x=bt(a,g)<0;x!=bt(h,g)<0?(g=a,a=h):x!=bt(a,h)<0&&(a=h)}return new Zt(g,a)}else return new Zt(h||a,a)}function Dl(e,a,h,d,g){g==null&&(g=e.cm&&(e.cm.display.shift||e.extend)),Wi(e,new Cn([nc(e.sel.primary(),a,h,g)],0),d)}function Yd(e,a,h){for(var d=[],g=e.cm&&(e.cm.display.shift||e.extend),x=0;x<e.sel.ranges.length;x++)d[x]=nc(e.sel.ranges[x],a[x],null,g);var E=Wn(e.cm,d,e.sel.primIndex);Wi(e,E,h)}function rc(e,a,h,d){var g=e.sel.ranges.slice(0);g[a]=h,Wi(e,Wn(e.cm,g,e.sel.primIndex),d)}function Kd(e,a,h,d){Wi(e,Br(a,h),d)}function _0(e,a,h){var d={ranges:a.ranges,update:function(g){this.ranges=[];for(var x=0;x<g.length;x++)this.ranges[x]=new Zt(wt(e,g[x].anchor),wt(e,g[x].head))},origin:h&&h.origin};return Qe(e,"beforeSelectionChange",e,d),e.cm&&Qe(e.cm,"beforeSelectionChange",e.cm,d),d.ranges!=a.ranges?Wn(e.cm,d.ranges,d.ranges.length-1):a}function Vd(e,a,h){var d=e.history.done,g=Tt(d);g&&g.ranges?(d[d.length-1]=a,Al(e,a,h)):Wi(e,a,h)}function Wi(e,a,h){Al(e,a,h),S0(e,e.sel,e.cm?e.cm.curOp.id:NaN,h)}function Al(e,a,h){(yt(e,"beforeSelectionChange")||e.cm&&yt(e.cm,"beforeSelectionChange"))&&(a=_0(e,a,h));var d=h&&h.bias||(bt(a.primary().head,e.sel.primary().head)<0?-1:1);Zd(e,Jd(e,a,d,!0)),!(h&&h.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ea(e.cm)}function Zd(e,a){a.equals(e.sel)||(e.sel=a,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,tt(e.cm)),It(e,"cursorActivity",e))}function Qd(e){Zd(e,Jd(e,e.sel,null,!1))}function Jd(e,a,h,d){for(var g,x=0;x<a.ranges.length;x++){var E=a.ranges[x],T=a.ranges.length==e.sel.ranges.length&&e.sel.ranges[x],O=_l(e,E.anchor,T&&T.anchor,h,d),B=E.head==E.anchor?O:_l(e,E.head,T&&T.head,h,d);(g||O!=E.anchor||B!=E.head)&&(g||(g=a.ranges.slice(0,x)),g[x]=new Zt(O,B))}return g?Wn(e.cm,g,a.primIndex):a}function na(e,a,h,d,g){var x=st(e,a.line);if(x.markedSpans)for(var E=0;E<x.markedSpans.length;++E){var T=x.markedSpans[E],O=T.marker,B="selectLeft"in O?!O.selectLeft:O.inclusiveLeft,X="selectRight"in O?!O.selectRight:O.inclusiveRight;if((T.from==null||(B?T.from<=a.ch:T.from<a.ch))&&(T.to==null||(X?T.to>=a.ch:T.to>a.ch))){if(g&&(Qe(O,"beforeCursorEnter"),O.explicitlyCleared))if(x.markedSpans){--E;continue}else break;if(!O.atomic)continue;if(h){var J=O.find(d<0?1:-1),ve=void 0;if((d<0?X:B)&&(J=eh(e,J,-d,J&&J.line==a.line?x:null)),J&&J.line==a.line&&(ve=bt(J,h))&&(d<0?ve<0:ve>0))return na(e,J,a,d,g)}var de=O.find(d<0?-1:1);return(d<0?B:X)&&(de=eh(e,de,d,de.line==a.line?x:null)),de?na(e,de,a,d,g):null}}return a}function _l(e,a,h,d,g){var x=d||1,E=na(e,a,h,x,g)||!g&&na(e,a,h,x,!0)||na(e,a,h,-x,g)||!g&&na(e,a,h,-x,!0);return E||(e.cantEdit=!0,Pe(e.first,0))}function eh(e,a,h,d){return h<0&&a.ch==0?a.line>e.first?wt(e,Pe(a.line-1)):null:h>0&&a.ch==(d||st(e,a.line)).text.length?a.line<e.first+e.size-1?Pe(a.line+1,0):null:new Pe(a.line,a.ch+h)}function th(e){e.setSelection(Pe(e.firstLine(),0),Pe(e.lastLine()
29),gt)}function ih(e,a,h){var d={canceled:!1,from:a.from,to:a.to,text:a.text,origin:a.origin,cancel:function(){return d.canceled=!0}};return h&&(d.update=function(g,x,E,T){g&&(d.from=wt(e,g)),x&&(d.to=wt(e,x)),E&&(d.text=E),T!==void 0&&(d.origin=T)}),Qe(e,"beforeChange",e,d),e.cm&&Qe(e.cm,"beforeChange",e.cm,d),d.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:d.from,to:d.to,text:d.text,origin:d.origin}}function ra(e,a,h){if(e.cm){if(!e.cm.curOp)return Mi(e.cm,ra)(e,a,h);if(e.cm.state.suppressEdits)return}if(!((yt(e,"beforeChange")||e.cm&&yt(e.cm,"beforeChange"))&&(a=ih(e,a,!0),!a))){var d=Ya&&!h&&Nu(e,a.from,a.to);if(d)for(var g=d.length-1;g>=0;--g)nh(e,{from:d[g].from,to:d[g].to,text:g?[""]:a.text,origin:a.origin});else nh(e,a)}}function nh(e,a){if(!(a.text.length==1&&a.text[0]==""&&bt(a.from,a.to)==0)){var h=Ju(e,a);Ud(e,a,h,e.cm?e.cm.curOp.id:NaN),ds(e,a,h,Ka(e,a));var d=[];Hr(e,function(g,x){!x&&vt(d,g.history)==-1&&(sh(g.history,a),d.push(g.history)),ds(g,a,null,Ka(g,a))})}}function kl(e,a,h){var d=e.cm&&e.cm.state.suppressEdits;if(!(d&&!h)){for(var g=e.history,x,E=e.sel,T=a=="undo"?g.done:g.undone,O=a=="undo"?g.undone:g.done,B=0;B<T.length&&(x=T[B],!(h?x.ranges&&!x.equals(e.sel):!x.ranges));B++);if(B!=T.length){for(g.lastOrigin=g.lastSelOrigin=null;;)if(x=T.pop(),x.ranges){if(Sl(x,O),h&&!x.equals(e.sel)){Wi(e,x,{clearRedo:!1});return}E=x}else if(d){T.push(x);return}else break;var X=[];Sl(E,O),O.push({changes:X,generation:g.generation}),g.generation=x.generation||++g.maxGeneration;for(var J=yt(e,"beforeChange")||e.cm&&yt(e.cm,"beforeChange"),ve=function(Me){var Be=x.changes[Me];if(Be.origin=a,J&&!ih(e,Be,!1))return T.length=0,{};X.push(ic(e,Be));var Ge=Me?Ju(e,Be):Tt(T);ds(e,Be,Ge,Xd(e,Be)),!Me&&e.cm&&e.cm.scrollIntoView({from:Be.from,to:Nr(Be)});var Ze=[];Hr(e,function(Xe,it){!it&&vt(Ze,Xe.history)==-1&&(sh(Xe.history,Be),Ze.push(Xe.history)),ds(Xe,Be,null,Xd(Xe,Be))})},de=x.changes.length-1;de>=0;--de){var Te=ve(de);if(Te)return Te.v}}}}function rh(e,a){if(a!=0&&(e.first+=a,e.sel=new Cn(Ft(e.sel.ranges,function(g){return new Zt(Pe(g.anchor.line+a,g.anchor.ch),Pe(g.head.line+a,g.head.ch))}),e.sel.primIndex),e.cm)){nn(e.cm,e.first,e.first-a,a);for(var h=e.cm.display,d=h.viewFrom;d<h.viewTo;d++)Rr(e.cm,d,"gutter")}}function ds(e,a,h,d){if(e.cm&&!e.cm.curOp)return Mi(e.cm,ds)(e,a,h,d);if(a.to.line<e.first){rh(e,a.text.length-1-(a.to.line-a.from.line));return}if(!(a.from.line>e.lastLine())){if(a.from.line<e.first){var g=a.text.length-1-(e.first-a.from.line);rh(e,g),a={from:Pe(e.first,0),to:Pe(a.to.line+g,a.to.ch),text:[Tt(a.text)],origin:a.origin}}var x=e.lastLine();a.to.line>x&&(a={from:a.from,to:Pe(x,st(e,x).text.length),text:[a.text[0]],origin:a.origin}),a.removed=Bn(e,a.from,a.to),h||(h=Ju(e,a)),e.cm?k0(e.cm,a,d):tc(e,a,d),Al(e,h,gt),e.cantEdit&&_l(e,Pe(e.firstLine(),0))&&(e.cantEdit=!1)}}function k0(e,a,h){var d=e.doc,g=e.display,x=a.from,E=a.to,T=!1,O=x.line;e.options.lineWrapping||(O=Vt(Hi(st(d,x.line))),d.iter(O,E.line+1,function(de){if(de==g.maxLine)return T=!0,!0})),d.sel.contains(a.from,a.to)>-1&&tt(e),tc(d,a,h,Ed(e)),e.options.lineWrapping||(d.iter(O,x.line+a.text.length,function(de){var Te=C(de);Te>g.maxLineLength&&(g.maxLine=de,g.maxLineLength=Te,g.maxLineChanged=!0,T=!1)}),T&&(e.curOp.updateMaxLine=!0)),sl(d,x.line),us(e,400);var B=a.text.length-(E.line-x.line)-1;a.full?nn(e):x.line==E.line&&a.text.length==1&&!jd(e.doc,a)?Rr(e,x.line,"text"):nn(e,x.line,E.line+1,B);var X=yt(e,"changes"),J=yt(e,"change");if(J||X){var ve={from:x,to:E,text:a.text,removed:a.removed,origin:a.origin};J&&It(e,"change",e,ve),X&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(ve)}e.display.selForContextMenu=null}function oa(e,a,h,d,g){var x;d||(d=h),bt(d,h)<0&&(x=[d,h],h=x[0],d=x[1]),typeof a=="string"&&(a=e.splitLines(a)),ra(e,{from:h,to:d,text:a,origin:g})}function oh(e,a,h,d){h<e.line?e.line+=d:a<e.line&&(e.line=a,e.ch=0)}function ah(e,a,h,d){for(var g=0;g<e.length;++g){var x=e[g],E=!0;if(x.ranges){x.copied||(x=e[g]=x.deepCopy(),x.copied=!0);for(var T=0;T<x.ranges.length;T++)oh(x.ranges[T].anchor,a,h,d),oh(x.ranges[T].head,a,h,d);continue}for(var O=0;O<x.changes.length;++O){var B=x.changes[O];if(h<B.from.line)B.from=Pe(B.from.line+d,B.from.ch),B.to=Pe(B.to.line+d,B.to.ch);else if(a<=B.to.line){E=!1;break}}E||(e.splice(0,g+1),g=0)}}function sh(e,a){var h=a.from.line,d=a.to.line,g=a.text.length-(d-h)-1;ah(e.done,h,d,g),ah(e.undone,h,d,g)}function hs(e,a,h,d){var g=a,x=a;return typeof a=="number"?x=st(e,$a(e,a)):g=Vt(a),g==null?null:(d(x,g)&&e.cm&&Rr(e.cm,g,h),x)}function ps(e){this.lines=e,this.parent=null;for(var a=0,h=0;h<e.length;++h)e[h].parent=this,a+=e[h].height;this.height=a}ps.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,a){for(var h=e,d=e+a;h<d;++h){var g=this.lines[h];this.height-=g.height,z(g),It(g,"delete")}this.lines.splice(e,a)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,a,h){this.height+=h,this.lines=this.lines.slice(0,e).concat(a).concat(this.lines.slice(e));for(var d=0;d<a.length;++d)a[d].parent=this},iterN:function(e,a,h){for(var d=e+a;e<d;++e)if(h(this.lines[e]))return!0}};function gs(e){this.children=e;for(var a=0,h=0,d=0;d<e.length;++d){var g=e[d];a+=g.chunkSize(),h+=g.height,g.parent=this}this.size=a,this.height=h,this.parent=null}gs.prototype={chunkSize:function(){return this.size},removeInner:function(e,a){this.size-=a;for(var h=0;h<this.children.length;++h){var d=this.children[h],g=d.chunkSize();if(e<g){var x=Math.min(a,g-e),E=d.height;if(d.removeInner(e,x),this.height-=E-d.height,g==x&&(this.children.splice(h--,1),d.parent=null),(a-=x)==0)break;e=0}else e-=g}if(this.size-a<25&&(this.children.length>1||!(this.children[0]instanceof ps))){var T=[];this.collapse(T),this.children=[new ps(T)],this.children[0].parent=this}},collapse:function(e){for(var a=0;a<this.children.length;++a)this.children[a].collapse(e)},insertInner:function(e,a,h){this.size+=a.length,this.height+=h;for(var d=0;d<this.children.length;++d){var g=this.children[d],x=g.chunkSize();if(e<=x){if(g.insertInner(e,a,h),g.lines&&g.lines.length>50){for(var E=g.lines.length%25+25,T=E;T<g.lines.length;){var O=new ps(g.lines.slice(T,T+=25));g.height-=O.height,this.children.splice(++d,0,O),O.parent=this}g.lines=g.lines.slice(0,E),this.maybeSpill()}break}e-=x}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var a=e.children.splice(e.children.length-5,5),h=new gs(a);if(e.parent){e.size-=h.size,e.height-=h.height;var g=vt(e.parent.children,e);e.parent.children.splice(g+1,0,h)}else{var d=new gs(e.children);d.parent=e,e.children=[d,h],e=d}h.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,a,h){for(var d=0;d<this.children.length;++d){var g=this.children[d],x=g.chunkSize();if(e<x){var E=Math.min(a,x-e);if(g.iterN(e,E,h))return!0;
29if((a-=E)==0)break;e=0}else e-=x}}};var ms=function(e,a,h){if(h)for(var d in h)h.hasOwnProperty(d)&&(this[d]=h[d]);this.doc=e,this.node=a};ms.prototype.clear=function(){var e=this.doc.cm,a=this.line.widgets,h=this.line,d=Vt(h);if(!(d==null||!a)){for(var g=0;g<a.length;++g)a[g]==this&&a.splice(g--,1);a.length||(h.widgets=null);var x=ro(this);_n(h,Math.max(0,h.height-x)),e&&(dn(e,function(){lh(e,h,-x),Rr(e,d,"widget")}),It(e,"lineWidgetCleared",e,this,d))}},ms.prototype.changed=function(){var e=this,a=this.height,h=this.doc.cm,d=this.line;this.height=null;var g=ro(this)-a;g&&(er(this.doc,d)||_n(d,d.height+g),h&&dn(h,function(){h.curOp.forceUpdate=!0,lh(h,d,g),It(h,"lineWidgetChanged",h,e,Vt(d))}))},Nt(ms);function lh(e,a,h){b(a)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Xu(e,h)}function T0(e,a,h,d){var g=new ms(e,h,d),x=e.cm;return x&&g.noHScroll&&(x.display.alignWidgets=!0),hs(e,a,"widget",function(E){var T=E.widgets||(E.widgets=[]);if(g.insertAt==null?T.push(g):T.splice(Math.min(T.length,Math.max(0,g.insertAt)),0,g),g.line=E,x&&!er(e,E)){var O=b(E)<e.scrollTop;_n(E,E.height+ro(g)),O&&Xu(x,g.height),x.curOp.forceUpdate=!0}return!0}),x&&It(x,"lineWidgetAdded",x,g,typeof a=="number"?a:Vt(a)),g}var uh=0,zr=function(e,a){this.lines=[],this.type=a,this.doc=e,this.id=++uh};zr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,a=e&&!e.curOp;if(a&&uo(e),yt(this,"clear")){var h=this.find();h&&It(this,"clear",h.from,h.to)}for(var d=null,g=null,x=0;x<this.lines.length;++x){var E=this.lines[x],T=dr(E.markedSpans,this);e&&!this.collapsed?Rr(e,Vt(E),"text"):e&&(T.to!=null&&(g=Vt(E)),T.from!=null&&(d=Vt(E))),E.markedSpans=Iu(E.markedSpans,T),T.from==null&&this.collapsed&&!er(this.doc,E)&&e&&_n(E,Oi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var O=0;O<this.lines.length;++O){var B=Hi(this.lines[O]),X=C(B);X>e.display.maxLineLength&&(e.display.maxLine=B,e.display.maxLineLength=X,e.display.maxLineChanged=!0)}d!=null&&e&&this.collapsed&&nn(e,d,g+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qd(e.doc)),e&&It(e,"markerCleared",e,this,d,g),a&&co(e),this.parent&&this.parent.clear()}},zr.prototype.find=function(e,a){e==null&&this.type=="bookmark"&&(e=1);for(var h,d,g=0;g<this.lines.length;++g){var x=this.lines[g],E=dr(x.markedSpans,this);if(E.from!=null&&(h=Pe(a?x:Vt(x),E.from),e==-1))return h;if(E.to!=null&&(d=Pe(a?x:Vt(x),E.to),e==1))return d}return h&&{from:h,to:d}},zr.prototype.changed=function(){var e=this,a=this.find(-1,!0),h=this,d=this.doc.cm;!a||!d||dn(d,function(){var g=a.line,x=Vt(a.line),E=yr(d,x);if(E&&(gl(E),d.curOp.selectionChanged=d.curOp.forceUpdate=!0),d.curOp.updateMaxLine=!0,!er(h.doc,g)&&h.height!=null){var T=h.height;h.height=null;var O=ro(h)-T;O&&_n(g,g.height+O)}It(d,"markerChanged",d,e)})},zr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var a=this.doc.cm.curOp;(!a.maybeHiddenMarkers||vt(a.maybeHiddenMarkers,this)==-1)&&(a.maybeUnhiddenMarkers||(a.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},zr.prototype.detachLine=function(e){if(this.lines.splice(vt(this.lines,e),1),!this.lines.length&&this.doc.cm){var a=this.doc.cm.curOp;(a.maybeHiddenMarkers||(a.maybeHiddenMarkers=[])).push(this)}},Nt(zr);function aa(e,a,h,d,g){if(d&&d.shared)return F0(e,a,h,d,g);if(e.cm&&!e.cm.curOp)return Mi(e.cm,aa)(e,a,h,d,g);var x=new zr(e,g),E=bt(a,h);if(d&&ct(d,x,!1),E>0||E==0&&x.clearWhenEmpty!==!1)return x;if(x.replacedWith&&(x.collapsed=!0,x.widgetNode=Ee("span",[x.replacedWith],"CodeMirror-widget"),d.handleMouseEvents||x.widgetNode.setAttribute("cm-ignore-events","true"),d.insertLeft&&(x.widgetNode.insertLeft=!0)),x.collapsed){if(cl(e,a.line,a,h,x)||a.line!=h.line&&cl(e,h.line,a,h,x))throw new Error("Inserting collapsed marker partially overlapping an existing one");Mu()}x.addToHistory&&Ud(e,{from:a,to:h,origin:"markText"},e.sel,NaN);var T=a.line,O=e.cm,B;if(e.iter(T,h.line+1,function(J){O&&x.collapsed&&!O.options.lineWrapping&&Hi(J)==O.display.maxLine&&(B=!0),x.collapsed&&T!=a.line&&_n(J,0),Ru(J,new Wo(x,T==a.line?a.ch:null,T==h.line?h.ch:null),e.cm&&e.cm.curOp),++T}),x.collapsed&&e.iter(a.line,h.line+1,function(J){er(e,J)&&_n(J,0)}),x.clearOnEnter&&Q(x,"beforeCursorEnter",function(){return x.clear()}),x.readOnly&&(ll(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),x.collapsed&&(x.id=++uh,x.atomic=!0),O){if(B&&(O.curOp.updateMaxLine=!0),x.collapsed)nn(O,a.line,h.line+1);else if(x.className||x.startStyle||x.endStyle||x.css||x.attributes||x.title)for(var X=a.line;X<=h.line;X++)Rr(O,X,"text");x.atomic&&Qd(O.doc),It(O,"markerAdded",O,x)}return x}var vs=function(e,a){this.markers=e,this.primary=a;for(var h=0;h<e.length;++h)e[h].parent=this};vs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();It(this,"clear")}},vs.prototype.find=function(e,a){return this.primary.find(e,a)},Nt(vs);function F0(e,a,h,d,g){d=ct(d),d.shared=!1;var x=[aa(e,a,h,d,g)],E=x[0],T=d.widgetNode;return Hr(e,function(O){T&&(d.widgetNode=T.cloneNode(!0)),x.push(aa(O,wt(O,a),wt(O,h),d,g));for(var B=0;B<O.linked.length;++B)if(O.linked[B].isParent)return;E=Tt(x)}),new vs(x,E)}function ch(e){return e.findMarks(Pe(e.first,0),e.clipPos(Pe(e.lastLine()
29)),function(a){return a.parent})}function O0(e,a){for(var h=0;h<a.length;h++){var d=a[h],g=d.find(),x=e.clipPos(g.from),E=e.clipPos(g.to);if(bt(x,E)){var T=aa(e,x,E,d.primary,d.primary.type);d.markers.push(T),T.parent=d}}}function L0(e){for(var a=function(d){var g=e[d],x=[g.primary.doc];Hr(g.primary.doc,function(O){return x.push(O)});for(var E=0;E<g.markers.length;E++){var T=g.markers[E];vt(x,T.doc)==-1&&(T.parent=null,g.markers.splice(E--,1))}},h=0;h<e.length;h++)a(h)}var M0=0,rn=function(e,a,h,d,g){if(!(this instanceof rn))return new rn(e,a,h,d,g);h==null&&(h=0),gs.call(this,[new ps([new R("",null)])]),this.first=h,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=h;var x=Pe(h,0);this.sel=Br(x),this.history=new El(null),this.id=++M0,this.modeOption=a,this.lineSep=d,this.direction=g=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),tc(this,{from:x,to:x,text:e}),Wi(this,Br(x),gt)};rn.prototype=be(gs.prototype,{constructor:rn,iter:function(e,a,h){h?this.iterN(e-this.first,a-e,h):this.iterN(this.first,this.first+this.size,e)},insert:function(e,a){for(var h=0,d=0;d<a.length;++d)h+=a[d].height;this.insertInner(e-this.first,a,h)},remove:function(e,a){this.removeInner(e-this.first,a)},getValue:function(e){var a=ja(this,this.first,this.first+this.size);return e===!1?a:a.join(e||this.lineSeparator())},setValue:Ii(function(e){var a=Pe(this.first,0),h=this.first+this.size-1;ra(this,{from:a,to:Pe(h,st(this,h).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&os(this.cm,0,0),Wi(this,Br(a),gt)}),replaceRange:function(e,a,h,d){a=wt(this,a),h=h?wt(this,h):a,oa(this,e,a,h,d)},getRange:function(e,a,h){var d=Bn(this,wt(this,e),wt(this,a));return h===!1?d:h===""?d.join(""):d.join(h||this.lineSeparator())},getLine:function(e){var a=this.getLineHandle(e);return a&&a.text},getLineHandle:function(e){if(fr(this,e))return st(this,e)},getLineNumber:function(e){return Vt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=st(this,e)),Hi(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return wt(this,e)},getCursor:function(e){var a=this.sel.primary(),h;return e==null||e=="head"?h=a.head:e=="anchor"?h=a.anchor:e=="end"||e=="to"||e===!1?h=a.to():h=a.from(),h},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ii(function(e,a,h){Kd(this,wt(this,typeof e=="number"?Pe(e,a||0):e),null,h)}),setSelection:Ii(function(e,a,h){Kd(this,wt(this,e),wt(this,a||e),h)}),extendSelection:Ii(function(e,a,h){Dl(this,wt(this,e),a&&wt(this,a),h)}),extendSelections:Ii(function(e,a){Yd(this,ol(this,e),a)}),extendSelectionsBy:Ii(function(e,a){var h=Ft(this.sel.ranges,e);Yd(this,ol(this,h),a)}),setSelections:Ii(function(e,a,h){if(e.length){for(var d=[],g=0;g<e.length;g++)d[g]=new Zt(wt(this,e[g].anchor),wt(this,e[g].head||e[g].anchor));a==null&&(a=Math.min(e.length-1,this.sel.primIndex)),Wi(this,Wn(this.cm,d,a),h)}}),addSelection:Ii(function(e,a,h){var d=this.sel.ranges.slice(0);d.push(new Zt(wt(this,e),wt(this,a||e))),Wi(this,Wn(this.cm,d,d.length-1),h)}),getSelection:function(e){for(var a=this.sel.ranges,h,d=0;d<a.length;d++){var g=Bn(this,a[d].from(),a[d].to());h=h?h.concat(g):g}return e===!1?h:h.join(e||this.lineSeparator())},getSelections:function(e){for(var a=[],h=this.sel.ranges,d=0;d<h.length;d++){var g=Bn(this,h[d].from(),h[d].to());e!==!1&&(g=g.join(e||this.lineSeparator())),a[d]=g}return a},replaceSelection:function(e,a,h){for(var d=[],g=0;g<this.sel.ranges.length;g++)d[g]=e;this.replaceSelections(d,a,h||"+input")},replaceSelections:Ii(function(e,a,h){for(var d=[],g=this.sel,x=0;x<g.ranges.length;x++){var E=g.ranges[x];d[x]={from:E.from(),to:E.to(),text:this.splitLines(e[x]),origin:h}}for(var T=a&&a!="end"&&x0(this,d,a),O=d.length-1;O>=0;O--)ra(this,d[O]);T?Vd(this,T):this.cm&&ea(this.cm)}),undo:Ii(function(){kl(this,"undo")}),redo:Ii(function(){kl(this,"redo")}),undoSelection:Ii(function(){kl(this,"undo",!0)}),redoSelection:Ii(function(){kl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,a=0,h=0,d=0;d<e.done.length;d++)e.done[d].ranges||++a;for(var g=0;g<e.undone.length;g++)e.undone[g].ranges||++h;return{undo:a,redo:h}},clearHistory:function(){var e=this;this.history=new El(this.history),Hr(this,function(a){return a.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:ia(this.history.done),undone:ia(this.history.undone)}},setHistory:function(e){var a=this.history=new El(this.history);a.done=ia(e.done.slice(0),null,!0),a.undone=ia(e.undone.slice(0),null,!0)},setGutterMarker:Ii(function(e,a,h){return hs(this,e,"gutter",function(d){var g=d.gutterMarkers||(d.gutterMarkers={});return g[a]=h,!h&&q(g)&&(d.gutterMarkers=null),!0})}),clearGutter:Ii(function(e){var a=this;this.iter(function(h){h.gutterMarkers&&h.gutterMarkers[e]&&hs(a,h,"gutter",function(){return h.gutterMarkers[e]=null,q(h.gutterMarkers)&&(h.gutterMarkers=null),!0})})}),lineInfo:function(e){var a;if(typeof e=="number"){if(!fr(this,e)||(a=e,e=st(this,e),!e))return null}else if(a=Vt(e),a==null)return null;return{line:a,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Ii(function(e,a,h){return hs(this,e,a=="gutter"?"gutter":"class",function(d){var g=a=="text"?"textClass":a=="background"?"bgClass":a=="gutter"?"gutterClass":"wrapClass";if(!d[g])d[g]=h;else{if(ye(h).test(d[g]))return!1;d[g]+=" "+h}return!0})}),removeLineClass:Ii(function(e,a,h){return hs(this,e,a=="gutter"?"gutter":"class",function(d){var g=a=="text"?"textClass":a=="background"?"bgClass":a=="gutter"?"gutterClass":"wrapClass",x=d[g];if(x)if(h==null)d[g]=null;else{var E=x.match(ye(h));if(!E)return!1;var T=E.index+E[0].length;d[g]=x.slice(0,E.index)+(!E.index||T==x.length?"":" ")+x.slice(T)||null}else return!1;return!0})}),addLineWidget:Ii(function(e,a,h){return T0(this,e,a,h)}),removeLineWidget:function(e){e.clear()},markText:function(e,a,h){return aa(this,wt(this,e),wt(this,a),h,h&&h.type||"range")},setBookmark:function(e,a){var h={replacedWith:a&&(a.nodeType==null?a.widget:a),insertLeft:a&&a.insertLeft,clearWhenEmpty:!1,shared:a&&a.shared,handleMouseEvents:a&&a.handleMouseEvents};return e=wt(this,e),aa(this,e,e,h,"bookmark")},findMarksAt:function(e){e=wt(this,e);var a=[],h=st(this,e.line).markedSpans;if(h)for(var d=0;d<h.length;++d){var g=h[d];(g.from==null||g.from<=e.ch)&&(g.to==null||g.to>=e.ch)&&a.push(g.marker.parent||g.marker)}return a},findMarks:function(e,a,h){e=wt(this,e),a=wt(this,a);var d=[],g=e.line;return this.iter(e.line,a.line+1,function(x){var E=x.markedSpans;if(E)for(var T=0;T<E.length;T++){var O=E[T];!(O.to!=null&&g==e.line&&e.ch>=O.to||O.from==null&&g!=e.line||O.from!=null&&g==a.line&&O.from>
29=a.ch)&&(!h||h(O.marker))&&d.push(O.marker.parent||O.marker)}++g}),d},getAllMarks:function(){var e=[];return this.iter(function(a){var h=a.markedSpans;if(h)for(var d=0;d<h.length;++d)h[d].from!=null&&e.push(h[d].marker)}),e},posFromIndex:function(e){var a,h=this.first,d=this.lineSeparator().length;return this.iter(function(g){var x=g.text.length+d;if(x>e)return a=e,!0;e-=x,++h}),wt(this,Pe(h,a))},indexFromPos:function(e){e=wt(this,e);var a=e.ch;if(e.line<this.first||e.ch<0)return 0;var h=this.lineSeparator().length;return this.iter(this.first,e.line,function(d){a+=d.text.length+h}),a},copy:function(e){var a=new rn(ja(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return a.scrollTop=this.scrollTop,a.scrollLeft=this.scrollLeft,a.sel=this.sel,a.extend=!1,e&&(a.history.undoDepth=this.history.undoDepth,a.setHistory(this.getHistory())),a},linkedDoc:function(e){e||(e={});var a=this.first,h=this.first+this.size;e.from!=null&&e.from>a&&(a=e.from),e.to!=null&&e.to<h&&(h=e.to);var d=new rn(ja(this,a,h),e.mode||this.modeOption,a,this.lineSep,this.direction);return e.sharedHist&&(d.history=this.history),(this.linked||(this.linked=[])).push({doc:d,sharedHist:e.sharedHist}),d.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],O0(d,ch(this)),d},unlinkDoc:function(e){if(e instanceof ri&&(e=e.doc),this.linked)for(var a=0;a<this.linked.length;++a){var h=this.linked[a];if(h.doc==e){this.linked.splice(a,1),e.unlinkDoc(this),L0(ch(this));break}}if(e.history==this.history){var d=[e.id];Hr(e,function(g){return d.push(g.id)},!0),e.history=new El(null),e.history.done=ia(this.history.done,d),e.history.undone=ia(this.history.undone,d)}},iterLinkedDocs:function(e){Hr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Kn(e)},lineSeparator:function(){return this.lineSep||`
30`},setDirection:Ii(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(a){return a.order=null}),this.cm&&w0(this.cm))})}),rn.prototype.eachLine=rn.prototype.iter;var fh=0;function I0(e){var a=this;if(dh(a),!(qe(a,e)||jt(a.display,e))){dt(e),u&&(fh=+new Date);var h=oo(a,e,!0),d=e.dataTransfer.files;if(!(!h||a.isReadOnly()))if(d&&d.length&&window.FileReader&&window.File)for(var g=d.length,x=Array(g),E=0,T=function(){++E==g&&Mi(a,function(){h=wt(a.doc,h);var de={from:h,to:h,text:a.doc.splitLines(x.filter(function(Te){return Te!=null}).join(a.doc.lineSeparator())),origin:"paste"};ra(a.doc,de),Vd(a.doc,Br(wt(a.doc,h),wt(a.doc,Nr(de))))})()},O=function(de,Te){if(a.options.allowDropFileTypes&&vt(a.options.allowDropFileTypes,de.type)==-1){T();return}var Me=new FileReader;Me.onerror=function(){return T()},Me.onload=function(){var Be=Me.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Be)){T();return}x[Te]=Be,T()},Me.readAsText(de)},B=0;B<d.length;B++)O(d[B],B);else{if(a.state.draggingText&&a.doc.sel.contains(h)>-1){a.state.draggingText(e),setTimeout(function(){return a.display.input.focus()},20);return}try{var X=e.dataTransfer.getData("Text");if(X){var J;if(a.state.draggingText&&!a.state.draggingText.copy&&(J=a.listSelections()),Al(a.doc,Br(h,h)),J)for(var ve=0;ve<J.length;++ve)oa(a.doc,"",J[ve].anchor,J[ve].head,"drag");a.replaceSelection(X,"around","paste"),a.display.input.focus()}}catch{}}}}function R0(e,a){if(u&&(!e.state.draggingText||+new Date-fh<100)){Wt(a);return}if(!(qe(e,a)||jt(e.display,a))&&(a.dataTransfer.setData("Text",e.getSelection()),a.dataTransfer.effectAllowed="copyMove",a.dataTransfer.setDragImage&&!F)){var h=Y("img",null,null,"position: fixed; left: 0; top: 0;");h.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",D&&(h.width=h.height=1,e.display.wrapper.appendChild(h),h._top=h.offsetTop),a.dataTransfer.setDragImage(h,0,0),D&&h.parentNode.removeChild(h)}}function P0(e,a){var h=oo(e,a);if(h){var d=document.createDocumentFragment();Wu(e,h,d),e.display.dragCursor||(e.display.dragCursor=Y("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.dis
30play.dragCursor,e.display.cursorDiv)),me(e.display.dragCursor,d)}}function dh(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function hh(e){if(document.getElementsByClassName){for(var a=document.getElementsByClassName("CodeMirror"),h=[],d=0;d<a.length;d++){var g=a[d].CodeMirror;g&&h.push(g)}h.length&&h[0].operation(function(){for(var x=0;x<h.length;x++)e(h[x])})}}var ph=!1;function B0(){ph||(N0(),ph=!0)}function N0(){var e;Q(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,hh(H0)},100))}),Q(window,"blur",function(){return hh(Jo)})}function H0(e){var a=e.display;a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.scrollbarsClipped=!1,e.setSize()}for(var jr={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ys=0;ys<10;ys++)jr[ys+48]=jr[ys+96]=String(ys);for(var Tl=65;Tl<=90;Tl++)jr[Tl]=String.fromCharCode(Tl);for(var bs=1;bs<=12;bs++)jr[bs+111]=jr[bs+63235]="F"+bs;var xr={};xr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},xr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},xr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},xr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},xr.default=ee?xr.macDefault:xr.pcDefault;function z0(e){var a=e.split(/-(?!$)/);e=a[a.length-1];for(var h,d,g,x,E=0;E<a.length-1;E++){var T=a[E];if(/^(cmd|meta|m)$/i.test(T))x=!0;else if(/^a(lt)?$/i.test(T))h=!0;else if(/^(c|ctrl|control)$/i.test(T))d=!0;else if(/^s(hift)?$/i.test(T))g=!0;else throw new Error("Unrecognized modifier name: "+T)}return h&&(e="Alt-"+e),d&&(e="Ctrl-"+e),x&&(e="Cmd-"+e),g&&(e="Shift-"+e),e}function j0(e){var a={};for(var h in e)if(e.hasOwnProperty(h)){var d=e[h];if(/^(name|fallthrough|(de|at)tach)$/.test(h))continue;if(d=="..."){delete e[h];continue}for(var g=Ft(h.split(" "),z0),x=0;x<g.length;x++){var E=void 0,T=void 0;x==g.length-1?(T=g.join(" "),E=d):(T=g.slice(0,x+1).join(" "),E="...");var O=a[T];if(!O)a[T]=E;else if(O!=E)throw new Error("Inconsistent bindings for "+T)}delete e[h]}for(var B in a)e[B]=a[B];return e}function sa(e,a,h,d){a=Fl(a);var g=a.call?a.call(e,d):a[e];if(g===!1)return"nothing";if(g==="...")return"multi";if(g!=null&&h(g))return"handled";if(a.fallthrough){if(Object.prototype.toString.call(a.fallthrough)!="[object Array]")return sa(e,a.fallthrough,h,d);for(var x=0;x<a.fallthrough.length;x++){var E=sa(e,a.fallthrough[x],h,d);if(E)return E}}}function gh(e){var a=typeof e=="string"?e:jr[e.keyCode];return a=="Ctrl"||a=="Alt"||a=="Shift"||a=="Mod"}function mh(e,a,h){var d=e;return a.altKey&&d!="Alt"&&(e="Alt-"+e),(De?a.metaKey:a.ctrlKey)&&d!="Ctrl"&&(e="Ctrl-"+e),(De?a.ctrlKey:a.metaKey)&&d!="Mod"&&(e="Cmd-"+e),!h&&a.shiftKey&&d!="Shift"&&(e="Shift-"+e),e}function vh(e,a){if(D&&e.keyCode==34&&e.char)return!1;var h=jr[e.keyCode];return h==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(h=e.code),mh(h,e,a))}function Fl(e){return typeof e=="string"?xr[e]:e}function la(e,a){for(var h=e.doc.sel.ranges,d=[],g=0;g<h.length;g++){for(var x=a(h[g]);d.length&&bt(x.from,Tt(d).to)<=0;){var E=d.pop();if(bt(E.from,x.from)<0){x.from=E.from;break}}d.push(x)}dn(e,function(){for(var T=d.length-1;T>=0;T--)oa(e.doc,"",d[T].from,d[T].to,"+delete");ea(e)})}function oc(e,a,h){var d=_(e.text,a+h,h);return d<0||d>e.text.length?null:d}function ac(e,a,h){var d=oc(e,a.ch,h);return d==null?null:new Pe(a.line,d,h<0?"after":"before")}function sc(e,a,h,d,g){if(e){a.doc.direction=="rtl"&&(g=-g);var x=re(h,a.doc.direction);if(x){var E=g<0?Tt(x):x[0],T=g<0==(E.level==1),O=T?"after":"before",B;if(E.level>0||a.doc.direction=="rtl"){var X=jn(a,h);B=g<0?h.text.length-1:0;var J=tn(a,X,B).top;B=W(function(ve){return tn(a,X,ve).top==J},g<0==(E.level==1)?E.from:E.to-1,B),O=="before"&&(B=oc(h,B,1))}else B=g<0?E.to:E.from;return new Pe(d,B,O)}}return new Pe(d,g<0?h.text.length:0,g<0?"before":"after")}function W0(e,a,h,d){var g=re(a,e.doc.direction);if(!g)return ac(a,h,d);h.ch>=a.text.length?(h.ch=a.text.length,h.sticky="before"):h.ch<=0&&(h.ch=0,h.sticky="after");var x=se(g,h.ch,h.sticky),E=g[x];if(e.doc.direction=="ltr"&&E.level%2==0&&(d>0?E.to>h.ch:E.from<h.ch))return ac(a,h,d);var T=function(Ge,Ze){return oc(a,Ge instanceof Pe?Ge.ch:Ge,Ze)},O,B=function(Ge){return e.options.lineWrapping?(O=O||jn(e,a),At(e,a,O,Ge)):{begin:0,end:a.text.length}},X=B(h.sticky=="before"?T(h,-1):h.ch);if(e.doc.direction=="rtl"||E.level==1){var J=E.level==1==d<0,ve=T(h,J?1:-1);if(ve!=null&&(J?ve<=E.to&&ve<=X.end:ve>=E.from&&ve>=X.begin)){var de=J?"before":"after";return new Pe(h.line,ve,de)}}var Te=function(Ge,Ze,Xe){for(var it=function(ni,Ri){return Ri?new Pe(h.line,T(ni,1),"before"):new Pe
30(h.line,ni,"after")};Ge>=0&&Ge<g.length;Ge+=Ze){var mt=g[Ge],ht=Ze>0==(mt.level!=1),Rt=ht?Xe.begin:T(Xe.end,-1);if(mt.from<=Rt&&Rt<mt.to||(Rt=ht?mt.from:T(mt.to,-1),Xe.begin<=Rt&&Rt<Xe.end))return it(Rt,ht)}},Me=Te(x+d,d,X);if(Me)return Me;var Be=d>0?X.end:T(X.begin,-1);return Be!=null&&!(d>0&&Be==a.text.length)&&(Me=Te(d>0?0:g.length-1,d,B(Be)),Me)?Me:null}var xs={selectAll:th,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),gt)},killLine:function(e){return la(e,function(a){if(a.empty()){var h=st(e.doc,a.head.line).text.length;return a.head.ch==h&&a.head.line<e.lastLine()?{from:a.head,to:Pe(a.head.line+1,0)}:{from:a.head,to:Pe(a.head.line,h)}}else return{from:a.from(),to:a.to()}})},deleteLine:function(e){return la(e,function(a){return{from:Pe(a.from().line,0),to:wt(e.doc,Pe(a.to().line+1,0))}})},delLineLeft:function(e){return la(e,function(a){return{from:Pe(a.from().line,0),to:a.from()}})},delWrappedLineLeft:function(e){return la(e,function(a){var h=e.charCoords(a.head,"div").top+5,d=e.coordsChar({left:0,top:h},"div");return{from:d,to:a.from()}})},delWrappedLineRight:function(e){return la(e,function(a){var h=e.charCoords(a.head,"div").top+5,d=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:h},"div");return{from:a.from(),to:d}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(Pe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(Pe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(a){return yh(e,a.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(a){return bh(e,a.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(a){return $0(e,a.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(a){var h=e.cursorCoords(a.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:h},"div")},rt)},goLineLeft:function(e){return e.extendSelectionsBy(function(a){var h=e.cursorCoords(a.head,"div").top+5;return e.coordsChar({left:0,top:h},"div")},rt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(a){var h=e.cursorCoords(a.head,"div").top+5,d=e.coordsChar({left:0,top:h},"div");return d.ch<e.getLine(d.line).search(/\S/)?bh(e,a.head):d},rt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("	")},insertSoftTab:function(e){for(var a=[],h=e.listSelections(),d=e.options.tabSize,g=0;g<h.length;g++){var x=h[g].from(),E=ft(e.getLine(x.line),x.ch,d);a.push(Qt(d-E%d))}e.replaceSelections(a)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return dn(e,function(){for(var a=e.listSelections(),h=[],d=0;d<a.length;d++)if(a[d].empty()){var g=a[d].head,x=st(e.doc,g.line).text;
30if(x){if(g.ch==x.length&&(g=new Pe(g.line,g.ch-1)),g.ch>0)g=new Pe(g.line,g.ch+1),e.replaceRange(x.charAt(g.ch-1)+x.charAt(g.ch-2),Pe(g.line,g.ch-2),g,"+transpose");else if(g.line>e.doc.first){var E=st(e.doc,g.line-1).text;E&&(g=new Pe(g.line,1),e.replaceRange(x.charAt(0)+e.doc.lineSeparator()+E.charAt(E.length-1),Pe(g.line-1,E.length-1),g,"+transpose"))}}h.push(new Zt(g,g))}e.setSelections(h)})},newlineAndIndent:function(e){return dn(e,function(){for(var a=e.listSelections(),h=a.length-1;h>=0;h--)e.replaceRange(e.doc.lineSeparator(),a[h].anchor,a[h].head,"+input");a=e.listSelections();for(var d=0;d<a.length;d++)e.indentLine(a[d].from().line,null,!0);ea(e)})},openLine:function(e){return e.replaceSelection(`
31`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function yh(e,a){var h=st(e.doc,a),d=Hi(h);return d!=h&&(a=Vt(d)),sc(!0,e,d,a,1)}function $0(e,a){var h=st(e.doc,a),d=fl(h);return d!=h&&(a=Vt(d)),sc(!0,e,h,a,-1)}function bh(e,a){var h=yh(e,a.line),d=st(e.doc,h.line),g=re(d,e.doc.direction);if(!g||g[0].level==0){var x=Math.max(h.ch,d.text.search(/\S/)),E=a.line==h.line&&a.ch<=x&&a.ch;return Pe(h.line,E?0:x,h.sticky)}return h}function Ol(e,a,h){if(typeof a=="string"&&(a=xs[a],!a))return!1;e.display.input.ensurePolled();var d=e.display.shift,g=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),h&&(e.display.shift=!1),g=a(e)!=pt}finally{e.display.shift=d,e.state.suppressEdits=!1}return g}function q0(e,a,h){for(var d=0;d<e.state.keyMaps.length;d++){var g=sa(a,e.state.keyMaps[d],h,e);if(g)return g}return e.options.extraKeys&&sa(a,e.options.extraKeys,h,e)||sa(a,e.options.keyMap,h,e)}var U0=new St;function ws(e,a,h,d){var g=e.state.keySeq;if(g){if(gh(a))return"handled";if(/\'$/.test(a)?e.state.keySeq=null:U0.set(50,function(){e.state.keySeq==g&&(e.state.keySeq=null,e.display.input.reset())}),xh(e,g+" "+a,h,d))return!0}return xh(e,a,h,d)}function xh(e,a,h,d){var g=q0(e,a,d);return g=="multi"&&(e.state.keySeq=a),g=="handled"&&It(e,"keyHandled",e,a,h),(g=="handled"||g=="multi")&&(dt(h),$u(e)),!!g}function wh(e,a){var h=vh(a,!0);return h?a.shiftKey&&!e.state.keySeq?ws(e,"Shift-"+h,a,function(d){return Ol(e,d,!0)})||ws(e,h,a,function(d){if(typeof d=="string"?/^go[A-Z]/.test(d):d.motion)return Ol(e,d)}):ws(e,h,a,function(d){return Ol(e,d)}):!1}function G0(e,a,h){return ws(e,"'"+h+"'",a,function(d){return Ol(e,d,!0)})}var lc=null;function Ch(e){var a=this;if(!(e.target&&e.target!=a.display.input.getField())&&(a.curOp.focus=nt(pe(a)),!qe(a,e))){u&&f<11&&e.keyCode==27&&(e.returnValue=!1);var h=e.keyCode;a.display.shift=h==16||e.shiftKey;var d=wh(a,e);D&&(lc=d?h:null,!d&&h==88&&!Ha&&(ee?e.metaKey:e.ctrlKey)&&a.replaceSelection("",null,"cut")),r&&!ee&&!d&&h==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),h==18&&!/\bCodeMirror-crosshair\b/.test(a.display.lineDiv.className)&&X0(a)}}function X0(e){var a=e.display.lineDiv;at(a,"CodeMirror-crosshair");function h(d){(d.keyCode==18||!d.altKey)&&(_e(a,"CodeMirror-crosshair"),Ne(document,"keyup",h),Ne(document,"mouseover",h))}Q(document,"keyup",h),Q(document,"mouseover",h)}function Eh(e){e.keyCode==16&&(this.doc.sel.shift=!1),qe(this,e)}function Sh(e){var a=this;if(!(e.target&&e.target!=a.display.input.getField())&&!(jt(a.display,e)||qe(a,e)||e.ctrlKey&&!e.altKey||ee&&e.metaKey)){var h=e.keyCode,d=e.charCode;if(D&&h==lc){lc=null,dt(e);return}if(!(D&&(!e.which||e.which<10)&&wh(a,e))){var g=String.fromCharCode(d??h);g!="\b"&&(G0(a,e,g)||a.display.input.onKeyPress(e))}}}var Y0=400,uc=function(e,a,h){this.time=e,this.pos=a,this.button=h};uc.prototype.compare=function(e,a,h){return this.time+Y0>e&&bt(a,this.pos)==0&&h==this.button};var Cs,Es;function K0(e,a){var h=+new Date;return Es&&Es.compare(h,e,a)?(Cs=Es=null,"triple"):Cs&&Cs.compare(h,e,a)?(Es=new uc(h,e,a),Cs=null,"double"):(Cs=new uc(h,e,a),Es=null,"single")}function Dh(e){var a=this,h=a.display;if(!(qe(a,e)||h.activeTouch&&h.input.supportsTouch())){if(h.input.ensurePolled(),h.shift=e.shiftKey,jt(h,e)){p||(h.scroller.draggable=!1,setTimeout(function(){return h.scroller.draggable=!0},100));return}if(!cc(a,e)){var d=oo(a,e),g=Jt(e),x=d?K0(d,g):"single";Re(a).focus(),g==1&&a.state.selectingText&&a.state.selectingText(e),!(d&&V0(a,g,d,x,e))&&(g==1?d?Q0(a,d,x,e):ti(e)==h.scroller&&dt(e):g==2?(d&&Dl(a.doc,d),setTimeout(function(){return h.input.focus()},20)):g==3&&(Ke?a.display.input.onContextMenu(e):qu(a)))}}}function V0(e,a,h,d,g){var x="Click";return d=="double"?x="Double"+x:d=="triple"&&(x="Triple"+x),x=(a==1?"Left":a==2?"Middle":"Right")+x,ws(e,mh(x,g),g,function(E){if(typeof E=="string"&&(E=xs[E]),!E)return!1;var T=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),T=E(e,h)!=pt}
31finally{e.state.suppressEdits=!1}return T})}function Z0(e,a,h){var d=e.getOption("configureMouse"),g=d?d(e,a,h):{};if(g.unit==null){var x=Z?h.shiftKey&&h.metaKey:h.altKey;g.unit=x?"rectangle":a=="single"?"char":a=="double"?"word":"line"}return(g.extend==null||e.doc.extend)&&(g.extend=e.doc.extend||h.shiftKey),g.addNew==null&&(g.addNew=ee?h.metaKey:h.ctrlKey),g.moveOnDrag==null&&(g.moveOnDrag=!(ee?h.altKey:h.ctrlKey)),g}function Q0(e,a,h,d){u?setTimeout(We(Ad,e),0):e.curOp.focus=nt(pe(e));var g=Z0(e,h,d),x=e.doc.sel,E;e.options.dragDrop&&fn&&!e.isReadOnly()&&h=="single"&&(E=x.contains(a))>-1&&(bt((E=x.ranges[E]).from(),a)<0||a.xRel>0)&&(bt(E.to(),a)>0||a.xRel<0)?J0(e,d,a,g):ey(e,d,a,g)}function J0(e,a,h,d){var g=e.display,x=!1,E=Mi(e,function(B){p&&(g.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:qu(e)),Ne(g.wrapper.ownerDocument,"mouseup",E),Ne(g.wrapper.ownerDocument,"mousemove",T),Ne(g.scroller,"dragstart",O),Ne(g.scroller,"drop",E),x||(dt(B),d.addNew||Dl(e.doc,h,null,null,d.extend),p&&!F||u&&f==9?setTimeout(function(){g.wrapper.ownerDocument.body.focus({preventScroll:!0}),g.input.focus()},20):g.input.focus())}),T=function(B){x=x||Math.abs(a.clientX-B.clientX)+Math.abs(a.clientY-B.clientY)>=10},O=function(){return x=!0};p&&(g.scroller.draggable=!0),e.state.draggingText=E,E.copy=!d.moveOnDrag,Q(g.wrapper.ownerDocument,"mouseup",E),Q(g.wrapper.ownerDocument,"mousemove",T),Q(g.scroller,"dragstart",O),Q(g.scroller,"drop",E),e.state.delayingBlurEvent=!0,setTimeout(function(){return g.input.focus()},20),g.scroller.dragDrop&&g.scroller.dragDrop()}function Ah(e,a,h){if(h=="char")return new Zt(a,a);if(h=="word")return e.findWordAt(a);if(h=="line")return new Zt(Pe(a.line,0),wt(e.doc,Pe(a.line+1,0)));var d=h(e,a);return new Zt(d.from,d.to)}function ey(e,a,h,d){u&&qu(e);
31var g=e.display,x=e.doc;dt(a);var E,T,O=x.sel,B=O.ranges;if(d.addNew&&!d.extend?(T=x.sel.contains(h),T>-1?E=B[T]:E=new Zt(h,h)):(E=x.sel.primary(),T=x.sel.primIndex),d.unit=="rectangle")d.addNew||(E=new Zt(h,h)),h=oo(e,a,!0,!0),T=-1;else{var X=Ah(e,h,d.unit);d.extend?E=nc(E,X.anchor,X.head,d.extend):E=X}d.addNew?T==-1?(T=B.length,Wi(x,Wn(e,B.concat([E]),T),{scroll:!1,origin:"*mouse"})):B.length>1&&B[T].empty()&&d.unit=="char"&&!d.extend?(Wi(x,Wn(e,B.slice(0,T).concat(B.slice(T+1)),0),{scroll:!1,origin:"*mouse"}),O=x.sel):rc(x,T,E,$e):(T=0,Wi(x,new Cn([E],0),$e),O=x.sel);var J=h;function ve(Xe){if(bt(J,Xe)!=0)if(J=Xe,d.unit=="rectangle"){for(var it=[],mt=e.options.tabSize,ht=ft(st(x,h.line).text,h.ch,mt),Rt=ft(st(x,Xe.line).text,Xe.ch,mt),ni=Math.min(ht,Rt),Ri=Math.max(ht,Rt),ui=Math.min(h.line,Xe.line),hn=Math.min(e.lastLine(),Math.max(h.line,Xe.line));ui<=hn;ui++){var on=st(x,ui).text,bi=Ht(on,ni,mt);ni==Ri?it.push(new Zt(Pe(ui,bi),Pe(ui,bi))):on.length>bi&&it.push(new Zt(Pe(ui,bi),Pe(ui,Ht(on,Ri,mt))))}it.length||it.push(new Zt(h,h)),Wi(x,Wn(e,O.ranges.slice(0,T).concat(it),T),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Xe)}else{var an=E,Bi=Ah(e,Xe,d.unit),Di=an.anchor,xi;bt(Bi.anchor,Di)>
310?(xi=Bi.head,Di=Fr(an.from(),Bi.anchor)):(xi=Bi.anchor,Di=Ho(an.to(),Bi.head));var pi=O.ranges.slice(0);pi[T]=ty(e,new Zt(wt(x,Di),xi)),Wi(x,Wn(e,pi,T),$e)}}var de=g.wrapper.getBoundingClientRect(),Te=0;function Me(Xe){var it=++Te,mt=oo(e,Xe,!0,d.unit=="rectangle");if(mt)if(bt(mt,J)!=0){e.curOp.focus=nt(pe(e)),ve(mt);var ht=bl(g,x);(mt.line>=ht.to||mt.line<ht.from)&&setTimeout(Mi(e,function(){Te==it&&Me(Xe)}),150)}else{var Rt=Xe.clientY<de.top?-20:Xe.clientY>de.bottom?20:0;Rt&&setTimeout(Mi(e,function(){Te==it&&(g.scroller.scrollTop+=Rt,Me(Xe))}),50)}}function Be(Xe){e.state.selectingText=!1,Te=1/0,Xe&&(dt(Xe),g.input.focus()),Ne(g.wrapper.ownerDocument,"mousemove",Ge),Ne(g.wrapper.ownerDocument,"mouseup",Ze),x.history.lastSelOrigin=null}var Ge=Mi(e,function(Xe){Xe.buttons===0||!Jt(Xe)?Be(Xe):Me(Xe)}),Ze=Mi(e,Be);e.state.selectingText=Ze,Q(g.wrapper.ownerDocument,"mousemove",Ge),Q(g.wrapper.ownerDocument,"mouseup",Ze)}function ty(e,a){var h=a.anchor,d=a.head,g=st(e.doc,h.line);if(bt(h,d)==0&&h.sticky==d.sticky)return a;var x=re(g);if(!x)return a;var E=se(x,h.ch,h.sticky),T=x[E];if(T.from!=h.ch&&T.to!=h.ch)return a;var O=E+(T.from==h.ch==(T.level!=1)?0:1);if(O==0||O==x.length)return a;var B;if(d.line!=h.line)B=(d.line-h.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var X=se(x,d.ch,d.sticky),J=X-E||(d.ch-h.ch)*(T.level==1?-1:1);X==O-1||X==O?B=J<0:B=J>0}var ve=x[O+(B?-1:0)],de=B==(ve.level==1),Te=de?ve.from:ve.to,Me=de?"after":"before";return h.ch==Te&&h.sticky==Me?a:new Zt(new Pe(h.line,Te,Me),d)}function _h(e,a,h,d){var g,x;if(a.touches)g=a.touches[0].clientX,x=a.touches[0].clientY;else try{g=a.clientX,x=a.clientY}catch{return!1}if(g>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;d&&dt(a);var E=e.display,T=E.lineDiv.getBoundingClientRect();if(x>T.bottom||!yt(e,h))return Et(a);x-=T.top-E.viewOffset;for(var O=0;O<e.display.gutterSpecs.length;++O){var B=E.gutters.childNodes[O];if(B&&B.getBoundingClientRect().right>=g){var X=Qn(e.doc,x),J=e.display.gutterSpecs[O];return Qe(e,h,e,X,J.className,a),Et(a)}}}function cc(e,a){return _h(e,a,"gutterClick",!0)}function kh(e,a){jt(e.display,a)||iy(e,a)||qe(e,a,"contextmenu")||Ke||e.display.input.onContextMenu(a)}function iy(e,a){return yt(e,"gutterContextMenu")?_h(e,a,"gutterContextMenu",!1):!1}function Th(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ir(e)}var ua={toString:function(){return"CodeMirror.Init"}},Fh={},Ll={};function ny(e){var a=e.optionHandlers;function h(d,g,x,E){e.defaults[d]=g,x&&(a[d]=E?function(T,O,B){B!=ua&&x(T,O,B)}:x)}e.defineOption=h,e.Init=ua,h("value","",function(d,g){return d.setValue(g)},!0),h("mode",null,function(d,g){d.doc.modeOption=g,ec(d)},!0),h("indentUnit",2,ec,!0),h("indentWithTabs",!1),h("smartIndent",!0),h("tabSize",4,function(d){fs(d),Ir(d),nn(d)},!0),h("lineSeparator",null,function(d,g){if(d.doc.lineSep=g,!!g){var x=[],E=d.doc.first;d.doc.iter(function(O){for(var B=0;;){var X=O.text.indexOf(g,B);if(X==-1)break;B=X+g.length,x.push(Pe(E,X))}E++});for(var T=x.length-1;T>=0;T--)oa(d.doc,g,x[T],Pe(x[T].line,x[T].ch+g.length))}}),h("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(d,g,x){d.state.specialChars=new RegExp(g.source+(g.test("	")?"":"|	"),"g"),x!=ua&&d.refresh()}),h("specialCharPlaceholder",Le,function(d){return d.refresh()},!0),h("electricChars",!0),h("inputStyle",U?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),h("spellcheck",!1,function(d,g){return d.getInputField().spellcheck=g},!0),h("autocorrect",!1,function(d,g){return d.getInputField().autocorrect=g},!0),h("autocapitalize",!1,function(d,g){return d.getInputField().autocapitalize=g},!0),h("rtlMoveVisually",!w),h("wholeLineUpdateBefore",!0),h("theme","default",function(d){Th(d),cs(d)},!0),h("keyMap","default",function(d,g,x){var E=Fl(g),T=x!=ua&&Fl(x);T&&T.detach&&T.detach(d,E),E.attach&&E.attach(d,T||null)}),h("extraKeys",null),h("configureMouse",null),h("lineWrapping",!1,oy,!0),h("gutters",[],function(d,g){d.display.gutterSpecs=Qu(g,d.options.lineNumbers),cs(d)},!0),h("fixedGutter",!0,function(d,g){d.display.gutters.style.left=g?Li(d.display)+"px":"0",d.refresh()},!0),h("coverGutterNextToScrollbar",!1,function(d){return ta(d)},!0),h("scrollbarStyle","native",function(d){Ld(d),ta(d),d.display.scrollbars.setScrollTop(d.doc.scrollTop),d.display.scrollbars.setScrollLeft(d.doc.scrollLeft)},!0),h("lineNumbers",!1,function(d,g){d.display.gutterSpecs=Qu(d.options.gutters,g),cs(d)},!0),h("firstLineNumber",1,cs,!0),h("lineNumberFormatter",function(d){return d},cs,!0),h("showCursorWhenSelecting",!1,rs,!0),h("resetSelectionOnContextMenu",!0),h("lineWiseCopyCut",!0),h("pasteLinesPerSelection",!0),h("selectionsMayTouch",!1),h("readOnly",!1,function(d,g){g=="nocursor"&&(Jo(d),d.display.input.blur()),d.display.input.readOnlyChanged(g)}),h("screenReaderLabel",null,function(d,g){g=g===""?null:g,d.display.input.screenReaderLabelChanged(g)}),h("disableInput",!1,function(d,g){g||d.display.input.reset()},!0),h("dragDrop",!0,ry),h("allowDropFileTypes",null),h("cursorBlinkRate",530),h("cursorScrollMargin",0),h("cursorHeight",1,rs,!0),h("singleCursorHeightPerLine",!0,rs,!0),h("workTime",100),h("workDelay",100),h("flattenSpans",!0,fs,!0),h("addModeClass",!1,fs,!0),h("pollInterval",100),h("und
31oDepth",200,function(d,g){return d.doc.history.undoDepth=g}),h("historyEventDelay",1250),h("viewportMargin",10,function(d){return d.refresh()},!0),h("maxHighlightLength",1e4,fs,!0),h("moveInputWithCursor",!0,function(d,g){g||d.display.input.resetPosition()}),h("tabindex",null,function(d,g){return d.display.input.getField().tabIndex=g||""}),h("autofocus",null),h("direction","ltr",function(d,g){return d.doc.setDirection(g)},!0),h("phrases",null)}function ry(e,a,h){var d=h&&h!=ua;if(!a!=!d){var g=e.display.dragFunctions,x=a?Q:Ne;x(e.display.scroller,"dragstart",g.start),x(e.display.scroller,"dragenter",g.enter),x(e.display.scroller,"dragover",g.over),x(e.display.scroller,"dragleave",g.leave),x(e.display.scroller,"drop",g.drop)}}function oy(e){e.options.lineWrapping?(at(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_e(e.display.wrapper,"CodeMirror-wrap"),k(e)),ju(e),nn(e),Ir(e),setTimeout(function(){return ta(e)},100)}function ri(e,a){var h=this;if(!(this instanceof ri))return new ri(e,a);this.options=a=a?ct(a):{},ct(Fh,a,!1);var d=a.value;typeof d=="string"?d=new rn(d,a.mode,null,a.lineSeparator,a.direction):a.mode&&(d.modeOption=a.mode),this.doc=d;var g=new ri.inputStyles[a.inputStyle](this),x=this.display=new y0(e,d,g,a);x.wrapper.CodeMirror=this,Th(this),a.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ld(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new St,keySeq:null,specialChars:null},a.autofocus&&!U&&x.input.focus(),u&&f<11&&setTimeout(function(){return h.display.input.reset(!0)},20),ay(this),B0(),uo(this),this.curOp.forceUpdate=!0,Wd(this,d),a.autofocus&&!U||this.hasFocus()?setTimeout(function(){h.hasFocus()&&!h.state.focused&&Uu(h)},20):Jo(this);for(var E in Ll)Ll.hasOwnProperty(E)&&Ll[E](this,a[E],ua);Rd(this),a.finishInit&&a.finishInit(this);for(var T=0;T<fc.length;++T)fc[T](this);co(this),p&&a.lineWrapping&&getComputedStyle(x.lineDiv).textRendering=="optimizelegibility"&&(x.lineDiv.style.textRendering="auto")}ri.defaults=Fh,ri.optionHandlers=Ll;function ay(e){var a=e.display;Q(a.scroller,"mousedown",Mi(e,Dh)),u&&f<11?Q(a.scroller,"dblclick",Mi(e,function(O){if(!qe(e,O)){var B=oo(e,O);if(!(!B||cc(e,O)||jt(e.display,O))){dt(O);var X=e.findWordAt(B);Dl(e.doc,X.anchor,X.head)}}})):Q(a.scroller,"dblclick",function(O){return qe(e,O)||dt(O)}),Q(a.scroller,"contextmenu",function(O){return kh(e,O)}),Q(a.input.getField(),"contextmenu",function(O){a.scroller.contains(O.target)||kh(e,O)});var h,d={end:0};function g(){a.activeTouch&&(h=setTimeout(function(){return a.activeTouch=null},1e3),d=a.activeTouch,d.end=+new Date)}function x(O){if(O.touches.length!=1)return!1;var B=O.touches[0];return B.radiusX<=1&&B.radiusY<=1}function E(O,B){if(B.left==null)return!0;var X=B.left-O.left,J=B.top-O.top;return X*X+J*J>400}Q(a.scroller,"touchstart",function(O){if(!qe(e,O)&&!x(O)&&!cc(e,O)){a.input.ensurePolled(),clearTimeout(h);var B=+new Date;a.activeTouch={start:B,moved:!1,prev:B-d.end<=300?d:null},O.touches.length==1&&(a.activeTouch.left=O.touches[0].pageX,a.activeTouch.top=O.touches[0].pageY)}}),Q(a.scroller,"touchmove",function(){a.activeTouch&&(a.activeTouch.moved=!0)}),Q(a.scroller,"touchend",function(O){var B=a.activeTouch;if(B&&!jt(a,O)&&B.left!=null&&!B.moved&&new Date-B.start<300){var X=e.coordsChar(a.activeTouch,"page"),J;!B.prev||E(B,B.prev)?J=new Zt(X,X):!B.prev.prev||E(B,B.prev.prev)?J=e.findWordAt(X):J=new Zt(Pe(X.line,0),wt(e.doc,Pe(X.line+1,0))),e.setSelection(J.anchor,J.head),e.focus(),dt(O)}g()}),Q(a.scroller,"touchcancel",g),Q(a.scroller,"scroll",function(){a.scroller.clientHeight&&(as(e,a.scroller.scrollTop),so(e,a.scroller.scrollLeft,!0),Qe(e,"scroll",e))}),Q(a.scroller,"mousewheel",function(O){return Nd(e,O)}),Q(a.scroller,"DOMMouseScroll",function(O){return Nd(e,O)}),Q(a.wrapper,"scroll",function(){return a.wrapper.scrollTop=a.wrapper.scrollLeft=0}),a.dragFunctions={enter:function(O){qe(e,O)||Wt(O)},over:function(O){qe(e,O)||(P0(e,O),Wt(O))},start:function(O){return R0(e,O)},drop:Mi(e,I0),leave:function(O){qe(e,O)||dh(e)}};var T=a.input.getField();Q(T,"keyup",function(O){return Eh.call(e,O)}),Q(T,"keydown",Mi(e,Ch)),Q(T,"keypress",Mi(e,Sh)),Q(T,"focus",function(O){return Uu(e,O)}),Q(T,"blur",function(O){return Jo(e,O)})}var fc=[];ri.defineInitHook=function(e){return fc.push(e)};function Ss(e,a,h,d){var g=e.doc,x;h==null&&(h="add"),h=="smart"&&(g.mode.indent?x=eo(e,a).state:h="prev");var E=e.options.tabSize,T=st(g,a),O=ft(T.text,null,E);T.stateAfter&&(T.stateAfter=null);var B=T.text.match(/^\s*/)[0],X;if(!d&&!/\S/.test(T.text))X=0,h="not";else if(h=="smart"&&(X=g.mode.indent(x,T.text.slice(B.length),T.text),X==pt||X>150)){if(!d)return;h="prev"}h=="prev"?a>g.first?X=ft(st(g,a-1).text,null,E):X=0:h=="add"?X=O+e.options.indentUnit:h=="subtract"?X=O-e.options.indentUnit:typeof h=="number"&&(X=O+h),X=Math.max(0,X);var J="",ve=0;if(e.options.indentWithTabs)for(var de=Math.floor(X/E);de;--de)ve+=E,J+="	";if(ve<X&&(J+=Qt(X-ve)),J!=B)return oa(g,J,Pe(a,0),Pe(a,B.length),"+input"),T.stateAfter=null,!0;for(var Te=0;Te<g.sel.ranges.length;Te++){var Me=g.sel.ranges[Te];if(Me.head.line==a&&Me.head.ch<B.length){var Be=Pe(a,B.length);rc(g,Te,new Zt(Be,Be));break}}}var $n=null;function Ml(e){$n=e}function dc(e,a,h,d,g){var x=e.doc;
31e.display.shift=!1,d||(d=x.sel);var E=+new Date-200,T=g=="paste"||e.state.pasteIncoming>E,O=Kn(a),B=null;if(T&&d.ranges.length>1)if($n&&$n.text.join(`
32`)==a){if(d.ranges.length%$n.text.length==0){B=[];for(var X=0;X<$n.text.length;X++)B.push(x.splitLines($n.text[X]))}}else O.length==d.ranges.length&&e.options.pasteLinesPerSelection&&(B=Ft(O,function(Ge){return[Ge]}));for(var J=e.curOp.updateInput,ve=d.ranges.length-1;ve>=0;ve--){var de=d.ranges[ve],Te=de.from(),Me=de.to();de.empty()&&(h&&h>0?Te=Pe(Te.line,Te.ch-h):e.state.overwrite&&!T?Me=Pe(Me.line,Math.min(st(x,Me.line).text.length,Me.ch+Tt(O).length)):T&&$n&&$n.lineWise&&$n.text.join(`
33`)==O.join(`
34`)&&(Te=Me=Pe(Te.line,0)));var Be={from:Te,to:Me,text:B?B[ve%B.length]:O,origin:g||(T?"paste":e.state.cutIncoming>E?"cut":"+input")};ra(e.doc,Be),It(e,"inputRead",e,Be)}a&&!T&&Lh(e,a),ea(e),e.curOp.updateInput<2&&(e.curOp.updateInput=J),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Oh(e,a){var h=e.clipboardData&&e.clipboardData.getData("Text");if(h)return e.preventDefault(),!a.isReadOnly()&&!a.options.disableInput&&a.hasFocus()&&dn(a,function(){return dc(a,h,0,null,"paste")}),!0}function Lh(e,a){if(!(!e.options.electricChars||!e.options.smartIndent))for(var h=e.doc.sel,d=h.ranges.length-1;d>=0;d--){var g=h.ranges[d];if(!(g.head.ch>100||d&&h.ranges[d-1].head.line==g.head.line)){var x=e.getModeAt(g.head),E=!1;if(x.electricChars){for(var T=0;T<x.electricChars.length;T++)if(a.indexOf(x.electricChars.charAt(T))>-1){E=Ss(e,g.head.line,"smart");break}}else x.electricInput&&x.electricInput.test(st(e.doc,g.head.line).text.slice(0,g.head.ch))&&(E=Ss(e,g.head.line,"smart"));E&&It(e,"electricInput",e,g.head.line)}}}function Mh(e){for(var a=[],h=[],d=0;d<e.doc.sel.ranges.length;d++){var g=e.doc.sel.ranges[d].head.line,x={anchor:Pe(g,0),head:Pe(g+1,0)};h.push(x),a.push(e.getRange(x.anchor,x.head))}return{text:a,ranges:h}}function hc(e,a,h,d){e.setAttribute("autocorrect",h?"on":"off"),e.setAttribute("autocapitalize",d?"on":"off"),e.setAttribute("spellcheck",!!a)}function Ih(){var e=Y("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),a=Y("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return p?e.style.width="1000px":e.setAttribute("wrap","off"),L&&(e.style.border="1px solid black"),a}function sy(e){var a=e.optionHandlers,h=e.helpers={};e.prototype={constructor:e,focus:function(){Re(this).focus(),this.display.input.focus()},setOption:function(d,g){var x=this.options,E=x[d];x[d]==g&&d!="mode"||(x[d]=g,a.hasOwnProperty(d)&&Mi(this,a[d])(this,g,E),Qe(this,"optionChange",this,d))},getOption:function(d){return this.options[d]},getDoc:function(){return this.doc},addKeyMap:function(d,g){this.state.keyMaps[g?"push":"unshift"](Fl(d))},removeKeyMap:function(d){for(var g=this.state.keyMaps,x=0;x<g.length;++x)if(g[x]==d||g[x].name==d)return g.splice(x,1),!0},addOverlay:Yi(function(d,g){var x=d.token?d:e.getMode(this.options,d);if(x.startState)throw new Error("Overlays may not be stateful.");Yt(this.state.overlays,{mode:x,modeSpec:d,opaque:g&&g.opaque,priority:g&&g.priority||0},function(E){return E.priority}),this.state.modeGen++,nn(this)}),removeOverlay:Yi(function(d){for(var g=this.state.overlays,x=0;x<g.length;++x){var E=g[x].modeSpec;if(E==d||typeof d=="string"&&E.name==d){g.splice(x,1),this.state.modeGen++,nn(this);return}}}),indentLine:Yi(function(d,g,x){typeof g!="string"&&typeof g!="number"&&(g==null?g=this.options.smartIndent?"smart":"prev":g=g?"add":"subtract"),fr(this.doc,d)&&Ss(this,d,g,x)}),indentSelection:Yi(function(d){for(var g=this.doc.sel.ranges,x=-1,E=0;E<g.length;E++){var T=g[E];if(T.empty())T.head.line>x&&(Ss(this,T.head.line,d,!0),x=T.head.line,E==this.doc.sel.primIndex&&ea(this));else{var O=T.from(),B=T.to(),X=Math.max(x,O.line);x=Math.min(this.lastLine(),B.line-(B.ch?0:1))+1;for(var J=X;J<x;++J)Ss(this,J,d);var ve=this.doc.sel.ranges;O.ch==0&&g.length==ve.length&&ve[E].from().ch>0&&rc(this.doc,E,new Zt(O,ve[E].to()),gt)}}}),getTokenAt:function(d,g){return al(this,d,g)},getLineTokens:function(d,g){return al(this,Pe(d),g,!0)},getTokenTypeAt:function(d){d=wt(this.doc,d);var g=Or(this,st(this.doc,d.line)),x=0,E=(g.length-1)/2,T=d.ch,O;if(T==0)O=g[2];else for(;;){var B=x+E>>1;
34if((B?g[B*2-1]:0)>=T)E=B;else if(g[B*2+1]<T)x=B+1;else{O=g[B*2+2];break}}var X=O?O.indexOf("overlay "):-1;return X<0?O:X==0?null:O.slice(0,X-1)},getModeAt:function(d){var g=this.doc.mode;return g.innerMode?e.innerMode(g,this.getTokenAt(d).state).mode:g},getHelper:function(d,g){return this.getHelpers(d,g)[0]},getHelpers:function(d,g){var x=[];if(!h.hasOwnProperty(g))return x;var E=h[g],T=this.getModeAt(d);if(typeof T[g]=="string")E[T[g]]&&x.push(E[T[g]]);else if(T[g])for(var O=0;O<T[g].length;O++){var B=E[T[g][O]];B&&x.push(B)}else T.helperType&&E[T.helperType]?x.push(E[T.helperType]):E[T.name]&&x.push(E[T.name]);for(var X=0;X<E._global.length;X++){var J=E._global[X];J.pred(T,this)&&vt(x,J.val)==-1&&x.push(J.val)}return x},getStateAfter:function(d,g){var x=this.doc;return d=$a(x,d??x.first+x.size-1),eo(this,d+1,g).state},cursorCoords:function(d,g){var x,E=this.doc.sel.primary();return d==null?x=E.head:typeof d=="object"?x=wt(this.doc,d):x=d?E.from():E.to(),Ye(this,x,g||"page")},charCoords:function(d,g){return Ue(this,wt(this.doc,d),g||"page")},coordsChar:function(d,g){return d=Oe(this,d,g||"page"),Pt(this,d.left,d.top)},lineAtHeight:function(d,g){return d=Oe(this,{top:d,left:0},g||"page").top,Qn(this.doc,d+this.display.viewOffset)},heightAtLine:function(d,g,x){var E=!1,T;if(typeof d=="number"){var O=this.doc.first+this.doc.size-1;d<this.doc.first?d=this.doc.first:d>O&&(d=O,E=!0),T=st(this.doc,d)}else T=d;return ke(this,T,{top:0,left:0},g||"page",x||E).top+(E?this.doc.height-b(T):0)},defaultTextHeight:function(){return Oi(this.display)},defaultCharWidth:function(){return ji(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(d,g,x,E,T){var O=this.display;d=Ye(this,wt(this.doc,d));var B=d.bottom,X=d.left;if(g.style.position="absolute",g.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(g),O.sizer.appendChild(g),E=="over")B=d.top;else if(E=="above"||E=="near"){var J=Math.max(O.wrapper.clientHeight,this.doc.height),ve=Math.max(O.sizer.clientWidth,O.lineSpace.clientWidth);(E=="above"||d.bottom+g.offsetHeight>J)&&d.top>g.offsetHeight?B=d.top-g.offsetHeight:d.bottom+g.offsetHeight<=J&&(B=d.bottom),X+g.offsetWidth>ve&&(X=ve-g.offsetWidth)}g.style.top=B+"px",g.style.left=g.style.right="",T=="right"?(X=O.sizer.clientWidth-g.offsetWidth,g.style.right="0px"):(T=="left"?X=0:T=="middle"&&(X=(O.sizer.clientWidth-g.offsetWidth)/2),g.style.left=X+"px"),x&&r0(this,{left:X,top:B,right:X+g.offsetWidth,bottom:B+g.offsetHeight})},triggerOnKeyDown:Yi(Ch),triggerOnKeyPress:Yi(Sh),triggerOnKeyUp:Eh,triggerOnMouseDown:Yi(Dh),execCommand:function(d){if(xs.hasOwnProperty(d))return xs[d].call(null,this)},triggerElectric:Yi(function(d){Lh(this,d)}),findPosH:function(d,g,x,E){var T=1;g<0&&(T=-1,g=-g);for(var O=wt(this.doc,d),B=0;B<g&&(O=pc(this.doc,O,T,x,E),!O.hitSide);++B);return O},moveH:Yi(function(d,g){var x=this;this.extendSelectionsBy(function(E){return x.display.shift||x.doc.extend||E.empty()?pc(x.doc,E.head,d,g,x.options.rtlMoveVisually):d<0?E.from():E.to()},rt)}),deleteH:Yi(function(d,g){var x=this.doc.sel,E=this.doc;x.somethingSelected()?E.replaceSelection("",null,"+delete"):la(this,function(T){var O=pc(E,T.head,d,g,!1);return d<0?{from:O,to:T.head}:{from:T.head,to:O}})}),findPosV:function(d,g,x,E){var T=1,O=E;g<0&&(T=-1,g=-g);for(var B=wt(this.doc,d),X=0;X<g;++X){var J=Ye(this,B,"div");if(O==null?O=J.left:J.left=O,B=Rh(this,J,T,x),B.hitSide)break}return B},moveV:Yi(function(d,g){var x=this,E=this.doc,T=[],O=!this.display.shift&&!E.extend&&E.sel.somethingSelected();if(E.extendSelectionsBy(function(X){if(O)return d<0?X.from():X.to();var J=Ye(x,X.head,"div");X.goalColumn!=null&&(J.left=X.goalColumn),T.push(J.left);var ve=Rh(x,J,d,g);return g=="page"&&X==E.sel.primary()&&Xu(x,Ue(x,ve,"div").top-J.top),ve},rt),T.length)for(var B=0;B<E.sel.ranges.length;B++)E.sel.ranges[B].goalColumn=T[B]}),findWordAt:function(d){var g=this.doc,x=st(g,d.line).text,E=d.ch,T=d.ch;if(x){var O=this.getHelper(d,"wordChars");(d.sticky=="before"||T==x.length)&&E?--E:++T;for(var B=x.charAt(E),X=N(B,O)?function(J){return N(J,O)}:/\s/.test(B)?function(J){return/\s/.test(J)}:function(J){return!/\s/.test(J)&&!N(J)};E>0&&X(x.charAt(E-1));)--E;for(;T<x.length&&X(x.charAt(T));)++T}return new Zt(Pe(d.line,E),Pe(d.line,T))},toggleOverwrite:function(d){d!=null&&d==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?at(this.display.cursorDiv,"CodeMirror-overwrite"):_e(this.display.cursorDiv,"CodeMirror-overwrite"),Qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==nt(pe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Yi(function(d,g){os(this,d,g)}
34),getScrollInfo:function(){var d=this.display.scroller;return{left:d.scrollLeft,top:d.scrollTop,height:d.scrollHeight-On(this)-this.display.barHeight,width:d.scrollWidth-On(this)-this.display.barWidth,clientHeight:Yo(this),clientWidth:mr(this)}},scrollIntoView:Yi(function(d,g){d==null?(d={from:this.doc.sel.primary().head,to:null},g==null&&(g=this.options.cursorScrollMargin)):typeof d=="number"?d={from:Pe(d,0),to:null}:d.from==null&&(d={from:d,to:null}),d.to||(d.to=d.from),d.margin=g||0,d.from.line!=null?o0(this,d):kd(this,d.from,d.to,d.margin)}),setSize:Yi(function(d,g){var x=this,E=function(O){return typeof O=="number"||/^\d+$/.test(String(O))?O+"px":O};d!=null&&(this.display.wrapper.style.width=E(d)),g!=null&&(this.display.wrapper.style.height=E(g)),this.options.lineWrapping&&Qo(this);var T=this.display.viewFrom;this.doc.iter(T,this.display.viewTo,function(O){if(O.widgets){for(var B=0;B<O.widgets.length;B++)if(O.widgets[B].noHScroll){Rr(x,T,"widget");break}}++T}),this.curOp.forceUpdate=!0,Qe(this,"refresh",this)}),operation:function(d){return dn(this,d)},startOperation:function(){return uo(this)},endOperation:function(){return co(this)},refresh:Yi(function(){var d=this.display.cachedTextHeight;nn(this),this.curOp.forceUpdate=!0,Ir(this),os(this,this.doc.scrollLeft,this.doc.scrollTop),Vu(this.display),(d==null||Math.abs(d-Oi(this.display))>.5||this.options.lineWrapping)&&ju(this),Qe(this,"refresh",this)}),swapDoc:Yi(function(d){var g=this.doc;return g.cm=null,this.state.selectingText&&this.state.selectingText(),Wd(this,d),Ir(this),this.display.input.reset(),os(this,d.scrollLeft,d.scrollTop),this.curOp.forceScroll=!0,It(this,"swapDoc",this,g),g}),phrase:function(d){var g=this.options.phrases;return g&&Object.prototype.hasOwnProperty.call(g,d)?g[d]:d},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Nt(e),e.registerHelper=function(d,g,x){h.hasOwnProperty(d)||(h[d]=e[d]={_global:[]}),h[d][g]=x},e.registerGlobalHelper=function(d,g,x,E){e.registerHelper(d,g,E),h[d]._global.push({pred:x,val:E})}}function pc(e,a,h,d,g){var x=a,E=h,T=st(e,a.line),O=g&&e.direction=="rtl"?-h:h;function B(){var Ze=a.line+O;return Ze<e.first||Ze>=e.first+e.size?!1:(a=new Pe(Ze,a.ch,a.sticky),T=st(e,Ze))}function X(Ze){var Xe;if(d=="codepoint"){var it=T.text.charCodeAt(a.ch+(h>0?0:-1));if(isNaN(it))Xe=null;else{var mt=h>0?it>=55296&&it<56320:it>=56320&&it<57343;Xe=new Pe(a.line,Math.max(0,Math.min(T.text.length,a.ch+h*(mt?2:1))),-h)}}else g?Xe=W0(e.cm,T,a,h):Xe=ac(T,a,h);if(Xe==null)if(!Ze&&B())a=sc(g,e.cm,T,a.line,O);else return!1;else a=Xe;return!0}if(d=="char"||d=="codepoint")X();else if(d=="column")X(!0);else if(d=="word"||d=="group")for(var J=null,ve=d=="group",de=e.cm&&e.cm.getHelper(a,"wordChars"),Te=!0;!(h<0&&!X(!Te));Te=!1){var Me=T.text.charAt(a.ch)||`
35`,Be=N(Me,de)?"w":ve&&Me==`
36`?"n":!ve||/\s/.test(Me)?null:"p";if(ve&&!Te&&!Be&&(Be="s"),J&&J!=Be){h<0&&(h=1,X(),a.sticky="after");break}if(Be&&(J=Be),h>0&&!X(!Te))break}var Ge=_l(e,a,x,E,!0);return Tr(x,Ge)&&(Ge.hitSide=!0),Ge}function Rh(e,a,h,d){var g=e.doc,x=a.left,E;if(d=="page"){var T=Math.min(e.display.wrapper.clientHeight,Re(e).innerHeight||g(e).documentElement.clientHeight),O=Math.max(T-.5*Oi(e.display),3);E=(h>0?a.bottom:a.top)+h*O}else d=="line"&&(E=h>0?a.bottom+3:a.top-3);for(var B;B=Pt(e,x,E),!!B.outside;){if(h<0?E<=0:E>=g.height){B.hitSide=!0;break}E+=h*5}return B}var ei=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new St,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ei.prototype.init=function(e){var a=this,h=this,d=h.cm,g=h.div=e.lineDiv;g.contentEditable=!0,hc(g,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function x(T){for(var O=T.target;O;O=O.parentNode){if(O==g)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(O.className))break}return!1}Q(g,"paste",function(T){!x(T)||qe(d,T)||Oh(T,d)||f<=11&&setTimeout(
36Mi(d,function(){return a.updateFromDOM()}),20)}),Q(g,"compositionstart",function(T){a.composing={data:T.data,done:!1}}),Q(g,"compositionupdate",function(T){a.composing||(a.composing={data:T.data,done:!1})}),Q(g,"compositionend",function(T){a.composing&&(T.data!=a.composing.data&&a.readFromDOMSoon(),a.composing.done=!0)}),Q(g,"touchstart",function(){return h.forceCompositionEnd()}),Q(g,"input",function(){a.composing||a.readFromDOMSoon()});function E(T){if(!(!x(T)||qe(d,T))){if(d.somethingSelected())Ml({lineWise:!1,text:d.getSelections()}),T.type=="cut"&&d.replaceSelection("",null,"cut");else if(d.options.lineWiseCopyCut){var O=Mh(d);Ml({lineWise:!0,text:O.text}),T.type=="cut"&&d.operation(function(){d.setSelections(O.ranges,0,gt),d.replaceSelection("",null,"cut")})}else return;if(T.clipboardData){T.clipboardData.clearData();var B=$n.text.join(`
37`);if(T.clipboardData.setData("Text",B),T.clipboardData.getData("Text")==B){T.preventDefault();return}}var X=Ih(),J=X.firstChild;hc(J),d.display.lineSpace.insertBefore(X,d.display.lineSpace.firstChild),J.value=$n.text.join(`
38`);var ve=nt(ze(g));j(J),setTimeout(function(){d.display.lineSpace.removeChild(X),ve.focus(),ve==g&&h.showPrimarySelection()},50)}}Q(g,"copy",E),Q(g,"cut",E)},ei.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ei.prototype.prepareSelection=function(){var e=Dd(this.cm,!1);return e.focus=nt(ze(this.div))==this.div,e},ei.prototype.showSelection=function(e,a){!e||!this.cm.display.view.length||((e.focus||a)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ei.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ei.prototype.showPrimarySelection=function(){var e=this.getSelection(),a=this.cm,h=a.doc.sel.primary(),d=h.from(),g=h.to();if(a.display.viewTo==a.display.viewFrom||d.line>=a.display.viewTo||g.line<a.display.viewFrom){e.removeAllRanges();return}var x=Il(a,e.anchorNode,e.anchorOffset),E=Il(a,e.focusNode,e.focusOffset);if(!(x&&!x.bad&&E&&!E.bad&&bt(Fr(x,E),d)==0&&bt(Ho(x,E),g)==0)){var T=a.display.view,O=d.line>=a.display.viewFrom&&Ph(a,d)||{node:T[0].measure.map[2],offset:0},B=g.line<a.display.viewTo&&Ph(a,g);if(!B){var X=T[T.length-1].measure,J=X.maps?X.maps[X.maps.length-1]:X.map;B={node:J[J.length-1],offset:J[J.length-2]-J[J.length-3]}}if(!O||!B){e.removeAllRanges();return}var ve=e.rangeCount&&e.getRangeAt(0),de;try{de=we(O.node,O.offset,B.offset,B.node)}catch{}de&&(!r&&a.state.focused?(e.collapse(O.node,O.offset),de.collapsed||(e.removeAllRanges(),e.addRange(de))):(e.removeAllRanges(),e.addRange(de)),ve&&e.anchorNode==null?e.addRange(ve):r&&this.startGracePeriod()),this.rememberSelection()}},ei.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},ei.prototype.showMultipleSelections=function(e){me(this.cm.display.cursorDiv,e.cursors),me(this.cm.display.selectionDiv,e.selection)},ei.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ei.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var a=e.getRangeAt(0).commonAncestorContainer;return Ie(this.div,a)},ei.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||nt(ze(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ei.prototype.blur=function(){this.div.blur()},ei.prototype.getField=function(){return this.div},ei.prototype.supportsTouch=function(){return!0},ei.prototype.receivedFocus=function(){var e=this,a=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):dn(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function h(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,h))}this.polling.set(this.cm.options.pollInterval,h)},ei.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ei.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),a=this.cm;if(H&&y&&this.cm.display.gutterSpecs.length&&ly(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var h=Il(a,e.anchorNode,e.anchorOffset),d=Il(a,e.focusNode,e.focusOffset);h&&d&&dn(a,function(){Wi(a.doc,Br(h,d),gt),(h.bad||d.bad)&&(a.curOp.selectionChanged=!0)})}}},ei.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,a=e.display,h=e.doc.sel.primary(),d=h.from(),g=h.to();if(d.ch==0&&d.line>e.firstLine()&&(d=Pe(d.line-1,st(e.doc,d.line-1).length)),g.ch==st(e.doc,g.line).text.length&&g.line<e.lastLine()&&(g=Pe(g.line+1,0)),d.line<a.viewFrom||g.line>a.viewTo-1)return!1;var x,E,T;d.line==a.viewFrom||(x=ao(e,d.line))==0?(E=Vt(a.view[0].line),T=a.view[0].node):(E=Vt(a.view[x].line),T=a.view[x-1].node.nextSibling);var O=ao(e,g.line),B,X;
38if(O==a.view.length-1?(B=a.viewTo-1,X=a.lineDiv.lastChild):(B=Vt(a.view[O+1].line)-1,X=a.view[O+1].node.previousSibling),!T)return!1;for(var J=e.doc.splitLines(uy(e,T,X,E,B)),ve=Bn(e.doc,Pe(E,0),Pe(B,st(e.doc,B).text.length));J.length>1&&ve.length>1;)if(Tt(J)==Tt(ve))J.pop(),ve.pop(),B--;else if(J[0]==ve[0])J.shift(),ve.shift(),E++;else break;for(var de=0,Te=0,Me=J[0],Be=ve[0],Ge=Math.min(Me.length,Be.length);de<Ge&&Me.charCodeAt(de)==Be.charCodeAt(de);)++de;for(var Ze=Tt(J),Xe=Tt(ve),it=Math.min(Ze.length-(J.length==1?de:0),Xe.length-(ve.length==1?de:0));Te<it&&Ze.charCodeAt(Ze.length-Te-1)==Xe.charCodeAt(Xe.length-Te-1);)++Te;if(J.length==1&&ve.length==1&&E==d.line)for(;de&&de>d.ch&&Ze.charCodeAt(Ze.length-Te-1)==Xe.charCodeAt(Xe.length-Te-1);)de--,Te++;J[J.length-1]=Ze.slice(0,Ze.length-Te).replace(/^\u200b+/,""),J[0]=J[0].slice(de).replace(/\u200b+$/,"");var mt=Pe(E,de),ht=Pe(B,ve.length?Tt(ve).length-Te:0);if(J.length>1||J[0]||bt(mt,ht))return oa(e.doc,J,mt,ht,"+input"),!0},ei.prototype.ensurePolled=function(){this.forceCompositionEnd()},ei.prototype.reset=function(){this.forceCompositionEnd()},ei.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ei.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},ei.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&dn(this.cm,function(){return nn(e.cm)})},ei.prototype.setUneditable=function(e){e.contentEditable="false"},ei.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Mi(this.cm,dc)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ei.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ei.prototype.onContextMenu=function(){},ei.prototype.resetPosition=function(){},ei.prototype.needsContentAttribute=!0;function Ph(e,a){var h=yr(e,a.line);if(!h||h.hidden)return null;var d=st(e.doc,a.line),g=Ko(h,d,a.line),x=re(d,e.doc.direction),E="left";if(x){var T=se(x,a.ch);E=T%2?"right":"left"}var O=pl(g.map,a.ch,E);return O.offset=O.collapse=="right"?O.end:O.start,O}function ly(e){for(var a=e;a;a=a.parentNode)if(/CodeMirror-gutter-wrapper/.test(a.className))return!0;return!1}function ca(e,a){return a&&(e.bad=!0),e}function uy(e,a,h,d,g){var x="",E=!1,T=e.doc.lineSeparator(),O=!1;function B(de){return function(Te){return Te.id==de}}function X(){E&&(x+=T,O&&(x+=T),E=O=!1)}function J(de){de&&(X(),x+=de)}function ve(de){if(de.nodeType==1){var Te=de.getAttribute("cm-text");if(Te){J(Te);return}var Me=de.getAttribute("cm-marker"),Be;if(Me){var Ge=e.findMarks(Pe(d,0),Pe(g+1,0),B(+Me));Ge.length&&(Be=Ge[0].find(0))&&J(Bn(e.doc,Be.from,Be.to).join(T));return}if(de.getAttribute("contenteditable")=="false")return;var Ze=/^(pre|div|p|li|table|br)$/i.test(de.nodeName);if(!/^br$/i.test(de.nodeName)&&de.textContent.length==0)return;Ze&&X();for(var Xe=0;Xe<de.childNodes.length;Xe++)ve(de.childNodes[Xe]);/^(pre|p)$/i.test(de.nodeName)&&(O=!0),Ze&&(E=!0)}else de.nodeType==3&&J(de.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ve(a),a!=h;)a=a.nextSibling,O=!1;return x}function Il(e,a,h){var d;if(a==e.display.lineDiv){if(d=e.display.lineDiv.childNodes[h],!d)return ca(e.clipPos(Pe(e.display.viewTo-1)),!0);a=null,h=0}else for(d=a;;d=d.parentNode){if(!d||d==e.display.lineDiv)return null;if(d.parentNode&&d.parentNode==e.display.lineDiv)break}for(var g=0;g<e.display.view.length;g++){var x=e.display.view[g];if(x.node==d)return cy(x,a,h)}}function cy(e,a,h){var d=e.text.firstChild,g=!1;if(!a||!Ie(d,a))return ca(Pe(Vt(e.line),0),!0);if(a==d&&(g=!0,a=d.childNodes[h],h=0,!a)){var x=e.rest?Tt(e.rest):e.line;return ca(Pe(Vt(x),x.text.length),g)}var E=a.nodeType==3?a:null,T=a;for(!E&&a.childNodes.length==1&&a.firstChild.nodeType==3&&(E=a.firstChild,h&&(h=E.nodeValue.length));T.parentNode!=d;)T=T.parentNode;var O=e.measure,B=O.maps;function X(Be,Ge,Ze){for(var Xe=-1;Xe<(B?B.length:0);Xe++)for(var it=Xe<0?O.map:B[Xe],mt=0;mt<it.length;mt+=3){var ht=it[mt+2];
38if(ht==Be||ht==Ge){var Rt=Vt(Xe<0?e.line:e.rest[Xe]),ni=it[mt]+Ze;return(Ze<0||ht!=Be)&&(ni=it[mt+(Ze?1:0)]),Pe(Rt,ni)}}}var J=X(E,T,h);if(J)return ca(J,g);for(var ve=T.nextSibling,de=E?E.nodeValue.length-h:0;ve;ve=ve.nextSibling){if(J=X(ve,ve.firstChild,0),J)return ca(Pe(J.line,J.ch-de),g);de+=ve.textContent.length}for(var Te=T.previousSibling,Me=h;Te;Te=Te.previousSibling){if(J=X(Te,Te.firstChild,-1),J)return ca(Pe(J.line,J.ch+Me),g);Me+=Te.textContent.length}}var vi=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new St,this.hasSelection=!1,this.composing=null,this.resetting=!1};vi.prototype.init=function(e){var a=this,h=this,d=this.cm;this.createField(e);var g=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),L&&(g.style.width="0px"),Q(g,"input",function(){u&&f>=9&&a.hasSelection&&(a.hasSelection=null),h.poll()}),Q(g,"paste",function(E){qe(d,E)||Oh(E,d)||(d.state.pasteIncoming=+new Date,h.fastPoll())});function x(E){if(!qe(d,E)){if(d.somethingSelected())Ml({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){var T=Mh(d);Ml({lineWise:!0,text:T.text}),E.type=="cut"?d.setSelections(T.ranges,null,gt):(h.prevInput="",g.value=T.text.join(`
39`),j(g))}else return;E.type=="cut"&&(d.state.cutIncoming=+new Date)}}Q(g,"cut",x),Q(g,"copy",x),Q(e.scroller,"paste",function(E){if(!(jt(e,E)||qe(d,E))){if(!g.dispatchEvent){d.state.pasteIncoming=+new Date,h.focus();return}var T=new Event("paste");T.clipboardData=E.clipboardData,g.dispatchEvent(T)}}),Q(e.lineSpace,"selectstart",function(E){jt(e,E)||dt(E)}),Q(g,"compositionstart",function(){var E=d.getCursor("from");h.composing&&h.composing.range.clear(),h.composing={start:E,range:d.markText(E,d.getCursor("to"),{className:"CodeMirror-composing"})}}),Q(g,"compositionend",function(){h.composing&&(h.poll(),h.composing.range.clear(),h.composing=null)})},vi.prototype.createField=function(e){this.wrapper=Ih(),this.textarea=this.wrapper.firstChild;var a=this.cm.options;hc(this.textarea,a.spellcheck,a.autocorrect,a.autocapitalize)},vi.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},vi.prototype.prepareSelection=function(){var e=this.cm,a=e.display,h=e.doc,d=Dd(e);if(e.options.moveInputWithCursor){var g=Ye(e,h.sel.primary().head,"div"),x=a.wrapper.getBoundingClientRect(),E=a.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(a.wrapper.clientHeight-10,g.top+E.top-x.top)),d.teLeft=Math.max(0,Math.min(a.wrapper.clientWidth-10,g.left+E.left-x.left))}return d},vi.prototype.showSelection=function(e){var a=this.cm,h=a.display;me(h.cursorDiv,e.cursors),me(h.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},vi.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var a=this.cm;if(this.resetting=!0,a.somethingSelected()){this.prevInput="";var h=a.getSelection();this.textarea.value=h,a.state.focused&&j(this.textarea),u&&f>=9&&(this.hasSelection=h)}else e||(this.prevInput=this.textarea.value="",u&&f>=9&&(this.hasSelection=null));this.resetting=!1}},vi.prototype.getField=function(){return this.textarea},vi.prototype.supportsTouch=function(){return!1},vi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!U||nt(ze(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},vi.prototype.blur=function(){this.textarea.blur()},vi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vi.prototype.receivedFocus=function(){this.slowPoll()},vi.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},vi.prototype.fastPoll=function(){var e=!1,a=this;a.pollingFast=!0;function h(){var d=a.poll();!d&&!e?(e=!0,a.polling.set(60,h)):(a.pollingFast=!1,a.slowPoll())}a.polling.set(20,h)},vi.prototype.poll=function(){var e=this,a=this.cm,h=this.textarea,d=this.prevInput;if(this.contextMenuPending||this.resetting||!a.state.focused||Na(h)&&!d&&!this.composing||a.isReadOnly()||a.options.disableInput||a.state.keySeq)return!1;var g=h.value;
39if(g==d&&!a.somethingSelected())return!1;if(u&&f>=9&&this.hasSelection===g||ee&&/[\uf700-\uf7ff]/.test(g))return a.display.input.reset(),!1;if(a.doc.sel==a.display.selForContextMenu){var x=g.charCodeAt(0);if(x==8203&&!d&&(d="​"),x==8666)return this.reset(),this.cm.execCommand("undo")}for(var E=0,T=Math.min(d.length,g.length);E<T&&d.charCodeAt(E)==g.charCodeAt(E);)++E;return dn(a,function(){dc(a,g.slice(E),d.length-E,null,e.composing?"*compose":null),g.length>1e3||g.indexOf(`
40`)>-1?h.value=e.prevInput="":e.prevInput=g,e.composing&&(e.composing.range.clear(),e.composing.range=a.markText(e.composing.start,a.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},vi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vi.prototype.onKeyPress=function(){u&&f>=9&&(this.hasSelection=null),this.fastPoll()},vi.prototype.onContextMenu=function(e){var a=this,h=a.cm,d=h.display,g=a.textarea;a.contextMenuPending&&a.contextMenuPending();var x=oo(h,e),E=d.scroller.scrollTop;if(!x||D)return;var T=h.options.resetSelectionOnContextMenu;T&&h.doc.sel.contains(x)==-1&&Mi(h,Wi)(h.doc,Br(x),gt);var O=g.style.cssText,B=a.wrapper.style.cssText,X=a.wrapper.offsetParent.getBoundingClientRect();a.wrapper.style.cssText="position: static",g.style.cssText=`position: absolute; width: 30px; height: 30px;
41      top: `+(e.clientY-X.top-5)+"px; left: "+(e.clientX-X.left-5)+`px;
42      z-index: 1000; background: `+(u?"rgba(255, 255, 255, .05)":"transparent")+`;
43      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var J;p&&(J=g.ownerDocument.defaultView.scrollY),d.input.focus(),p&&g.ownerDocument.defaultView.scrollTo(null,J),d.input.reset(),h.somethingSelected()||(g.value=a.prevInput=" "),a.contextMenuPending=de,d.selForContextMenu=h.doc.sel,clearTimeout(d.detectingSelectAll);function ve(){if(g.selectionStart!=null){var Me=h.somethingSelected(),Be="​"+(Me?g.value:"");g.value="⇚",g.value=Be,a.prevInput=Me?"":"​",g.selectionStart=1,g.selectionEnd=Be.length,d.selForContextMenu=h.doc.sel}}function de(){if(a.contextMenuPending==de&&(a.contextMenuPending=!1,a.wrapper.style.cssText=B,g.style.cssText=O,u&&f<9&&d.scrollbars.setScrollTop(d.scroller.scrollTop=E),g.selectionStart!=null)){(!u||u&&f<9)&&ve();var Me=0,Be=function(){d.selForContextMenu==h.doc.sel&&g.selectionStart==0&&g.selectionEnd>0&&a.prevInput=="​"?Mi(h,th)(h):Me++<10?d.detectingSelectAll=setTimeout(Be,500):(d.selForContextMenu=null,d.input.reset())};d.detectingSelectAll=setTimeout(Be,200)}}if(u&&f>=9&&ve(),Ke){Wt(e);var Te=function(){Ne(window,"mouseup",Te),setTimeout(de,20)};Q(window,"mouseup",Te)}else setTimeout(de,50)},vi.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},vi.prototype.setUneditable=function(){},vi.prototype.needsContentAttribute=!1;function fy(e,a){if(a=a?ct(a):{},a.value=e.value,!a.tabindex&&e.tabIndex&&(a.tabindex=e.tabIndex),!a.placeholder&&e.placeholder&&(a.placeholder=e.placeholder),a.autofocus==null){var h=nt(ze(e));a.autofocus=h==e||e.getAttribute("autofocus")!=null&&h==document.body}function d(){e.value=T.getValue()}var g;if(e.form&&(Q(e.form,"submit",d),!a.leaveSubmitMethodAlone)){var x=e.form;g=x.submit;try{var E=x.submit=function(){d(),x.submit=g,x.submit(),x.submit=E}}catch{}}a.finishInit=function(O){O.save=d,O.getTextArea=function(){return e},O.toTextArea=function(){O.toTextArea=isNaN,d(),e.parentNode.removeChild(O.getWrapperElement()),e.style.display="",e.form&&(Ne(e.form,"submit",d),!a.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=g))}},e.style.display="none";var T=ri(function(O){return e.parentNode.insertBefore(O,e.nextSibling)},a);return T}function dy(e){e.off=Ne,e.on=Q,e.wheelEventPixels=b0,e.Doc=rn,e.splitLines=Kn,e.countColumn=ft,e.findColumn=Ht,e.isWordChar=ce,e.Pass=pt,e.signal=Qe,e.Line=R,e.changeEnd=Nr,e.scrollbarModel=Od,e.Pos=Pe,e.cmpPos=bt,e.modes=Ei,e.mimeModes=Fi,e.resolveMode=An,e.getMode=kr,e.modeExtensions=Pn,e.extendMode=Jr,e.copyState=Zn,e.startState=za,e.innerMode=Bo,e.commands=xs,e.keyM
43ap=xr,e.keyName=vh,e.isModifierKey=gh,e.lookupKey=sa,e.normalizeKeyMap=j0,e.StringStream=ai,e.SharedTextMarker=vs,e.TextMarker=zr,e.LineWidget=ms,e.e_preventDefault=dt,e.e_stopPropagation=Ot,e.e_stop=Wt,e.addClass=at,e.contains=Ie,e.rmClass=_e,e.keyNames=jr}ny(ri),sy(ri);var hy="iter insert remove copy getEditor constructor".split(" ");for(var Rl in rn.prototype)rn.prototype.hasOwnProperty(Rl)&&vt(hy,Rl)<0&&(ri.prototype[Rl]=(function(e){return function(){return e.apply(this.doc,arguments)}})(rn.prototype[Rl]));return Nt(rn),ri.inputStyles={textarea:vi,contenteditable:ei},ri.defineMode=function(e){!ri.defaults.mode&&e!="null"&&(ri.defaults.mode=e),xn.apply(this,arguments)},ri.defineMIME=Rn,ri.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ri.defineMIME("text/plain","null"),ri.defineExtension=function(e,a){ri.prototype[e]=a},ri.defineDocExtension=function(e,a){rn.prototype[e]=a},ri.fromTextArea=fy,dy(ri),ri.version="5.65.18",ri}))})(iu)),iu.exports}var Op={exports:{}},Lp;function hC(){return Lp||(Lp=1,(function(n,l){(function(c){c(Dn())})(function(c){var s=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,r=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,t=/[*+-]\s/;c.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return c.Pass;for(var u=o.listSelections(),f=[],p=0;p<u.length;p++){var v=u[p].head,y=o.getStateAfter(v.line),S=c.innerMode(o.getMode(),y);if(S.mode.name!=="markdown"&&S.mode.helperType!=="markdown"){o.execCommand("newlineAndIndent");return}else y=S.state;var D=y.list!==!1,F=y.quote!==0,M=o.getLine(v.line),A=s.exec(M),L=/^\s*$/.test(M.slice(0,v.ch));if(!u[p].empty()||!D&&!F||!A||L){o.execCommand("newlineAndIndent");return}if(r.test(M)){var H=F&&/>\s*$/.test(M),U=!/>\s*$/.test(M);(H||U)&&o.replaceRange("",{line:v.line,ch:0},{line:v.line,ch:v.ch+1}),f[p]=`
44`}else{var ee=A[1],Z=A[5],w=!(t.test(A[2])||A[2].indexOf(">")>=0),xe=w?parseInt(A[3],10)+1+A[4]:A[2].replace("x"," ");f[p]=`
45`+ee+xe+Z,w&&i(o,v)}}o.replaceSelections(f)};function i(o,u){var f=u.line,p=0,v=0,y=s.exec(o.getLine(f)),S=y[1];do{p+=1;var D=f+p,F=o.getLine(D),M=s.exec(F);if(M){var A=M[1],L=parseInt(y[3],10)+p-v,H=parseInt(M[3],10),U=H;if(S===A&&!isNaN(H))L===H&&(U=H+1),L>H&&(U=L+1),o.replaceRange(F.replace(s,A+U+M[4]+M[5]),{line:D,ch:0},{line:D,ch:F.length});else{if(S.length>A.length||S.length<A.length&&p===1)return;v+=1}}}while(M)}})})()),Op.exports}var Mp={},Ip;function pC(){if(Ip)return Mp;Ip=1;var n=Dn();return n.commands.tabAndIndentMarkdownList=function(l){var c=l.listSelections(),s=c[0].head,r=l.getStateAfter(s.line),t=r.list!==!1;if(t){l.execCommand("indentMore");return}if(l.options.indentWithTabs)l.execCommand("insertTab");else{var i=Array(l.options.tabSize+1).join(" ");l.replaceSelection(i)}},n.commands.shiftTabAndUnindentMarkdownList=function(l){var c=l.listSelections(),s=c[0].head,r=l.getStateAfter(s.line),t=r.list!==!1;if(t){l.execCommand("indentLess");return}if(l.options.indentWithTabs)l.execCommand("insertTab");else{var i=Array(l.options.tabSize+1).join(" ");l.replaceSelection(i)}},Mp}var Rp={exports:{}},Pp;function gC(){return Pp||(Pp=1,(function(n,l){(function(c){c(Dn())})(function(c){c.defineOption("fullScreen",!1,function(t,i,o){o==c.Init&&(o=!1),!o!=!i&&(i?s(t):r(t))});function s(t){var i=t.getWrapperElement();t.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:i.style.width,height:i.style.height},i.style.width="",i.style.height="auto",i.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",t.refresh()}function r(t){var i=t.getWrapperElement();i.className=i.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var o=t.state.fullScreenRestore;i.style.width=o.width,i.style.height=o.height,window.scrollTo(o.scrollLeft,o.scrollTop),t.refresh()}})})()),Rp.exports}var Bp={exports:{}},Np={exports:{}},Hp;function xv(){return Hp||(Hp=1,(function(n,l){(function(c){c(Dn())})(function(c){var s={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0}
45,optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};c.defineMode("xml",function(t,i){var o=t.indentUnit,u={},f=i.htmlMode?s:r;for(var p in f)u[p]=f[p];for(var p in i)u[p]=i[p];var v,y;function S(Y,Ee){function we(at){return Ee.tokenize=at,at(Y,Ee)}var Ie=Y.next();if(Ie=="<")return Y.eat("!")?Y.eat("[")?Y.match("CDATA[")?we(M("atom","]]>")):null:Y.match("--")?we(M("comment","-->")):Y.match("DOCTYPE",!0,!0)?(Y.eatWhile(/[\w\._\-]/),we(A(1))):null:Y.eat("?")?(Y.eatWhile(/[\w\._\-]/),Ee.tokenize=M("meta","?>"),"meta"):(v=Y.eat("/")?"closeTag":"openTag",Ee.tokenize=D,"tag bracket");if(Ie=="&"){var nt;return Y.eat("#")?Y.eat("x")?nt=Y.eatWhile(/[a-fA-F\d]/)&&Y.eat(";"):nt=Y.eatWhile(/[\d]/)&&Y.eat(";"):nt=Y.eatWhile(/[\w\.\-:]/)&&Y.eat(";"),nt?"atom":"error"}else return Y.eatWhile(/[^&<]/),null}S.isInText=!0;function D(Y,Ee){var we=Y.next();if(we==">"||we=="/"&&Y.eat(">"))return Ee.tokenize=S,v=we==">"?"endTag":"selfcloseTag","tag bracket";if(we=="=")return v="equals",null;if(we=="<"){Ee.tokenize=S,Ee.state=Z,Ee.tagName=Ee.tagStart=null;var Ie=Ee.tokenize(Y,Ee);return Ie?Ie+" tag error":"tag error"}else return/[\'\"]/.test(we)?(Ee.tokenize=F(we),Ee.stringStartCol=Y.column(),Ee.tokenize(Y,Ee)):(Y.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function F(Y){var Ee=function(we,Ie){for(;!we.eol();)if(we.next()==Y){Ie.tokenize=D;break}return"string"};return Ee.isInAttribute=!0,Ee}function M(Y,Ee){return function(we,Ie){for(;!we.eol();){if(we.match(Ee)){Ie.tokenize=S;break}we.next()}return Y}}function A(Y){return function(Ee,we){for(var Ie;(Ie=Ee.next())!=null;){if(Ie=="<")return we.tokenize=A(Y+1),we.tokenize(Ee,we);if(Ie==">")if(Y==1){we.tokenize=S;break}else return we.tokenize=A(Y-1),we.tokenize(Ee,we)}return"meta"}}function L(Y){return Y&&Y.toLowerCase()}function H(Y,Ee,we){this.prev=Y.context,this.tagName=Ee||"",this.indent=Y.indented,this.startOfLine=we,(u.doNotIndent.hasOwnProperty(Ee)||Y.context&&Y.context.noIndent)&&(this.noIndent=!0)}function U(Y){Y.context&&(Y.context=Y.context.prev)}function ee(Y,Ee){for(var we;;){if(!Y.context||(we=Y.context.tagName,!u.contextGrabbers.hasOwnProperty(L(we))||!u.contextGrabbers[L(we)].hasOwnProperty(L(Ee))))return;U(Y)}}function Z(Y,Ee,we){return Y=="openTag"?(we.tagStart=Ee.column(),w):Y=="closeTag"?xe:Z}function w(Y,Ee,we){return Y=="word"?(we.tagName=Ee.current(),y="tag",ye):u.allowMissingTagName&&Y=="endTag"?(y="tag bracket",ye(Y,Ee,we)):(y="error",w)}function xe(Y,Ee,we){if(Y=="word"){var Ie=Ee.current();return we.context&&we.context.tagName!=Ie&&u.implicitlyClosed.hasOwnProperty(L(we.context.tagName))&&U(we),we.context&&we.context.tagName==Ie||u.matchClosing===!1?(y="tag",De):(y="tag error",Ke)}else return u.allowMissingTagName&&Y=="endTag"?(y="tag bracket",De(Y,Ee,we)):(y="error",Ke)}function De(Y,Ee,we){return Y!="endTag"?(y="error",De):(U(we),Z)}function Ke(Y,Ee,we){return y="error",De(Y,Ee,we)}function ye(Y,Ee,we){if(Y=="word")return y="attribute",_e;if(Y=="endTag"||Y=="selfcloseTag"){var Ie=we.tagName,nt=we.tagStart;return we.tagName=we.tagStart=null,Y=="selfcloseTag"||u.autoSelfClosers.hasOwnProperty(L(Ie))?ee(we,Ie):(ee(we,Ie),we.context=new H(we,Ie,nt==we.indented)),Z}return y="error",ye}function _e(Y,Ee,we){return Y=="equals"?ie:(u.allowMissing||(y="error"),ye(Y,Ee,we))}function ie(Y,Ee,we){return Y=="string"?me:Y=="word"&&u.allowUnquoted?(y="string",ye):(y="error",ye(Y,Ee,we))}function me(Y,Ee,we){return Y=="string"?me:ye(Y,Ee,we)}return{startState:function(Y){var Ee={tokenize:S,state:Z,indented:Y||0,tagName:null,tagStart:null,context:null};return Y!=null&&(Ee.baseIndent=Y),Ee},token:function(Y,Ee){if(!Ee.tagName&&Y.sol()&&(Ee.indented=Y.indentation()),Y.eatSpace())return null;v=null;var we=Ee.tokenize(Y,Ee);return(we||v)&&we!="comment"&&(y=null,Ee.state=Ee.state(v||we,Y,Ee),y&&(we=y=="error"?we+" error":y)),we},indent:function(Y,Ee,we){var Ie=Y.context;
45if(Y.tokenize.isInAttribute)return Y.tagStart==Y.indented?Y.stringStartCol+1:Y.indented+o;if(Ie&&Ie.noIndent)return c.Pass;if(Y.tokenize!=D&&Y.tokenize!=S)return we?we.match(/^(\s*)/)[0].length:0;if(Y.tagName)return u.multilineTagIndentPastTag!==!1?Y.tagStart+Y.tagName.length+2:Y.tagStart+o*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(Ee))return 0;var nt=Ee&&/^<(\/)?([\w_:\.-]*)/.exec(Ee);if(nt&&nt[1])for(;Ie;)if(Ie.tagName==nt[2]){Ie=Ie.prev;break}else if(u.implicitlyClosed.hasOwnProperty(L(Ie.tagName)))Ie=Ie.prev;else break;else if(nt)for(;Ie;){var at=u.contextGrabbers[L(Ie.tagName)];if(at&&at.hasOwnProperty(L(nt[2])))Ie=Ie.prev;else break}for(;Ie&&Ie.prev&&!Ie.startOfLine;)Ie=Ie.prev;return Ie?Ie.indent+o:Y.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(Y){Y.state==ie&&(Y.state=ye)},xmlCurrentTag:function(Y){return Y.tagName?{name:Y.tagName,close:Y.type=="closeTag"}:null},xmlCurrentContext:function(Y){for(var Ee=[],we=Y.context;we;we=we.prev)Ee.push(we.tagName);return Ee.reverse()}}}),c.defineMIME("text/xml","xml"),c.defineMIME("application/xml","xml"),c.mimeModes.hasOwnProperty("text/html")||c.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),Np.exports}var zp={exports:{}},jp;function mC(){return jp||(jp=1,(function(n,l){(function(c){c(Dn())})(function(c){c
vendor: 11,595 bytes, line 45
45.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var 
45s=0;s<c.modeInfo.length;s++){var r=c.modeInfo[s];r.mimes&&(r.mime=r.mimes[0])}c.findModeByMIME=function(t){t=t.toLowerCase();for(var i=0;i<c.modeInfo.length;i++){var o=c.modeInfo[i];if(o.mime==t)return o;if(o.mimes){for(var u=0;u<o.mimes.length;u++)if(o.mimes[u]==t)return o}}if(/\+xml$/.test(t))return c.findModeByMIME("application/xml");if(/\+json$/.test(t))return c.findModeByMIME("application/json")},c.findModeByExtension=function(t){t=t.toLowerCase();for(var i=0;i<c.modeInfo.length;i++){var o=c.modeInfo[i];if(o.ext){for(var u=0;u<o.ext.length;u++)if(o.ext[u]==t)return o}}},c.findModeByFileName=function(t){for(var i=0;i<c.modeInfo.length;i++){var o=c.modeInfo[i];if(o.file&&o.file.test(t))return o}var u=t.lastIndexOf("."),f=u>-1&&t.substring(u+1,t.length);if(f)return c.findModeByExtension(f)},c.findModeByName=function(t){t=t.toLowerCase();for(var i=0;i<c.modeInfo.length;i++){var o=c.modeInfo[i];if(o.name.toLowerCase()==t)return o;if(o.alias){for(var u=0;u<o.alias.length;u++)if(o.alias[u].toLowerCase()==t)return o}}}})})()),zp.exports}var Wp;function wv(){return Wp||(Wp=1,(function(n,l){(function(c){c(Dn(),xv(),mC())})(function(c){c.defineMode("markdown",function(s,r){var t=c.getMode(s,"text/html"),i=t.name=="null";function o(j){if(c.findModeByName){var I=c.findModeByName(j);I&&(j=I.mime||I.mimes[0])}var pe=c.getMode(s,j);return pe.name=="null"?null:pe}r.highlightFormatting===void 0&&(r.highlightFormatting=!1),r.maxBlockquoteDepth===void 0&&(r.maxBlockquoteDepth=0),r.taskLists===void 0&&(r.taskLists=!1),r.strikethrough===void 0&&(r.strikethrough=!1),r.emoji===void 0&&(r.emoji=!1),r.fencedCodeBlockHighlighting===void 0&&(r.fencedCodeBlockHighlighting=!0),r.fencedCodeBlockDefaultMode===void 0&&(r.fencedCodeBlockDefaultMode="text/plain"),r.xml===void 0&&(r.xml=!0),r.tokenTypeOverrides===void 0&&(r.tokenTypeOverrides={});var u={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var f in u)u.hasOwnProperty(f)&&r.tokenTypeOverrides[f]&&(u[f]=r.tokenTypeOverrides[f]);var p=/^([*\-_])(?:\s*\1){2,}
45\s*$/,v=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,y=/^\[(x| )\](?=\s)/i,S=r.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,D=/^ {0,3}(?:\={1,}|-{2,})\s*$/,F=/^[^#!\[\]*_\\<>` "'(~:]+/,M=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,A=/^\s*\[[^\]]+?\]:.*$/,L=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,H="    ";function U(j,I,pe){return I.f=I.inline=pe,pe(j,I)}function ee(j,I,pe){return I.f=I.block=pe,pe(j,I)}function Z(j){return!j||!/\S/.test(j.string)}function w(j){if(j.linkTitle=!1,j.linkHref=!1,j.linkText=!1,j.em=!1,j.strong=!1,j.strikethrough=!1,j.quote=0,j.indentedCode=!1,j.f==De){var I=i;if(!I){var pe=c.innerMode(t,j.htmlState);I=pe.mode.name=="xml"&&pe.state.tagStart===null&&!pe.state.context&&pe.state.tokenize.isInText}I&&(j.f=ie,j.block=xe,j.htmlState=null)}return j.trailingSpace=0,j.trailingSpaceNewLine=!1,j.prevLine=j.thisLine,j.thisLine={stream:null},null}function xe(j,I){var pe=j.column()===I.indentation,ze=Z(I.prevLine.stream),Re=I.indentedCode,We=I.prevLine.hr,ct=I.list!==!1,ft=(I.listStack[I.listStack.length-1]||0)+3;I.indentedCode=!1;var St=I.indentation;if(I.indentationDiff===null&&(I.indentationDiff=I.indentation,ct)){for(I.list=null;St<I.listStack[I.listStack.length-1];)I.listStack.pop(),I.listStack.length?I.indentation=I.listStack[I.listStack.length-1]:I.list=!1;I.list!==!1&&(I.indentationDiff=St-I.listStack[I.listStack.length-1])}var vt=!ze&&!We&&!I.prevLine.header&&(!ct||!Re)&&!I.prevLine.fencedCodeEnd,ot=(I.list===!1||We||ze)&&I.indentation<=ft&&j.match(p),pt=null;if(I.indentationDiff>=4&&(Re||I.prevLine.fencedCodeEnd||I.prevLine.header||ze))return j.skipToEnd(),I.indentedCode=!0,u.code;if(j.eatSpace())return null;if(pe&&I.indentation<=ft&&(pt=j.match(S))&&pt[1].length<=6)return I.quote=0,I.header=pt[1].length,I.thisLine.header=!0,r.highlightFormatting&&(I.formatting="header"),I.f=I.inline,ye(I);if(I.indentation<=ft&&j.eat(">"))return I.quote=pe?1:I.quote+1,r.highlightFormatting&&(I.formatting="quote"),j.eatSpace(),ye(I);if(!ot&&!I.setext&&pe&&I.indentation<=ft&&(pt=j.match(v))){var gt=pt[1]?"ol":"ul";return I.indentation=St+j.current().length,I.list=!0,I.quote=0,I.listStack.push(I.indentation),I.em=!1,I.strong=!1,I.code=!1,I.strikethrough=!1,r.taskLists&&j.match(y,!1)&&(I.taskList=!0),I.f=I.inline,r.highlightFormatting&&(I.formatting=["list","list-"+gt]),ye(I)}else{if(pe&&I.indentation<=ft&&(pt=j.match(M,!0)))return I.quote=0,I.fencedEndRE=new RegExp(pt[1]+"+ *$"),I.localMode=r.fencedCodeBlockHighlighting&&o(pt[2]||r.fencedCodeBlockDefaultMode),I.localMode&&(I.localState=c.startState(I.localMode)),I.f=I.block=Ke,r.highlightFormatting&&(I.formatting="code-block"),I.code=-1,ye(I);if(I.setext||(!vt||!ct)&&!I.quote&&I.list===!1&&!I.code&&!ot&&!A.test(j.string)&&(pt=j.lookAhead(1))&&(pt=pt.match(D)))return I.setext?(I.header=I.setext,I.setext=0,j.skipToEnd(),r.highlightFormatting&&(I.formatting="header")):(I.header=pt[0].charAt(0)=="="?1:2,I.setext=I.header),I.thisLine.header=!0,I.f=I.inline,ye(I);if(ot)return j.skipToEnd(),I.hr=!0,I.thisLine.hr=!0,u.hr;if(j.peek()==="[")return U(j,I,Ie)}return U(j,I,I.inline)}function De(j,I){var pe=t.token(j,I.htmlState);if(!i){var ze=c.innerMode(t,I.htmlState);(ze.mode.name=="xml"&&ze.state.tagStart===null&&!ze.state.context&&ze.state.tokenize.
45isInText||I.md_inside&&j.current().indexOf(">")>-1)&&(I.f=ie,I.block=xe,I.htmlState=null)}return pe}function Ke(j,I){var pe=I.listStack[I.listStack.length-1]||0,ze=I.indentation<pe,Re=pe+3;if(I.fencedEndRE&&I.indentation<=Re&&(ze||j.match(I.fencedEndRE))){r.highlightFormatting&&(I.formatting="code-block");var We;return ze||(We=ye(I)),I.localMode=I.localState=null,I.block=xe,I.f=ie,I.fencedEndRE=null,I.code=0,I.thisLine.fencedCodeEnd=!0,ze?ee(j,I,I.block):We}else return I.localMode?I.localMode.token(j,I.localState):(j.skipToEnd(),u.code)}function ye(j){var I=[];if(j.formatting){I.push(u.formatting),typeof j.formatting=="string"&&(j.formatting=[j.formatting]);for(var pe=0;pe<j.formatting.length;pe++)I.push(u.formatting+"-"+j.formatting[pe]),j.formatting[pe]==="header"&&I.push(u.formatting+"-"+j.formatting[pe]+"-"+j.header),j.formatting[pe]==="quote"&&(!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=j.quote?I.push(u.formatting+"-"+j.formatting[pe]+"-"+j.quote):I.push("error"))}if(j.taskOpen)return I.push("meta"),I.length?I.join(" "):null;if(j.taskClosed)return I.push("property"),I.length?I.join(" "):null;if(j.linkHref?I.push(u.linkHref,"url"):(j.strong&&I.push(u.strong),j.em&&I.push(u.em),j.strikethrough&&I.push(u.strikethrough),j.emoji&&I.push(u.emoji),j.linkText&&I.push(u.linkText),j.code&&I.push(u.code),j.image&&I.push(u.image),j.imageAltText&&I.push(u.imageAltText,"link"),j.imageMarker&&I.push(u.imageMarker)),j.header&&I.push(u.header,u.header+"-"+j.header),j.quote&&(I.push(u.quote),!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=j.quote?I.push(u.quote+"-"+j.quote):I.push(u.quote+"-"+r.maxBlockquoteDepth)),j.list!==!1){var ze=(j.listStack.length-1)%3;ze?ze===1?I.push(u.list2):I.push(u.list3):I.push(u.list1)}return j.trailingSpaceNewLine?I.push("trailing-space-new-line"):j.trailingSpace&&I.push("trailing-space-"+(j.trailingSpace%2?"a":"b")),I.length?I.join(" "):null}function _e(j,I){if(j.match(F,!0))return ye(I)}function ie(j,I){var pe=I.text(j,I);if(typeof pe<"u")return pe;if(I.list)return I.list=null,ye(I);if(I.taskList){var ze=j.match(y,!0)[1]===" ";return ze?I.taskOpen=!0:I.taskClosed=!0,r.highlightFormatting&&(I.formatting="task"),I.taskList=!1,ye(I)}if(I.taskOpen=!1,I.taskClosed=!1,I.header&&j.match(/^#+$/,!0))return r.highlightFormatting&&(I.formatting="header"),ye(I);var Re=j.next();if(I.linkTitle){I.linkTitle=!1;var We=Re;Re==="("&&(We=")"),We=(We+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ct="^\\s*(?:[^"+We+"\\\\]+|\\\\\\\\|\\\\.)"+We;if(j.match(new RegExp(ct),!0))return u.linkHref}if(Re==="`"){var ft=I.formatting;r.highlightFormatting&&(I.formatting="code"),j.eatWhile("`");var St=j.current().length;if(I.code==0&&(!I.quote||St==1))return I.code=St,ye(I);if(St==I.code){var vt=ye(I);return I.code=0,vt}else return I.formatting=ft,ye(I)}else if(I.code)return ye(I);if(Re==="\\"&&(j.next(),r.highlightFormatting)){var ot=ye(I),pt=u.formatting+"-escape";return ot?ot+" "+pt:pt}if(Re==="!"&&j.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return I.imageMarker=!0,I.image=!0,r.highlightFormatting&&(I.formatting="image"),ye(I);if(Re==="["&&I.imageMarker&&j.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return I.imageMarker=!1,I.imageAltText=!0,r.highlightFormatting&&(I.formatting="image"),ye(I);if(Re==="]"&&I.imageAltText){r.highlightFormatting&&(I.formatting="image");var ot=ye(I);return I.imageAltText=!1,I.image=!1,I.inline=I.f=Y,ot}if(Re==="["&&!I.image)return I.linkText&&j.match(/^.*?\]/)||(I.linkText=!0,r.highlightFormatting&&(I.formatting="link")),ye(I);if(Re==="]"&&I.linkText){r.highlightFormatting&&(I.formatting="link");var ot=ye(I);return I.linkText=!1,I.inline=I.f=j.match(/\(.*?\)| ?\[.*?\]/,!1)?Y:ie,ot}if(Re==="<"&&j.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=me,r.highlightFormatting&&(I.formatting="link");var ot=ye(I);return ot?ot+=" ":ot="",ot+u.linkInline}if(Re==="<"&&j.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=me,r.highlightFormatting&&(I.formatting="link");var ot=ye(I);return ot?ot+=" ":ot="",ot+u.linkEmail}if(r.xml&&Re==="<"&&j.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var gt=j.string.indexOf(">",j.pos);if(gt!=-1){var $e=j.string.substring(j.start,gt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($e)&&(I.md_inside=!0)}return j.backUp(1),I.htmlState=c.startState(t),ee(j,I,De)}if(r.xml&&Re==="<"&&j.match(/^\/\w*?>
45/))return I.md_inside=!1,"tag";if(Re==="*"||Re==="_"){for(var rt=1,Ht=j.pos==1?" ":j.string.charAt(j.pos-2);rt<3&&j.eat(Re);)rt++;var Xt=j.peek()||" ",Qt=!/\s/.test(Xt)&&(!L.test(Xt)||/\s/.test(Ht)||L.test(Ht)),Tt=!/\s/.test(Ht)&&(!L.test(Ht)||/\s/.test(Xt)||L.test(Xt)),Ft=null,Yt=null;if(rt%2&&(!I.em&&Qt&&(Re==="*"||!Tt||L.test(Ht))?Ft=!0:I.em==Re&&Tt&&(Re==="*"||!Qt||L.test(Xt))&&(Ft=!1)),rt>1&&(!I.strong&&Qt&&(Re==="*"||!Tt||L.test(Ht))?Yt=!0:I.strong==Re&&Tt&&(Re==="*"||!Qt||L.test(Xt))&&(Yt=!1)),Yt!=null||Ft!=null){r.highlightFormatting&&(I.formatting=Ft==null?"strong":Yt==null?"em":"strong em"),Ft===!0&&(I.em=Re),Yt===!0&&(I.strong=Re);var vt=ye(I);return Ft===!1&&(I.em=!1),Yt===!1&&(I.strong=!1),vt}}else if(Re===" "&&(j.eat("*")||j.eat("_"))){if(j.peek()===" ")return ye(I);j.backUp(1)}if(r.strikethrough){if(Re==="~"&&j.eatWhile(Re)){if(I.strikethrough){r.highlightFormatting&&(I.formatting="strikethrough");var vt=ye(I);return I.strikethrough=!1,vt}else if(j.match(/^[^\s]/,!1))return I.strikethrough=!0,r.highlightFormatting&&(I.formatting="strikethrough"),ye(I)}else if(Re===" "&&j.match("~~",!0)){if(j.peek()===" ")return ye(I);j.backUp(2)}}if(r.emoji&&Re===":"&&j.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){I.emoji=!0,r.highlightFormatting&&(I.formatting="emoji");var cn=ye(I);return I.emoji=!1,cn}return Re===" "&&(j.match(/^ +$/,!1)?I.trailingSpace++:I.trailingSpace&&(I.trailingSpaceNewLine=!0)),ye(I)}function me(j,I){var pe=j.next();if(pe===">"){I.f=I.inline=ie,r.highlightFormatting&&(I.formatting="link");var ze=ye(I);return ze?ze+=" ":ze="",ze+u.linkInline}return j.match(/^[^>]+/,!0),u.linkInline}function Y(j,I){if(j.eatSpace())return null;var pe=j.next();return pe==="("||pe==="["?(I.f=I.inline=we(pe==="("?")":"]"),r.highlightFormatting&&(I.formatting="link-string"),I.linkHref=!0,ye(I)):"error"}var Ee={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function we(j){return function(I,pe){var ze=I.next();if(ze===j){pe.f=pe.inline=ie,r.highlightFormatting&&(pe.formatting="link-string");var Re=ye(pe);return pe.linkHref=!1,Re}return I.match(Ee[j]),pe.linkHref=!0,ye(pe)}}function Ie(j,I){return j.match(/^([^\]\\]|\\.)*\]:/,!1)?(I.f=nt,j.next(),r.highlightFormatting&&(I.formatting="link"),I.linkText=!0,ye(I)):U(j,I,ie)}function nt(j,I){if(j.match("]:",!0)){I.f=I.inline=at,r.highlightFormatting&&(I.formatting="link");var pe=ye(I);return I.linkText=!1,pe}return j.match(/^([^\]\\]|\\.)+/,!0),u.linkText}function at(j,I){return j.eatSpace()?null:(j.match(/^[^\s]+/,!0),j.peek()===void 0?I.linkTitle=!0:j.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),I.f=I.inline=ie,u.linkHref+" url")}var ut={startState:function(){return{f:xe,prevLine:{stream:null},thisLine:{stream:null},block:xe,htmlState:null,indentation:0,inline:ie,text:_e,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(j){return{f:j.f,prevLine:j.prevLine,thisLine:j.thisLine,block:j.block,htmlState:j.htmlState&&c.copyState(t,j.htmlState),indentation:j.indentation,localMode:j.localMode,localState:j.localMode?c.copyState(j.localMode,j.localState):null,inline:j.inline,text:j.text,formatting:!1,linkText:j.linkText,linkTitle:j.linkTitle,linkHref:j.linkHref,code:j.code,em:j.em,strong:j.strong,strikethrough:j.strikethrough,emoji:j.emoji,header:j.header,setext:j.setext,hr:j.hr,taskList:j.taskList,list:j.list,listStack:j.listStack.slice(0),quote:j.quote,indentedCode:j.indentedCode,trailingSpace:j.trailingSpace,trailingSpaceNewLine:j.trailingSpaceNewLine,md_inside:j.md_inside,fencedEndRE:j.fencedEndRE}},token:function(j,I){if(I.formatting=!1,j!=I.thisLine.stream){if(I.header=0,I.hr=!1,j.match(/^\s*$/,!0))return w(I),null;if(I.prevLine=I.thisLine,I.thisLine={stream:j},I.taskList=!1,I.trailingSpace=0,I.trailingSpaceNewLine=!1,!I.localState&&(I.f=I.block,I.f!=De)){var pe=j.match(/^\s*/,!0)[0].replace(/\t/g,H).length;if(I.indentation=pe,I.indentationDiff=null,pe>0)return null}}return I.f(j,I)},innerMode:function(j){return j.block==De?{state:j.htmlState,mode:t}:j.localState?{state:j.localState,mode:j.localMode}:{state:j,mode:ut}},indent:function(j,I,pe){return j.block==De&&t.indent?t.indent(j.htmlState,I,pe):j.localState&&j.localMode.indent?j.localMode.indent(j.localState,I,pe):c.Pass},blankLine:w,getType:ye,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ut},"xml"),c.defineMIME("text/markdown","markdown"),c.defineMIME("text/x-markdown","markdown")})})()),Bp.exports}var $p={exports:{}},qp;function Cv(){return qp||(qp=1,(function(n,l){(function(c){c(Dn())})(function(c){c.overlayMode=function(s,r,t){return{startState:function(){return{base:c.startState(s),overlay:c.startState(r),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:c.copyState(s,i.base),overlay:c.copyState(r,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(i,o){return(i!=o.streamSeen||Math.min(o.basePos,o.overlayPos)<i.start)&&(o.streamSeen=i,o.basePos=o.overlayPos=i.start),i.start==o.basePos&&(o.baseCur=s.token(i,o.base),o.basePos=i.pos),i.start==o.overlayPos&&(i.pos=i.start,o.overlayCur=r.token(i,o.overlay),o.overlayPos=i.pos),i.pos=Math.min(o.basePos,o.overlayPos),o.overlayCur==null?o.baseCur:o.baseCur!=null&&o.overlay.combineTokens||t&&o.overlay.combineTokens==null?o.baseCur+" "+o.overlayCur:o.overlayCur},indent:s.indent&&function(i,o,u){return s.indent(i.base,o,u)},electricChars:s.electricChars,innerMode:function(i){return{state:i.base,mode:s}},blankLine:function(i){var o,u;return s.blankLine&&(o=s.blankLine(i.base)),r.blankLine&&(u=r.blankLine(i.overlay)),u==null?o:t&&o!=null?o+" "+u:u}}}})})()),$p.exports}
45var Up={exports:{}},Gp;function vC(){return Gp||(Gp=1,(function(n,l){(function(c){c(Dn())})(function(c){c.defineOption("placeholder","",function(f,p,v){var y=v&&v!=c.Init;if(p&&!y)f.on("blur",i),f.on("change",o),f.on("swapDoc",o),c.on(f.getInputField(),"compositionupdate",f.state.placeholderCompose=function(){t(f)}),o(f);else if(!p&&y){f.off("blur",i),f.off("change",o),f.off("swapDoc",o),c.off(f.getInputField(),"compositionupdate",f.state.placeholderCompose),s(f);var S=f.getWrapperElement();S.className=S.className.replace(" CodeMirror-empty","")}p&&!f.hasFocus()&&i(f)});function s(f){f.state.placeholder&&(f.state.placeholder.parentNode.removeChild(f.state.placeholder),f.state.placeholder=null)}function r(f){s(f);var p=f.state.placeholder=document.createElement("pre");p.style.cssText="height: 0; overflow: visible",p.style.direction=f.getOption("direction"),p.className="CodeMirror-placeholder CodeMirror-line-like";var v=f.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),p.appendChild(v),f.display.lineSpace.insertBefore(p,f.display.lineSpace.firstChild)}function t(f){setTimeout(function(){var p=!1;if(f.lineCount()==1){var v=f.getInputField();p=v.nodeName=="TEXTAREA"?!f.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}p?r(f):s(f)},20)}function i(f){u(f)&&r(f)}function o(f){var p=f.getWrapperElement(),v=u(f);p.className=p.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?r(f):s(f)}function u(f){return f.lineCount()===1&&f.getLine(0)===""}})})()),Up.exports}var Xp={exports:{}},Yp;function yC(){return Yp||(Yp=1,(function(n,l){(function(c){c(Dn())})(function(c){c.defineOption("autoRefresh",!1,function(t,i){t.state.autoRefresh&&(r(t,t.state.autoRefresh),t.state.autoRefresh=null),i&&t.display.wrapper.offsetHeight==0&&s(t,t.state.autoRefresh={delay:i.delay||250})});function s(t,i){function o(){t.display.wrapper.offsetHeight?(r(t,i),t.display.lastWrapHeight!=t.display.wrapper.clientHeight&&t.refresh()):i.timeout=setTimeout(o,i.delay)}i.timeout=setTimeout(o,i.delay),i.hurry=function(){clearTimeout(i.timeout),i.timeout=setTimeout(o,50)},c.on(window,"mouseup",i.hurry),c.on(window,"keyup",i.hurry)}function r(t,i){clearTimeout(i.timeout),c.off(window,"mouseup",i.hurry),c.off(window,"keyup",i.hurry)}})})()),Xp.exports}var Kp={exports:{}},Vp;function bC(){return Vp||(Vp=1,(function(n,l){(function(c){c(Dn())})(function(c){c.defineOption("styleSelectedText",!1,function(y,S,D){var F=D&&D!=c.Init;S&&!F?(y.state.markedSelection=[],y.state.markedSelectionStyle=typeof S=="string"?S:"CodeMirror-selectedtext",p(y),y.on("cursorActivity",s),y.on("change",r)):!S&&F&&(y.off("cursorActivity",s),y.off("change",r),f(y),y.state.markedSelection=y.state.markedSelectionStyle=null)});function s(y){y.state.markedSelection&&y.operation(function(){v(y)})}function r(y){y.state.markedSelection&&y.state.markedSelection.length&&y.operation(function(){f(y)})}var t=8,i=c.Pos,o=c.cmpPos;function u(y,S,D,F){if(o(S,D)!=0)for(var M=y.state.markedSelection,A=y.state.markedSelectionStyle,L=S.line;;){var H=L==S.line?S:i(L,0),U=L+t,ee=U>=D.line,Z=ee?D:i(U,0),w=y.markText(H,Z,{className:A});if(F==null?M.push(w):M.splice(F++,0,w),ee)break;L=U}}function f(y){for(var S=y.state.markedSelection,D=0;D<S.length;++D)S[D].clear();S.length=0}function p(y){f(y);for(var S=y.listSelections(),D=0;D<S.length;D++)u(y,S[D].from(),S[D].to())}function v(y){if(!y.somethingSelected())return f(y);if(y.listSelections().length>1)return p(y);var S=y.getCursor("start"),D=y.getCursor("end"),F=y.state.markedSelection;if(!F.length)return u(y,S,D);var M=F[0].find(),A=F[F.length-1].find();if(!M||!A||D.line-S.line<=t||o(S,A.to)>=0||o(D,M.from)<=0)return p(y);for(;o(S,M.from)>0;)F.shift().clear(),M=F[0].find();for(o(S,M.from)<0&&(M.to.line-S.line<t?(F.shift().clear(),u(y,S,M.to,0)):u(y,S,M.from,0));o(D,A.to)<0;)F.pop().clear(),A=F[F.length-1].find();o(D,A.to)>0&&(D.line-A.from.line<t?(F.pop().clear(),u(y,A.from,D)):u(y,A.to,D))}})})()),Kp.exports}var Zp={exports:{}},Qp;function xC(){return Qp||(Qp=1,(function(n,l){(function(c){c(Dn())})(function(c){var s=c.Pos;function r(L){var H=L.flags;return H??(L.ignoreCase?"i":"")+(L.global?"g":"")+(L.multiline?"m":"")}function t(L,H){for(var U=r(L),ee=U,Z=0;Z<H.length;Z++)ee.indexOf(H.charAt(Z))==-1&&(ee+=H.charAt(Z));return U==ee?L:new RegExp(L.source,ee)}function i(L){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(L.source)}function o(L,H,U){H=t(H,"g");for(var ee=U.line,Z=U.ch,w=L.lastLine();ee<=w;ee++,Z=0){H.lastIndex=Z;var xe=L.getLine(ee),De=H.exec(xe);if(De)return{from:s(ee,De.index),to:s(ee,De.index+De[0].length),match:De}}}function u(L,H,U){if(!i(H))return o(L,H,U);H=t(H,"gm");for(var ee,Z=1,w=U.line,xe=L.lastLine();w<=xe;){for(var De=0;De<Z&&!(w>xe);De++){var Ke=L.getLine(w++);ee=ee==null?Ke:ee+`
46`+Ke}Z=Z*2,H.lastIndex=U.ch;var ye=H.exec(ee);if(ye){var _e=ee.slice(0,ye.index).split(`
47`),ie=ye[0].split(`
48`),me=U.line+_e.length-1,Y=_e[_e.length-1].length;return{from:s(me,Y),to:s(me+ie.length-1,ie.length==1?Y+ie[0].length:ie[
48ie.length-1].length),match:ye}}}}function f(L,H,U){for(var ee,Z=0;Z<=L.length;){H.lastIndex=Z;var w=H.exec(L);if(!w)break;var xe=w.index+w[0].length;if(xe>L.length-U)break;(!ee||xe>ee.index+ee[0].length)&&(ee=w),Z=w.index+1}return ee}function p(L,H,U){H=t(H,"g");for(var ee=U.line,Z=U.ch,w=L.firstLine();ee>=w;ee--,Z=-1){var xe=L.getLine(ee),De=f(xe,H,Z<0?0:xe.length-Z);if(De)return{from:s(ee,De.index),to:s(ee,De.index+De[0].length),match:De}}}function v(L,H,U){if(!i(H))return p(L,H,U);H=t(H,"gm");for(var ee,Z=1,w=L.getLine(U.line).length-U.ch,xe=U.line,De=L.firstLine();xe>=De;){for(var Ke=0;Ke<Z&&xe>=De;Ke++){var ye=L.getLine(xe--);ee=ee==null?ye:ye+`
49`+ee}Z*=2;var _e=f(ee,H,w);if(_e){var ie=ee.slice(0,_e.index).split(`
50`),me=_e[0].split(`
51`),Y=xe+ie.length,Ee=ie[ie.length-1].length;return{from:s(Y,Ee),to:s(Y+me.length-1,me.length==1?Ee+me[0].length:me[me.length-1].length),match:_e}}}}var y,S;String.prototype.normalize?(y=function(L){return L.normalize("NFD").toLowerCase()},S=function(L){return L.normalize("NFD")}):(y=function(L){return L.toLowerCase()},S=function(L){return L});function D(L,H,U,ee){if(L.length==H.length)return U;for(var Z=0,w=U+Math.max(0,L.length-H.length);;){if(Z==w)return Z;var xe=Z+w>>1,De=ee(L.slice(0,xe)).length;if(De==U)return xe;De>U?w=xe:Z=xe+1}}function F(L,H,U,ee){if(!H.length)return null;var Z=ee?y:S,w=Z(H).split(/\r|\n\r?/);e:for(var xe=U.line,De=U.ch,Ke=L.lastLine()+1-w.length;xe<=Ke;xe++,De=0){var ye=L.getLine(xe).slice(De),_e=Z(ye);if(w.length==1){var ie=_e.indexOf(w[0]);if(ie==-1)continue e;var U=D(ye,_e,ie,Z)+De;return{from:s(xe,D(ye,_e,ie,Z)+De),to:s(xe,D(ye,_e,ie+w[0].length,Z)+De)}}else{var me=_e.length-w[0].length;if(_e.slice(me)!=w[0])continue e;for(var Y=1;Y<w.length-1;Y++)if(Z(L.getLine(xe+Y))!=w[Y])continue e;var Ee=L.getLine(xe+w.length-1),we=Z(Ee),Ie=w[w.length-1];if(we.slice(0,Ie.length)!=Ie)continue e;return{from:s(xe,D(ye,_e,me,Z)+De),to:s(xe+w.length-1,D(Ee,we,Ie.length,Z))}}}}function M(L,H,U,ee){if(!H.length)return null;var Z=ee?y:S,w=Z(H).split(/\r|\n\r?/);e:for(var xe=U.line,De=U.ch,Ke=L.firstLine()-1+w.length;xe>=Ke;xe--,De=-1){var ye=L.getLine(xe);De>-1&&(ye=ye.slice(0,De));var _e=Z(ye);if(w.length==1){var ie=_e.lastIndexOf(w[0]);if(ie==-1)continue e;return{from:s(xe,D(ye,_e,ie,Z)),to:s(xe,D(ye,_e,ie+w[0].length,Z))}}else{var me=w[w.length-1];if(_e.slice(0,me.length)!=me)continue e;for(var Y=1,U=xe-w.length+1;Y<w.length-1;Y++)if(Z(L.getLine(U+Y))!=w[Y])continue e;var Ee=L.getLine(xe+1-w.length),we=Z(Ee);if(we.slice(we.length-w[0].length)!=w[0])continue e;return{from:s(xe+1-w.length,D(Ee,we,Ee.length-w[0].length,Z)),to:s(xe,D(ye,_e,me.length,Z))}}}}function A(L,H,U,ee){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=L,U=U?L.clipPos(U):s(0,0),this.pos={from:U,to:U};var Z;typeof ee=="object"?Z=ee.caseFold:(Z=ee,ee=null),typeof H=="string"?(Z==null&&(Z=!1),this.matches=function(w,xe){return(w?M:F)(L,H,xe,Z)}):(H=t(H,"gm"),!ee||ee.multiline!==!1?this.matches=function(w,xe){return(w?v:u)(L,H,xe)}:this.matches=function(w,xe){return(w?p:o)(L,H,xe)})}A.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(L){var H=this.doc.clipPos(L?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(H=s(H.line,H.ch),L?(H.ch--,H.ch<0&&(H.line--,H.ch=(this.doc.getLine(H.line)||"").length)):(H.ch++,H.ch>(this.doc.getLine(H.line)||"").length&&(H.ch=0,H.line++)),c.cmpPos(H,this.doc.clipPos(H))!=0))return this.atOccurrence=!1;var U=this.matches(L,H);if(this.afterEmptyMatch=U&&c.cmpPos(U.from,U.to)==0,U)return this.pos=U,this.atOccurrence=!0,this.pos.match||!0;var ee=s(L?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:ee,to:ee},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(L,H){if(this.atOccurrence){var U=c.splitLines(L);this.doc.replaceRange(U,this.pos.from,this.pos.to,H),this.pos.to=s(this.pos.from.line+U.length-1,U[U.length-1].length+(U.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(L,H,U){return new A(this.doc,L,H,U)}),c.defineDocExtension("getSearchCursor",function(L,H,U){return new A(this,L,H,U)}),c.defineExtension("selectMatches",function(L,H){for(var U=[],ee=this.getSearchCursor(L,this.getCursor("from"),H);
51ee.findNext()&&!(c.cmpPos(ee.to(),this.getCursor("to"))>0);)U.push({anchor:ee.from(),head:ee.to()});U.length&&this.setSelections(U,0)})})})()),Zp.exports}var Jp={exports:{}},eg;function wC(){return eg||(eg=1,(function(n,l){(function(c){c(Dn(),wv(),Cv())})(function(c){var s=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;c.defineMode("gfm",function(r,t){var i=0;function o(v){return v.code=!1,null}var u={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(v){return{code:v.code,codeBlock:v.codeBlock,ateSpace:v.ateSpace}},token:function(v,y){if(y.combineTokens=null,y.codeBlock)return v.match(/^```+/)?(y.codeBlock=!1,null):(v.skipToEnd(),null);if(v.sol()&&(y.code=!1),v.sol()&&v.match(/^```+/))return v.skipToEnd(),y.codeBlock=!0,null;if(v.peek()==="`"){v.next();var S=v.pos;v.eatWhile("`");var D=1+v.pos-S;return y.code?D===i&&(y.code=!1):(i=D,y.code=!0),null}else if(y.code)return v.next(),null;if(v.eatSpace())return y.ateSpace=!0,null;if((v.sol()||y.ateSpace)&&(y.ateSpace=!1,t.gitHubSpice!==!1)){if(v.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return y.combineTokens=!0,"link";if(v.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return y.combineTokens=!0,"link"}return v.match(s)&&v.string.slice(v.start-2,v.start)!="]("&&(v.start==0||/\W/.test(v.string.charAt(v.start-1)))?(y.combineTokens=!0,"link"):(v.next(),null)},blankLine:o},f={taskLists:!0,strikethrough:!0,emoji:!0};for(var p in t)f[p]=t[p];return f.name="markdown",c.overlayMode(c.getMode(r,f),u)},"markdown"),c.defineMIME("text/x-gfm","gfm")})})()),Jp.exports}function CC(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Hc={exports:{}};const EC={},SC=Object.freeze(Object.defineProperty({__proto__:null,default:EC},Symbol.toStringTag,{value:"Module"})),DC=Sx(SC);var tg;function AC(){return tg||(tg=1,(function(n){var l;(function(){l=function(c,s,r,t){t=t||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=t.flags||{},this.memoized={},this.loaded=!1;var i=this,o,u,f,p,v;c&&(i.dictionary=c,s&&r?F():typeof window<"u"&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(t.dictionaryPath?o=t.dictionaryPath:o="typo/dictionaries",s||y(chrome.extension.getURL(o+"/"+c+"/"+c+".aff"),S),r||y(chrome.extension.getURL(o+"/"+c+"/"+c+".dic"),D)):(t.dictionaryPath?o=t.dictionaryPath:typeof __dirname<"u"?o=__dirname+"/dictionaries":o="./dictionaries",s||y(o+"/"+c+"/"+c+".aff",S),r||y(o+"/"+c+"/"+c+".dic",D)));function y(M,A){var L=i._readFile(M,null,t.asyncLoad);t.asyncLoad?L.then(function(H){A(H)}):A(L)}function S(M){s=M,r&&F()}function D(M){r=M,s&&F()}function F(){for(i.rules=i._parseAFF(s),i.compoundRuleCodes={},u=0,p=i.compoundRules.length;u<p;u++){var M=i.compoundRules[u];for(f=0,v=M.length;f<v;f++)i.compoundRuleCodes[M[f]]=[]}"ONLYINCOMPOUND"in i.flags&&(i.compoundRuleCodes[i.flags.ONLYINCOMPOUND]=[]),i.dictionaryTable=i._parseDIC(r);for(u in i.compoundRuleCodes)i.compoundRuleCodes[u].length===0&&delete i.compoundRuleCodes[u];for(u=0,p=i.compoundRules.length;u<p;u++){var A=i.compoundRules[u],L="";for(f=0,v=A.length;f<v;f++){var H=A[f];H in i.compoundRuleCodes?L+="("+i.compoundRuleCodes[H].join("|")+")":L+=H}i.compoundRules[u]=new RegExp(L,"i")}i.loaded=!0,t.asyncLoad&&t.loadedCallback&&t.loadedCallback(i)}return this},l.prototype={load:function(c){for(var s in c)c.hasOwnProperty(s)&&(this[s]=c[s]);return this},_readFile:function(c,s,r){if(s=s||"utf8",typeof XMLHttpRequest<"u"){var t,i=new XMLHttpRequest;return i.open("GET",c,r),r&&(t=new Promise(function(u,f){i.onload=function(){i.status===200?u(i.responseText):f(i.statusText)},i.onerror=function(){f(i.statusText)}}
51)),i.overrideMimeType&&i.overrideMimeType("text/plain; charset="+s),i.send(null),r?t:i.responseText}else if(typeof CC<"u"){var o=DC;try{if(o.existsSync(c))return o.readFileSync(c,s);console.log("Path "+c+" does not exist.")}catch(u){return console.log(u),""}}},_parseAFF:function(c){var s={},r,t,i,o,u,f,p,v,y=c.split(/\r?\n/);for(u=0,p=y.length;u<p;u++)if(r=this._removeAffixComments(y[u]),r=r.trim(),!!r){var S=r.split(/\s+/),D=S[0];if(D=="PFX"||D=="SFX"){var F=S[1],M=S[2];i=parseInt(S[3],10);var A=[];for(f=u+1,v=u+1+i;f<v;f++){t=y[f],o=t.split(/\s+/);var L=o[2],H=o[3].split("/"),U=H[0];U==="0"&&(U="");var ee=this.parseRuleCodes(H[1]),Z=o[4],w={};w.add=U,ee.length>0&&(w.continuationClasses=ee),Z!=="."&&(D==="SFX"?w.match=new RegExp(Z+"$"):w.match=new RegExp("^"+Z)),L!="0"&&(D==="SFX"?w.remove=new RegExp(L+"$"):w.remove=L),A.push(w)}s[F]={type:D,combineable:M=="Y",entries:A},u+=i}else if(D==="COMPOUNDRULE"){for(i=parseInt(S[1],10),f=u+1,v=u+1+i;f<v;f++)r=y[f],o=r.split(/\s+/),this.compoundRules.push(o[1]);u+=i}else D==="REP"?(o=r.split(/\s+/),o.length===3&&this.replacementTable.push([o[1],o[2]])):this.flags[D]=S[1]}return s},_removeAffixComments:function(c){return c.match(/^\s*#/,"")?"":c},_parseDIC:function(c){c=this._removeDicComments(c);var s=c.split(/\r?\n/),r={};function t(ye,_e){r.hasOwnProperty(ye)||(r[ye]=null),_e.length>0&&(r[ye]===null&&(r[ye]=[]),r[ye].push(_e))}for(var i=1,o=s.length;i<o;i++){var u=s[i];if(u){var f=u.split("/",2),p=f[0];if(f.length>1){var v=this.parseRuleCodes(f[1]);(!("NEEDAFFIX"in this.flags)||v.indexOf(this.flags.NEEDAFFIX)==-1)&&t(p,v);for(var y=0,S=v.length;y<S;y++){var D=v[y],F=this.rules[D];if(F)for(var M=this._applyRule(p,F),A=0,L=M.length;A<L;A++){var H=M[A];if(t(H,[]),F.combineable)for(var U=y+1;U<S;U++){var ee=v[U],Z=this.rules[ee];if(Z&&Z.combineable&&F.type!=Z.type)for(var w=this._applyRule(H,Z),xe=0,De=w.length;xe<De;xe++){var Ke=w[xe];t(Ke,[])}}}D in this.compoundRuleCodes&&this.compoundRuleCodes[D].push(p)}}else t(p.trim(),[])}}return r},_removeDicComments:function(c){return c=c.replace(/^\t.*$/mg,""),c},parseRuleCodes:function(c){if(c)if("FLAG"in this.flags)if(this.flags.FLAG==="long"){for(var s=[],r=0,t=c.length;r<t;r+=2)s.push(c.substr(r,2));return s}else return this.flags.FLAG==="num"?c.split(","):this.flags.FLAG==="UTF-8"?Array.from(c):c.split("");else return c.split("");else return[]},_applyRule:function(c,s){for(var r=s.entries,t=[],i=0,o=r.length;i<o;i++){var u=r[i];if(!u.match||c.match(u.match)){var f=c;if(u.remove&&(f=f.replace(u.remove,"")),s.type==="SFX"?f=f+u.add:f=u.add+f,t.push(f),"continuationClasses"in u)for(var p=0,v=u.continuationClasses.length;p<v;p++){var y=this.rules[u.continuationClasses[p]];y&&(t=t.concat(this._applyRule(f,y)))}}}return t},check:function(c){if(!this.loaded)throw"Dictionary not loaded.";if(!c)return!1;var s=c.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(s))return!0;if(s.toUpperCase()===s){var r=s[0]+s.substring(1).toLowerCase();if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r)||this.checkExact(s.toLowerCase()))return!0}var t=s[0].toLowerCase()+s.substring(1);if(t!==s){if(this.hasFlag(t,"KEEPCASE"))return!1;if(this.checkExact(t))return!0}return!1},checkExact:function(c){if(!this.loaded)throw"Dictionary not loaded.";var s=this.dictionaryTable[c],r,t;if(typeof s>"u"){if("COMPOUNDMIN"in this.flags&&c.length>=this.flags.COMPOUNDMIN){for(r=0,t=this.compoundRules.length;r<t;r++)if(c.match(this.compoundRules[r]))return!0}}else{if(s===null)return!0;if(typeof s=="object"){for(r=0,t=s.length;r<t;r++)if(!this.hasFlag(c,"ONLYINCOMPOUND",s[r]))return!0}}return!1},hasFlag:function(c,s,r){if(!this.loaded)throw"Dictionary not loaded.";return!!(s in this.flags&&(typeof r>"u"&&(r=Array.prototype.concat.apply([],this.dictionaryTable[c])),r&&r.indexOf(this.flags[s])!==-1))},alphabet:"",suggest:function(c,s){if(!this.loaded)throw"Dictionary not loaded.";if(s=s||5,this.memoized.hasOwnProperty(c)){var r=this.memoized[c].limit;if(s<=r||this.memoized[c].suggestions.length<r)return this.memoized[c].suggestions.slice(0,s)}if(this.check(c))return[];for(var t=0,i=this.replacementTable.length;t<i;t++){var o=this.replacementTable[t];if(c.indexOf(o[0])!==-1){var u=c.replace(o[0],o[1]);if(this.check(u))return[u]}}if(!this.alphabet){this.alphabet="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","TRY"in this.flags&&(this.alphabet+=this.flags.TRY),"WORDCHARS"in this.flags&&(this.alphabet+=this.flags.WORDCHARS);var f=this.alphabet.split("");
51f.sort();for(var p={},t=0;t<f.length;t++)p[f[t]]=!0;this.alphabet="";for(var t in p)this.alphabet+=t}var v=this;function y(D,F){var M={},A,L,H,U,ee=v.alphabet.length;if(typeof D=="string"){var Z=D;D={},D[Z]=!0}for(var Z in D)for(A=0,H=Z.length+1;A<H;A++){var w=[Z.substring(0,A),Z.substring(A)];if(w[1]&&(U=w[0]+w[1].substring(1),(!F||v.check(U))&&(U in M?M[U]+=1:M[U]=1)),w[1].length>1&&w[1][1]!==w[1][0]&&(U=w[0]+w[1][1]+w[1][0]+w[1].substring(2),(!F||v.check(U))&&(U in M?M[U]+=1:M[U]=1)),w[1]){var xe=w[1].substring(0,1).toUpperCase()===w[1].substring(0,1)?"uppercase":"lowercase";for(L=0;L<ee;L++){var De=v.alphabet[L];xe==="uppercase"&&(De=De.toUpperCase()),De!=w[1].substring(0,1)&&(U=w[0]+De+w[1].substring(1),(!F||v.check(U))&&(U in M?M[U]+=1:M[U]=1))}}if(w[1])for(L=0;L<ee;L++){var xe=w[0].substring(-1).toUpperCase()===w[0].substring(-1)&&w[1].substring(0,1).toUpperCase()===w[1].substring(0,1)?"uppercase":"lowercase",De=v.alphabet[L];xe==="uppercase"&&(De=De.toUpperCase()),U=w[0]+De+w[1],(!F||v.check(U))&&(U in M?M[U]+=1:M[U]=1)}}return M}function S(D){var F=y(D),M=y(F,!0),A=M;for(var L in F)v.check(L)&&(L in A?A[L]+=F[L]:A[L]=F[L]);var H,U=[];for(H in A)A.hasOwnProperty(H)&&U.push([H,A[H]]);function ee(De,Ke){var ye=De[1],_e=Ke[1];return ye<_e?-1:ye>_e?1:Ke[0].localeCompare(De[0])}U.sort(ee).reverse();var Z=[],w="lowercase";D.toUpperCase()===D?w="uppercase":D.substr(0,1).toUpperCase()+D.substr(1).toLowerCase()===D&&(w="capitalized");var xe=s;for(H=0;H<Math.min(xe,U.length);H++)w==="uppercase"?U[H][0]=U[H][0].toUpperCase():w==="capitalized"&&(U[H][0]=U[H][0].substr(0,1).toUpperCase()+U[H][0].substr(1)),!v.hasFlag(U[H][0],"NOSUGGEST")&&Z.indexOf(U[H][0])==-1?Z.push(U[H][0]):xe++;return Z}return this.memoized[c]={suggestions:S(c),limit:s},this.memoized[c].suggestions}}})(),n.exports=l})(Hc)),Hc.exports}var zc,ig;function _C(){if(ig)return zc;ig=1;var n=AC();function l(c){if(c=c||{},typeof c.codeMirrorInstance!="function"||typeof c.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){return String.prototype.indexOf.apply(this,arguments)!==-1}),c.codeMirrorInstance.defineMode("spell-checker",function(s){if(!l.aff_loading){l.aff_loading=!0;var r=new XMLHttpRequest;r.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),r.onload=function(){r.readyState===4&&r.status===200&&(l.aff_data=r.responseText,l.num_loaded++,l.num_loaded==2&&(l.typo=new n("en_US",l.aff_data,l.dic_data,{platform:"any"})))},r.send(null)}if(!l.dic_loading){l.dic_loading=!0;var t=new XMLHttpRequest;t.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),t.onload=function(){t.readyState===4&&t.status===200&&(l.dic_data=t.responseText,l.num_loaded++,l.num_loaded==2&&(l.typo=new n("en_US",l.aff_data,l.dic_data,{platform:"any"})))},t.send(null)}var i='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',o={token:function(f){var p=f.peek(),v="";if(i.includes(p))return f.next(),null;for(;(p=f.peek())!=null&&!i.includes(p);)v+=p,f.next();return l.typo&&!l.typo.check(v)?"spell-error":null}},u=c.codeMirrorInstance.getMode(s,s.backdrop||"text/plain");return c.codeMirrorInstance.overlayMode(u,o,!0)})}return l.num_loaded=0,l.aff_loading=!1,l.dic_loading=!1,l.aff_data="",l.dic_data="",l.typo,zc=l,zc}var jc={},ng;function kC(){return ng||(ng=1,(function(n){function l(be,le){for(var ce=0;ce<le.length;ce++){var N=le[ce];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(be,u(N.key),N)}}function c(be,le,ce){return ce&&l(be,ce),Object.defineProperty(be,"prototype",{writable:!1}),be}function s(){return s=Object.assign?Object.assign.bind():function(be){for(var le=1;le<arguments.length;le++){var ce=arguments[le];for(var N in ce)Object.prototype.hasOwnProperty.call(ce,N)&&(be[N]=ce[N])}return be},s.apply(this,arguments)}function r(be,le){if(be){if(typeof be=="string")return t(be,le);var ce=Object.prototype.toString.call(be).slice(8,-1);if(ce==="Object"&&be.constructor&&(ce=be.constructor.name),ce==="Map"||ce==="Set")return Array.from(be);if(ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce))return t(be,le)}}function t(be,le){(le==null||le>be.length)&&(le=be.length);for(var ce=0,N=new Array(le);ce<le;ce++)N[ce]=be[ce];return N}function i(be,le){var ce=typeof Symbol<"u"&&be[Symbol.iterator]||be["@@iterator"];if(ce)return(ce=ce.call(be)).next.bind(ce);if(Array.isArray(be)||(ce=r(be))||le){ce&&(be=ce);var N=0;return function(){return N>=be.length?{done:!0}:{done:!1,value:be[N++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
52In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(be,le){if(typeof be!="object"||be===null)return be;var ce=be[Symbol.toPrimitive];if(ce!==void 0){var N=ce.call(be,le);if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(be)}function u(be){var le=o(be,"string");return typeof le=="symbol"?le:String(le)}function f(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}n.defaults=f();function p(be){n.defaults=be}var v=/[&<>"']/,y=new RegExp(v.source,"g"),S=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,D=new RegExp(S.source,"g"),F={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},M=function(le){return F[le]};function A(be,le){if(le){if(v.test(be))return be.replace(y,M)}else if(S.test(be))return be.replace(D,M);return be}var L=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function H(be){return be.replace(L,function(le,ce){return ce=ce.toLowerCase(),ce==="colon"?":":ce.charAt(0)==="#"?ce.charAt(1)==="x"?String.fromCharCode(parseInt(ce.substring(2),16)):String.fromCharCode(+ce.substring(1)):""})}var U=/(^|[^\[])\^/g;function ee(be,le){be=typeof be=="string"?be:be.source,le=le||"";var ce={replace:function(q,G){return G=G.source||G,G=G.replace(U,"$1"),be=be.replace(q,G),ce},getRegex:function(){return new RegExp(be,le)}};return ce}var Z=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function xe(be,le,ce){if(be){var N;try{N=decodeURIComponent(H(ce)).replace(Z,"").toLowerCase()}catch{return null}if(N.indexOf("javascript:")===0||N.indexOf("vbscript:")===0||N.indexOf("data:")===0)return null}le&&!w.test(ce)&&(ce=ie(le,ce));try{ce=encodeURI(ce).replace(/%25/g,"%")}catch{return null}return ce}var De={},Ke=/^[^:]+:\/*[^/]*$/,ye=/^([^:]+:)[\s\S]*$/,_e=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ie(be,le){De[" "+be]||(Ke.test(be)?De[" "+be]=be+"/":De[" "+be]=Ee(be,"/",!0)),be=De[" "+be];var ce=be.indexOf(":")===-1;return le.substring(0,2)==="//"?ce?le:be.replace(ye,"$1")+le:le.charAt(0)==="/"?ce?le:be.replace(_e,"$1")+le:be+le}var me={exec:function(){}};function Y(be,le){var ce=be.replace(/\|/g,function(G,oe,_){for(var W=!1,K=oe;--K>=0&&_[K]==="\\";)W=!W;return W?"|":" |"}),N=ce.split(/ \|/),q=0;
52if(N[0].trim()||N.shift(),N.length>0&&!N[N.length-1].trim()&&N.pop(),N.length>le)N.splice(le);else for(;N.length<le;)N.push("");for(;q<N.length;q++)N[q]=N[q].trim().replace(/\\\|/g,"|");return N}function Ee(be,le,ce){var N=be.length;if(N===0)return"";for(var q=0;q<N;){var G=be.charAt(N-q-1);if(G===le&&!ce)q++;else if(G!==le&&ce)q++;else break}return be.slice(0,N-q)}function we(be,le){if(be.indexOf(le[1])===-1)return-1;for(var ce=be.length,N=0,q=0;q<ce;q++)if(be[q]==="\\")q++;else if(be[q]===le[0])N++;else if(be[q]===le[1]&&(N--,N<0))return q;return-1}function Ie(be){be&&be.sanitize&&!be.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function nt(be,le){if(le<1)return"";for(var ce="";le>1;)le&1&&(ce+=be),le>>=1,be+=be;return ce+be}function at(be,le,ce,N){var q=le.href,G=le.title?A(le.title):null,oe=be[1].replace(/\\([\[\]])/g,"$1");if(be[0].charAt(0)!=="!"){N.state.inLink=!0;var _={type:"link",raw:ce,href:q,title:G,text:oe,tokens:N.inlineTokens(oe)};return N.state.inLink=!1,_}return{type:"image",raw:ce,href:q,title:G,text:A(oe)}}function ut(be,le){var ce=be.match(/^(\s+)(?:```)/);if(ce===null)return le;var N=ce[1];return le.split(`
53`).map(function(q){var G=q.match(/^\s+/);if(G===null)return q;var oe=G[0];return oe.length>=N.length?q.slice(N.length):q}).join(`
54`)}var j=(function(){function be(ce){this.options=ce||n.defaults}var le=be.prototype;return le.space=function(N){var q=this.rules.block.newline.exec(N);if(q&&q[0].length>0)return{type:"space",raw:q[0]}},le.code=function(N){var q=this.rules.block.code.exec(N);if(q){var G=q[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:q[0],codeBlockStyle:"indented",text:this.options.pedantic?G:Ee(G,`
55`)}}},le.fences=function(N){var q=this.rules.block.fences.exec(N);if(q){var G=q[0],oe=ut(G,q[3]||"");return{type:"code",raw:G,lang:q[2]?q[2].trim().replace(this.rules.inline._escapes,"$1"):q[2],text:oe}}},le.heading=function(N){var q=this.rules.block.heading.exec(N);if(q){var G=q[2].trim();if(/#$/.test(G)){var oe=Ee(G,"#");(this.options.pedantic||!oe||/ $/.test(oe))&&(G=oe.trim())}return{type:"heading",raw:q[0],depth:q[1].length,text:G,tokens:this.lexer.inline(G)}}},le.hr=function(N){var q=this.rules.block.hr.exec(N);if(q)return{type:"hr",raw:q[0]}},le.blockquote=function(N){var q=this.rules.block.blockquote.exec(N);if(q){var G=q[0].replace(/^ *>[ \t]?/gm,""),oe=this.lexer.state.top;this.lexer.state.top=!0;var _=this.lexer.blockTokens(G);return this.lexer.state.top=oe,{type:"blockquote",raw:q[0],tokens:_,text:G}}},le.list=function(N){var q=this.rules.block.list.exec(N);if(q){var G,oe,_,W,K,te,se,Ce,re,ue,Q,je,Ne=q[1].trim(),Qe=Ne.length>1,qe={type:"list",raw:"",ordered:Qe,start:Qe?+Ne.slice(0,-1):"",loose:!1,items:[]};Ne=Qe?"\\d{1,9}\\"+Ne.slice(-1):"\\"+Ne,this.options.pedantic&&(Ne=Qe?Ne:"[*+-]");for(var tt=new RegExp("^( {0,3}"+Ne+")((?:[	 ][^\\n]*)?(?:\\n|$))");N&&(je=!1,!(!(q=tt.exec(N))||this.rules.block.hr.test(N)));){if(G=q[0],N=N.substring(G.length),Ce=q[2].split(`
56`,1)[0].replace(/^\t+/,function(Jt){return" ".repeat(3*Jt.length)}),re=N.split(`
57`,1)[0],this.options.pedantic?(W=2,Q=Ce.trimLeft()):(W=q[2].search(/[^ ]/),W=W>4?1:W,Q=Ce.slice(W),W+=q[1].length),te=!1,!Ce&&/^ *$/.test(re)&&(G+=re+`
58`,N=N.substring(re.length+1),je=!0),!je)for(var yt=new RegExp("^ {0,"+Math.min(3,W-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))"),Nt=new RegExp("^ {0,"+Math.min(3,W-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),dt=new RegExp("^ {0,"+Math.min(3,W-1)+"}(?:```|~~~)"),Ot=new RegExp("^ {0,"+Math.min(3,W-1)+"}#");N&&(ue=N.split(`
59`,1)[0],re=ue,this.options.pedantic&&(re=re.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(dt.test(re)||Ot.test(re)||yt.test(re)||Nt.test(N)));){if(re.search(/[^ ]/)>=W||!re.trim())Q+=`
60`+re.slice(W);else{if(te||Ce.search(/[^ ]/)>=4||dt.test(Ce)||Ot.test(Ce)||Nt.test(Ce))break;Q+=`
61`+re}!te&&!re.trim()&&(te=!0),G+=ue+`
62`,N=N.substring(ue.length+1),Ce=re.slice(W)}qe.loose||(se?qe.loose=!0:/\n *\n *$/.test(G)&&(se=!0)),this.options.gfm&&(oe=/^\[[ xX]\] /.exec(Q),oe&&(_=oe[0]!=="[ ] ",Q=Q.replace(/^\[[ xX]\] +/,""))),qe.items.push({type:"list_item",raw:G,task:!!oe,checked:_,loose:!1,text:Q}),qe.raw+=G}qe.items[qe.items.length-1].raw=G.trimRight(),qe.items[qe.items.length-1].text=Q.trimRight(),qe.raw=qe.raw.trimRight();var Et=qe.items.length;for(K=0;K<Et;K++)if(this.lexer.state.top=!1,qe.items[K].tokens=this.lexer.blockTokens(qe.items[K].text,[]),!qe.loose){var Wt=qe.items[K].tokens.filter(function(Jt){return Jt.type==="space"}),ti=Wt.length>0&&Wt.some(function(Jt){return/\n.*\n/.test(Jt.raw)});qe.loose=ti}if(qe.loose)for(K=0;K<Et;K++)qe.items[K].loose=!0;return qe}},le.html=function(N){var q=this.rules.block.html.exec(N);if(q){var G={type:"html",raw:q[0],pre:!this.options.sanitizer&&(q[1]==="pre"||q[1]==="script"||q[1]==="style"),text:q[0]};if(this.options.sanitize){var oe=this.options.sanitizer?this.options.sanitizer(q[0]):A(q[0]);G.type="paragraph",G.text=oe,G.tokens=this.lexer.inline(oe)}return G}},le.def=function(N){var q=this.rules.block.def.exec(N);if(q){var G=q[1].toLowerCase().replace(/\s+/g," "),oe=q[2]?q[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",_=q[3]?q[3].substring(1,q[3].length-1).replace(this.rules.inline._escapes,"$1"):q[3];return{type:"def",tag:G,raw:q[0],href:oe,title:_}}},le.table=function(N){var q=this.rules.block.table.exec(N);if(q){var G={type:"table",header:Y(q[1]).map(function(se){return{text:se}}),align:q[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:q[3]&&q[3].trim()?q[3].replace(/\n[ \t]*$/,"").split(`
63`):[]};if(G.header.length===G.align.length){G.raw=q[0];var oe=G.align.length,_,W,K,te;for(_=0;_<oe;_++)/^ *-+: *$/.test(G.align[_])?G.align[_]="right":/^ *:-+: *$/.test(G.align[_])?G.align[_]="center"
63:/^ *:-+ *$/.test(G.align[_])?G.align[_]="left":G.align[_]=null;for(oe=G.rows.length,_=0;_<oe;_++)G.rows[_]=Y(G.rows[_],G.header.length).map(function(se){return{text:se}});for(oe=G.header.length,W=0;W<oe;W++)G.header[W].tokens=this.lexer.inline(G.header[W].text);for(oe=G.rows.length,W=0;W<oe;W++)for(te=G.rows[W],K=0;K<te.length;K++)te[K].tokens=this.lexer.inline(te[K].text);return G}}},le.lheading=function(N){var q=this.rules.block.lheading.exec(N);if(q)return{type:"heading",raw:q[0],depth:q[2].charAt(0)==="="?1:2,text:q[1],tokens:this.lexer.inline(q[1])}},le.paragraph=function(N){var q=this.rules.block.paragraph.exec(N);if(q){var G=q[1].charAt(q[1].length-1)===`
64`?q[1].slice(0,-1):q[1];return{type:"paragraph",raw:q[0],text:G,tokens:this.lexer.inline(G)}}},le.text=function(N){var q=this.rules.block.text.exec(N);if(q)return{type:"text",raw:q[0],text:q[0],tokens:this.lexer.inline(q[0])}},le.escape=function(N){var q=this.rules.inline.escape.exec(N);if(q)return{type:"escape",raw:q[0],text:A(q[1])}},le.tag=function(N){var q=this.rules.inline.tag.exec(N);if(q)return!this.lexer.state.inLink&&/^<a /i.test(q[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(q[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(q[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(q[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:q[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(q[0]):A(q[0]):q[0]}},le.link=function(N){var q=this.rules.inline.link.exec(N);if(q){var G=q[2].trim();if(!this.options.pedantic&&/^</.test(G)){if(!/>$/.test(G))return;var oe=Ee(G.slice(0,-1),"\\");if((G.length-oe.length)%2===0)return}else{var _=we(q[2],"()");if(_>-1){var W=q[0].indexOf("!")===0?5:4,K=W+q[1].length+_;q[2]=q[2].substring(0,_),q[0]=q[0].substring(0,K).trim(),q[3]=""}}var te=q[2],se="";if(this.options.pedantic){var Ce=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(te);Ce&&(te=Ce[1],se=Ce[3])}else se=q[3]?q[3].slice(1,-1):"";return te=te.trim(),/^</.test(te)&&(this.options.pedantic&&!/>$/.test(G)?te=te.slice(1):te=te.slice(1,-1)),at(q,{href:te&&te.replace(this.rules.inline._escapes,"$1"),title:se&&se.replace(this.rules.inline._escapes,"$1")},q[0],this.lexer)}},le.reflink=function(N,q){var G;if((G=this.rules.inline.reflink.exec(N))||(G=this.rules.inline.nolink.exec(N))){var oe=(G[2]||G[1]).replace(/\s+/g," ");if(oe=q[oe.toLowerCase()],!oe){var _=G[0].charAt(0);return{type:"text",raw:_,text:_}}return at(G,oe,G[0],this.lexer)}},le.emStrong=function(N,q,G){G===void 0&&(G="");var oe=this.rules.inline.emStrong.lDelim.exec(N);if(oe&&!(oe[3]&&G.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
640EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uD
64FB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var _=oe[1]||oe[2]||"";if(!_||_&&(G===""||this.rules.inline.punctuation.exec(G))){var W=oe[0].length-1,K,te,se=W,Ce=0,re=oe[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(re.lastIndex=0,q=q.slice(-1*N.length+W);(oe=re.exec(q))!=null;)if(K=oe[1]||oe[2]||oe[3]||oe[4]||oe[5]||oe[6],!!K){if(te=K.length,oe[3]||oe[4]){se+=te;continue}else if((oe[5]||oe[6])&&W%3&&!((W+te)%3)){Ce+=te;continue}if(se-=te,!(se>0)){te=Math.min(te,te+se+Ce);var ue=N.slice(0,W+oe.index+(oe[0].length-K.length)+te);if(Math.min(W,te)%2){var Q=ue.slice(1,-1);return{type:"em",raw:ue,text:Q,tokens:this.lexer.inlineTokens(Q)}}var je=ue.slice(2,-2);return{type:"strong",raw:ue,text:je,tokens:this.lexer.inlineTokens(je)}}}}}},le.codespan=function(N){var q=this.rules.inline.code.exec(N);if(q){var G=q[2].replace(/\n/g," "),oe=/[^ ]/.test(G),_=/^ /.test(G)&&/ $/.test(G);return oe&&_&&(G=G.substring(1,G.length-1)),G=A(G,!0),{type:"codespan",raw:q[0],text:G}}},le.br=function(N){var q=this.rules.inline.br.exec(N);if(q)return{type:"br",raw:q[0]}},le.del=function(N){var q=this.rules.inline.del.exec(N);if(q)return{type:"del",raw:q[0],text:q[2],tokens:this.lexer.inlineTokens(q[2])}},le.autolink=function(N,q){var G=this.rules.inline.autolink.exec(N);if(G){var oe,_;return G[2]==="@"?(oe=A(this.options.mangle?q(G[1]):G[1]),_="mailto:"+oe):(oe=A(G[1]),_=oe),{type:"link",raw:G[0],text:oe,href:_,tokens:[{type:"text",raw:oe,text:oe}]}}},le.url=function(N,q){var G;if(G=this.rules.inline.url.exec(N)){var oe,_;if(G[2]==="@")oe=A(this.options.mangle?q(G[0]):G[0]),_="mailto:"+oe;else{var W;do W=G[0],G[0]=this.rules.inline._backpedal.exec(G[0])[0];while(W!==G[0]);oe=A(G[0]),G[1]==="www."?_="http://"+G[0]:_=G[0]}return{type:"link",raw:G[0],text:oe,href:_,tokens:[{type:"text",raw:oe,text:oe}]}}},le.inlineText=function(N,q){var G=this.rules.inline.text.exec(N);if(G){var oe;
64return this.lexer.state.inRawBlock?oe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(G[0]):A(G[0]):G[0]:oe=A(this.options.smartypants?q(G[0]):G[0]),{type:"text",raw:G[0],text:oe}}},be})(),I={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:me,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};I._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,I._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,I.def=ee(I.def).replace("label",I._label).replace("title",I._title).getRegex(),I.bullet=/(?:[*+-]|\d{1,9}[.)])/,I.listItemStart=ee(/^( *)(bull) */).replace("bull",I.bullet).getRegex(),I.list=ee(I.list).replace(/bull/g,I.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+I.def.source+")").getRegex(),I._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",I._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,I.html=ee(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),I.paragraph=ee(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.blockquote=ee(I.blockquote).replace("paragraph",I.paragraph).getRegex(),I.normal=s({},I),I.gfm=s({},I.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),I.gfm.table=ee(I.gfm.table).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.gfm.paragraph=ee(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",I.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.pedantic=s({},I.normal,{html:ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",I._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:me,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ee(I.normal._paragraph).replace("hr",I.hr).replace("heading",` *#{1,6} *[^
65]`).replace("lheading",I.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var pe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:me,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:me,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};pe._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",pe.punctuation=ee(pe.punctuation).replace(/punctuation/g,pe._punctuation).getRegex(),pe.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,pe.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,pe._comment=ee(I._comment).replace("(?:-->|$)","-->").getRegex(),pe.emStrong.lDelim=ee(pe.emStrong.lDelim).replace(/punct/g,pe._punctuation).getRegex(),pe.emStrong.rDelimAst=ee(pe.emStrong.rDelimAst,"g").replace(/punct/g,pe._punctuation).getRegex(),pe.emStrong.rDelimUnd=ee(pe.emStrong.rDelimUnd,"g").replace(/punct/g,pe._punctuation).getRegex(),pe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,pe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,pe._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,pe.autolink=ee(pe.autolink).replace("scheme",pe._scheme).replace("email",pe._email).getRegex(),pe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,pe.tag=ee(pe.tag).replace("comment",pe._comment).replace("attribute",pe._attribute).getRegex(),pe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pe._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,pe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,pe.link=ee(pe.link).replace("label",pe._label).replace("href",pe._href).replace("title",pe._title).getRegex(),pe.reflink=ee(pe.reflink).replace("label",pe._label).replace("ref",I._label).getRegex(),pe.nolink=ee(pe.nolink).replace("ref",I._label).getRegex(),pe.reflinkSearch=ee(pe.reflinkSearch,"g").replace("reflink",pe.reflink).replace("nolink",pe.nolink).getRegex(),pe.normal=s({},pe),pe.pedantic=s({}
65,pe.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ee(/^!?\[(label)\]\((.*?)\)/).replace("label",pe._label).getRegex(),reflink:ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pe._label).getRegex()}),pe.gfm=s({},pe.normal,{escape:ee(pe.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),pe.gfm.url=ee(pe.gfm.url,"i").replace("email",pe.gfm._extended_email).getRegex(),pe.breaks=s({},pe.gfm,{br:ee(pe.br).replace("{2,}","*").getRegex(),text:ee(pe.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function ze(be){return be.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Re(be){var le="",ce,N,q=be.length;for(ce=0;ce<q;ce++)N=be.charCodeAt(ce),Math.random()>.5&&(N="x"+N.toString(16)),le+="&#"+N+";";return le}var We=(function(){function be(ce){this.tokens=[],this.tokens.links=Object.create(null),this.options=ce||n.defaults,this.options.tokenizer=this.options.tokenizer||new j,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var N={block:I.normal,inline:pe.normal};this.options.pedantic?(N.block=I.pedantic,N.inline=pe.pedantic):this.options.gfm&&(N.block=I.gfm,this.options.breaks?N.inline=pe.breaks:N.inline=pe.gfm),this.tokenizer.rules=N}be.lex=function(N,q){var G=new be(q);return G.lex(N)},be.lexInline=function(N,q){var G=new be(q);return G.inlineTokens(N)};var le=be.prototype;return le.lex=function(N){N=N.replace(/\r\n|\r/g,`
66`),this.blockTokens(N,this.tokens);for(var q;q=this.inlineQueue.shift();)this.inlineTokens(q.src,q.tokens);return this.tokens},le.blockTokens=function(N,q){var G=this;q===void 0&&(q=[]),this.options.pedantic?N=N.replace(/\t/g,"    ").replace(/^ +$/gm,""):N=N.replace(/^( *)(\t+)/gm,function(se,Ce,re){return Ce+"    ".repeat(re.length)});for(var oe,_,W,K;N;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(se){return(oe=se.call({lexer:G},N,q))?(N=N.substring(oe.raw.length),q.push(oe),!0):!1}))){if(oe=this.tokenizer.space(N)){N=N.substring(oe.raw.length),oe.raw.length===1&&q.length>0?q[q.length-1].raw+=`
67`:q.push(oe);continue}if(oe=this.tokenizer.code(N)){N=N.substring(oe.raw.length),_=q[q.length-1],_&&(_.type==="paragraph"||_.type==="text")?(_.raw+=`
68`+oe.raw,_.text+=`
69`+oe.text,this.inlineQueue[this.inlineQueue.length-1].src=_.text):q.push(oe);continue}if(oe=this.tokenizer.fences(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.heading(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.hr(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.blockquote(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.list(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.html(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.def(N)){N=N.substring(oe.raw.length),_=q[q.length-1],_&&(_.type==="paragraph"||_.type==="text")?(_.raw+=`
70`+oe.raw,_.text+=`
71`+oe.raw,this.inlineQueue[this.inlineQueue.length-1].src=_.text):this.tokens.links[oe.tag]||(this.tokens.links[oe.tag]={href:oe.href,title:oe.title});continue}if(oe=this.tokenizer.table(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.lheading(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(W=N,this.options.extensions&&this.options.extensions.startBlock&&(function(){var se=1/0,Ce=N.slice(1),re=void 0;G.options.extensions.startBlock.forEach(function(ue){re=ue.call({lexer:this},Ce),typeof re=="number"&&re>=0&&(se=Math.min(se,re))}),se<1/0&&se>=0&&(W=N.substring(0,se+1))})(),this.state.top&&(oe=this.tokenizer.paragraph(W))){_=q[q.length-1],K&&_.type==="paragraph"?(_.raw+=`
72`+oe.raw,_.text+=`
73`+oe.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=_.text):q.push(oe),K=W.length!==N.length,N=N.substring(oe.raw.length);continue}if(oe=this.tokenizer.text(N)){N=N.substring(oe.raw.length),_=q[q.length-1],_&&_.type==="text"?(_.raw+=`
74`+oe.raw,_.text+=`
75`+oe.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=_.text):q.push(oe);continue}if(N){var te="Infinite loop on byte: "+N.charCodeAt(0);if(this.options.silent){console.error(te);break}else throw new Error(te)}}return this.state.top=!0,q},le.inline=function(N,q){return q===void 0&&(q=[]),this.inlineQueue.push({src:N,tokens:q}),q}
75,le.inlineTokens=function(N,q){var G=this;q===void 0&&(q=[]);var oe,_,W,K=N,te,se,Ce;if(this.tokens.links){var re=Object.keys(this.tokens.links);if(re.length>0)for(;(te=this.tokenizer.rules.inline.reflinkSearch.exec(K))!=null;)re.includes(te[0].slice(te[0].lastIndexOf("[")+1,-1))&&(K=K.slice(0,te.index)+"["+nt("a",te[0].length-2)+"]"+K.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(te=this.tokenizer.rules.inline.blockSkip.exec(K))!=null;)K=K.slice(0,te.index)+"["+nt("a",te[0].length-2)+"]"+K.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(te=this.tokenizer.rules.inline.escapedEmSt.exec(K))!=null;)K=K.slice(0,te.index+te[0].length-2)+"++"+K.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;N;)if(se||(Ce=""),se=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(Q){return(oe=Q.call({lexer:G},N,q))?(N=N.substring(oe.raw.length),q.push(oe),!0):!1}))){if(oe=this.tokenizer.escape(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.tag(N)){N=N.substring(oe.raw.length),_=q[q.length-1],_&&oe.type==="text"&&_.type==="text"?(_.raw+=oe.raw,_.text+=oe.text):q.push(oe);continue}if(oe=this.tokenizer.link(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.reflink(N,this.tokens.links)){N=N.substring(oe.raw.length),_=q[q.length-1],_&&oe.type==="text"&&_.type==="text"?(_.raw+=oe.raw,_.text+=oe.text):q.push(oe);continue}if(oe=this.tokenizer.emStrong(N,K,Ce)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.codespan(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.br(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.del(N)){N=N.substring(oe.raw.length),q.push(oe);continue}if(oe=this.tokenizer.autolink(N,Re)){N=N.substring(oe.raw.length),q.push(oe);continue}if(!this.state.inLink&&(oe=this.tokenizer.url(N,Re))){N=N.substring(oe.raw.length),q.push(oe);continue}if(W=N,this.options.extensions&&this.options.extensions.startInline&&(function(){var Q=1/0,je=N.slice(1),Ne=void 0;G.options.extensions.startInline.forEach(function(Qe){Ne=Qe.call({lexer:this},je),typeof Ne=="number"&&Ne>=0&&(Q=Math.min(Q,Ne))}),Q<1/0&&Q>=0&&(W=N.substring(0,Q+1))})(),oe=this.tokenizer.inlineText(W,ze)){N=N.substring(oe.raw.length),oe.raw.slice(-1)!=="_"&&(Ce=oe.raw.slice(-1)),se=!0,_=q[q.length-1],_&&_.type==="text"?(_.raw+=oe.raw,_.text+=oe.text):q.push(oe);continue}if(N){var ue="Infinite loop on byte: "+N.charCodeAt(0);if(this.options.silent){console.error(ue);break}else throw new Error(ue)}}return q},c(be,null,[{key:"rules",get:function(){return{block:I,inline:pe}}}]),be})(),ct=(function(){function be(ce){this.options=ce||n.defaults}var le=be.prototype;return le.code=function(N,q,G){var oe=(q||"").match(/\S*/)[0];if(this.options.highlight){var _=this.options.highlight(N,oe);_!=null&&_!==N&&(G=!0,N=_)}return N=N.replace(/\n$/,"")+`
76`,oe?'<pre><code class="'+this.options.langPrefix+A(oe)+'">'+(G?N:A(N,!0))+`</code></pre>
77`:"<pre><code>"+(G?N:A(N,!0))+`</code></pre>
78`},le.blockquote=function(N){return`<blockquote>
79`+N+`</blockquote>
80`},le.html=function(N){return N},le.heading=function(N,q,G,oe){if(this.options.headerIds){var _=this.options.headerPrefix+oe.slug(G);return"<h"+q+' id="'+_+'">'+N+"</h"+q+`>
81`}return"<h"+q+">"+N+"</h"+q+`>
82`},le.hr=function(){return this.options.xhtml?`<hr/>
83`:`<hr>
84`},le.list=function(N,q,G){var oe=q?"ol":"ul",_=q&&G!==1?' start="'+G+'"':"";return"<"+oe+_+`>
85`+N+"</"+oe+`>
86`},le.listitem=function(N){return"<li>"+N+`</li>
87`},le.checkbox=function(N){return"<input "+(N?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},le.paragraph=function(N){return"<p>"+N+`</p>
88`},le.table=function(N,q){return q&&(q="<tbody>"+q+"</tbody>"),`<table>
89<thead>
90`+N+`</thead>
91`+q+`</table>
92`},le.tablerow=function(N){return`<tr>
93`+N+`</tr>
94`},le.tablecell=function(N,q){var G=q.header?"th":"td",oe=q.align?"<"+G+' align="'+q.align+'">':"<"+G+">";return oe+N+("</"+G+`>
95`)},le.strong=function(N){return"<strong>"+N+"</strong>"},le.em=function(N){return"<em>"+N+"</em>"},le.codespan=function(N){return"<code>"+N+"</code>"},le.br=function(){return this.options.xhtml?"<br/>":"<br>"},le.del=function(N){return"<del>"+N+"</del>"},le.link=function(N,q,G){if(N=xe(this.options.sanitize,this.options.baseUrl,N),N===null)return G;var oe='<a href="'+N+'"';return q&&(oe+=' title="'+q+'"'),oe+=">"+G+"</a>",oe},le.image=function(N,q,G){if(N=xe(this.options.sanitize,this.options.baseUrl,N),N===null)return G;var oe='<img src="'+N+'" alt="'+G+'"';return q&&(oe+=' title="'+q+'"'),oe+=this.options.xhtml?"/>":">",oe},le.text=function(N){return N},be})(),ft=(function(){function be(){}var le=be.prototype;return le.strong=function(N){return N},le.em=function(N){return N},le.codespan=function(N){return N},le.del=function(N){return N},le.html=function(N){return N},le.text=function(N){return N},le.link=function(N,q,G){return""+G},le.image=function(N,q,G){return""+G},le.br=function(){return""},be})(),St=(function(){function be(){this.seen={}}var le=be.prototype;return le.serialize=function(N){return N.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},le.getNextSafeSlug=function(N,q){var G=N,oe=0;if(this.seen.hasOwnProperty(G)){oe=this.seen[N];do oe++,G=N+"-"+oe;while(this.seen.hasOwnProperty(G))}return q||(this.seen[N]=oe,this.seen[G]=0),G},le.slug=function(N,q){q===void 0&&(q={});var G=this.serialize(N);return this.getNextSafeSlug(G,q.dryrun)},be})(),vt=(function(){function be(ce){this.options=ce||n.defaults,this.options.renderer=this.options.renderer||new ct,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ft,this.slugger=new St}be.parse=function(N,q){var G=new be(q);return G.parse(N)},be.parseInline=function(N,q){var G=new be(q);return G.parseInline(N)};var le=be.prototype;return le.parse=function(N,q){q===void 0&&(q=!0);var G="",oe,_,W,K,te,se,Ce,re,ue,Q,je,Ne,Qe,qe,tt,yt,Nt,dt,Ot,Et=N.length;for(oe=0;oe<Et;oe++){if(Q=N[oe],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Q.type]&&(Ot=this.options.extensions.renderers[Q.type].call({parser:this},Q),Ot!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(Q.type))){G+=Ot||"";continue}switch(Q.type){case"space":continue;case"hr":{G+=this.renderer.hr();continue}case"heading":{G+=this.renderer.heading(this.parseInline(Q.tokens),Q.depth,H(this.parseInline(Q.tokens,this.textRenderer)),this.slugger);continue}case"code":{G+=this.renderer.code(Q.text,Q.lang,Q.escaped);continue}case"table":{for(re="",Ce="",K=Q.header.length,_=0;_<K;_++)Ce+=this.renderer.tablecell(this.parseInline(Q.header[_].tokens),{header:!0,align:Q.align[_]});for(re+=this.renderer.tablerow(Ce),ue="",K=Q.rows.length,_=0;_<K;_++){for(se=Q.rows[_],Ce="",te=se.length,W=0;W<te;W++)Ce+=this.renderer.tablecell(this.parseInline(se[W].tokens),{header:!1,align:Q.align[W]});ue+=this.renderer.tablerow(Ce)}G+=this.renderer.table(re,ue);continue}case"blockquote":{ue=this.parse(Q.tokens),G+=this.renderer.blockquote(ue);continue}case"list":{for(je=Q.ordered,Ne=Q.start,Qe=Q.loose,K=Q.items.length,ue="",_=0;_<K;_++)tt=Q.items[_],yt=tt.checked,Nt=tt.task,qe="",tt.task&&(dt=this.renderer.checkbox(yt),Qe?tt.tokens.length>0&&tt.tokens[0].type==="paragraph"?(tt.tokens[0].text=dt+" "+tt.tokens[0].text,tt.tokens[0].tokens&&tt.tokens[0].tokens.length>0&&tt.tokens[0].tokens[0].type==="text"&&(tt.tokens[0].tokens[0].text=dt+" "+tt.tokens[0].tokens[0].text)):tt.tokens.unshift({type:"text",text:dt}):qe+=dt),qe+=this.parse(tt.tokens,Qe),ue+=this.renderer.listitem(qe,Nt,yt);G+=this.renderer.list(ue,je,Ne);continue}case"html":{G+=this.renderer.html(Q.text);continue}case"paragraph":{G+=this.renderer.paragraph(this.parseInline(Q.tokens));continue}case"text":{for(ue=Q.tokens?this.parseInline(Q.tokens):Q.text;oe+1<Et&&N[oe+1].type==="text";)Q=N[++oe],ue+=`
96`+(Q.tokens?this.parseInline(Q.tokens):Q.text);G+=q?this.renderer.paragraph(ue):ue;continue}default:{var Wt='Token with "'+Q.type+'" type was not found.';if(this.options.silent){console.error(Wt);return}else throw new Error(Wt)}}}return G},le.parseInline=function(N,q){q=q||this.renderer;var G="",oe,_,W,K=N.length;for(oe=0;oe<K;oe++){if(_=N[oe],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[_.type]&&(W=this.options.extensions.renderers[_.type].call({parser:this},_),W!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(_.type))){G+=W||"";continue}switch(_.type){case"escape":{G+=q.text(_.text);break}case"html":{G+=q.html(_.text);break}case"link":{G+=q.link(_.href,_.title,this.parseInline(_.tokens,q));break}case"image":{G+=q.image(_.href,_.title,_.text);break}case"strong":{G+=q.strong(this.parseInline(_.tokens,q));break}case"em":{G+=q.em(this.parseInline(_.tokens,q));break}case"codespan":{G+=q.codespan(_.text);break}case"br":{G+=q.br();break}case"del":{G+=q.del(this.parseInline(_.tokens,q));break}case"text":{G+=q.text(_.text);break}default:{var te='Token with "'+_.type+'" type was not found.';if(this.options.silent){console.error(te);return}else throw new Error(te)}}}return G},be})(),ot=(function(){function be(ce){this.options=ce||n.defaults}var le=be.prototype;return le.preprocess=function(N){return N},le.postprocess=function(N){return N},be})();ot.passThroughHooks=new Set(["preprocess","postprocess"]);function pt(be,le,ce){return function(N){if(N.message+=`
97Please report this to https://github.com/markedjs/marked.`,be){var q="<p>An error occurred:</p><pre>"+A(N.message+"",!0)+"</pre>";if(le)return Promise.resolve(q);if(ce){ce(null,q);return}return q}if(le)return Promise.reject(N);if(ce){ce(N);return}throw N}}function gt(be,le){return function(ce,N,q){typeof N=="function"&&(q=N,N=null);var G=s({},N);N=s({},$e.defaults,G);var oe=pt(N.silent,N.async,q);if(typeof ce>"u"||ce===null)return oe(new Error("marked(): input parameter is undefined or null"));if(typeof ce!="string")return oe(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ce)+", string expected"));if(Ie(N),N.hooks&&(N.hooks.options=N),q){var _=N.highlight,W;try{N.hooks&&(ce=N.hooks.preprocess(ce)),W=be(ce,N)}catch(re){return oe(re)}var K=function(ue){var Q;if(!ue)try{N.walkTokens&&$e.walkTokens(W,N.walkTokens),Q=le(W,N),N.hooks&&(Q=N.hooks.postprocess(Q))}catch(je){ue=je}return N.highlight=_,ue?oe(ue):q(null,Q)};if(!_||_.length<3||(delete N.highlight,!W.length))return K();var te=0;$e.walkTokens(W,function(re){re.type==="code"&&(te++,setTimeout(function(){_(re.text,re.lang,function(ue,Q){if(ue)return K(ue);Q!=null&&Q!==re.text&&(re.text=Q,re.escaped=!0),te--,te===0&&K()})},0))}),te===0&&K();return}if(N.async)return Promise.resolve(N.hooks?N.hooks.preprocess(ce):ce).then(function(re){return be(re,N)}).then(function(re){return N.walkTokens?Promise.all($e.walkTokens(re,N.walkTokens)).then(function(){return re}):re}).then(function(re){return le(re,N)}).then(function(re){return N.hooks?N.hooks.postprocess(re):re}).catch(oe);try{N.hooks&&(ce=N.hooks.preprocess(ce));var se=be(ce,N);N.walkTokens&&$e.walkTokens(se,N.walkTokens);var Ce=le(se,N);return N.hooks&&(Ce=N.hooks.postprocess(Ce)),Ce}catch(re){return oe(re)}}}function $e(be,le,ce){return gt(We.lex,vt.parse)(be,le,ce)}$e.options=$e.setOptions=function(be){return $e.defaults=s({},$e.defaults,be),p($e.defaults),$e},$e.getDefaults=f,$e.defaults=n.defaults,$e.use=function(){for(var be=$e.defaults.extensions||{renderers:{},childTokens:{}},le=arguments.length,ce=new Array(le),N=0;N<le;N++)ce[N]=arguments[N];ce.forEach(function(q){var G=s({},q);if(G.async=$e.defaults.async||G.async||!1,q.extensions&&(q.extensions.forEach(function(_){if(!_.name)throw new Error("extension name required");if(_.renderer){var W=be.renderers[_.name];W?be.renderers[_.name]=function(){for(var K=arguments.length,te=new Array(K),se=0;se<K;se++)te[se]=arguments[se];var Ce=_.renderer.apply(this,te);return Ce===!1&&(Ce=W.apply(this,te)),Ce}:be.renderers[_.name]=_.renderer}if(_.tokenizer){if(!_.level||_.level!=="block"&&_.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");be[_.level]?be[_.level].unshift(_.tokenizer):be[_.level]=[_.tokenizer],_.start&&(_.level==="block"?be.startBlock?be.startBlock.push(_.start):be.startBlock=[_.start]:_.level==="inline"&&(be.startInline?be.startInline.push(_.start):be.startInline=[_.start]))}_.childTokens&&(be.childTokens[_.name]=_.childTokens)}),G.extensions=be),q.renderer&&(function(){var _=$e.defaults.renderer||new ct,W=function(se){var 
97Ce=_[se];_[se]=function(){for(var re=arguments.length,ue=new Array(re),Q=0;Q<re;Q++)ue[Q]=arguments[Q];var je=q.renderer[se].apply(_,ue);return je===!1&&(je=Ce.apply(_,ue)),je}};for(var K in q.renderer)W(K);G.renderer=_})(),q.tokenizer&&(function(){var _=$e.defaults.tokenizer||new j,W=function(se){var Ce=_[se];_[se]=function(){for(var re=arguments.length,ue=new Array(re),Q=0;Q<re;Q++)ue[Q]=arguments[Q];var je=q.tokenizer[se].apply(_,ue);return je===!1&&(je=Ce.apply(_,ue)),je}};for(var K in q.tokenizer)W(K);G.tokenizer=_})(),q.hooks&&(function(){var _=$e.defaults.hooks||new ot,W=function(se){var Ce=_[se];ot.passThroughHooks.has(se)?_[se]=function(re){if($e.defaults.async)return Promise.resolve(q.hooks[se].call(_,re)).then(function(Q){return Ce.call(_,Q)});var ue=q.hooks[se].call(_,re);return Ce.call(_,ue)}:_[se]=function(){for(var re=arguments.length,ue=new Array(re),Q=0;Q<re;Q++)ue[Q]=arguments[Q];var je=q.hooks[se].apply(_,ue);return je===!1&&(je=Ce.apply(_,ue)),je}};for(var K in q.hooks)W(K);G.hooks=_})(),q.walkTokens){var oe=$e.defaults.walkTokens;G.walkTokens=function(_){var W=[];return W.push(q.walkTokens.call(this,_)),oe&&(W=W.concat(oe.call(this,_))),W}}$e.setOptions(G)})},$e.walkTokens=function(be,le){for(var ce=[],N=function(){var _=G.value;switch(ce=ce.concat(le.call($e,_)),_.type){case"table":{for(var W=i(_.header),K;!(K=W()).done;){var te=K.value;ce=ce.concat($e.walkTokens(te.tokens,le))}for(var se=i(_.rows),Ce;!(Ce=se()).done;)for(var re=Ce.value,ue=i(re),Q;!(Q=ue()).done;){var je=Q.value;ce=ce.concat($e.walkTokens(je.tokens,le))}break}case"list":{ce=ce.concat($e.walkTokens(_.items,le));break}default:$e.defaults.extensions&&$e.defaults.extensions.childTokens&&$e.defaults.extensions.childTokens[_.type]?$e.defaults.extensions.childTokens[_.type].forEach(function(Ne){ce=ce.concat($e.walkTokens(_[Ne],le))}):_.tokens&&(ce=ce.concat($e.walkTokens(_.tokens,le)))}},q=i(be),G;!(G=q()).done;)N();return ce},$e.parseInline=gt(We.lexInline,vt.parseInline),$e.Parser=vt,$e.parser=vt.parse,$e.Renderer=ct,$e.TextRenderer=ft,$e.Lexer=We,$e.lexer=We.lex,$e.Tokenizer=j,$e.Slugger=St,$e.Hooks=ot,$e.parse=$e;var rt=$e.options,Ht=$e.setOptions,Xt=$e.use,Qt=$e.walkTokens,Tt=$e.parseInline,Ft=$e,Yt=vt.parse,cn=We.lex;n.Hooks=ot,n.Lexer=We,n.Parser=vt,n.Renderer=ct,n.Slugger=St,n.TextRenderer=ft,n.Tokenizer=j,n.getDefaults=f,n.lexer=cn,n.marked=$e,n.options=rt,n.parse=Ft,n.parseInline=Tt,n.parser=Yt,n.setOptions=Ht,n.use=Xt,n.walkTokens=Qt})(jc)),jc}var Wc,rg;function TC(){if(rg)return Wc;rg=1;var n=Dn();hC(),pC(),gC(),wv(),Cv(),vC(),yC(),bC(),xC(),wC(),xv();var l=_C(),c=kC().marked,s=/Mac/.test(navigator.platform),r=new RegExp(/(<a.*?https?:\/\/.*?[^a]>)+?/g),t={toggleBold:H,toggleItalic:U,drawLink:at,toggleHeadingSmaller:xe,toggleHeadingBigger:De,drawImage:ut,toggleBlockquote:w,toggleOrderedList:we,toggleUnorderedList:Ee,toggleCheckList:Ie,toggleCodeBlock:Z,togglePreview:St,toggleStrikethrough:ee,toggleHeading1:Ke,toggleHeading2:ye,toggleHeading3:_e,toggleHeading4:ie,toggleHeading5:me,toggleHeading6:Y,cleanBlock:nt,drawTable:ze,drawHorizontalRule:Re,undo:We,redo:ct,toggleSideBySide:ft,toggleFullScreen:L},i={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCheckList:"Shift-Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},o=function(_){for(var W in t)if(t[W]===_)return W;return null},u=function(){var _=!1;return(function(W){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(W)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(W.substr(0,4)))&&(_=!0)})(navigator.userAgent||navigator.vendor||window.opera),_};function f(_){for(var W;(W=r.exec(_))!==null;){var K=W[0];if(K.indexOf("target=")===-1){var te=K.replace(/>$/,' target="_blank">');_=_.replace(K,te)}}return _}function p(_){for(var W=new DOMParser,K=W.parseFromString(_,"text/html"),te=K.getElementsByTagName("li"),se=0;se<te.length;se++)for(var Ce=te[se],re=0;re<Ce.children.length;re++){var ue=Ce.children[re];ue instanceof HTMLInputElement&&ue.type==="checkbox"&&(Ce.style.marginLeft="-1.5em",Ce.style.listStyleType="none")}return K.documentElement.innerHTML}function v(_){return s?_=_.replace("Ctrl","Cmd"):_=_.replace("Cmd","Ctrl"),_}function y(_,W,K,te){var se=S(_,!1,W,K,"button",te);se.classList.add("easymde-dropdown"),se.onclick=function(){se.focus()};var Ce=document.createElement("div");Ce.className="easymde-dropdown-content";for(var re=0;re<_.children.length;re++){var ue=_.children[re],Q;typeof ue=="string"&&ue in Yt?Q=S(Yt[ue],!0,W,K,"button",te):Q=S(ue,!0,W,K,"button",te),Q.addEventListener("click",function(je){je.stopPropagation()},!1),Ce.appendChild(Q)}return se.appendChild(Ce),se}function S(_,W,K,te,se,Ce){_=_||{};var re=document.createElement(se);if(_.attributes)for(var ue in _.attributes)Object.prototype.hasOwnProperty.call(_.attributes,ue)&&re.setAttribute(ue,_.attributes[ue]);var Q=Ce.options.toolbarButtonClassPrefix?Ce.options.toolbarButtonClassPrefix+"-":"";re.className=Q+_.name,re.setAttribute("type",se),K=K??!0,_.text&&(re.innerText=_.text),_.name&&_.name in te&&(t[_.name]=_.action),_.title&&K&&(re.title=F(_.title,_.action,te),s&&(re.title=re.title.replace("Ctrl","⌘"),re.title=re.title.replace("Alt","⌥"))),_.title&&re.setAttribute("aria-label",_.title),_.noDisable&&re.classList.add("no-disable"),_.noMobile&&re.classList.add("no-mobile");var je=[];typeof _.className<"u"&&(je=_.className.split(" "));for(var Ne=[],Qe=0;Qe<je.length;Qe++){var qe=je[Qe];
97qe.match(/^fa([srlb]|(-[\w-]*)|$)/)?Ne.push(qe):re.classList.add(qe)}if(re.tabIndex=-1,Ne.length>0){for(var tt=document.createElement("i"),yt=0;yt<Ne.length;yt++){var Nt=Ne[yt];tt.classList.add(Nt)}re.appendChild(tt)}return typeof _.icon<"u"&&(re.innerHTML=_.icon),_.action&&W&&(typeof _.action=="function"?re.onclick=function(dt){dt.preventDefault(),_.action(Ce)}:typeof _.action=="string"&&(re.onclick=function(dt){dt.preventDefault(),window.open(_.action,"_blank")})),re}function D(){var _=document.createElement("i");return _.className="separator",_.innerHTML="|",_}function F(_,W,K){var te,se=_;return W&&(te=o(W),K[te]&&(se+=" ("+v(K[te])+")")),se}function M(_,W){W=W||_.getCursor("start");var K=_.getTokenAt(W);if(!K.type)return{};for(var te=K.type.split(" "),se={},Ce,re,ue=0;ue<te.length;ue++)Ce=te[ue],Ce==="strong"?se.bold=!0:Ce==="variable-2"?(re=_.getLine(W.line),/^\s*\d+\.\s/.test(re)?se["ordered-list"]=!0:/^\s*- \[[ xX]]\s/.test(re)?se["check-list"]=!0:se["unordered-list"]=!0):Ce==="atom"?se.quote=!0:Ce==="em"?se.italic=!0:Ce==="quote"?se.quote=!0:Ce==="strikethrough"?se.strikethrough=!0:Ce==="comment"?se.code=!0:Ce==="link"&&!se.image?se.link=!0:Ce==="image"?se.image=!0:Ce.match(/^header(-[1-6])?$/)&&(se[Ce.replace("header","heading")]=!0);return se}var A="";function L(_){var W=_.codemirror;W.setOption("fullScreen",!W.getOption("fullScreen")),W.getOption("fullScreen")?(A=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=A;var K=W.getWrapperElement(),te=K.nextSibling;if(te.classList.contains("editor-preview-active-side"))if(_.options.sideBySideFullscreen===!1){var se=K.parentNode;W.getOption("fullScreen")?se.classList.remove("sided--no-fullscreen"):se.classList.add("sided--no-fullscreen")}else ft(_);if(_.options.onToggleFullScreen&&_.options.onToggleFullScreen(W.getOption("fullScreen")||!1),typeof _.options.maxHeight<"u"&&(W.getOption("fullScreen")?(W.getScrollerElement().style.removeProperty("height"),te.style.removeProperty("height")):(W.getScrollerElement().style.height=_.options.maxHeight,_.setPreviewMaxHeight())),_.toolbar_div.classList.toggle("fullscreen"),_.toolbarElements&&_.toolbarElements.fullscreen){var Ce=_.toolbarElements.fullscreen;Ce.classList.toggle("active")}}function H(_){$e(_,"bold",_.options.blockStyles.bold)}function U(_){$e(_,"italic",_.options.blockStyles.italic)}function ee(_){$e(_,"strikethrough","~~")}function Z(_){var W=_.options.blockStyles.code;function K(hi){if(typeof hi!="object")throw"fencing_line() takes a 'line' object (not a line number, or line text).  Got: "+typeof hi+": "+hi;return hi.styles&&hi.styles[2]&&hi.styles[2].indexOf("formatting-code-block")!==-1}function te(hi){return hi.state.base.base||hi.state.base}function se(hi,Vn,Ei,Fi,xn){Ei=Ei||hi.getLineHandle(Vn),Fi=Fi||hi.getTokenAt({line:Vn,ch:1}),xn=xn||!!Ei.text&&hi.getTokenAt({line:Vn,ch:Ei.text.length-1});var Rn=Fi.type?Fi.type.split(" "):[];return xn&&te(xn).indentedCode?"indented":Rn.indexOf("comment")===-1?!1:te(Fi).fencedChars||te(xn).fencedChars||K(Ei)?"fenced":"single"}function Ce(hi,Vn,Ei,Fi){var xn=Vn.line+1,Rn=Ei.line+1,An=Vn.line!==Ei.line,kr=Fi+`
98`,Pn=`
99`+Fi;An&&Rn++,An&&Ei.ch===0&&(Pn=Fi+`
100`,Rn--),vt(hi,!1,[kr,Pn]),hi.setSelection({line:xn,ch:0},{line:Rn,ch:0})}var re=_.codemirror,ue=re.getCursor("start"),Q=re.getCursor("end"),je=re.getTokenAt({line:ue.line,ch:ue.ch||1}),Ne=re.getLineHandle(ue.line),Qe=se(re,ue.line,Ne,je),qe,tt,yt;if(Qe==="single"){var Nt=Ne.text.slice(0,ue.ch).replace("`",""),dt=Ne.text.slice(ue.ch).replace("`","");re.replaceRange(Nt+dt,{line:ue.line,ch:0},{line:ue.line,ch:99999999999999}),ue.ch--,ue!==Q&&Q.ch--,re.setSelection(ue,Q),re.focus()}else if(Qe==="fenced")if(ue.line!==Q.line||ue.ch!==Q.ch){for(qe=ue.line;qe>=0&&(Ne=re.getLineHandle(qe),!K(Ne));qe--);var Ot=re.getTokenAt({line:qe,ch:1}),Et=te(Ot).fencedChars,Wt,ti,Jt,fn;K(re.getLineHandle(ue.line))?(Wt="",ti=ue.line):K(re.getLineHandle(ue.line-1))?(Wt="",ti=ue.line-1):(Wt=Et+`
101`,ti=ue.line),K(re.getLineHandle(Q.line))?(Jt="",fn=Q.line,Q.ch===0&&(fn+=1)):Q.ch!==0&&K(re.getLineHandle(Q.line+1))?(Jt="",fn=Q.line+1):(Jt=Et+`
102`,fn=Q.line+1),Q.ch===0&&(fn-=1),re.operation(function(){re.replaceRange(Jt,{line:fn,ch:0},{line:fn+(Jt?0:1),ch:0}),re.replaceRange(Wt,{line:ti,ch:0},{line:ti+(Wt?0:1),ch:0})}),re.setSelection({line:ti+(Wt?1:0),ch:0},{line:fn+(Wt?1:-1),ch:0}),re.focus()}else{var bn=ue.line;if(K(re.getLineHandle(ue.line))&&(se(re,ue.line+1)==="fenced"?(qe=ue.line,bn=ue.line+1):(tt=ue.line,bn=ue.line-1)),qe===void 0)for(qe=bn;qe>=0&&(Ne=re.getLineHandle(qe),!K(Ne));qe--);if(tt===void 0)for(yt=re.lineCount(),tt=bn;tt<yt&&(Ne=re.getLineHandle(tt),!K(Ne));tt++);re.operation(function(){re.replaceRange("",{line:qe,ch:0},{line:qe+1,ch:0}),re.replaceRange("",{line:tt-1,ch:0},{line:tt,ch:0})}),re.focus()}else if(Qe==="indented"){if(ue.line!==Q.line||ue.ch!==Q.ch)qe=ue.line,tt=Q.line,Q.ch===0&&tt--;else{for(qe=ue.line;qe>=0;qe--)if(Ne=re.getLineHandle(qe),!Ne.text.match(/^\s*$/)&&se(re,qe,Ne)!=="indented"){qe+=1;break}for(yt=re.lineCount(),tt=ue.line;tt<yt;tt++)if(Ne=re.getLineHandle(tt),!Ne.text.match(/^\s*$/)&&se(re,tt,Ne)!=="indented"){tt-=1;break}}var Po=re.getLineHandle(tt+1),_r=Po&&re.getTokenAt({line:tt+1,ch:Po.text.length-1}),Ba=_r&&te(_r).indentedCode;Ba&&re.replaceRange(`
103`,{line:tt+1,ch:0});for(var Kn=qe;Kn<=tt;Kn++)re.indentLine(Kn,"subtract");re.focus()}else{var Na=ue.line===Q.line&&ue.ch===Q.ch&&ue.ch===0,Ha=ue.line!==Q.line;Na||Ha?Ce(re,ue,Q,W):vt(re,!1,["`","`"])}}function w(_){pt(_.codemirror,"quote")}function xe(_){ot(_.codemirror,"smaller")}function De(_){ot(_.codemirror,"bigger")}function Ke(_){ot(_.codemirror,void 0,1)}function ye(_){ot(_.codemirror,void 0,2)}function _e(_){ot(_.codemirror,void 0,3)}function ie(_){ot(_.codemirror,void 0,4)}function me(_){ot(_.codemirror,void 0,5)}function Y(_){ot(_.codemirror,void 0,6)}function Ee(_){var W=_.codemirror,K="*";["-","+","*"].includes(_.options.unorderedListStyle)&&(K=_.options.unorderedListStyle),pt(W,"unordered-list",K)}function we(_){pt(_.codemirror,"ordered-list")}function Ie(_){pt(_.codemirror,"check-list")}function nt(_){rt(_.codemirror)}function at(_){var W=_.options,K="https://";if(W.promptURLs){var te=prompt(W.promptTexts.link,K);if(!te)return!1;K=j(te)}gt(_,"link",W.insertTexts.link,K)}function ut(_){var W=_.options,K="https://";if(W.promptURLs){var te=prompt(W.promptTexts.image,K);if(!te)return!1;K=j(te)}gt(_,"image",W.insertTexts.image,K)}function j(_){return encodeURI(_).replace(/([\\()])/g,"\\$1")}function I(_){_.openBrowseFileWindow()}function pe(_,W){var K=_.codemirror,te=M(K),se=_.options,Ce=W.substr(W.lastIndexOf("/")+1),re=Ce.substring(Ce.lastIndexOf(".")+1).replace(/\?.*$/,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(re))vt(K,te.image,se.insertTexts.uploadedImage,W);else{var ue=se.insertTexts.link;ue[0]="["+Ce,vt(K,te.link,ue,W)}_.updateStatusBar("upload-image",_.options.imageTexts.sbOnUploaded.replace("#image_name#",Ce)),setTimeout(function(){_.updateStatusBar("upload-image",_.options.imageTexts.sbInit)},1e3)}function ze(_){var W=_.codemirror,K=M(W),te=_.options;vt(W,K.table,te.insertTexts.table)}function Re(_){var W=_.codemirror,K=M(W),te=_.options;vt(W,K.image,te.insertTexts.horizontalRule)}function We(_){var W=_.codemirror;
103W.undo(),W.focus()}function ct(_){var W=_.codemirror;W.redo(),W.focus()}function ft(_){var W=_.codemirror,K=W.getWrapperElement(),te=K.nextSibling,se=_.toolbarElements&&_.toolbarElements["side-by-side"],Ce=!1,re=K.parentNode;te.classList.contains("editor-preview-active-side")?(_.options.sideBySideFullscreen===!1&&re.classList.remove("sided--no-fullscreen"),te.classList.remove("editor-preview-active-side"),se&&se.classList.remove("active"),K.classList.remove("CodeMirror-sided")):(setTimeout(function(){W.getOption("fullScreen")||(_.options.sideBySideFullscreen===!1?re.classList.add("sided--no-fullscreen"):L(_)),te.classList.add("editor-preview-active-side")},1),se&&se.classList.add("active"),K.classList.add("CodeMirror-sided"),Ce=!0);var ue=K.lastChild;if(ue.classList.contains("editor-preview-active")){ue.classList.remove("editor-preview-active");var Q=_.toolbarElements.preview,je=_.toolbar_div;Q.classList.remove("active"),je.classList.remove("disabled-for-preview")}var Ne=function(){var qe=_.options.previewRender(_.value(),te);qe!=null&&(te.innerHTML=qe)};if(W.sideBySideRenderingFunction||(W.sideBySideRenderingFunction=Ne),Ce){var Qe=_.options.previewRender(_.value(),te);Qe!=null&&(te.innerHTML=Qe),W.on("update",W.sideBySideRenderingFunction)}else W.off("update",W.sideBySideRenderingFunction);W.refresh()}function St(_){var W=_.codemirror,K=W.getWrapperElement(),te=_.toolbar_div,se=_.options.toolbar?_.toolbarElements.preview:!1,Ce=K.lastChild,re=W.getWrapperElement().nextSibling;if(re.classList.contains("editor-preview-active-side")&&ft(_),!Ce||!Ce.classList.contains("editor-preview-full")){if(Ce=document.createElement("div"),Ce.className="editor-preview-full",_.options.previewClass)if(Array.isArray(_.options.previewClass))for(var ue=0;ue<_.options.previewClass.length;ue++)Ce.classList.add(_.options.previewClass[ue]);else typeof _.options.previewClass=="string"&&Ce.classList.add(_.options.previewClass);K.appendChild(Ce)}Ce.classList.contains("editor-preview-active")?(Ce.classList.remove("editor-preview-active"),se&&(se.classList.remove("active"),te.classList.remove("disabled-for-preview"))):(setTimeout(function(){Ce.classList.add("editor-preview-active")},1),se&&(se.classList.add("active"),te.classList.add("disabled-for-preview")));var Q=_.options.previewRender(_.value(),Ce);Q!==null&&(Ce.innerHTML=Q)}function vt(_,W,K,te){if(!_.getWrapperElement().lastChild.classList.contains("editor-preview-active")){var se,Ce=K[0],re=K[1],ue={},Q={};Object.assign(ue,_.getCursor("start")),Object.assign(Q,_.getCursor("end")),te&&(Ce=Ce.replace("#url#",te),re=re.replace("#url#",te)),W?(se=_.getLine(ue.line),Ce=se.slice(0,ue.ch),re=se.slice(ue.ch),_.replaceRange(Ce+re,{line:ue.line,ch:0})):(se=_.getSelection(),_.replaceSelection(Ce+se+re),ue.ch+=Ce.length,ue!==Q&&(Q.ch+=Ce.length)),_.setSelection(ue,Q),_.focus()}}function ot(_,W,K){if(!_.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var te=_.getCursor("start"),se=_.getCursor("end"),Ce=te.line;Ce<=se.line;Ce++)(function(re){var ue=_.getLine(re),Q=ue.search(/[^#]/);W!==void 0?Q<=0?W=="bigger"?ue="###### "+ue:ue="# "+ue:Q==6&&W=="smaller"?ue=ue.substr(7):Q==1&&W=="bigger"?ue=ue.substr(2):W=="bigger"?ue=ue.substr(1):ue="#"+ue:Q<=0?ue="#".repeat(K)+" "+ue:Q==K?ue=ue.substr(Q+1):ue="#".repeat(K)+" "+ue.substr(Q+1),_.replaceRange(ue,{line:re,ch:0},{line:re,ch:99999999999999})})(Ce);_.focus()}}function pt(_,W,K){if(!_.getWrapperElement().lastChild.classList.contains("editor-preview-active")){var te=/^(\s*)(\*|-|\+|\d*\.)(\s+)/,se=/^\s*/,Ce=M(_),re=_.getCursor("start"),ue=_.getCursor("end"),Q={quote:/^(\s*)>\s+/,"unordered-list":te,"ordered-list":te,"check-list":/^(\s*)(- \[[ xX]])(\s+)/},je=function(Ot,Et){var Wt={quote:">","unordered-list":K,"ordered-list":"%%i.","check-list":"- [ ]"};return Wt[Ot].replace("%%i",Et)},Ne=function(Ot,Et){var Wt={quote:">","unordered-list":"\\"+K,"ordered-list":"\\d+.","check-list":"- \\[[ xX]]"},ti=new RegExp(Wt[Ot]);return Et&&ti.test(Et)},Qe=function(Ot,Et,Wt){var ti=te.exec(Et),Jt=je(Ot,qe);return ti!==null?(Ne(Ot,ti[2])&&(Jt=""),Et=ti[1]+Jt+ti[3]+Et.replace(se,"").replace(Q[Ot],"$1")):Et=Jt+" "+Et,Et},qe=1,tt=["unordered-list","ordered-list","check-list"],yt=Object.keys(Ce)[0];if(!tt.includes(yt)){var Nt=_.getLine(re.line);/^\s*- \[[ xX]]\s/.test(Nt)?yt="check-list":/^\s*\d+\.\s/.test(Nt)?yt="ordered-list":/^\s*[*\-+]\s/.test(Nt)&&(yt="unordered-list")}for(var dt=re.line;dt<=ue.line;dt++)(function(Ot){var Et=_.getLine(Ot);Ce[W]?Et=Et.replace(Q[W],"$1"):tt.includes(yt)&&tt.includes(W)?(Et=Et.replace(Q[yt],"$1"),Et=Qe(W,Et),qe+=1):(Et=Qe(W,
103Et),qe+=1),_.replaceRange(Et,{line:Ot,ch:0},{line:Ot,ch:99999999999999})})(dt);_.focus()}}function gt(_,W,K,te){if(!(!_.codemirror||_.isPreviewActive())){var se=_.codemirror,Ce=M(se),re=Ce[W];if(!re){vt(se,re,K,te);return}var ue=se.getCursor("start"),Q=se.getCursor("end"),je=se.getLine(ue.line),Ne=je.slice(0,ue.ch),Qe=je.slice(ue.ch);W=="link"?Ne=Ne.replace(/(.*)[^!]\[/,"$1"):W=="image"&&(Ne=Ne.replace(/(.*)!\[$/,"$1")),Qe=Qe.replace(/]\(.*?\)/,""),se.replaceRange(Ne+Qe,{line:ue.line,ch:0},{line:ue.line,ch:99999999999999}),ue.ch-=K[0].length,ue!==Q&&(Q.ch-=K[0].length),se.setSelection(ue,Q),se.focus()}}function $e(_,W,K,te){if(!(!_.codemirror||_.isPreviewActive())){te=typeof te>"u"?K:te;var se=_.codemirror,Ce=M(se),re,ue=K,Q=te,je=se.getCursor("start"),Ne=se.getCursor("end");Ce[W]?(re=se.getLine(je.line),ue=re.slice(0,je.ch),Q=re.slice(je.ch),W=="bold"?(ue=ue.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),Q=Q.replace(/(\*\*|__)/,"")):W=="italic"?(ue=ue.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),Q=Q.replace(/(\*|_)/,"")):W=="strikethrough"&&(ue=ue.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),Q=Q.replace(/(\*\*|~~)/,"")),se.replaceRange(ue+Q,{line:je.line,ch:0},{line:je.line,ch:99999999999999}),W=="bold"||W=="strikethrough"?(je.ch-=2,je!==Ne&&(Ne.ch-=2)):W=="italic"&&(je.ch-=1,je!==Ne&&(Ne.ch-=1))):(re=se.getSelection(),W=="bold"?(re=re.split("**").join(""),re=re.split("__").join("")):W=="italic"?(re=re.split("*").join(""),re=re.split("_").join("")):W=="strikethrough"&&(re=re.split("~~").join("")),se.replaceSelection(ue+re+Q),je.ch+=K.length,Ne.ch=je.ch+re.length),se.setSelection(je,Ne),se.focus()}}function rt(_){if(!_.getWrapperElement().lastChild.classList.contains("editor-preview-active"))for(var W=_.getCursor("start"),K=_.getCursor("end"),te,se=W.line;se<=K.line;se++)te=_.getLine(se),te=te.replace(/^[ ]*([# ]+|\*|-|[> ]+|[0-9]+(.|\)))[ ]*/,""),_.replaceRange(te,{line:se,ch:0},{line:se,ch:99999999999999})}function Ht(_,W){if(Math.abs(_)<1024)return""+_+W[0];var K=0;do _/=1024,++K;while(Math.abs(_)>=1024&&K<W.length);return""+_.toFixed(1)+W[K]}function Xt(_,W){for(var K in W)Object.prototype.hasOwnProperty.call(W,K)&&(W[K]instanceof Array?_[K]=W[K].concat(_[K]instanceof Array?_[K]:[]):W[K]!==null&&typeof W[K]=="object"&&W[K].constructor===Object?_[K]=Xt(_[K]||{},W[K]):_[K]=W[K]);return _}function Qt(_){for(var W=1;W<arguments.length;W++)_=Xt(_,arguments[W]);return _}function Tt(_){var W=/[a-zA-Z0-9_\u00A0-\u02AF\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,K=_.match(W),te=0;if(K===null)return te;for(var se=0;se<K.length;se++)K[se].charCodeAt(0)>=19968?te+=K[se].length:te+=1;return te}var Ft={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","check-list":"fa fa-check-square-o","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},Yt={bold:{name:"bold",action:H,className:Ft.bold,title:"Bold",default:!0},italic:{name:"italic",action:U,className:Ft.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:ee,className:Ft.strikethrough,title:"Strikethrough"},heading:{name:"heading",action:xe,className:Ft.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:xe,className:Ft["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:De,className:Ft["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:Ke,className:Ft["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:ye,className:Ft["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:_e,className:Ft["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:Z,className:Ft.code,title:"Code"},quote:{name:"quote",action:w,className:Ft.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:Ee,className:Ft["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:we,className:Ft["ordered-list"],title:"Numbered List",default:!0},"check-list":{name:"check-list",action:Ie,className:Ft["check-list"],title:"Check List",default:!0},"clean-block":{name:"clean-block",action:nt,className:Ft["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:at,className:Ft.link,title:"Create Link",default:!0},image:{name:"image",action:ut,className:Ft.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:I,className:Ft["upload-image"],title:"Import an image"},table:{name:"table",action:ze,className:Ft.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:Re,className:Ft["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:St,className:Ft.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:ft,className:Ft["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:L,className:Ft.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:Ft.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:We,className:Ft.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:ct,className:Ft.redo,noDisable:!0,title:"Redo"}},cn={link:["[","](#url#)"],image:["![","](#url#)"],uploadedImage:["![](#url#)",""],table:["",`
104
105| Column 1 | Column 2 | Column 3 |
106| -------- | -------- | -------- |
107| Text     | Text     | Text     |
108
109`],horizontalRule:["",`
110
111-----
112
113`]},be={link:"URL for the link:",image:"URL of the image:"},le={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},ce={bold:"**",code:"```",italic:"*"},N={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},q={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:`Image #image_name# is too big (#image_size#).
114Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};function G(_){_=_||{},_.parent=this;var W=!0;if(_.autoDownloadFontAwesome===!1&&(W=!1),_.autoDownloadFontAwesome!==!0)for(var K=document.styleSheets,te=0;te<K.length;te++)K[te].href&&K[te].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(W=!1);if(W){var se=document.createElement("link");se.rel="stylesheet",se.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(se)}if(_.element)this.element=_.element;else if(_.element===null){console.log("EasyMDE: Error. No element was found.");return}if(_.toolbar===void 0){_.toolbar=[];for(var Ce in Yt)Object.prototype.hasOwnProperty.call(Yt,Ce)&&(Ce.indexOf("separator-")!=-1&&_.toolbar.push("|"),(Yt[Ce].default===!0||_.showIcons&&_.showIcons.constructor===Array&&_.showIcons.indexOf(Ce)!=-1)&&_.toolbar.push(Ce))}if(Object.prototype.hasOwnProperty.call(_,"previewClass")||(_.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(_,"status")||(_.status=["autosave","lines","words","cursor"],_.uploadImage&&_.status.unshift("upload-image")),_.previewRender||(_.previewRender=function(ue){return this.parent.markdown(ue)}),_.parsingConfig=Qt({highlightFormatting:!0},_.parsingConfig||{}),_.insertTexts=Qt({},cn,_.insertTexts||{}),_.promptTexts=Qt({},be,_.promptTexts||{}),_.blockStyles=Qt({},ce,_.blockStyles||{}),_.autosave!=null&&(_.autosave.timeFormat=Qt({},le,_.autosave.timeFormat||{})),_.iconClassMap=Qt({},Ft,_.iconClassMap||{}),_.shortcuts=Qt({},i,_.shortcuts||{}),_.maxHeight=_.maxHeight||void 0,_.direction=_.direction||"ltr",typeof _.maxHeight<"u"?_.minHeight=_.maxHeight:_.minHeight=_.minHeight||"300px",_.errorCallback=_.errorCallback||function(ue){alert(ue)},_.uploadImage=_.uploadImage||!1,_.imageMaxSize=_.imageMaxSize||2097152,_.imageAccept=_.imageAccept||"image/png, image/jpeg, image/gif, image/avif",_.imageTexts=Qt({},N,_.imageTexts||{}),_.errorMessages=Qt({},q,_.errorMessages||{}),_.imagePathAbsolute=_.imagePathAbsolute||!1,_.imageCSRFName=_.imageCSRFName||"csrfmiddlewaretoken",_.imageCSRFHeader=_.imageCSRFHeader||!1,_.imageInputName=_.imageInputName||"image",_.autosave!=null&&_.autosave.unique_id!=null&&_.autosave.unique_id!=""&&(_.autosave.uniqueId=_.autosave.unique_id),_.overlayMode&&_.overlayMode.combine===void 0&&(_.overlayMode.combine=!0),this.options=_,this.render(),_.initialValue&&(!this.options.autosave||this.options.autosave.foun
114dSavedValue!==!0)&&this.value(_.initialValue),_.uploadImage){var re=this;this.codemirror.on("dragenter",function(ue,Q){re.updateStatusBar("upload-image",re.options.imageTexts.sbOnDragEnter),Q.stopPropagation(),Q.preventDefault()}),this.codemirror.on("dragend",function(ue,Q){re.updateStatusBar("upload-image",re.options.imageTexts.sbInit),Q.stopPropagation(),Q.preventDefault()}),this.codemirror.on("dragleave",function(ue,Q){re.updateStatusBar("upload-image",re.options.imageTexts.sbInit),Q.stopPropagation(),Q.preventDefault()}),this.codemirror.on("dragover",function(ue,Q){re.updateStatusBar("upload-image",re.options.imageTexts.sbOnDragEnter),Q.stopPropagation(),Q.preventDefault()}),this.codemirror.on("drop",function(ue,Q){Q.stopPropagation(),Q.preventDefault(),_.imageUploadFunction?re.uploadImagesUsingCustomFunction(_.imageUploadFunction,Q.dataTransfer.files):re.uploadImages(Q.dataTransfer.files)}),this.codemirror.on("paste",function(ue,Q){_.imageUploadFunction?re.uploadImagesUsingCustomFunction(_.imageUploadFunction,Q.clipboardData.files):re.uploadImages(Q.clipboardData.files)})}}G.prototype.uploadImages=function(_,W,K){if(_.length!==0){for(var te=[],se=0;se<_.length;se++)te.push(_[se].name),this.uploadImage(_[se],W,K);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",te.join(", ")))}},G.prototype.uploadImagesUsingCustomFunction=function(_,W){if(W.length!==0){for(var K=[],te=0;te<W.length;te++)K.push(W[te].name),this.uploadImageUsingCustomFunction(_,W[te]);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",K.join(", ")))}},G.prototype.updateStatusBar=function(_,W){if(this.gui.statusbar){var K=this.gui.statusbar.getElementsByClassName(_);K.length===1?this.gui.statusbar.getElementsByClassName(_)[0].textContent=W:K.length===0?console.log("EasyMDE: status bar item "+_+" was not found."):console.log("EasyMDE: Several status bar items named "+_+" was found.")}},G.prototype.markdown=function(_){if(c){var W;if(this.options&&this.options.renderingConfig&&this.options.renderingConfig.markedOptions?W=this.options.renderingConfig.markedOptions:W={},this.options&&this.options.renderingConfig&&this.options.renderingConfig.singleLineBreaks===!1?W.breaks=!1:W.breaks=!0,this.options&&this.options.renderingConfig&&this.options.renderingConfig.codeSyntaxHighlighting===!0){var K=this.options.renderingConfig.hljs||window.hljs;K&&(W.highlight=function(se,Ce){return Ce&&K.getLanguage(Ce)?K.highlight(Ce,se).value:K.highlightAuto(se).value})}c.use(W);var te=c.parse(_);return this.options.renderingConfig&&typeof this.options.renderingConfig.sanitizerFunction=="function"&&(te=this.options.renderingConfig.sanitizerFunction.call(this,te)),te=f(te),te=p(te),te}},G.prototype.render=function(_){if(_||(_=this.element||document.getElementsByTagName("textarea")[0]),this._rendered&&this._rendered===_)return;this.element=_;var W=this.options,K=this,te={};for(var se in W.shortcuts)W.shortcuts[se]!==null&&t[se]!==null&&(function(dt){te[v(W.shortcuts[dt])]=function(){var Ot=t[dt];typeof Ot=="function"?Ot(K):typeof Ot=="string"&&window.open(Ot,"_blank")}})(se);te.Enter="newlineAndIndentContinueMarkdownList",te.Tab="tabAndIndentMarkdownList",te["Shift-Tab"]="shiftTabAndUnindentMarkdownList",te.Esc=function(dt){dt.getOption("fullScreen")&&L(K)},this.documentOnKeyDown=function(dt){dt=dt||window.event,dt.keyCode==27&&K.codemirror.getOption("fullScreen")&&L(K)},document.addEventListener("keydown",this.documentOnKeyDown,!1);var Ce,re;W.overlayMode?(n.defineMode("overlay-mode",function(dt){return n.overlayMode(n.getMode(dt,W.spellChecker!==!1?"spell-checker":"gfm"),W.overlayMode.mode,W.overlayMode.combine)}),Ce="overlay-mode",re=W.parsingConfig,re.gitHubSpice=!1):(Ce=W.parsingConfig,Ce.name="gfm",Ce.gitHubSpice=!1),W.spellChecker!==!1&&(Ce="spell-checker",re=W.parsingConfig,re.name="gfm",re.gitHubSpice=!1,typeof W.spellChecker=="function"?W.spellChecker({codeMirrorInstance:n}):l({codeMirrorInstance:n}));function ue(dt,Ot,Et){return{addNew:!1}}if(this.codemirror=n.fromTextArea(_,{mode:Ce,backdrop:re,theme:W.theme!=null?W.theme:"easymde",tabSize:W.tabSize!=null?W.tabSize:2,indentUnit:W.tabSize!=null?W.tabSize:2,indentWithTabs:W.indentWithTabs!==!1,lineNumbers:W.lineNumbers===!0,autofocus:W.autofocus===!0,extraKeys:te,direction:W.direction,lineWrapping:W.lineWrapping!==!1,allowDropFileTypes:["text/plain"],placeholder:W.placeholder||_.getAttribute("placeholder")||"",styleSelectedText:W.styleSelectedText!=null?W.styleSelectedText:!u(),scrollbarStyle:W.scrollbarStyle!=null?W.scrollbarStyle:"native",configureMouse:ue,inputStyle:W.inputStyle!=null?W.inputStyle:u()?"contenteditable":"textarea",spellcheck:W.nativeSpellcheck!=null?W.nativeSpellcheck:!0,autoRefresh:W.autoRefresh!=null?W.autoRefresh:!1}),this.codemirror.getScrollerElement().style.minHeight=W.minHeight,typeof W.maxHeight<"u"&&(this.codemirror.getScrollerElement().style.height=W.maxHeight),W.forceSync===!0){var Q=this.codemirror;Q.on("change",function(){Q.save()})}this.gui={};var je=document.createElement("div");je.classList.add("EasyMDEContainer"),je.setAttribute("role","application");var Ne=this.codemirror.getWrapperElement();Ne.parentNode.insertBefore(je,Ne),je.appendChild(Ne),W.toolbar!==!1&&(this.gui.toolbar=this.createToolbar()),W.status!==!1&&(this.gui.statusbar=this.createStatusbar()),W.autosave!=null&&W.autosave.enabled===!0&&(this.autosave(),this.codemirror.on("change",function(){clearTimeout(K._autosave_timeout),K._autosave_timeout=setTimeout(function(){K.autosave()},K.options.autosave.submit_delay||K.options.autosave.delay||1e3)}));function Qe(dt,Ot){var Et,Wt=window.getComputedStyle(document.querySelector(".CodeMirror-sizer")).width.replace("px","");return dt<Wt?Et=Ot+"px":Et=Ot/dt*100+"%",Et}var qe=this;function tt(dt,Ot){var Et=new URL(Ot.url,document.baseURI).href;dt.setAttribute("data-img-src",Et),dt.setAttribute("style","--bg-image:url("+Et+");
114--width:"+Ot.naturalWidth+"px;--height:"+Qe(Ot.naturalWidth,Ot.naturalHeight)),qe.codemirror.setSize()}function yt(){W.previewImagesInEditor&&je.querySelectorAll(".cm-image-marker").forEach(function(dt){var Ot=dt.parentElement;if(Ot.innerText.match(/^!\[.*?\]\(.*\)/g)&&!Ot.hasAttribute("data-img-src")){var Et=Ot.innerText.match(/!\[.*?\]\((.*?)\)/);if(window.EMDEimagesCache||(window.EMDEimagesCache={}),Et&&Et.length>=2){var Wt=Et[1];if(W.imagesPreviewHandler){var ti=W.imagesPreviewHandler(Et[1]);typeof ti=="string"&&(Wt=ti)}if(window.EMDEimagesCache[Wt])tt(Ot,window.EMDEimagesCache[Wt]);else{window.EMDEimagesCache[Wt]={};var Jt=document.createElement("img");Jt.onload=function(){window.EMDEimagesCache[Wt]={naturalWidth:Jt.naturalWidth,naturalHeight:Jt.naturalHeight,url:Wt},tt(Ot,window.EMDEimagesCache[Wt])},Jt.src=Wt}}}})}this.codemirror.on("update",function(){yt()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(W.autofocus===!0||_.autofocus)&&this.codemirror.focus();var Nt=this.codemirror;setTimeout((function(){Nt.refresh()}).bind(Nt),0)},G.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};function oe(){if(typeof localStorage=="object")try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch{return!1}else return!1;return!0}return G.prototype.autosave=function(){if(oe()){var _=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(_.element.form!=null&&_.element.form!=null&&_.element.form.addEventListener("submit",function(){clearTimeout(_.autosaveTimeoutId),_.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+_.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var W=_.value();W!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,W):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var K=document.getElementById("autosaved");if(K!=null&&K!=null&&K!=""){var te=new Date,se=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(te),Ce=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;K.innerHTML=Ce+se}}else console.log("EasyMDE: localStorage not available, cannot autosave")},G.prototype.clearAutosavedValue=function(){if(oe()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")},G.prototype.openBrowseFileWindow=function(_,W){var K=this,te=this.gui.toolbar.getElementsByClassName("imageInput")[0];te.click();function se(Ce){K.options.imageUploadFunction?K.uploadImagesUsingCustomFunction(K.options.imageUploadFunction,Ce.target.files):K.uploadImages(Ce.target.files,_,W),te.removeEventListener("change",se)}te.addEventListener("change",se)},G.prototype.uploadImage=function(_,W,K){var te=this;W=W||function(je){pe(te,je)};function se(Q){te.updateStatusBar("upload-image",Q),setTimeout(function(){te.updateStatusBar("upload-image",te.options.imageTexts.sbInit)},1e4),K&&typeof K=="function"&&K(Q),te.options.errorCallback(Q)}function Ce(Q){var je=te.options.imageTexts.sizeUnits.split(",");return Q.replace("#image_name#",_.name).replace("#image_size#",Ht(_.size,je)).replace("#image_max_size#",Ht(te.options.imageMaxSize,je))}if(_.size>this.options.imageMaxSize){se(Ce(this.options.errorMessages.fileTooLarge));return}var re=new FormData;re.append("image",_),te.options.imageCSRFToken&&!te.options.imageCSRFHeader&&re.append(te.options.imageCSRFName,te.options.imageCSRFToken);var ue=new XMLHttpRequest;ue.upload.onprogress=function(Q){if(Q.lengthComputable){var je=""+Math.round(Q.loaded*100/Q.total);te.updateStatusBar("upload-image",te.options.imageTexts.sbProgress.replace("#file_name#",_.name).replace("#progress#",je))}},ue.open("POST",this.options.imageUploadEndpoint),te.options.imageCSRFToken&&te.options.imageCSRFHeader&&ue.setRequestHeader(te.options.imageCSRFName,te.options.imageCSRFToken),ue.onload=function(){try{var Q=JSON.parse(this.responseText)}catch{console.error("EasyMDE: The server did not return a valid json."),se(Ce(te.options.errorMessages.importError));return}this.status===200&&Q&&!Q.error&&Q.data&&Q.data.filePath?W((te.options.imagePathAbsolute?"":window.location.origin+"/")+Q.data.filePath):Q.error&&Q.error in te.options.errorMessages?se(Ce(te.options.errorMessages[Q.error])):
114Q.error?se(Ce(Q.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),se(Ce(te.options.errorMessages.importError)))},ue.onerror=function(Q){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+Q.target.status+" ("+Q.target.statusText+")"),se(te.options.errorMessages.importError)},ue.send(re)},G.prototype.uploadImageUsingCustomFunction=function(_,W){var K=this;function te(re){pe(K,re)}function se(re){var ue=Ce(re);K.updateStatusBar("upload-image",ue),setTimeout(function(){K.updateStatusBar("upload-image",K.options.imageTexts.sbInit)},1e4),K.options.errorCallback(ue)}function Ce(re){var ue=K.options.imageTexts.sizeUnits.split(",");return re.replace("#image_name#",W.name).replace("#image_size#",Ht(W.size,ue)).replace("#image_max_size#",Ht(K.options.imageMaxSize,ue))}_.apply(this,[W,te,se])},G.prototype.setPreviewMaxHeight=function(){var _=this.codemirror,W=_.getWrapperElement(),K=W.nextSibling,te=parseInt(window.getComputedStyle(W).paddingTop),se=parseInt(window.getComputedStyle(W).borderTopWidth),Ce=parseInt(this.options.maxHeight),re=Ce+te*2+se*2,ue=re.toString()+"px";K.style.height=ue},G.prototype.createSideBySide=function(){var _=this.codemirror,W=_.getWrapperElement(),K=W.nextSibling;if(!K||!K.classList.contains("editor-preview-side")){if(K=document.createElement("div"),K.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var te=0;te<this.options.previewClass.length;te++)K.classList.add(this.options.previewClass[te]);else typeof this.options.previewClass=="string"&&K.classList.add(this.options.previewClass);W.parentNode.insertBefore(K,W.nextSibling)}if(typeof this.options.maxHeight<"u"&&this.setPreviewMaxHeight(),this.options.syncSideBySidePreviewScroll===!1)return K;var se=!1,Ce=!1;return _.on("scroll",function(re){if(se){se=!1;return}Ce=!0;var ue=re.getScrollInfo().height-re.getScrollInfo().clientHeight,Q=parseFloat(re.getScrollInfo().top)/ue,je=(K.scrollHeight-K.clientHeight)*Q;K.scrollTop=je}),K.onscroll=function(){if(Ce){Ce=!1;return}se=!0;var re=K.scrollHeight-K.clientHeight,ue=parseFloat(K.scrollTop)/re,Q=(_.getScrollInfo().height-_.getScrollInfo().clientHeight)*ue;_.scrollTo(0,Q)},K},G.prototype.createToolbar=function(_){if(_=_||this.options.toolbar,!(!_||_.length===0)){var W;for(W=0;W<_.length;W++)Yt[_[W]]!=null&&(_[W]=Yt[_[W]]);var K=document.createElement("div");K.className="editor-toolbar",K.setAttribute("role","toolbar");var te=this,se={};for(te.toolbar=_,W=0;W<_.length;W++)if(!(_[W].name=="guide"&&te.options.toolbarGuideIcon===!1)&&!(te.options.hideIcons&&te.options.hideIcons.indexOf(_[W].name)!=-1)&&!((_[W].name=="fullscreen"||_[W].name=="side-by-side")&&u())){if(_[W]==="|"){for(var Ce=!1,re=W+1;re<_.length;re++)_[re]!=="|"&&(!te.options.hideIcons||te.options.hideIcons.indexOf(_[re].name)==-1)&&(Ce=!0);if(!Ce)continue}(function(je){var Ne;if(je==="|"?Ne=D():je.children?Ne=y(je,te.options.toolbarTips,te.options.shortcuts,te):Ne=S(je,!0,te.options.toolbarTips,te.options.shortcuts,"button",te),se[je.name||je]=Ne,K.appendChild(Ne),je.name==="upload-image"){var Qe=document.createElement("input");Qe.className="imageInput",Qe.type="file",Qe.multiple=!0,Qe.name=te.options.imageInputName,Qe.accept=te.options.imageAccept,Qe.style.display="none",Qe.style.opacity=0,K.appendChild(Qe)}})(_[W])}te.toolbar_div=K,te.toolbarElements=se;var ue=this.codemirror;ue.on("cursorActivity",function(){var je=M(ue);for(var Ne in se)(function(Qe){var qe=se[Qe];je[Qe]?qe.classList.add("active"):Qe!="fullscreen"&&Qe!="side-by-side"&&qe.classList.remove("active")})(Ne)});var Q=ue.getWrapperElement();return Q.parentNode.insertBefore(K,Q),K}},G.prototype.createStatusbar=function(_){_=_||this.options.status;var W=this.options,K=this.codemirror;if(!(!_||_.length===0)){var te=[],se,Ce,re,ue;for(se=0;se<_.length;se++)if(Ce=void 0,re=void 0,ue=void 0,typeof _[se]=="object")te.push({className:_[se].className,defaultValue:_[se].defaultValue,onUpdate:_[se].onUpdate,onActivity:_[se].onActivity});else{var Q=_[se];Q==="words"?(ue=function(tt){tt.innerHTML=Tt(K.getValue())},Ce=function(tt){tt.innerHTML=Tt(K.getValue())}):Q==="lines"?(ue=function(tt){tt.innerHTML=K.lineCount()},Ce=function(tt){tt.innerHTML=K.lineCount()}
114):Q==="cursor"?(ue=function(tt){tt.innerHTML="1:1"},re=function(tt){var yt=K.getCursor(),Nt=yt.line+1,dt=yt.ch+1;tt.innerHTML=Nt+":"+dt}):Q==="autosave"?ue=function(tt){W.autosave!=null&&W.autosave.enabled===!0&&tt.setAttribute("id","autosaved")}:Q==="upload-image"&&(ue=function(tt){tt.innerHTML=W.imageTexts.sbInit}),te.push({className:Q,defaultValue:ue,onUpdate:Ce,onActivity:re})}var je=document.createElement("div");for(je.className="editor-statusbar",se=0;se<te.length;se++){var Ne=te[se],Qe=document.createElement("span");Qe.className=Ne.className,typeof Ne.defaultValue=="function"&&Ne.defaultValue(Qe),typeof Ne.onUpdate=="function"&&this.codemirror.on("update",(function(tt,yt){return function(){yt.onUpdate(tt)}})(Qe,Ne)),typeof Ne.onActivity=="function"&&this.codemirror.on("cursorActivity",(function(tt,yt){return function(){yt.onActivity(tt)}})(Qe,Ne)),je.appendChild(Qe)}var qe=this.codemirror.getWrapperElement();return qe.parentNode.insertBefore(je,qe.nextSibling),je}},G.prototype.value=function(_){var W=this.codemirror;if(_===void 0)return W.getValue();if(W.getDoc().setValue(_),this.isPreviewActive()){var K=W.getWrapperElement(),te=K.lastChild,se=this.options.previewRender(_,te);se!==null&&(te.innerHTML=se)}return this},G.toggleBold=H,G.toggleItalic=U,G.toggleStrikethrough=ee,G.toggleBlockquote=w,G.toggleHeadingSmaller=xe,G.toggleHeadingBigger=De,G.toggleHeading1=Ke,G.toggleHeading2=ye,G.toggleHeading3=_e,G.toggleHeading4=ie,G.toggleHeading5=me,G.toggleHeading6=Y,G.toggleCodeBlock=Z,G.toggleUnorderedList=Ee,G.toggleOrderedList=we,G.toggleCheckList=Ie,G.cleanBlock=nt,G.drawLink=at,G.drawImage=ut,G.drawUploadedImage=I,G.drawTable=ze,G.drawHorizontalRule=Re,G.undo=We,G.redo=ct,G.togglePreview=St,G.toggleSideBySide=ft,G.toggleFullScreen=L,G.prototype.toggleBold=function(){H(this)},G.prototype.toggleItalic=function(){U(this)},G.prototype.toggleStrikethrough=function(){ee(this)},G.prototype.toggleBlockquote=function(){w(this)},G.prototype.toggleHeadingSmaller=function(){xe(this)},G.prototype.toggleHeadingBigger=function(){De(this)},G.prototype.toggleHeading1=function(){Ke(this)},G.prototype.toggleHeading2=function(){ye(this)},G.prototype.toggleHeading3=function(){_e(this)},G.prototype.toggleHeading4=function(){ie(this)},G.prototype.toggleHeading5=function(){me(this)},G.prototype.toggleHeading6=function(){Y(this)},G.prototype.toggleCodeBlock=function(){Z(this)},G.prototype.toggleUnorderedList=function(){Ee(this)},G.prototype.toggleOrderedList=function(){we(this)},G.prototype.toggleCheckList=function(){Ie(this)},G.prototype.cleanBlock=function(){nt(this)},G.prototype.drawLink=function(){at(this)},G.prototype.drawImage=function(){ut(this)},G.prototype.drawUploadedImage=function(){I(this)},G.prototype.drawTable=function(){ze(this)},G.prototype.drawHorizontalRule=function(){Re(this)},G.prototype.undo=function(){We(this)},G.prototype.redo=function(){ct(this)},G.prototype.togglePreview=function(){St(this)},G.prototype.toggleSideBySide=function(){ft(this)},G.prototype.toggleFullScreen=function(){L(this)},G.prototype.isPreviewActive=function(){var _=this.codemirror,W=_.getWrapperElement(),K=W.lastChild;return K.classList.contains("editor-preview-active")},G.prototype.isSideBySideActive=function(){var _=this.codemirror,W=_.getWrapperElement(),K=W.nextSibling;return K.classList.contains("editor-preview-active-side")},G.prototype.isFullscreenActive=function(){var _=this.codemirror;return _.getOption("fullScreen")},G.prototype.getState=function(){var _=this.codemirror;return M(_)},G.prototype.toTextArea=function(){var _=this.codemirror,W=_.getWrapperElement(),K=W.parentNode;K&&(this.gui.toolbar&&K.removeChild(this.gui.toolbar),this.gui.statusbar&&K.removeChild(this.gui.statusbar),this.gui.sideBySide&&K.removeChild(this.gui.sideBySide)),K.parentNode.insertBefore(W,K),K.remove(),_.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())},Wc=G,Wc}var FC=TC();const Ev=Oa(FC);function og(n,l){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);l&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),c.push.apply(c,s)}return c}function Sv(n){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};
114l%2?og(Object(c),!0).forEach(function(s){IC(n,s,c[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(c)):og(Object(c)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(c,s))})}return n}function OC(n,l){if(typeof n!="object"||!n)return n;var c=n[Symbol.toPrimitive];if(c!==void 0){var s=c.call(n,l);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function Dv(n){var l=OC(n,"string");return typeof l=="symbol"?l:l+""}function wf(n){"@babel/helpers - typeof";return wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},wf(n)}function LC(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function ag(n,l){for(var c=0;c<l.length;c++){var s=l[c];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,Dv(s.key),s)}}function MC(n,l,c){return l&&ag(n.prototype,l),c&&ag(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n}function IC(n,l,c){return l=Dv(l),l in n?Object.defineProperty(n,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[l]=c,n}function Av(n){return RC(n)||PC(n)||BC(n)||NC()}function RC(n){if(Array.isArray(n))return Cf(n)}function PC(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function BC(n,l){if(n){if(typeof n=="string")return Cf(n,l);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Cf(n,l)}}function Cf(n,l){(l==null||l>n.length)&&(l=n.length);for(var c=0,s=new Array(l);c<l;c++)s[c]=n[c];return s}function NC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
115In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ou=typeof window<"u"&&typeof window.document<"u",ur=Ou?window:{},pd=Ou&&ur.document.documentElement?"ontouchstart"in ur.document.documentElement:!1,gd=Ou?"PointerEvent"in ur:!1,fi="cropper",md="all",_v="crop",kv="move",Tv="zoom",po="e",go="w",pa="s",qr="n",Ts="ne",Fs="nw",Os="se",Ls="sw",Ef="".concat(fi,"-crop"),sg="".concat(fi,"-disabled"),mn="".concat(fi,"-hidden"),lg="".concat(fi,"-hide"),HC="".concat(fi,"-invisible"),gu="".concat(fi,"-modal"),Sf="".concat(fi,"-move"),Ks="".concat(fi,"Action"),$l="".concat(fi,"Preview"),vd="crop",Fv="move",Ov="none",Df="crop",Af="cropend",_f="cropmove",kf="cropstart",ug="dblclick",zC=pd?"touchstart":"mousedown",jC=pd?"touchmove":"mousemove",WC=pd?"touchend touchcancel":"mouseup",cg=gd?"pointerdown":zC,fg=gd?"pointermove":jC,dg=gd?"pointerup pointercancel":WC,hg="ready",pg="resize",gg="wheel",Tf="zoom",mg="image/jpeg",$C=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,qC=/^data:/,UC=/^data:image\/jpeg;base64,/,GC=/^img|canvas$/i,Lv=200,Mv=100,vg={viewMode:0,dragMode:vd,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:Lv,minContainerHeight:Mv,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},XC='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>
115',YC=Number.isNaN||ur.isNaN;function Gt(n){return typeof n=="number"&&!YC(n)}var yg=function(l){return l>0&&l<1/0};function $c(n){return typeof n>"u"}function Io(n){return wf(n)==="object"&&n!==null}var KC=Object.prototype.hasOwnProperty;function ba(n){if(!Io(n))return!1;try{var l=n.constructor,c=l.prototype;return l&&c&&KC.call(c,"isPrototypeOf")}catch{return!1}}function gn(n){return typeof n=="function"}var VC=Array.prototype.slice;function Iv(n){return Array.from?Array.from(n):VC.call(n)}function ki(n,l){return n&&gn(l)&&(Array.isArray(n)||Gt(n.length)?Iv(n).forEach(function(c,s){l.call(n,c,s,n)}):Io(n)&&Object.keys(n).forEach(function(c){l.call(n,n[c],c,n)})),n}var di=Object.assign||function(l){for(var c=arguments.length,s=new Array(c>1?c-1:0),r=1;r<c;r++)s[r-1]=arguments[r];return Io(l)&&s.length>0&&s.forEach(function(t){Io(t)&&Object.keys(t).forEach(function(i){l[i]=t[i]})}),l},ZC=/\.\d*(?:0|9){12}\d*$/;function Ea(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return ZC.test(n)?Math.round(n*l)/l:n}var QC=/^width|height|left|top|marginLeft|marginTop$/;function Xr(n,l){var c=n.style;ki(l,function(s,r){QC.test(r)&&Gt(s)&&(s="".concat(s,"px")),c[r]=s})}function JC(n,l){return n.classList?n.classList.contains(l):n.className.indexOf(l)>-1}function Ni(n,l){if(l){if(Gt(n.length)){ki(n,function(s){Ni(s,l)});return}if(n.classList){n.classList.add(l);return}var c=n.className.trim();c?c.indexOf(l)<0&&(n.className="".concat(c," ").concat(l)):n.className=l}}function ar(n,l){if(l){if(Gt(n.length)){ki(n,function(c){ar(c,l)});return}if(n.classList){n.classList.remove(l);return}n.className.indexOf(l)>=0&&(n.className=n.className.replace(l,""))}}function xa(n,l,c){if(l){if(Gt(n.length)){ki(n,function(s){xa(s,l,c)});return}c?Ni(n,l):ar(n,l)}}var eE=/([a-z\d])([A-Z])/g;function yd(n){return n.replace(eE,"$1-$2").toLowerCase()}function Ff(n,l){return Io(n[l])?n[l]:n.dataset?n.dataset[l]:n.getAttribute("data-".concat(yd(l)))}function Vs(n,l,c){Io(c)?n[l]=c:n.dataset?n.dataset[l]=c:n.setAttribute("data-".concat(yd(l)),c)}function tE(n,l){if(Io(n[l]))try{delete n[l]}catch{n[l]=void 0}else if(n.dataset)try{delete n.dataset[l]}catch{n.dataset[l]=void 0}else n.removeAttribute("data-".concat(yd(l)))}var Rv=/\s\s*/,Pv=(function(){var n=!1;if(Ou){var l=!1,c=function(){},s=Object.defineProperty({},"once",{get:function(){return n=!0,l},set:function(t){l=t}});ur.addEventListener("test",c,s),ur.removeEventListener("test",c,s)}return n})();function qn(n,l,c){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=c;l.trim().split(Rv).forEach(function(t){if(!Pv){var i=n.listeners;i&&i[t]&&i[t][c]&&(r=i[t][c],delete i[t][c],Object.keys(i[t]).length===0&&delete i[t],Object.keys(i).length===0&&delete n.listeners)}n.removeEventListener(t,r,s)})}function Ln(n,l,c){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=c;l.trim().split(Rv).forEach(function(t){if(s.once&&!Pv){var i=n.listeners,o=i===void 0?{}:i;r=function(){delete o[t][c],n.removeEventListener(t,r,s);for(var f=arguments.length,p=new Array(f),v=0;v<f;v++)p[v]=arguments[v];c.apply(n,p)},o[t]||(o[t]={}),o[t][c]&&n.removeEventListener(t,o[t][c],s),o[t][c]=r,n.listeners=o}n.addEventListener(t,r,s)})}function Sa(n,l,c){var s;return gn(Event)&&gn(CustomEvent)?s=new CustomEvent(l,{detail:c,bubbles:!0,cancelable:!0}):(s=document.createEvent("CustomEvent"),s.initCustomEvent(l,!0,!0,c)),n.dispatchEvent(s)}function Bv(n){var l=n.getBoundingClientRect();return{left:l.left+(window.pageXOffset-document.documentElement.clientLeft),top:l.top+(window.pageYOffset-document.documentElement.clientTop)}}var qc=ur.location,iE=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function bg(n){var l=n.match(iE);return l!==null&&(l[1]!==qc.protocol||l[2]!==qc.hostname||l[3]!==qc.port)}function xg(n){var l="timestamp=".concat(new Date().getTime());return n+(n.indexOf("?")===-1?"?":"&")+l}function Hs(n){var l=n.rotate,c=n.scaleX,s=n.scaleY,r=n.translateX,t=n.translateY,i=[];Gt(r)&&r!==0&&i.push("translateX(".concat(r,"px)")),Gt(t)&&t!==0&&i.push("translateY(".concat(t,"px)")),Gt(l)&&l!==0&&i.push("rotate(".concat(l,"deg)")),Gt(c)&&c!==1&&i.push("scaleX(".concat(c,")")),Gt(s)&&s!==1&&i.push("scaleY(".concat(s,")"));var o=i.length?i.join(" "):"none";return{WebkitTransform:o,msTransform:o,transform:o}}function nE(n){var l=Sv({},n),c=0;return ki(n,function(s,r){delete l[r],ki(l,function(t){var i=Math.abs(s.startX-t.startX),o=Math.abs(s.startY-t.startY),u=Math.abs(s.endX-t.endX),f=Math.abs(s.endY-t.endY),p=Math.sqrt(i*i+o*o),v=Math.sqrt(u*u+f*f),y=(v-p)/p;Math.abs(y)>Math.abs(c)&&(c=y)})}),c}function ql(n,l){var c=n.pageX,s=n.pageY,r={endX:c,endY:s};return l?r:Sv({startX:c,startY:s},r)}function rE(n){var l=0,c=0,s=0;return ki(n,function(r){var t=r.startX,i=r.startY;l+=t,c+=i,s+=1}),l/=s,c/=s,{pageX:l,pageY:c}}function Yr(n){var l=n.aspectRatio,c=n.height,s=n.width,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",t=yg(s),i=yg(c);if(t&&i){var o=c*l;r==="contain"&&o>s||r==="cover"&&o<s?c=s/l:s=c*l}else t?c=s/l:i&&(s=c*l);return{width:s,height:c}}function oE(n){var l=n.width,c=n.height,s=n.degree;if(s=Math.abs(s)%180,s===90)return{width:c,height:l};var r=s%90*Math.PI/180,t=Math.sin(r),i=Math.cos(r),o=l*i+c*t,u=l*t+c*i;return s>90?{width:u,height:o}:{width:o,height:u}}
115function aE(n,l,c,s){var r=l.aspectRatio,t=l.naturalWidth,i=l.naturalHeight,o=l.rotate,u=o===void 0?0:o,f=l.scaleX,p=f===void 0?1:f,v=l.scaleY,y=v===void 0?1:v,S=c.aspectRatio,D=c.naturalWidth,F=c.naturalHeight,M=s.fillColor,A=M===void 0?"transparent":M,L=s.imageSmoothingEnabled,H=L===void 0?!0:L,U=s.imageSmoothingQuality,ee=U===void 0?"low":U,Z=s.maxWidth,w=Z===void 0?1/0:Z,xe=s.maxHeight,De=xe===void 0?1/0:xe,Ke=s.minWidth,ye=Ke===void 0?0:Ke,_e=s.minHeight,ie=_e===void 0?0:_e,me=document.createElement("canvas"),Y=me.getContext("2d"),Ee=Yr({aspectRatio:S,width:w,height:De}),we=Yr({aspectRatio:S,width:ye,height:ie},"cover"),Ie=Math.min(Ee.width,Math.max(we.width,D)),nt=Math.min(Ee.height,Math.max(we.height,F)),at=Yr({aspectRatio:r,width:w,height:De}),ut=Yr({aspectRatio:r,width:ye,height:ie},"cover"),j=Math.min(at.width,Math.max(ut.width,t)),I=Math.min(at.height,Math.max(ut.height,i)),pe=[-j/2,-I/2,j,I];return me.width=Ea(Ie),me.height=Ea(nt),Y.fillStyle=A,Y.fillRect(0,0,Ie,nt),Y.save(),Y.translate(Ie/2,nt/2),Y.rotate(u*Math.PI/180),Y.scale(p,y),Y.imageSmoothingEnabled=H,Y.imageSmoothingQuality=ee,Y.drawImage.apply(Y,[n].concat(Av(pe.map(function(ze){return Math.floor(Ea(ze))})))),Y.restore(),me}var Nv=String.fromCharCode;function sE(n,l,c){var s="";c+=l;for(var r=l;r<c;r+=1)s+=Nv(n.getUint8(r));return s}var lE=/^data:.*,/;function uE(n){var l=n.replace(lE,""),c=atob(l),s=new ArrayBuffer(c.length),r=new 
115Uint8Array(s);return ki(r,function(t,i){r[i]=c.charCodeAt(i)}),s}function cE(n,l){for(var c=[],s=8192,r=new Uint8Array(n);r.length>0;)c.push(Nv.apply(null,Iv(r.subarray(0,s)))),r=r.subarray(s);return"data:".concat(l,";base64,").concat(btoa(c.join("")))}function fE(n){var l=new DataView(n),c;try{var s,r,t;if(l.getUint8(0)===255&&l.getUint8(1)===216)for(var i=l.byteLength,o=2;o+1<i;){if(l.getUint8(o)===255&&l.getUint8(o+1)===225){r=o;break}o+=1}if(r){var u=r+4,f=r+10;if(sE(l,u,4)==="Exif"){var p=l.getUint16(f);if(s=p===18761,(s||p===19789)&&l.getUint16(f+2,s)===42){var v=l.getUint32(f+4,s);v>=8&&(t=f+v)}}}if(t){var y=l.getUint16(t,s),S,D;for(D=0;D<y;D+=1)if(S=t+D*12+2,l.getUint16(S,s)===274){S+=8,c=l.getUint16(S,s),l.setUint16(S,1,s);break}}}catch{c=1}return c}function dE(n){var l=0,c=1,s=1;switch(n){case 2:c=-1;break;case 3:l=-180;break;case 4:s=-1;break;case 5:l=90,s=-1;break;case 6:l=90;break;case 7:l=90,c=-1;break;case 8:l=-90;break}return{rotate:l,scaleX:c,scaleY:s}}var hE={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var l=this.element,c=this.options,s=this.container,r=this.cropper,t=Number(c.minContainerWidth),i=Number(c.minContainerHeight);Ni(r,mn),ar(l,mn);var o={width:Math.max(s.offsetWidth,t>=0?t:Lv),height:Math.max(s.offsetHeight,i>=0?i:Mv)};this.containerData=o,Xr(r,{width:o.width,height:o.height}),Ni(l,mn),ar(r,mn)},initCanvas:function(){var l=this.containerData,c=this.imageData,s=this.options.viewMode,r=Math.abs(c.rotate)%180===90,t=r?c.naturalHeight:c.naturalWidth,i=r?c.naturalWidth:c.naturalHeight,o=t/i,u=l.width,f=l.height;l.height*o>l.width?s===3?u=l.height*o:f=l.width/o:s===3?f=l.width/o:u=l.height*o;var p={aspectRatio:o,naturalWidth:t,naturalHeight:i,width:u,height:f};this.canvasData=p,this.limited=s===1||s===2,this.limitCanvas(!0,!0),p.width=Math.min(Math.max(p.width,p.minWidth),p.maxWidth),p.height=Math.min(Math.max(p.height,p.minHeight),p.maxHeight),p.left=(l.width-p.width)/2,p.top=(l.height-p.height)/2,p.oldLeft=p.left,p.oldTop=p.top,this.initialCanvasData=di({},p)},limitCanvas:function(l,c){var s=this.options,r=this.containerData,t=this.canvasData,i=this.cropBoxData,o=s.viewMode,u=t.aspectRatio,f=this.cropped&&i;if(l){var p=Number(s.minCanvasWidth)||0,v=Number(s.minCanvasHeight)||0;o>1?(p=Math.max(p,r.width),v=Math.max(v,r.height),o===3&&(v*u>p?p=v*u:v=p/u)):o>0&&(p?p=Math.max(p,f?i.width:0):v?v=Math.max(v,f?i.height:0):f&&(p=i.width,v=i.height,v*u>p?p=v*u:v=p/u));var y=Yr({aspectRatio:u,width:p,height:v});p=y.width,v=y.height,t.minWidth=p,t.minHeight=v,t.maxWidth=1/0,t.maxHeight=1/0}if(c)if(o>(f?0:1)){var S=r.width-t.width,D=r.height-t.height;t.minLeft=Math.min(0,S),t.minTop=Math.min(0,D),t.maxLeft=Math.max(0,S),t.maxTop=Math.max(0,D),f&&this.limited&&(t.minLeft=Math.min(i.left,i.left+(i.width-t.width)),t.minTop=Math.min(i.top,i.top+(i.height-t.height)),t.maxLeft=i.left,t.maxTop=i.top,o===2&&(t.width>=r.width&&(t.minLeft=Math.min(0,S),t.maxLeft=Math.max(0,S)),t.height>=r.height&&(t.minTop=Math.min(0,D),t.maxTop=Math.max(0,D))))}else t.minLeft=-t.width,t.minTop=-t.height,t.maxLeft=r.width,t.maxTop=r.height},renderCanvas:function(l,c){var s=this.canvasData,r=this.imageData;if(c){var t=oE({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),i=t.width,o=t.height,u=s.width*(i/s.naturalWidth),f=s.height*(o/s.naturalHeight);s.left-=(u-s.width)/2,s.top-=(f-s.height)/2,s.width=u,s.height=f,s.aspectRatio=i/o,s.naturalWidth=i,s.naturalHeight=o,this.limitCanvas(!0,!1)}(s.width>s.maxWidth||s.width<s.minWidth)&&(s.left=s.oldLeft),(s.height>s.maxHeight||s.height<s.minHeight)&&(s.top=s.oldTop),s.width=Math.min(Math.max(s.width,s.minWidth),s.maxWidth),s.height=Math.min(Math.max(s.height,s.minHeight),s.maxHeight),this.limitCanvas(!1,!0),s.left=Math.min(Math.max(s.left,s.minLeft),s.maxLeft),s.top=Math.min(Math.max(s.top,s.minTop),s.maxTop),s.oldLeft=s.left,s.oldTop=s.top,Xr(this.canvas,di({width:s.width,height:s.height},Hs({translateX:s.left,translateY:s.top}))),this.renderImage(l),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(l){var c=this.canvasData,s=this.imageData,r=s.naturalWi
115dth*(c.width/c.naturalWidth),t=s.naturalHeight*(c.height/c.naturalHeight);di(s,{width:r,height:t,left:(c.width-r)/2,top:(c.height-t)/2}),Xr(this.image,di({width:s.width,height:s.height},Hs(di({translateX:s.left,translateY:s.top},s)))),l&&this.output()},initCropBox:function(){var l=this.options,c=this.canvasData,s=l.aspectRatio||l.initialAspectRatio,r=Number(l.autoCropArea)||.8,t={width:c.width,height:c.height};s&&(c.height*s>c.width?t.height=t.width/s:t.width=t.height*s),this.cropBoxData=t,this.limitCropBox(!0,!0),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),t.width=Math.max(t.minWidth,t.width*r),t.height=Math.max(t.minHeight,t.height*r),t.left=c.left+(c.width-t.width)/2,t.top=c.top+(c.height-t.height)/2,t.oldLeft=t.left,t.oldTop=t.top,this.initialCropBoxData=di({},t)},limitCropBox:function(l,c){var s=this.options,r=this.containerData,t=this.canvasData,i=this.cropBoxData,o=this.limited,u=s.aspectRatio;if(l){var f=Number(s.minCropBoxWidth)||0,p=Number(s.minCropBoxHeight)||0,v=o?Math.min(r.width,t.width,t.width+t.left,r.width-t.left):r.width,y=o?Math.min(r.height,t.height,t.height+t.top,r.height-t.top):r.height;f=Math.min(f,r.width),p=Math.min(p,r.height),u&&(f&&p?p*u>f?p=f/u:f=p*u:f?p=f/u:p&&(f=p*u),y*u>v?y=v/u:v=y*u),i.minWidth=Math.min(f,v),i.minHeight=Math.min(p,y),i.maxWidth=v,i.maxHeight=y}c&&(o?(i.minLeft=Math.max(0,t.left),i.minTop=Math.max(0,t.top),i.maxLeft=Math.min(r.width,t.left+t.width)-i.width,i.maxTop=Math.min(r.height,t.top+t.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=r.width-i.width,i.maxTop=r.height-i.height))},renderCropBox:function(){var l=this.options,c=this.containerData,s=this.cropBoxData;(s.width>s.maxWidth||s.width<s.minWidth)&&(s.left=s.oldLeft),(s.height>s.maxHeight||s.height<s.minHeight)&&(s.top=s.oldTop),s.width=Math.min(Math.max(s.width,s.minWidth),s.maxWidth),s.height=Math.min(Math.max(s.height,s.minHeight),s.maxHeight),this.limitCropBox(!1,!0),s.left=Math.min(Math.max(s.left,s.minLeft),s.maxLeft),s.top=Math.min(Math.max(s.top,s.minTop),s.maxTop),s.oldLeft=s.left,s.oldTop=s.top,l.movable&&l.cropBoxMovable&&Vs(this.face,Ks,s.width>=c.width&&s.height>=c.height?kv:md),Xr(this.cropBox,di({width:s.width,height:s.height},Hs({translateX:s.left,translateY:s.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Sa(this.element,Df,this.getData())}},pE={initPreview:function(){var l=this.element,c=this.crossOrigin,s=this.options.preview,r=c?this.crossOriginUrl:this.url,t=l.alt||"The image to preview",i=document.createElement("img");if(c&&(i.crossOrigin=c),i.src=r,i.alt=t,this.viewBox.appendChild(i),this.viewBoxImage=i,!!s){var o=s;typeof s=="string"?o=l.ownerDocument.querySelectorAll(s):s.querySelector&&(o=[s]),this.previews=o,ki(o,function(u){var f=document.createElement("img");Vs(u,$l,{width:u.offsetWidth,height:u.offsetHeight,html:u.innerHTML}),c&&(f.crossOrigin=c),f.src=r,f.alt=t,f.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',u.innerHTML="",u.appendChild(f)})}},resetPreview:function(){ki(this.previews,function(l){var c=Ff(l,$l);Xr(l,{width:c.width,height:c.height}),l.innerHTML=c.html,tE(l,$l)})},preview:function(){var l=this.imageData,c=this.canvasData,s=this.cropBoxData,r=s.width,t=s.height,i=l.width,o=l.height,u=s.left-c.left-l.left,f=s.top-c.top-l.top;!this.cropped||this.disabled||(Xr(this.viewBoxImage,di({width:i,height:o},Hs(di({translateX:-u,translateY:-f},l)))),ki(this.previews,function(p){var v=Ff(p,$l),y=v.width,S=v.height,D=y,F=S,M=1;r&&(M=y/r,F=t*M),t&&F>S&&(M=S/t,D=r*M,F=S),Xr(p,{width:D,height:F}),Xr(p.getElementsByTagName("img")[0],di({width:i*M,height:o*M},Hs(di({translateX:-u*M,translateY:-f*M},l))))}))}},gE={bind:function(){var l=this.element,c=this.options,s=this.cropper;gn(c.cropstart)&&Ln(l,kf,c.cropstart),gn(c.cropmove)&&Ln(l,_f,c.cropmove),gn(c.cropend)&&Ln(l,Af,c.cropend),gn(c.crop)&&Ln(l,Df,c.crop),gn(c.zoom)&&Ln(l,Tf,c.zoom),Ln(s,cg,this.onCropStart=this.cropStart.bind(this)),c.zoomable&&c.zoomOnWheel&&Ln(s,gg,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),c.toggleDragModeOnDblclick&&Ln(s,ug,this.onDblclick=this.dblclick.bind(this)),Ln(l.ownerDocument,fg,this.onCropMove=this.cropMove.bind(this)),Ln(l.ownerDocument,dg,this.onCropEnd=this.cropEnd.bind(this)),c.responsive&&Ln(window,pg,this.onResize=this.resize.bind(this))},unbind:function(){var l=this.element,c=this.options,s=this.cropper;gn(c.cropstart)&&qn(l,kf,c.cropstart),gn(c.cropmove)&&qn(l,_f,c.cropmove),gn(c.cropend)&&qn(l,Af,c.cropend),gn(c.crop)&&qn(l,Df,c.crop),gn(c.zoom)&&qn(l,Tf,c.zoom),qn(s,cg,this.onCropStart),c.zoomable&&c.zoomOnWheel&&qn(s,gg,this.onWheel,{passive:!1,capture:!0}),c.toggleDragModeOnDblclick&&qn(s,ug,this.onDblclick),qn(l.ownerDocument,fg,this.onCropMove),qn(l.ownerDocument,dg,this.onCropEnd),c.responsive&&qn(window,pg,this.onResize)}},mE={resize:function(){if(!this.disabled){var l=this.options,c=this.container,s=this.containerData,r=c.offsetWidth/s.width,t=c.offsetHeight/s.height,i=Math.abs(r-1)>Math.abs(t-1)?r:t;if(i!==1){var o,u;l.restore&&(o=this.getCanvasData(),u=this.getCropBoxData()),this.render(),l.restore&&(this.setCanvasData(ki(o,function(f,p){o[p]=f*i})),this.setCropBoxData(ki(u,function(f,p){u[p]=f*i})))}}},dblclick:function(){this.disabled||this.options.dragMode===Ov||this.setDragMode(JC(this.dragBox,Ef)?Fv:vd)},wheel:function(l){var c=this,s=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(l.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){c.wheeling=!1},50),l.deltaY?r=l.deltaY>0?1:-1:l.wheelDelta?r=-l.wheelDelta/120:l.detail&&(r=l.detail>0?1:-1),this.zoom(-r*s,l)))},cropStart:function(l){var c=l.buttons,s=l.button;if(!(this.disabled||(l.type==="mousedown"||l.type==="pointerdown"&&l.pointerType==="mouse")&&(Gt(c)&&c!==1||Gt(s)&&s!==0||l.ctrlKey))){var r=this.options,t=this.pointers,i;l.changedTouches?ki(l.changedTouches,function(o){t[o.identifier]=ql(o)}):t[l.pointerId||0]=ql(l),Object.keys(t).length>1&&r.zoomable&&r.zoomOnTouch?i=Tv:i=Ff(l.target,Ks),$C.test(i)&&Sa(this.element,kf,{originalEvent:l,action:i})!==!1&&(l.preventDefault(),this.action=i,this.cropping=!1,i===_v&&(this.cropping=!0,Ni(this.dragBox,gu)))}},cropMove:function(l){var c=this.action;if(!(this.disabled||!c)){var s=this.pointers;l.preventDefault(),Sa(this.element,_f,{originalEvent:l,action:c})!==!1&&(l.changedTouches?ki(l.changedTouches,function(r){di(s[r.identifier]||{},ql(r,!0))}):di(s[l.pointerId||0]||{},ql(l,!0)),this.change(l))}},cropEnd:function(l){if(!this.disabled){var c=this.action,s=this.pointers;l.changedTouches?ki(l.changedTouches,function(r){delete s[r.identifier]}):delete s[l.pointerId||0],c&&(l.preventDefault(),Object.keys(s).length||(this.action=""),this.cropping&&(this.cropping=!1,xa(this.dragBox,gu,this.cropped&&this.options.modal)),Sa(this.element,Af,{originalEvent:l,action:c}))}}},vE={change:function(l){var c=this.options,s=this.canvasData,r=this.containerData,t=this.cropBoxData,i=this.pointers,o=this.action,u=c.aspectRatio,f=t.left,p=t.top,v=t.width,y=t.height,S=f+v,D=p+y,F=0,M=0,A=r.width,L=r.height,H=!0,U;!u&&l.shiftKey&&(u=v&&y?v/y:1),this.limited&&(F=t.minLeft,M=t.minTop,A=F+Math.min(r.width,s.width,s.left+s.width),L=M+Math.min(r.height,s.height,s.top+s.height));
115var ee=i[Object.keys(i)[0]],Z={x:ee.endX-ee.startX,y:ee.endY-ee.startY},w=function(De){switch(De){case po:S+Z.x>A&&(Z.x=A-S);break;case go:f+Z.x<F&&(Z.x=F-f);break;case qr:p+Z.y<M&&(Z.y=M-p);break;case pa:D+Z.y>L&&(Z.y=L-D);break}};switch(o){case md:f+=Z.x,p+=Z.y;break;case po:if(Z.x>=0&&(S>=A||u&&(p<=M||D>=L))){H=!1;break}w(po),v+=Z.x,v<0&&(o=go,v=-v,f-=v),u&&(y=v/u,p+=(t.height-y)/2);break;case qr:if(Z.y<=0&&(p<=M||u&&(f<=F||S>=A))){H=!1;break}w(qr),y-=Z.y,p+=Z.y,y<0&&(o=pa,y=-y,p-=y),u&&(v=y*u,f+=(t.width-v)/2);break;case go:if(Z.x<=0&&(f<=F||u&&(p<=M||D>=L))){H=!1;break}w(go),v-=Z.x,f+=Z.x,v<0&&(o=po,v=-v,f-=v),u&&(y=v/u,p+=(t.height-y)/2);break;case pa:if(Z.y>=0&&(D>=L||u&&(f<=F||S>=A))){H=!1;break}w(pa),y+=Z.y,y<0&&(o=qr,y=-y,p-=y),u&&(v=y*u,f+=(t.width-v)/2);break;case Ts:if(u){if(Z.y<=0&&(p<=M||S>=A)){H=!1;break}w(qr),y-=Z.y,p+=Z.y,v=y*u}else w(qr),w(po),Z.x>=0?S<A?v+=Z.x:Z.y<=0&&p<=M&&(H=!1):v+=Z.x,Z.y<=0?p>M&&(y-=Z.y,p+=Z.y):(y-=Z.y,p+=Z.y);v<0&&y<0?(o=Ls,y=-y,v=-v,p-=y,f-=v):v<0?(o=Fs,v=-v,f-=v):y<0&&(o=Os,y=-y,p-=y);break;case Fs:if(u){if(Z.y<=0&&(p<=M||f<=F)){H=!1;break}w(qr),y-=Z.y,p+=Z.y,v=y*u,f+=t.width-v}else w(qr),w(go),Z.x<=0?f>F?(v-=Z.x,f+=Z.x):Z.y<=0&&p<=M&&(H=!1):(v-=Z.x,f+=Z.x),Z.y<=0?p>M&&(y-=Z.y,p+=Z.y):(y-=Z.y,p+=Z.y);v<0&&y<0?(o=Os,y=-y,v=-v,p-=y,f-=v):v<0?(o=Ts,v=-v,f-=v):y<0&&(o=Ls,y=-y,p-=y);break;case Ls:if(u){if(Z.x<=0&&(f<=F||D>=L)){H=!1;break}w(go),v-=Z.x,f+=Z.x,y=v/u}else w(pa),w(go),Z.x<=0?f>F?(v-=Z.x,f+=Z.x):Z.y>=0&&D>=L&&(H=!1):(v-=Z.x,f+=Z.x),Z.y>=0?D<L&&(y+=Z.y):y+=Z.y;v<0&&y<0?(o=Ts,y=-y,v=-v,p-=y,f-=v):v<0?(o=Os,v=-v,f-=v):y<0&&(o=Fs,y=-y,p-=y);break;case Os:if(u){if(Z.x>=0&&(S>=A||D>=L)){H=!1;break}w(po),v+=Z.x,y=v/u}else w(pa),w(po),Z.x>=0?S<A?v+=Z.x:Z.y>=0&&D>=L&&(H=!1):v+=Z.x,Z.y>=0?D<L&&(y+=Z.y):y+=Z.y;v<0&&y<0?(o=Fs,y=-y,v=-v,p-=y,f-=v):v<0?(o=Ls,v=-v,f-=v):y<0&&(o=Ts,y=-y,p-=y);break;case kv:this.move(Z.x,Z.y),H=!1;break;case Tv:this.zoom(nE(i),l),H=!1;break;case _v:if(!Z.x||!Z.y){H=!1;break}U=Bv(this.cropper),f=ee.startX-U.left,p=ee.startY-U.top,v=t.minWidth,y=t.minHeight,Z.x>0?o=Z.y>0?Os:Ts:Z.x<0&&(f-=v,o=Z.y>0?Ls:Fs),Z.y<0&&(p-=y),this.cropped||(ar(this.cropBox,mn),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}H&&(t.width=v,t.height=y,t.left=f,t.top=p,this.action=o,this.renderCropBox()),ki(i,function(xe){xe.startX=xe.endX,xe.startY=xe.endY})}},yE={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Ni(this.dragBox,gu),ar(this.cropBox,mn),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=di({},this.initialImageData),this.canvasData=di({},this.initialCanvasData),this.cropBoxData=di({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(di(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),ar(this.dragBox,gu),Ni(this.cropBox,mn)),this},replace:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&l&&(this.isImg&&(this.element.src=l),c?(this.url=l,this.image.src=l,this.ready&&(this.viewBoxImage.src=l,ki(this.previews,function(s){s.getElementsByTagName("img")[0].src=l}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(l))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,ar(this.cropper,sg)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Ni(this.cropper,sg)),this},destroy:function(){var l=this.element;return l[fi]?(l[fi]=void 0,this.isImg&&this.replaced&&(l.src=this.originalUrl),this.uncreate(),this):this},move:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l,s=this.canvasData,r=s.left,t=s.top;return this.moveTo($c(l)?l:r+Number(l),$c(c)?c:t+Number(c))},moveTo:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l,s=this.canvasData,r=!1;return l=Number(l),c=Number(c),this.ready&&!this.disabled&&this.options.movable&&(Gt(l)&&(s.left
115=l,r=!0),Gt(c)&&(s.top=c,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(l,c){var s=this.canvasData;return l=Number(l),l<0?l=1/(1-l):l=1+l,this.zoomTo(s.width*l/s.naturalWidth,null,c)},zoomTo:function(l,c,s){var r=this.options,t=this.canvasData,i=t.width,o=t.height,u=t.naturalWidth,f=t.naturalHeight;if(l=Number(l),l>=0&&this.ready&&!this.disabled&&r.zoomable){var p=u*l,v=f*l;if(Sa(this.element,Tf,{ratio:l,oldRatio:i/u,originalEvent:s})===!1)return this;if(s){var y=this.pointers,S=Bv(this.cropper),D=y&&Object.keys(y).length?rE(y):{pageX:s.pageX,pageY:s.pageY};t.left-=(p-i)*((D.pageX-S.left-t.left)/i),t.top-=(v-o)*((D.pageY-S.top-t.top)/o)}else ba(c)&&Gt(c.x)&&Gt(c.y)?(t.left-=(p-i)*((c.x-t.left)/i),t.top-=(v-o)*((c.y-t.top)/o)):(t.left-=(p-i)/2,t.top-=(v-o)/2);t.width=p,t.height=v,this.renderCanvas(!0)}return this},rotate:function(l){return this.rotateTo((this.imageData.rotate||0)+Number(l))},rotateTo:function(l){return l=Number(l),Gt(l)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=l%360,this.renderCanvas(!0,!0)),this},scaleX:function(l){var c=this.imageData.scaleY;return this.scale(l,Gt(c)?c:1)},scaleY:function(l){var c=this.imageData.scaleX;return this.scale(Gt(c)?c:1,l)},scale:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l,s=this.imageData,r=!1;return l=Number(l),c=Number(c),this.ready&&!this.disabled&&this.options.scalable&&(Gt(l)&&(s.scaleX=l,r=!0),Gt(c)&&(s.scaleY=c,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,c=this.options,s=this.imageData,r=this.canvasData,t=this.cropBoxData,i;if(this.ready&&this.cropped){i={x:t.left-r.left,y:t.top-r.top,width:t.width,height:t.height};var o=s.width/s.naturalWidth;if(ki(i,function(p,v){i[v]=p/o}),l){var u=Math.round(i.y+i.height),f=Math.round(i.x+i.width);i.x=Math.round(i.x),i.y=Math.round(i.y),i.width=f-i.x,i.height=u-i.y}}else i={x:0,y:0,width:0,height:0};return c.rotatable&&(i.rotate=s.rotate||0),c.scalable&&(i.scaleX=s.scaleX||1,i.scaleY=s.scaleY||1),i},setData:function(l){var c=this.options,s=this.imageData,r=this.canvasData,t={};if(this.ready&&!this.disabled&&ba(l)){var i=!1;c.rotatable&&Gt(l.rotate)&&l.rotate!==s.rotate&&(s.rotate=l.rotate,i=!0),c.scalable&&(Gt(l.scaleX)&&l.scaleX!==s.scaleX&&(s.scaleX=l.scaleX,i=!0),Gt(l.scaleY)&&l.scaleY!==s.scaleY&&(s.scaleY=l.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var o=s.width/s.naturalWidth;Gt(l.x)&&(t.left=l.x*o+r.left),Gt(l.y)&&(t.top=l.y*o+r.top),Gt(l.width)&&(t.width=l.width*o),Gt(l.height)&&(t.height=l.height*o),this.setCropBoxData(t)}return this},getContainerData:function(){return this.ready?di({},this.containerData):{}},getImageData:function(){return this.sized?di({},this.imageData):{}},getCanvasData:function(){var l=this.canvasData,c={};return this.ready&&ki(["left","top","width","height","naturalWidth","naturalHeight"],function(s){c[s]=l[s]}),c},setCanvasData:function(l){var c=this.canvasData,s=c.aspectRatio;return this.ready&&!this.disabled&&ba(l)&&(Gt(l.left)&&(c.left=l.left),Gt(l.top)&&(c.top=l.top),Gt(l.width)?(c.width=l.width,c.height=l.width/s):Gt(l.height)&&(c.height=l.height,c.width=l.height*s),this.renderCanvas(!0)),this},getCropBoxData:function(){var l=this.cropBoxData,c;return this.ready&&this.cropped&&(c={left:l.left,top:l.top,width:l.width,height:l.height}),c||{}},setCropBoxData:function(l){var c=this.cropBoxData,s=this.options.aspectRatio,r,t;return this.ready&&this.cropped&&!this.disabled&&ba(l)&&(Gt(l.left)&&(c.left=l.left),Gt(l.top)&&(c.top=l.top),Gt(l.width)&&l.width!==c.width&&(r=!0,c.width=l.width),Gt(l.height)&&l.height!==c.height&&(t=!0,c.height=l.height),s&&(r?c.height=c.width/s:t&&(c.width=c.height*s)),this.renderCropBox()),this},getCroppedCanvas:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var c=this.canvasData,s=aE(this.image,this.imageData,c,l);if(!this.cropped)return s;var r=this.getData(l.rounded),t=r.x,i=r.y,o=r.width,u=r.height,f=s.width/Math.floor(c.naturalWidth);f!==1&&(t*=f,i*=f,o*=f,u*=f);var p=o/u,v=Yr({aspectRatio:p,width:l.maxWidth||1/0,height:l.maxHeight||1/0}),y=Yr({aspectRatio:p,width:l.minWidth||0,height:l.minHeight||0},"cover"),S=Yr({aspectRatio:p,width:l.width||(f!==1?s.width:o),height:l.height||(f!==1?s.height:u)}),D=S.width,F=S.height;D=Math.min(v.width,Math.max(y.width,D)),F=Math.min(v.height,Math.max(y.height,F));var M=document.createElement("canvas"),A=M.getContext("2d");M.width=Ea(D),M.height=Ea(F),A.fillStyle=l.fillColor||"transparent",A.fillRect(0,0,D,F);var L=l.imageSmoothingEnabled,H=L===void 0?!0:L,U=l.imageSmoothingQuality;A.imageSmoothingEnabled=H,U&&(A.imageSmoothingQuality=U);var ee=s.width,Z=s.height,w=t,xe=i,De,Ke,ye,_e,ie,me;w<=-o||w>ee?(w=0,De=0,ye=0,ie=0):w<=0?(ye=-w,w=0,De=Math.min(ee,o+w),ie=De):w<=ee&&(ye=0,De=Math.min(o,ee-w),ie=De),De<=0||xe<=-u||xe>Z?(xe=0,Ke=0,_e=0,me=0):xe<=0?(_e=-xe,xe=0,Ke=Math.min(Z,u+xe),me=Ke):xe<=Z&&(_e=0,Ke=Math.min(u,Z-xe),me=Ke);var Y=[w,xe,De,Ke];if(ie>0&&me>0){var Ee=D/o;Y.push(ye*Ee,_e*Ee,ie*Ee,me*Ee)}return A.drawImage.apply(A,[s].concat(Av(Y.map(function(we){return Math.floor(Ea(we))})))),M},setAspectRatio:function(l){var c=this.options;return!this.disabled&&!$c(l)&&(c.aspectRatio=Math.max(0,l)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(l){var c=this.options,s=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var t=l===vd,i=c.movable&&l===Fv;l=t||i?l:Ov,c.dragMode=l,Vs(s,Ks,l),xa(s,Ef,t),xa(s,Sf,i),c.cropBoxMovable||(Vs(r,Ks,l),xa(r,Ef,t),xa(r,Sf,i))}return this}},bE=ur.Cropper,Hv=(function(){function n(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(LC(this,n),!l||!GC.test(l.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=l,this.options=di({},vg,ba(c)&&c),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return MC(n,[{key:"init",value:function(){var c=this.element,s=c.tagName.toLowerCase(),r;if(!c[fi]){if(c[fi]=this,s==="img"){if(this.isImg=!0,r=c.getAttribute("src")||"",this.originalUrl=r,!r)return;r=c.src}else s==="canvas"&&window.HTMLCanvasElement&&(r=c.toDataURL());this.load(r)}}},{key:"load",value:function(c){var s=this;if(c){this.url=c,this.imageData={};var r=this.element,t=this.options;if(!t.rotatable&&!t.scalable&&(t.checkOrientation=!1),!t.checkOrientation||!window.ArrayBuffer){this.clone();return}if(qC.test(c)){UC.test(c)?this.read(uE(c)):this.clone();return}var i=new XMLHttpRequest,o=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=o,i.onerror=o,i.ontimeout=o,i.onprogress=function(){i.getResponseHeader("content-type")!==mg&&i.abort()},i.onload=function(){s.read(i.response)},i.onloadend=function(){s.reloading=!1,s.xhr=null},t.checkCrossOrigin&&bg(c)&&r.crossOrigin&&(c=xg(c)),i.open("GET",c,!0),i.responseType="arraybuffer",i.withCredentials=r.crossOrigin==="use-credentials",i.send()}}},{key:"read",value:function(c){var s=this.options,r=this.imageData,t=fE(c),i=0,o=1,u=1;if(t>1){this.url=cE(c,mg);var f=dE(t);
115i=f.rotate,o=f.scaleX,u=f.scaleY}s.rotatable&&(r.rotate=i),s.scalable&&(r.scaleX=o,r.scaleY=u),this.clone()}},{key:"clone",value:function(){var c=this.element,s=this.url,r=c.crossOrigin,t=s;this.options.checkCrossOrigin&&bg(s)&&(r||(r="anonymous"),t=xg(s)),this.crossOrigin=r,this.crossOriginUrl=t;var i=document.createElement("img");r&&(i.crossOrigin=r),i.src=t||s,i.alt=c.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),Ni(i,lg),c.parentNode.insertBefore(i,c.nextSibling)}},{key:"start",value:function(){var c=this,s=this.image;s.onload=null,s.onerror=null,this.sizing=!0;var r=ur.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(ur.navigator.userAgent),t=function(f,p){di(c.imageData,{naturalWidth:f,naturalHeight:p,aspectRatio:f/p}),c.initialImageData=di({},c.imageData),c.sizing=!1,c.sized=!0,c.build()};if(s.naturalWidth&&!r){t(s.naturalWidth,s.naturalHeight);return}var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){t(i.width,i.height),r||o.removeChild(i)},i.src=s.src,r||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}},{key:"stop",value:function(){var c=this.image;c.onload=null,c.onerror=null,c.parentNode.removeChild(c),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var c=this.element,s=this.options,r=this.image,t=c.parentNode,i=document.createElement("div");i.innerHTML=XC;var o=i.querySelector(".".concat(fi,"-container")),u=o.querySelector(".".concat(fi,"-canvas")),f=o.querySelector(".".concat(fi,"-drag-box")),p=o.querySelector(".".concat(fi,"-crop-box")),v=p.querySelector(".".concat(fi,"-face"));this.container=t,this.cropper=o,this.canvas=u,this.dragBox=f,this.cropBox=p,this.viewBox=o.querySelector(".".concat(fi,"-view-box")),this.face=v,u.appendChild(r),Ni(c,mn),t.insertBefore(o,c.nextSibling),ar(r,lg),this.initPreview(),this.bind(),s.initialAspectRatio=Math.max(0,s.initialAspectRatio)||NaN,s.aspectRatio=Math.max(0,s.aspectRatio)||NaN,s.viewMode=Math.max(0,Math.min(3,Math.round(s.viewMode)))||0,Ni(p,mn),s.guides||Ni(p.getElementsByClassName("".concat(fi,"-dashed")),mn),s.center||Ni(p.getElementsByClassName("".concat(fi,"-center")),mn),s.background&&Ni(o,"".concat(fi,"-bg")),s.highlight||Ni(v,HC),s.cropBoxMovable&&(Ni(v,Sf),Vs(v,Ks,md)),s.cropBoxResizable||(Ni(p.getElementsByClassName("".concat(fi,"-line")),mn),Ni(p.getElementsByClassName("".concat(fi,"-point")),mn)),this.render(),this.ready=!0,this.setDragMode(s.dragMode),s.autoCrop&&this.crop(),this.setData(s.data),gn(s.ready)&&Ln(c,hg,s.ready,{once:!0}),Sa(c,hg)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var c=this.cropper.parentNode;c&&c.removeChild(this.cropper),ar(this.element,mn)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=bE,n}},{key:"setDefaults",value:function(c){di(vg,ba(c)&&c)}}])})();di(Hv.prototype,hE,pE,gE,mE,vE,yE);function xE(n,l,c){return(l=SE(l))in n?Object.defineProperty(n,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[l]=c,n}function Dr(){return Dr=Object.assign?Object.assign.bind():function(n){for(var l=1;l<arguments.length;l++){var c=arguments[l];for(var s in c)({}).hasOwnProperty.call(c,s)&&(n[s]=c[s])}return n},Dr.apply(null,arguments)}function wg(n,l){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);l&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),c.push.apply(c,s)}return c}function cr(n){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?wg(Object(c),!0).forEach(function(s){xE(n,s,c[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(c)):wg(Object(c)).forEac
vendor: 8,515 bytes, line 115
115h(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(c,s))})}return n}function wE(n,l){if(n==null)return{};var c,s,r=CE(n,l);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);for(s=0;s<t.length;s++)c=t[s],l.indexOf(c)===-1&&{}.propertyIsEnumerable.call(n,c)&&(r[c]=n[c])}return r}function CE(n,l){if(n==null)return{};var c={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(l.indexOf(s)!==-1)continue;c[s]=n[s]}return c}function EE(n,l){if(typeof n!="object"||!n)return n;var c=n[Symbol.toPrimitive];if(c!==void 0){var s=c.call(n,l);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(n)}function SE(n){var l=EE(n,"string");return typeof l=="symbol"?l:l+""}function Of(n){"@babel/helpers - typeof";return Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Of(n)}var DE="1.15.7";function Er(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var Ar=Er(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),il=Er(/Edge/i),Cg=Er(/firefox/i),zs=Er(/safari/i)&&!Er(/chrome/i)&&!Er(/android/i),bd=Er(/iP(ad|od|hone)/i),zv=Er(/chrome/i)&&Er(/android/i),jv={capture:!1,passive:!1};function Kt(n,l,c){n.addEventListener(l,c,!Ar&&jv)}function Ut(n,l,c){n.removeEventListener(l,c,!Ar&&jv)}function mu(n,l){if(l){if(l[0]===">"&&(l=l.substring(1)),n)try{if(n.matches)return n.matches(l);if(n.msMatchesSelector)return n.msMatchesSelector(l);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(l)}catch{return!1}return!1}}function Wv(n){return n.host&&n!==document&&n.host.nodeType&&n.host!==n?n.host:n.parentNode}function Gn(n,l,c,s){if(n){c=c||document;do{if(l!=null&&(l[0]===">"?n.parentNode===c&&mu(n,l):mu(n,l))||s&&n===c)return n;if(n===c)break}while(n=Wv(n))}return null}var Eg=/\s+/g;function En(n,l,c){if(n&&l)if(n.classList)n.classList[c?"add":"remove"](l);else{var s=(" "+n.className+" ").replace(Eg," ").replace(" "+l+" "," ");n.className=(s+(c?" "+l:"")).replace(Eg," ")}}function _t(n,l,c){var s=n&&n.style;if(s){if(c===void 0)return document.defaultView&&document.defaultView.getComputedStyle?c=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(c=n.currentStyle),l===void 0?c:c[l];!(l in s)&&l.indexOf("webkit")===-1&&(l="-webkit-"+l),s[l]=c+(typeof c=="string"?"":"px")}}function Da(n,l){var c="";if(typeof n=="string")c=n;else do{var s=_t(n,"transform");s&&s!=="none"&&(c=s+" "+c)}while(!l&&(n=n.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(c)}function $v(n,l,c){if(n){var s=n.getElementsByTagName(l),r=0,t=s.length;if(c)for(;r<t;r++)c(s[r],r);return s}return[]}function sr(){var n=document.scrollingElement;return n||document.documentElement}function _i(n,l,c,s,r){if(!(!n.getBoundingClientRect&&n!==window)){var t,i,o,u,f,p,v;if(n!==window&&n.parentNode&&n!==sr()?(t=n.getBoundingClientRect(),i=t.top,o=t.left,u=t.bottom,f=t.right,p=t.height,v=t.width):(i=0,o=0,u=window.innerHeight,f=window.innerWidth,p=window.innerHeight,v=window.innerWidth),(l||c)&&n!==window&&(r=r||n.parentNode,!Ar))do if(r&&r.getBoundingClientRect&&(_t(r,"transform")!=="none"||c&&_t(r,"position")!=="static")){var y=r.getBoundingClientRect();i-=y.top+parseInt(_t(r,"border-top-width")),o-=y.left+parseInt(_t(r,"border-left-width")),u=i+t.height,f=o+t.width;break}while(r=r.parentNode);if(s&&n!==window){var S=Da(r||n),D=S&&S.a,F=S&&S.d;S&&(i/=F,o/=D,v/=D,p/=F,u=i+p,f=o+v)}return{top:i,left:o,bottom:u,right:f,width:v,height:p}}}function Sg(n,l,c){for(var s=Kr(n,!0),r=_i(n)[l];s;){var t=_i(s)[c],i=void 0;if(i=r>=t,!i)return s;if(s===sr())break;s=Kr(s,!1)}return!1}function ka(n,l,c,s){for(var r=0,t=0,i=n.children;t<i.length;){if(i[t].style.display!=="none"&&i[t]!==kt.ghost&&(s||i[t]!==kt.dragged)&&Gn(i[t],c.draggable,n,!1)){if(r===l)return i[t];r++}t++}return null}function xd(n,l){for(var c=n.lastElementChild;c&&(c===kt.ghost||_t(c,"display")==="none"||l&&!mu(c,l));)c=c.previousElementSibling;return c||null}function Mn(n,l){var c=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==kt.clone&&(!l||mu(n,l))&&c++;return c}function Dg(n){var l=0,c=0,s=sr();if(n)do{var r=Da(n),t=r.a,i=r.d;l+=n.scrollLeft*t,c+=n.scrollTop*i}while(n!==s&&(n=n.parentNode));return[l,c]}function AE(n,l){for(var c in n)if(n.hasOwnProperty(c)){for(var s in l)if(l.hasOwnProperty(s)&&l[s]===n[c][s])return Number(c)}return-1}function Kr(n,l){if(!n||!n.getBoundingClientRect)return sr();var c=n,s=!1;do if(c.clientWidth<c.scrollWidth||c.clientHeight<c.scrollHeight){var r=_t(c);if(c.clientWidth<c.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||c.clientHeight<c.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!c.getBoundingClientRect||c===document.body)return sr();if(s||l)return c;s=!0}}while(c=c.parentNode);return sr()}function _E(n,l){if(n&&l)for(var c in l)l.hasOwnProperty(c)&&(n[c]=l[c]);return n}function Uc(n,l){return Math.round(n.top)===Math.round(l.top)&&Math.round(n.left)===Math.round(l.left)&&Math.round(n.height)===Math.round(l.height)&&Math.round(n.width)===Math.round(l.width)}var js;function qv(n,l){return function(){if(!js){var c=arguments,s=this;c.length===1?n.call(s,c[0]):n.apply(s,c),js=setTimeout(function(){js=void 0},l)}}}function kE(){clearTimeout(js),js=void 0}function Uv(n,l,c){n.scrollLeft+=l,n.scrollTop+=c}function Gv(n){var l=window.Polymer,c=window.jQuery||window.Zepto;return l&&l.dom?l.dom(n).cloneNode(!0):c?c(n).clone(!0)[0]:n.cloneNode(!0)}function Xv(n,l,c){var s={};return Array.from(n.children).forEach(function(r){var t,i,o,u;if(!(!Gn(r,l.draggable,n,!1)||r.animated||r===c)){var f=_i(r);s.left=Math.min((t=s.left)!==null&&t!==void 0?t:1/0,f.left),s.top=Math.min((i=s.top)!==null&&i!==void 0?i:1/0,f.top),s.right=Math.max((o=s.right)!==null&&o!==void 0?o:-1/0,f.right),s.bottom=Math.max((u=s.bottom)!==null&&u!==void 0?u:-1/0,f.bottom)}}),s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var vn="Sortable"+new Date().getTime();function TE(){var n=[],l;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var s=[].slice.call(this.el.children);s.forEach(function(r){if(!(_t(r,"display")==="none"||r===kt.ghost)){n.push({target:r,rect:_i(r)});var t=cr({},n[n.length-1].rect);if(r.thisAnimationDuration){var i=Da(r,!0);i&&(t.top-=i.f,t.left-=i.e)}r.fromRect=t}})}},addAnimationState:function(s){n.push(s)},removeAnimationState:function(s){n.splice(AE(n,{target:s}),1)},animateAll:function(s){var r=this;if(!this.options.animation){clearTimeout(l),typeof s=="function"&&s();return}var t=!1,i=0;n.forEach(function(o){var u=0,f=o.target,p=f.fromRect,v=_i(f),y=f.prevFromRect,S=f.prevToRect,D=o.rect,F=Da(f,!0);F&&(v.top-=F.f,v.left-=F.e),f.toRect=v,f.thisAnimationDuration&&Uc(y,v)&&!Uc(p,v)&&(D.top-v.top)/(D.left-v.left)===(p.top-v.top)/(p.left-v.left)&&(u=OE(D,y,S,r.options)),Uc(v,p)||(f.prevFromRect=p,f.prevToRect=v,u||(u=r.options.animation),r.animate(f,D,v,u)),u&&(t=!0,i=Math.max(i,u),clearTimeout(f.animationResetTimer),f.animationResetTimer=setTimeout(function(){f.animationTime=0,f.prevFromRect=null,f.fromRect=null,f.prevToRect=null,f.thisAnimationDuration=null},u),f.thisAnimationDuration=u)}),clearTimeout(l),t?l=setTimeout(function(){typeof s=="function"&&s()},i):typeof s=="function"&&s(),n=[]},animate:function(s,r,t,i){if(i){_t(s,"transition",""),_t(s,"transform","");var o=Da(this.el),u=o&&o.a,f=o&&o.d,p=(r.left-t.left)/(u||1),v=(r.top-t.top)/(f||1);s.animatingX=!!p,s.animatingY=!!v,_t(s,"transform","translate3d("+p+"px,"+v+"px,0)"),this.forRepaintDummy=FE(s),_t(s,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),_t(s,"transform","translate3d(0,0,0)"),typeof s.animated=="number"&&clearTimeout(s.animated),s.animated=setTimeout(function(){_t(s,"transition",""),_t(s,"transform",""),s.animated=!1,s.animatingX=!1,s.animatingY=!1},i)}}}}function FE(n){return n.offsetWidth}function OE(n,l,c,s){return Math.sqrt(Math.pow(l.top-n.top,2)+Math.pow(l.left-n.left,2))/Math.sqrt(Math.pow(l.top-c.top,2)+Math.pow(l.left-c.left,2))*s.animation}var ga=[],Gc={initializeByDefault:!0},nl={mount:function(l){for(var c in Gc)Gc.hasOwnProperty(c)&&!(c in l)&&(l[c]=Gc[c]);ga.forEach(function(s){if(s.pluginName===l.pluginName)throw"Sortable: Cannot mou
115nt plugin ".concat(l.pluginName," more than once")}),ga.push(l)},pluginEvent:function(l,c,s){var r=this;this.eventCanceled=!1,s.cancel=function(){r.eventCanceled=!0};var t=l+"Global";ga.forEach(function(i){c[i.pluginName]&&(c[i.pluginName][t]&&c[i.pluginName][t](cr({sortable:c},s)),c.options[i.pluginName]&&c[i.pluginName][l]&&c[i.pluginName][l](cr({sortable:c},s)))})},initializePlugins:function(l,c,s,r){ga.forEach(function(o){var u=o.pluginName;if(!(!l.options[u]&&!o.initializeByDefault)){var f=new o(l,c,l.options);f.sortable=l,f.options=l.options,l[u]=f,Dr(s,f.defaults)}});for(var t in l.options)if(l.options.hasOwnProperty(t)){var i=this.modifyOption(l,t,l.options[t]);typeof i<"u"&&(l.options[t]=i)}},getEventProperties:function(l,c){var s={};return ga.forEach(function(r){typeof r.eventProperties=="function"&&Dr(s,r.eventProperties.call(c[r.pluginName],l))}),s},modifyOption:function(l,c,s){var r;return ga.forEach(function(t){l[t.pluginName]&&t.optionListeners&&typeof t.optionListeners[c]=="function"&&(r=t.optionListeners[c].call(l[t.pluginName],s))}),r}};function LE(n){var l=n.sortable,c=n.rootEl,s=n.name,r=n.targetEl,t=n.cloneEl,i=n.toEl,o=n.fromEl,u=n.oldIndex,f=n.newIndex,p=n.oldDraggableIndex,v=n.newDraggableIndex,y=n.originalEvent,S=n.putSortable,D=n.extraEventProperties;if(l=l||c&&c[vn],!!l){var F,M=l.options,A="on"+s.charAt(0).toUpperCase()+s.substr(1);window.CustomEvent&&!Ar&&!il?F=new CustomEvent(s,{bubbles:!0,cancelable:!0}):(F=document.createEvent("Event"),F.initEvent(s,!0,!0)),F.to=i||c,F.from=o||c,F.item=r||c,F.clone=t,F.oldIndex=u,F.newIndex=f,F.oldDraggableIndex=p,F.newDraggableIndex=v,F.originalEvent=y,F.pullMode=S?S.lastPutMode:void 0;var L=cr(cr({},D),nl.getEventProperties(s,l));for(var H in L)F[H]=L[H];c&&c.dispatchEvent(F),M[A]&&M[A].call(l,F)}}var ME=["evt"],pn=function(l,c){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.evt,t=wE(s,ME);nl.pluginEvent.bind(kt)(l,c,cr({dragEl:Ve,parentEl:yi,ghostEl:Lt,rootEl:ci,nextEl:bo,lastDownEl:nu,cloneEl:gi,cloneHidden:Gr,dragStarted:Is,putSortable:qi,activeSortable:kt.active,originalEvent:r,oldIndex:wa,oldDraggableIndex:Ws,newIndex:Sn,newDraggableIndex:Ur,hideGhostForTarget:Zv,unhideGhostForTarget:Qv,cloneNowHidden:function(){Gr=!0},cloneNowShown:function(){Gr=!1},dispatchSortableEvent:function(o){ln({sortable:c,name:o,originalEvent:r})}},t))};function ln(n){LE(cr({putSortable:qi,cloneEl:gi,targetEl:Ve,rootEl:ci,oldIndex:wa,oldDraggableIndex:Ws,newIndex:Sn,newDraggableIndex:Ur},n))}var Ve,yi,Lt,ci,bo,nu,gi,Gr,wa,Sn,Ws,Ur,Ul,qi,ya=!1,vu=!1,yu=[],mo,Un,Xc,Yc,Ag,_g,Is,ma,$s,qs=!1,Gl=!1,ru,Zi,Kc=[],Lf=!1,bu=[],Lu=typeof document<"u",Xl=bd,kg=il||Ar?"cssFloat":"float",IE=Lu&&!zv&&!bd&&"draggable"in document.createElement("div"),Yv=(function(){if(Lu){if(Ar)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}
vendor: 22,178 bytes, line 115
115)(),Kv=function(l,c){var s=_t(l),r=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),t=ka(l,0,c),i=ka(l,1,c),o=t&&_t(t),u=i&&_t(i),f=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+_i(t).width,p=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+_i(i).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(t&&o.float&&o.float!=="none"){var v=o.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===v)?"vertical":"horizontal"}return t&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||f>=r&&s[kg]==="none"||i&&s[kg]==="none"&&f+p>r)?"vertical":"horizontal"},RE=function(l,c,s){var r=s?l.left:l.top,t=s?l.right:l.bottom,i=s?l.width:l.height,o=s?c.left:c.top,u=s?c.right:c.bottom,f=s?c.width:c.height;return r===o||t===u||r+i/2===o+f/2},PE=function(l,c){var s;return yu.some(function(r){var t=r[vn].options.emptyInsertThreshold;if(!(!t||xd(r))){var i=_i(r),o=l>=i.left-t&&l<=i.right+t,u=c>=i.top-t&&c<=i.bottom+t;if(o&&u)return s=r}}),s},Vv=function(l){function c(t,i){return function(o,u,f,p){var v=o.options.group.name&&u.options.group.name&&o.options.group.name===u.options.group.name;if(t==null&&(i||v))return!0;if(t==null||t===!1)return!1;if(i&&t==="clone")return t;if(typeof t=="function")return c(t(o,u,f,p),i)(o,u,f,p);var y=(i?o:u).options.group.name;return t===!0||typeof t=="string"&&t===y||t.join&&t.indexOf(y)>-1}}var s={},r=l.group;(!r||Of(r)!="object")&&(r={name:r}),s.name=r.name,s.checkPull=c(r.pull,!0),s.checkPut=c(r.put),s.revertClone=r.revertClone,l.group=s},Zv=function(){!Yv&&Lt&&_t(Lt,"display","none")},Qv=function(){!Yv&&Lt&&_t(Lt,"display","")};Lu&&!zv&&document.addEventListener("click",function(n){if(vu)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),vu=!1,!1},!0);var vo=function(l){if(Ve){l=l.touches?l.touches[0]:l;var c=PE(l.clientX,l.clientY);if(c){var s={};for(var r in l)l.hasOwnProperty(r)&&(s[r]=l[r]);s.target=s.rootEl=c,s.preventDefault=void 0,s.stopPropagation=void 0,c[vn]._onDragOver(s)}}},BE=function(l){Ve&&Ve.parentNode[vn]._isOutsideThisEl(l.target)};function kt(n,l){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=l=Dr({},l),n[vn]=this;var c={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Kv(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,o){i.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:kt.supportPointer!==!1&&"PointerEvent"in window&&(!zs||bd),emptyInsertThreshold:5};nl.initializePlugins(this,n,c);for(var s in c)!(s in l)&&(l[s]=c[s]);Vv(l);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=l.forceFallback?!1:IE,this.nativeDraggable&&(this.options.touchStartThreshold=1),l.supportPointer?Kt(n,"pointerdown",this._onTapStart):(Kt(n,"mousedown",this._onTapStart),Kt(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(Kt(n,"dragover",this),Kt(n,"dragenter",this)),yu.push(this.el),l.store&&l.store.get&&this.sort(l.store.get(this)||[]),Dr(this,TE())}kt.prototype={constructor:kt,_isOutsideThisEl:function(l){!this.el.contains(l)&&l!==this.el&&(ma=null)},_getDirection:function(l,c){return typeof this.options.direction=="function"?this.options.direction.call(this,l,c,Ve):this.options.direction},_onTapStart:function(l){if(l.cancelable){var c=this,s=this.el,r=this.options,t=r.preventOnFilter,i=l.type,o=l.touches&&l.touches[0]||l.pointerType&&l.pointerType==="touch"&&l,u=(o||l).target,f=l.target.shadowRoot&&(l.path&&l.path[0]||l.composedPath&&l.composedPath()[0])||u,p=r.filter;if(UE(s),!Ve&&!(/mousedown|pointerdown/.test(i)&&l.button!==0||r.disabled)&&!f.isContentEditable&&!(!this.nativeDraggable&&zs&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Gn(u,r.draggable,s,!1),!(u&&u.animated)&&nu!==u)){if(wa=Mn(u),Ws=Mn(u,r.draggable),typeof p=="function"){if(p.call(this,l,u,this)){ln({sortable:c,rootEl:f,name:"filter",targetEl:u,toEl:s,fromEl:s}),pn("filter",c,{evt:l}),t&&l.preventDefault();return}}else if(p&&(p=p.split(",").some(function(v){if(v=Gn(f,v.trim(),s,!1),v)return ln({sortable:c,rootEl:v,name:"filter",targetEl:u,fromEl:s,toEl:s}),pn("filter",c,{evt:l}),!0}),p)){t&&l.preventDefault();return}r.handle&&!Gn(f,r.handle,s,!1)||this._prepareDragStart(l,o,u)}}},_prepareDragStart:function(l,c,s){var r=this,t=r.el,i=r.options,o=t.ownerDocument,u;if(s&&!Ve&&s.parentNode===t){var f=_i(s);if(ci=t,Ve=s,yi=Ve.parentNode,bo=Ve.nextSibling,nu=s,Ul=i.group,kt.dragged=Ve,mo={target:Ve,clientX:(c||l).clientX,clientY:(c||l).clientY},Ag=mo.clientX-f.left,_g=mo.clientY-f.top,this._lastX=(c||l).clientX,this._lastY=(c||l).clientY,Ve.style["will-change"]="all",u=function(){if(pn("delayEnded",r,{evt:l}),kt.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Cg&&r.nativeDraggable&&(Ve.draggable=!0),r._triggerDragStart(l,c),ln({sortable:r,name:"choose",originalEvent:l}),En(Ve,i.chosenClass,!0)},i.ignore.split(",").forEach(function(p){$v(Ve,p.trim(),Vc)}),Kt(o,"dragover",vo),Kt(o,"mousemove",vo),Kt(o,"touchmove",vo),i.supportPointer?(Kt(o,"pointerup",r._onDrop),!this.nativeDraggable&&Kt(o,"pointercancel",r._onDrop)):(Kt(o,"mouseup",r._onDrop),Kt(o,"touchend",r._onDrop),Kt(o,"touchcancel",r._onDrop)),Cg&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ve.draggable=!0),pn("delayStart",this,{evt:l}),i.delay&&(!i.delayOnTouchOnly||c)&&(!this.nativeDraggable||!(il||Ar))){if(kt.eventCanceled){this._onDrop();return}i.supportPointer?(Kt(o,"pointerup",r._disableDelayedDrag),Kt(o,"pointercancel",r._disableDelayedDrag)):(Kt(o,"mouseup",r._disableDelayedDrag),Kt(o,"touchend",r._disableDelayedDrag),Kt(o,"touchcancel",r._disableDelayedDrag)),Kt(o,"mousemove",r._delayedDragTouchMoveHandler),Kt(o,"touchmove",r._delayedDragTouchMoveHandler),i.supportPointer&&Kt(o,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(l){var c=l.touches?l.touches[0]:l;Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ve&&Vc(Ve),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var l=this.el.ownerDocument;Ut(l,"mouseup",this._disableDelayedDrag),Ut(l,"touchend",this._disableDelayedDrag),Ut(l,"touchcancel",this._disableDelayedDrag),Ut(l,"pointerup",this._disableDelayedDrag),Ut(l,"pointercancel",this._disableDelayedDrag),Ut(l,"mousemove",this._delayedDragTouchMoveHandler),Ut(l,"touchmove",this._delayedDragTouchMoveHandler),Ut(l,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(l,c){c=c||l.pointerType=="touch"&&l,!this.nativeDraggable||c?this.options.supportPointer?Kt(document,"pointermove",this._onTouchMove):c?Kt(document,"touchmove",this._onTouchMove):Kt(document,"mousemove",this._onTouchMove):(Kt(Ve,"dragend",this),Kt(ci,"dragstart",this._onDragStart));try{document.selection?ou(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(l,c){if(ya=!1,ci&&Ve){pn("dragStarted",this,{evt:c}),this.nativeDraggable&&Kt(document,"dragover",BE);var s=this.options;!l&&En(Ve,s.dragClass,!1),En(Ve,s.ghostClass,!0),kt.active=this,l&&this._appendGhost(),ln({sortable:this,name:"start",originalEvent:c})}else this._nulling()},_emulateDragOver:function(){if(Un){this._lastX=Un.clientX,this._lastY=Un.clientY,Zv();for(var l=document.elementFromPoint(Un.clientX,Un.clientY),c=l;l&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(Un.clientX,Un.clientY),l!==c);)c=l;if(Ve.parentNode[vn]._isOutsideThisEl(l),c)do{if(c[vn]){var s=void 0;if(s=c[vn]._onDragOver({clientX:Un.clientX,clientY:Un.clientY,target:l,rootEl:c}),s&&!this.options.dragoverBubble)break}l=c}while(c=Wv(c));Qv()}},_onTouchMove:function(l){if(mo){var c=this.options,s=c.fallbackTolerance,r=c.fallbackOffset,t=l.touches?l.touches[0]:l,i=Lt&&Da(Lt,!0),o=Lt&&i&&i.a,u=Lt&&i&&i.d,f=Xl&&Zi&&Dg(Zi),p=(t.clientX-mo.clientX+r.x)/(o||1)+(f?f[0]-Kc[0]:0)/(o||1),v=(t.clientY-mo.clientY+r.y)/(u||1)+(f?f[1]-Kc[1]:0)/(u||1);if(!kt.active&&!ya){if(s&&Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))<s)return;this._onDragStart(l,!0)}if(Lt){i?(i.e+=p-(Xc||0),i.f+=v-(Yc||0)):i={a:1,b:0,c:0,d:1,e:p,f:v};var y="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");_t(Lt,"webkitTransform",y),_t(Lt,"mozTransform",y),_t(Lt,"msTransform",y),_t(Lt,"transform",y),Xc=p,Yc=v,Un=t}l.cancelable&&l.preventDefault()}},_appendGhost:function(){if(!Lt){var l=this.options.fallbackOnBody?document.body:ci,c=_i(Ve,!0,Xl,!0,l),s=this.options;if(Xl){for(Zi=l;_t(Zi,"position")==="static"&&_t(Zi,"transform")==="none"&&Zi!==document;)Zi=Zi.parentNode;Zi!==document.body&&Zi!==document.documentElement?(Zi===document&&(Zi=sr()),c.top+=Zi.scrollTop,c.left+=Zi.scrollLeft):Zi=sr(),Kc=Dg(Zi)}Lt=Ve.cloneNode(!0),En(Lt,s.ghostClass,!1),En(Lt,s.fallbackClass,!0),En(Lt,s.dragClass,!0),_t(Lt,"transition",""),_t(Lt,"transform",""),_t(Lt,"box-sizing","border-box"),_t(Lt,"margin",0),_t(Lt,"top",c.top),_t(Lt,"left",c.left),_t(Lt,"width",c.width),_t(Lt,"height",c.height),_t(Lt,"opacity","0.8"),_t(Lt,"position",Xl?"absolute":"fixed"),_t(Lt,"zIndex","100000"),_t(Lt,"pointerEvents","none"),kt.ghost=Lt,l.appendChild(Lt),_t(Lt,"transform-origin",Ag/parseInt(Lt.style.width)*100+"% "+_g/parseInt(Lt.style.height)*100+"%")}},_onDragStart:function(l,c){var s=this,r=l.dataTransfer,t=s.options;if(pn("dragStart",this,{evt:l}),kt.eventCanceled){this._onDrop();return}pn("setupClone",this),kt.eventCanceled||(gi=Gv(Ve),gi.removeAttribute("id"),gi.draggable=!1,gi.style["will-change"]="",this._hideClone(),En(gi,this.options.chosenClass,!1),kt.clone=gi),s.cloneId=ou(function(){pn("clone",s),!kt.eventCanceled&&(s.options.removeCloneOnHide||ci.insertBefore(gi,Ve),s._hideClone(),ln({sortable:s,name:"clone"}))}),!c&&En(Ve,t.dragClass,!0),c?(vu=!0,s._loopId=setInterval(s._emulateDragOver,50)):(Ut(document,"mouseup",s._onDrop),Ut(document,"touchend",s._onDrop),Ut(document,"touchcancel",s._onDrop),r&&(r.effectAllowed="move",t.setData&&t.setData.call(s,r,Ve)),Kt(document,"drop",s),_t(Ve,"transform","translateZ(0)")),ya=!0,s._dragStartId=ou(s._dragStarted.bind(s,c,l)),Kt(document,"selectstart",s),Is=!0,window.getSelection().removeAllRanges(),zs&&_t(document.body,"user-select","none")},_onDragOver:function(l){var c=this.el,s=l.target,r,t,i,o=this.options,u=o.group,f=kt.active,p=Ul===u,v=o.sort,y=qi||f,S,D=this,F=!1;if(Lf)return;function M(Ie,nt){pn(Ie,D,cr({evt:l,isOwner:p,axis:S?"vertical":"horizontal",revert:i,dragRect:r,targetRect:t,canSort:v,fromSortable:y,target:s,completed:L,onMove:function(ut,j){return Yl(ci,c,Ve,r,ut,_i(ut),l,j)},changed:H},nt))}function A(){M("dragOverAnimationCapture"),D.captureAnimationState(),D!==y&&y.captureAnimationState()}function L(Ie){return M("dragOverCompleted",{insertion:Ie}),Ie&&(p?f._hideClone():f._showClone(D),D!==y&&(En(Ve,qi?qi.options.ghostClass:f.options.ghostClass,!1),En(Ve,o.ghostClass,!0)),qi!==D&&D!==kt.active?qi=D:D===kt.active&&qi&&(qi=null),y===D&&(D._ignoreWhileAnimating=s),D.animateAll(function(){M("dragOverAnimationComplete"),D._ignoreWhileAnimating=null}),D!==y&&(y.animateAll(),y._ignoreWhileAnimating=null)),(s===Ve&&!Ve.animated||s===c&&!s.animated)&&(ma=null),!o.dragoverBubble&&!l.rootEl&&s!==document&&(Ve.parentNode[vn]._isOutsideThisEl(l.target),!Ie&&vo(l)),!o.dragoverBubble&&l.stopPropagation&&l.stopPropagation(),F=!0}function H(){Sn=Mn(Ve),Ur=Mn(Ve,o.draggable),ln({sortable:D,name:"change",toEl:c,newIndex:Sn,newDraggableIndex:Ur,originalEvent:l})}if(l.preventDefault!==void 0&&l.cancelable&&l.preventDefault(),s=Gn(s,o.draggable,c,!0),M("dragOver"),kt.eventCanceled)return F;if(Ve.contains(l.target)||s.animated&&s.animatingX&&s.animatingY||D._ignoreWhileAnimating===s)return L(!1);if(vu=!1,f&&!o.disabled&&(p?v||(i=yi!==ci):qi===this||(this.lastPutMode=Ul.checkPull(this,f,Ve,l))&&u.checkPut(this,f,Ve,l))){if(S=this._getDirection(l,s)==="vertical",r=_i(Ve),M("dragOverValid"),kt.eventCanceled)return F;if(i)return yi=ci,A(),this._hideClone(),M("revert"),kt.eventCanceled||(bo?ci.insertBefore(Ve,bo):ci.appendChild(Ve)),L(!0);var U=xd(c,o.draggable);if(!U||jE(l,S,this)&&!U.animated){if(U===Ve)return L(!1);if(U&&c===l.target&&(s=U),s&&(t=_i(s)),Yl(ci,c,Ve,r,s,t,l,!!s)!==!1)return A(),U&&U.nextSibling?c.insertBefore(Ve,U.nextSibling):c.appendChild(Ve),yi=c,H(),L(!0)}else if(U&&zE(l,S,this)){var ee=ka(c,0,o,!0);if(ee===Ve)return L(!1);if(s=ee,t=_i(s),Yl(ci,c,Ve,r,s,t,l,!1)!==!1)return A(),c.insertBefore(Ve,ee),yi=c,H(),L(!0)}else if(s.parentNode===c){t=_i(s);var Z=0,w,xe=Ve.parentNode!==c,De=!RE(Ve.animated&&Ve.toRect||r,s.animated&&s.toRect||t,S),Ke=S?"top":"left",ye=Sg(s,"top","top")||Sg(Ve,"top","top"),_e=ye?ye.scrollTop:void 0;ma!==s&&(w=t[Ke],qs=!1,Gl=!De&&o.invertSwap||xe),Z=WE(l,s,t,S,De?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Gl,ma===s);var ie;if(Z!==0){var me=Mn(Ve);do me-=Z,ie=yi.children[me];while(ie&&(_t(ie,"display")==="none"||ie===Lt))}if(Z===0||ie===s)return L(!1);ma=s,$s=Z;var Y=s.nextElementSibling,Ee=!1;Ee=Z===1;var we=Yl(ci,c,Ve,r,s,t,l,Ee);if(we!==!1)return(we===1||we===-1)&&(Ee=we===1),Lf=!0,setTimeout(HE,30),A(),Ee&&!Y?c.appendChild(Ve):s.parentNode.insertBefore(Ve,Ee?Y:s),ye&&Uv(ye,0,_e-ye.scrollTop),yi=Ve.parentNode,w!==void 0&&!Gl&&(ru=Math.abs(w-_i(s)[Ke])),H(),L(!0)}if(c.contains(Ve))return L(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ut(document,"mousemove",this._onTouchMove),Ut(document,"touchmove",this._onTouchMove),Ut(document,"pointermove",this._onTouchMove),Ut(document,"dragover",vo),Ut(document,"mousemove",vo),Ut(document,"touchmove",vo)},_offUpEvents:function(){var l=this.el.ownerDocument;Ut(l,"mouseup",this._onDrop),Ut(l,"touchend",this._onDrop),Ut(l,"pointerup",this._onDrop),Ut(l,"pointercancel",this._onDrop),Ut(l,"touchcancel",this._onDrop),Ut(document,"selectstart",this)},_onDrop:function(l){var c=this.el,s=this.options;if(Sn=Mn(Ve),Ur=Mn(Ve,s.draggable),pn("drop",this,{evt:l}),yi=Ve&&Ve.parentNode,Sn=Mn(Ve),Ur=Mn(Ve,s.draggable),kt.eventCanceled){this._nulling();return}ya=!1,Gl=!1,qs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Mf(this.cloneId),Mf(this._dragStartId),this.nativeDraggable&&(Ut(document,"drop",this),Ut(c,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),zs&&_t(document.body,"user-select",""),_t(Ve,"transform",""),l&&(Is&&(l.cancelable&&l.preventDefault(),!s.dropBubble&&l.stopPropagation()),Lt&&Lt.parentNode&&Lt.parentNode.removeChild(Lt),(ci===yi||qi&&qi.lastPutMode!=="clone")&&gi&&gi.parentNode&&gi.parentNode.removeChild(gi),Ve&&(this.nativeDraggable&&Ut(Ve,"dragend",this),Vc(Ve),Ve.style["will-change"]="",Is&&!ya&&En(Ve,qi?qi.options.ghostClass:this.options.ghostClass,!1),En(Ve,this.options.chosenClass,!1),ln({sortable:this,name:"unchoose",toEl:yi,newIndex:null,newDraggableIndex:null,originalEvent:l}),ci!==yi?(Sn>=0&&(ln({rootEl:yi,name:"add",toEl:yi,fromEl:ci,originalEvent:l}),ln({sortable:this,name:"remove",toEl:yi,originalEvent:l}),ln({rootEl:yi,name:"sort",toEl:yi,fromEl:ci,originalEvent:l}),ln({sortable:this,name:"sort",toEl:yi,originalEvent:l})),qi&&qi.save()):Sn!==wa&&Sn>=0&&(ln({sortable:this,name:"update",toEl:yi,originalEvent:l}),ln({sortable:this,name:"sort",toEl:yi,originalEvent:l})),kt.active&&((Sn==null||Sn===-1)&&(Sn=wa,Ur=Ws),ln({sortable:this,name:"end",toEl:yi,originalEvent:l}),this.save()))),this._nulling()},_nulling:function(){pn("nulling",this),ci=Ve=yi=Lt=bo=gi=nu=Gr=mo=Un=Is=Sn=Ur=wa=Ws=ma=$s=qi=Ul=kt.dragged=kt.ghost=kt.clone=kt.active=null;var l=this.el;bu.forEach(function(c){l.contains(c)&&(c.checked=!0)}),bu.length=Xc=Yc=0},handleEvent:function(l){switch(l.type){case"drop":case"dragend":this._onDrop(l);break;case"dragenter":case"dragover":Ve&&(this._onDragOver(l),NE(l));break;case"selectstart":l.preventDefault();break}},toArray:function(){for(var l=[],c,s=this.el.children,r=0,t=s.length,i=this.options;r<t;r++)c=s[r],Gn(c,i.draggable,this.el,!1)&&l.push(c.getAttribute(i.dataIdAttr)||qE(c));return l},sort:function(l,c){var s={},r=this.el;this.toArray().forEach(function(t,i){var o=r.children[i];Gn(o,this.options.draggable,r,!1)&&(s[t]=o)},this),c&&this.captureAnimationState(),l.forEach(function(t){s[t]&&(r.removeChild(s[t]),r.appendChild(s[t]))}),c&&this.animateAll()},save:function(){var l=this.options.store;l&&l.set&&l.set(this)},closest:function(l,c){return Gn(l,c||this.options.draggable,this.el,!1)},option:function(l,c){var s=this.options;if(c===void 0)return s[l];var r=nl.modifyOption(this,l,c);typeof r<"u"?s[l]=r:s[l]=c,l==="group"&&Vv(s)},destroy:function(){pn("destroy",this);var l=this.el;l[vn]=null,Ut(l,"mousedown",this._onTapStart),Ut(l,"touchstart",this._onTapStart),Ut(l,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ut(l,"dragover",this),Ut(l,"dragenter",this)),Array.prototype.forEach.call(l.querySelectorAll("[draggable]"),function(c){c.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),yu.splice(yu.indexOf(this.el),1),this.el=l=null},_hideClone:function(){if(!Gr){if(pn("hideClone",this),kt.eventCanceled)return;_t(gi,"display","none"),this.options.removeCloneOnHide&&gi.parentNode&&gi.parentNode.removeChild(gi),Gr=!0}},_showClone:function(l){if(l.lastPutMode!=="clone"){this._hideClone();return}if(Gr){if(pn("showClone",this),kt.eventCanceled)return;Ve.parentNode==ci&&!this.options.group.revertClone?ci.insertBefore(gi,Ve):bo?ci.insertBefore(gi,bo):ci.appendChild(gi),this.options.group.revertClone&&this.animate(Ve,gi),_t(gi,"display",""),Gr=!1}}};function NE(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Yl(n,l,c,s,r,t,i,o){var u,f=n[vn],p=f.options.onMove,v;return window.CustomEvent&&!Ar&&!il?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=l,u.from=n,u.dragged=c,u.draggedRect=s,u.related=r||l,u.relatedRect=t||_i(l),u.willInsertAfter=o,u.originalEvent=i,n.dispatchEvent(u),p&&(v=p.call(f,u,i)),v}function Vc(n){n.draggable=!1}function HE(){Lf=!1}function zE(n,l,c){var s=_i(ka(c.el,0,c.options,!0)),r=Xv(c.el,c.options,Lt),t=10;return l?n.clientX<r.left-t||n.clientY<s.top&&n.clientX<s.right:n.clientY<r.top-t||n.clientY<s.bottom&&n.clientX<s.left}function jE(n,l,c){var s=_i(xd(c.el,c.options.draggable)),r=Xv(c.el,c.options,Lt),t=10;return l?n.clientX>r.right+t||n.clientY>s.bottom&&n.clientX>s.left:n.clientY>r.bottom+t||n.clientX>s.right&&n.clientY>s.top}function WE(n,l,c,s,r,t,i,o){var u=s?n.clientY:n.clientX,f=s?c.height:c.width,p=s?c.top:c.left,v=s?c.bottom:c.right,y=!1;if(!i){if(o&&ru<f*r){if(!qs&&($s===1?u>p+f*t/2:u<v-f*t/2)&&(qs=!0),qs)y=!0;else if($s===1?u<p+ru:u>v-ru)return-$s}else if(u>p+f*(1-r)/2&&u<v-f*(1-r)/2)return $E(l)}return y=y||i,y&&(u<p+f*t/2||u>v-f*t/2)?u>p+f/2?1:-1:0}function $E(n){return Mn(Ve)<Mn(n)?1:-1}function qE(n){for(var l=n.tagName+n.className+n.src+n.href+n.textContent,c=l.length,s=0;c--;)s+=l.charCodeAt(c);return s.toString(36)}function UE(n){bu.length=0;for(var l=n.getElementsByTagName("input"),c=l.length;c--;){var s=l[c];s.checked&&bu.push(s)}}function ou(n){return setTimeout(n,0)}function Mf(n){return clearTimeout(n)}Lu&&Kt(document,"touchmove",function(n){(kt.active||ya)&&n.cancelable&&n.preventDefault()});kt.utils={on:Kt,off:Ut,css:_t,find:$v,is:function(l,c){return!!Gn(l,c,l,!1)},extend:_E,throttle:qv,closest:Gn,toggleClass:En,clone:Gv,index:Mn,nextTick:ou,cancelNextTick:Mf,detectDirection:Kv,getChild:ka,expando:vn};kt.get=function(n){return n[vn]};kt.mount=function(){for(var n=arguments.length,l=new Array(n),c=0;c<n;c++)l[c]=arguments[c];l[0].constructor===Array&&(l=l[0]),l.forEach(function(s){if(!s.prototype||!s.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(s));s.utils&&(kt.utils=cr(cr({},kt.utils),s.utils)),nl.mount(s)})};kt.create=function(n,l){return new kt(n,l)};kt.version=DE;var Ai=[],Rs,If,Rf=!1,Zc,Qc,xu,Ps;function GE(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var l in this)l.charAt(0)==="_"&&typeof this[l]=="function"&&(this[l]=this[l].bind(this))}return n.prototype={dragStarted:function(c){var s=c.originalEvent;this.sortable.nativeDraggable?Kt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Kt(document,"pointermove",this._handleFallbackAutoScroll):s.touches?Kt(document,"touchmove",this._handleFallbackAutoScroll):Kt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(c){var s=c.originalEvent;!this.options.dragOverBubble&&!s.rootEl&&this._handleAutoScroll(s)},drop:function(){this.sortable.nativeDraggable?Ut(document,"dragover",this._handleAutoScroll):(Ut(document,"pointermove",this._handleFallbackAutoScroll),Ut(document,"touchmove",this._handleFallbackAutoScroll),Ut(document,"mousemove",this._handleFallbackAutoScroll)),Tg(),au(),kE()},nulling:function(){xu=If=Rs=Rf=Ps=Zc=Qc=null,Ai.length=0},_handleFallbackAutoScroll:function(c){this._handleAutoScroll(c,
115!0)},_handleAutoScroll:function(c,s){var r=this,t=(c.touches?c.touches[0]:c).clientX,i=(c.touches?c.touches[0]:c).clientY,o=document.elementFromPoint(t,i);if(xu=c,s||this.options.forceAutoScrollFallback||il||Ar||zs){Jc(c,this.options,o,s);var u=Kr(o,!0);Rf&&(!Ps||t!==Zc||i!==Qc)&&(Ps&&Tg(),Ps=setInterval(function(){var f=Kr(document.elementFromPoint(t,i),!0);f!==u&&(u=f,au()),Jc(c,r.options,f,s)},10),Zc=t,Qc=i)}else{if(!this.options.bubbleScroll||Kr(o,!0)===sr()){au();return}Jc(c,this.options,Kr(o,!1),!1)}}},Dr(n,{pluginName:"scroll",initializeByDefault:!0})}function au(){Ai.forEach(function(n){clearInterval(n.pid)}),Ai=[]}function Tg(){clearInterval(Ps)}var Jc=qv(function(n,l,c,s){if(l.scroll){var r=(n.touches?n.touches[0]:n).clientX,t=(n.touches?n.touches[0]:n).clientY,i=l.scrollSensitivity,o=l.scrollSpeed,u=sr(),f=!1,p;If!==c&&(If=c,au(),Rs=l.scroll,p=l.scrollFn,Rs===!0&&(Rs=Kr(c,!0)));var v=0,y=Rs;do{var S=y,D=_i(S),F=D.top,M=D.bottom,A=D.left,L=D.right,H=D.width,U=D.height,ee=void 0,Z=void 0,w=S.scrollWidth,xe=S.scrollHeight,De=_t(S),Ke=S.scrollLeft,ye=S.scrollTop;S===u?(ee=H<w&&(De.overflowX==="auto"||De.overflowX==="scroll"||De.overflowX==="visible"),Z=U<xe&&(De.overflowY==="auto"||De.overflowY==="scroll"||De.overflowY==="visible")):(ee=H<w&&(De.overflowX==="auto"||De.overflowX==="scroll"),Z=U<xe&&(De.overflowY==="auto"||De.overflowY==="scroll"));var _e=ee&&(Math.abs(L-r)<=i&&Ke+H<w)-(Math.abs(A-r)<=i&&!!Ke),ie=Z&&(Math.abs(M-t)<=i&&ye+U<xe)-(Math.abs(F-t)<=i&&!!ye);if(!Ai[v])for(var me=0;me<=v;me++)Ai[me]||(Ai[me]={});(Ai[v].vx!=_e||Ai[v].vy!=ie||Ai[v].el!==S)&&(Ai[v].el=S,Ai[v].vx=_e,Ai[v].vy=ie,clearInterval(Ai[v].pid),(_e!=0||ie!=0)&&(f=!0,Ai[v].pid=setInterval((function(){s&&this.layer===0&&kt.active._onTouchMove(xu);var Y=Ai[this.layer].vy?Ai[this.layer].vy*o:0,Ee=Ai[this.layer].vx?Ai[this.layer].vx*o:0;typeof p=="function"&&p.call(kt.dragged.parentNode[vn],Ee,Y,n,xu,Ai[this.layer].el)!=="continue"||Uv(Ai[this.layer].el,Ee,Y)}).bind({layer:v}),24))),v++}while(l.bubbleScroll&&y!==u&&(y=Kr(y,!1)));Rf=f}},30),Jv=function(l){var c=l.originalEvent,s=l.putSortable,r=l.dragEl,t=l.activeSortable,i=l.dispatchSortableEvent,o=l.hideGhostForTarget,u=l.unhideGhostForTarget;if(c){var f=s||t;o();var p=c.changedTouches&&c.changedTouches.length?c.changedTouches[0]:c,v=document.elementFromPoint(p.clientX,p.clientY);u(),f&&!f.el.contains(v)&&(i("spill"),this.onSpill({dragEl:r,putSortable:s}))}};function wd(){}wd.prototype={startIndex:null,dragStart:function(l){var c=l.oldDraggableIndex;this.startIndex=c},onSpill:function(l){var c=l.dragEl,s=l.putSortable;this.sortable.captureAnimationState(),s&&s.captureAnimationState();var r=ka(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(c,r):this.sortable.el.appendChild(c),this.sortable.animateAll(),s&&s.animateAll()},drop:Jv};Dr(wd,{pluginName:"revertOnSpill"});function Cd(){}Cd.prototype={onSpill:function(l){var c=l.dragEl,s=l.putSortable,r=s||this.sortable;r.captureAnimationState(),c.parentNode&&c.parentNode.removeChild(c),r.animateAll()},drop:Jv};Dr(Cd,{pluginName:"removeOnSpill"});kt.mount(new GE);kt.mount(Cd,wd);wo(function(){wo("textarea.smde").each(function(){new Ev({toolbar:["bold","italic","|","link","|","preview"],spellChecker:!1,element:this})}),wo("select.select2").each(function(){wo(this).select2()})});window.Alpine=mv;mv.start();window.AOS=vv;window.Packery=fC;window.EasyMDE=Ev;window.Cropper=Hv;window.Sortable=kt;try{vv.init({offset:0}),$(".parallax-window").parallax({position:"top"}),$(".slick-banner").slick({autoplay:!0,autoplaySpeed:6e3,pauseOnHover:!1}),$(".slick-articles").slick({autoplay:!1,autoplaySpeed:6e3,pauseOnHover:!1,slidesToShow:3,responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(".slick-related").slick({autoplay:!1,autoplaySpeed:6e3,pauseOnHover:!1,slidesToShow:4,responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:1,slidesToScroll:1}}]})}catch{}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.