vendor: 16,036 bytes, line 1
1!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.anime=e()}(this,function(){"use strict";var a={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},b={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},k=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],h={CSS:{},springs:{}};function A(t,e,i){return Math.min(Math.max(t,e),i)}function u(t,e){return-1<t.indexOf(e)}function r(t,e){return t.apply(null,e)}var P={arr:function(t){return Array.isArray(t)},obj:function(t){return u(Object.prototype.toString.call(t),"Object")},pth:function(t){return P.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||P.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return P.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return P.hex(t)||P.rgb(t)||P.hsl(t)},key:function(t){return!a.hasOwnProperty(t)&&!b.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function d(t){t=/\(([^)]+)\)/.exec(t);return t?t[1].split(",").map(function(t){return parseFloat(t)}):[]}function s(n,i){var t=d(n),e=A(P.und(t[0])?1:t[0],.1,100),o=A(P.und(t[1])?100:t[1],.1,100),r=A(P.und(t[2])?10:t[2],.1,100),t=A(P.und(t[3])?0:t[3],.1,100),s=Math.sqrt(o/e),a=r/(2*Math.sqrt(o*e)),l=a<1?s*Math.sqrt(1-a*a):0,u=a<1?(a*s-t)/l:-t+s;function c(t){var e=i?i*t/1e3:t,e=a<1?Math.exp(-e*a*s)*(+Math.cos(l*e)+u*Math.sin(l*e)):(1+u*e)*Math.exp(-e*s);return 0===t||1===t?t:1-e}return i?c:function(){var t=h.springs[n];if(t)return t;for(var e=0,i=0;;)if(1===c(e+=1/6)){if(16<=++i)break}else i=0;t=e*(1/6)*1e3;return h.springs[n]=t}}function N(e){return void 0===e&&(e=10),function(t){return Math.ceil(A(t,1e-6,1)*e)*(1/e)}}function V(v,e,b,i){if(0<=v&&v<=1&&0<=b&&b<=1){var y=new Float32Array(11);if(v!==e||b!==i)for(var t=0;t<11;++t)y[t]=M(.1*t,v,b);return function(t){return v===e&&b===i||0===t||1===t?t:M(function(t){for(var e=0,i=1;10!==i&&y[i]<=t;++i)e+=.1;var n=e+(t-y[--i])/(y[i+1]-y[i])*.1,o=C(n,v,b);if(.001<=o){for(var r=t,s=n,a=v,l=b,u=0;u<4;++u){var c=C(s,a,l);if(0===c)return s;s-=(M(s,a,l)-r)/c}return s}if(0===o)return n;for(var h,d,p=t,f=e,g=e+.1,T=v,m=b,S=0;0<(h=M(d=f+(g-f)/2,T,m)-p)?g=d:f=d,1e-7<Math.abs(h)&&++S<10;);return d}(t),e,i)}}}e={linear:function(){return function(t){return t}}},i={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===e&&(e=.5);var i=A(t=void 0===t?1:t,1,10),n=A(e,.1,2);return function(t){return 0===t||1===t?t:-i*Math.pow(2,10*(t-1))*Math.sin((t-1-n/(2*Math.PI)*Math.asin(1/i))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(t,e){i[t]=function(){return function(t){return Math.pow(t,e+2)}}}),Object.keys(i).forEach(function(t){var n=i[t];e["easeIn"+t]=n,e["easeOut"+t]=function(e,i){return function(t){return 1-n(e,i)(1-t)}},e["easeInOut"+t]=function(e,i){return function(t){return t<.5?n(e,i)(2*t)/2:1-n(e,i)(-2*t+2)/2}},e["easeOutIn"+t]=function(e,i){return function(t){return t<.5?(1-n(e,i)(1-2*t))/2:(n(e,i)(2*t-1)+1)/2}}});var e,i,l=e;function n(t,e){return 1-3*e+3*t}function M(t,e,i){return((n(e,i)*t+(3*i-6*e))*t+3*e)*t}function C(t,e,i){return 3*n(e,i)*t*t+2*(3*i-6*e)*t+3*e}function w(t,e){if(P.fnc(t))return t;var i=t.split("(")[0],n=l[i],o=d(t);switch(i){case"spring":return s(t,e);case"cubicBezier":return r(V,o);case"steps":return r(N,o);default:return r(n,o)}}function o(t){try{return document.querySelectorAll(t)}catch(t){}}function G(t,e){for(var i,n=t.length,o=2<=arguments.length?e:void 0,r=[],s=0;s<n;s++)s in t&&(i=t[s],e.call(o,i,s,t))&&r.push(i);return r}function c(t){return t.reduce(function(t,e){return t.concat(P.arr(e)?c(e):e)},[])}function p(t){return P.arr(t)?t:(t=P.str(t)?o(t)||t:t)instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t]}function f(t,e){return t.some(function(t){return t===e})}function g(t){var e,i={};for(e in t)i[e]=t[e];return i}function y(t,e){var i,n=g(t);for(i in t)n[i]=(e.hasOwnProperty(i)?e:t)[i];return n}function I(t,e){var i,n=g(t);for(i in e)n[i]=(P.und(t[i])?e:t)[i];return n}function E(t){t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(t)return t[1]}function T(t,e){return P.fnc(t)?t(e.target,e.id,e.total):t}function m(t,e){return t.getAttribute(e)}function S(t,e,i){var n,o,r;return f([i,"deg","rad","turn"],E(e))?e:(n=h.CSS[e+i],P.und(n)?(o=document.createElement(t.tagName),(t=t.parentNode&&t.parentNode!==document?t.parentNode:document.body).appendChild(o),o.style.position="absolute",o.style.width=100+i,r=100/o.offsetWidth,t.removeChild(o),t=r*parseFloat(e),h.CSS[e+i]=t):n)}function R(t,e,i){var n;if(e in t.style)return n=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e=t.style[e]||getComputedStyle(t).getPropertyValue(n)||"0",i?S(t,e,i):e}function v(t,e){return P.dom(t)&&!P.inp(t)&&(!P.nil(m(t,e))||P.svg(t)&&t[e])?"attribute":P.dom(t)&&f(k,e)?"transform":P.dom(t)&&"transform"!==e&&R(t,e)?"css":null!=t[e]?"object":void 0}function F(t){if(P.dom(t)){for(var e,i=t.style.transform||"",n=/(\w+)\(([^)]*)\)/g,o=new Map;e=n.exec(i);)o.set(e[1],e[2]);return o}}function B(t,e,i,n){switch(v(t,e)){case"transform":return o=t,s=n,a=i,l=u(r=e,"scale")?1:0+(u(l=r,"translate")||"perspective"===l?"px":u(l,"rotate")||u(l,"skew")?"deg":void 0),l=F(o).get(r)||l,s&&(s.transforms.list.set(r,l),s.transforms.last=r),a?S(o,l,a):l;case"css":return R(t,e,i);case"attribute":return m(t,e);default:return t[e]||0}var o,r,s,a,l}function _(t,e){var i=/^(\*=|\+=|-=)/.exec(t);if(!i)return t;var n=E(t)||0,o=parseFloat(e),r=parseFloat(t.replace(i[0],""));switch(i[0][0]){case"+":return o+r+n;case"-":return o-r+n;case"*":return o*r+n}}function W(t,e){var i,n,o,r,s,a,l;return P.col(t)?(a=t,P.rgb(a)?(r=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(s=a))?"rgba("+r[1]+",1)":s:P.hex(a)?(r=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n}),s=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),"rgba("+parseInt(s[1],16)+","+parseInt(s[2],16)+","+parseInt(s[3],16)+",1)"):P.hsl(a)?(r=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(r=a)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(r),s=parseInt(r[1],10)/360,a=parseInt(r[2],10)/100,l=parseInt(r[3],10)/100,r=r[4]||1,0==a?i=n=o=l:(i=u(a=2*l-(l=l<.5?l*(1+a):l+a-l*a),l,s+1/3),n=u(a,l,s),o=u(a,l,s-1/3)),"rgba("+255*i+","+255*n+","+255*o+","+r+")"):void 0):/\s/g.test(t)?t:(l=(a=E(t))?t.substr(0,t.length-a.length):t,e?l+e:l);function u(t,e,i){return i<0&&(i+=1),1<i&&--i,i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}}function H(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $(t){for(var e,i=t.points,n=0,o=0;o<i.numberOfItems;o++){var r=i.getItem(o);0<o&&(n+=H(e,r)),e=r}return n}function z(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*m(t,"r");case"rect":return 2*m(e=t,"width")+2*m(e,"height");case"line":return H({x:m(e=t,"x1"),y:m(e,"y1")},{x:m(e,"x2"),y:m(e,"y2")});case"polyline":return $(t);case"polygon":return e=t.points,$(t)+H(e.getItem(e.numberOfItems-1),e.getItem(0))}var e}function X(e,t){var t=t||{},i=t.el||function(){for(var t=e.parentNode;P.svg(t)&&P.svg(t.parentNode);)t=t.parentNode;return t}(),n=i.getBoundingClientRect(),o=m(i,"viewBox"),r=n.width,n=n.height,t=t.viewBox||(o?o.split(" "):[0,0,r,n]);return{el:i,viewBox:t,x:+t[0],y:+t[1],w:r,h:n,vW:t[2],vH:t[3]}}function j(t,e){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=W(P.pth(t)?t.totalLength:t,e)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:P.str(t)||e?n.split(i):[]}}function O(t){return G(t?c(P.arr(t)?t.map(p):p(t)):[],function(t,e,i){return i.indexOf(t)===e})}function K(t){var i=O(t);return i.map(function(t,e){return{target:t,id:e,total:i.length,transforms:{list:F(t)}}})}function U(t,e){var i,n=[],o=e.keyframes;for(i in e=o?I(function(e){for(var i=G(c(e.map(function(t){return Object.keys(t)})),function(t){return P.key(t)}).reduce(function(t,e){return t.indexOf(e)<0&&t.push(e),t},[]),o={},t=0;t<i.length;t++)!function(t){var n=i[t];o[n]=e.map(function(t){var e,i={};for(e in t)P.key(e)?e==n&&(i.value=t[e]):i[e]=t[e];return i})}(t);return o}(o),e):e)P.key(i)&&n.push({name:i,tweens:function(t,i){var e,n=g(i),o=(/^spring/.test(n.easing)&&(n.duration=s(n.easing)),P.arr(t)&&(2!==(e=t.length)||P.obj(t[0])?P.fnc(i.duration)||(n.duration=i.duration/e):t={value:t}),P.arr(t)?t:[t]);return o.map(function(t,e){t=P.obj(t)&&!P.pth(t)?t:{value:t};return P.und(t.delay)&&(t.delay=e?0:i.delay),P.und(t.endDelay)&&(t.endDelay=e===o.length-1?i.endDelay:0),t}).map(function(t){return I(t,n)})}(e[i],t)});return n}var Q={css:function(t,e,i){return t.style[e]=i},attribute:function(t,e,i){return t.setAttribute(e,i)},object:function(t,e,i){return t[e]=i},transform:function(t,e,i,n,o){var r;n.list.set(e,i),e!==n.last&&!o||(r="",n.list.forEach(function(t,e){r+=e+"("+t+") "}),t.style.transform=r)}};function q(t,s){K(t).forEach(function(t){for(var e in s){var i=T(s[e],t),n=t.target,o=E(i),r=B(n,e,o,t),i=_(W(i,o||E(r)),r),o=v(n,e);Q[o](n,e,i,t.transforms,!0)}})}function Y(t,e){return G(c(t.map(function(r){return e.map(function(t){var e,i,a,l,u,n=r,o=v(n.target,t.name);if(o)return l=n,i=(e=(a=t).tweens.map(function(t){var t=function(t,e){var i,n={};for(i in t){var o=T(t[i],e);P.arr(o)&&1===(o=o.map(function(t){return T(t,e)})).length&&(o=o[0]),n[i]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(t,l),e=t.value,i=P.arr(e)?e[1]:e,n=E(i),o=B(l.target,a.name,n,l),r=u?u.to.original:o,s=P.arr(e)?e[0]:r,o=E(s)||E(o),n=n||o;return P.und(i)&&(i=r),t.from=j(s,n),t.to=j(_(i,s),n),t.start=u?u.end:0,t.end=t.start+t.delay+t.duration+t.endDelay,t.easing=w(t.easing,t.duration),t.isPath=P.pth(e),t.isPathTargetInsideSVG=t.isPath&&P.svg(l.target),t.isColor=P.col(t.from.original),t.isColor&&(t.round=1),u=t}))[e.length-1],{type:o,property:t.name,animatable:n,tweens:e,duration:i.end,delay:e[0].delay,endDelay:i.endDelay}})})),function(t){return!P.und(t)})}function Z(t,e){function i(t){return t.timelineOffset||0}var n=t.length,o={};return o.duration=n?Math.max.apply(Math,t.map(function(t){return i(t)+t.duration})):e.duration,o.delay=n?Math.min.apply(Math,t.map(function(t){return i(t)+t.delay})):e.delay,o.endDelay=n?o.duration-Math.max.apply(Math,t.map(function(t){return i(t)+t.duration-t.endDelay})):e.endDelay,o}var x,J=0,D=[],tt=("undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){L.suspendWhenDocumentHidden&&(t()?x=cancelAnimationFrame(x):(D.forEach(function(t){return t._onDocumentVisibility()}),tt()))}),function(){!(x||t()&&L.suspendWhenDocumentHidden)&&0<D.length&&(x=requestAnimationFrame(et))});function et(t){for(var e=D.length,i=0;i<e;){var n=D[i];n.paused?(D.splice(i,1),e--):(n.tick(t),i++)}x=0<i?requestAnimationFrame(et):void 0}function t(){return document&&document.hidden}function L(t){var l,u=0,c=0,h=0,d=0,p=null;function f(t){var e=window.Promise&&new Promise(function(t){return p=t});t.finished=e}e=y(a,t=t=void 0===t?{}:t),i=U(n=y(b,t),t),n=Z(i=Y(t=K(t.targets),i),n),o=J,J++;var e,i,n,o,M=I(e,{id:o,children:[],animatables:t,animations:i,duration:n.duration,delay:n.delay,endDelay:n.endDelay});function g(){var t=M.direction;"alternate"!==t&&(M.direction="normal"!==t?"normal":"reverse"),M.reversed=!M.reversed,l.forEach(function(t){return t.reversed=M.reversed})}function T(t){return M.reversed?M.duration-t:t}function r(){u=0,c=T(M.currentTime)*(1/L.speed)}function m(t,e){e&&e.seek(t-e.timelineOffset)}function S(e){for(var t=0,i=M.animations,n=i.length;t<n;){var o=i[t],r=o.animatable,s=o.tweens,a=s.length-1,l=s[a];a&&(l=G(s,function(t){return e<t.end})[0]||l);for(var a=A(e-l.start-l.delay,0,l.duration)/l.duration,u=isNaN(a)?1:l.easing(a),c=l.to.strings,h=l.round,d=[],p=l.to.numbers.length,f=void 0,g=0;g<p;g++){var T=void 0,m=l.to.numbers[g],S=l.from.numbers[g]||0,T=l.isPath?function(e,i,t){function n(t){return e.el.getPointAtLength(1<=i+(t=void 0===t?0:t)?i+t:0)}var o=X(e.el,e.svg),r=n(),s=n(-1),a=n(1),l=t?1:o.w/o.vW,u=t?1:o.h/o.vH;switch(e.property){case"x":return(r.x-o.x)*l;case"y":return(r.y-o.y)*u;case"angle":return 180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI}}(l.value,u*m,l.isPathTargetInsideSVG):S+u*(m-S);!h||l.isColor&&2<g||(T=Math.round(T*h)/h),d.push(T)}var v=c.length;if(v)for(var f=c[0],b=0;b<v;b++){c[b];var y=c[b+1],P=d[b];isNaN(P)||(f+=y?P+y:P+" ")}else f=d[0];Q[o.type](r.target,o.property,f,r.transforms),o.currentValue=f,t++}}function v(t){M[t]&&!M.passThrough&&M[t](M)}function s(t){var e=M.duration,i=M.delay,n=e-M.endDelay,o=T(t);if(M.progress=A(o/e*100,0,100),M.reversePlayback=o<M.currentTime,l){var r=o;if(M.reversePlayback)for(var s=d;s--;)m(r,l[s]);else for(var a=0;a<d;a++)m(r,l[a])}!M.began&&0<M.currentTime&&(M.began=!0,v("begin")),!M.loopBegan&&0<M.currentTime&&(M.loopBegan=!0,v("loopBegin")),o<=i&&0!==M.currentTime&&S(0),(n<=o&&M.currentTime!==e||!e)&&S(e),i<o&&o<n?(M.changeBegan||(M.changeBegan=!0,M.changeCompleted=!1,v("changeBegin")),v("change"),S(o)):M.changeBegan&&(M.changeCompleted=!0,M.changeBegan=!1,v("changeComplete")),M.currentTime=A(o,0,e),M.began&&v("update"),e<=t&&(c=0,M.remaining&&!0!==M.remaining&&M.remaining--,M.remaining?(u=h,v("loopComplete"),M.loopBegan=!1,"alternate"===M.direction&&g()):(M.paused=!0,M.completed||(M.completed=!0,v("loopComplete"),v("complete"),!M.passThrough&&"Promise"in window&&(p(),f(M)))))}return f(M),M.reset=function(){var t=M.direction;M.passThrough=!1,M.currentTime=0,M.progress=0,M.paused=!0,M.began=!1,M.loopBegan=!1,M.changeBegan=!1,M.completed=!1,M.changeCompleted=!1,M.reversePlayback=!1,M.reversed="reverse"===t,M.remaining=M.loop,l=M.children;for(var e=d=l.length;e--;)M.children[e].reset();(M.reversed&&!0!==M.loop||"alternate"===t&&1===M.loop)&&M.remaining++,S(M.reversed?M.duration:0)},M._onDocumentVisibility=r,M.set=function(t,e){return q(t,e),M},M.tick=function(t){s(((h=t)+(c-(u=u||h)))*L.speed)},M.seek=function(t){s(T(t))},M.pause=function(){M.paused=!0,r()},M.play=function(){M.paused&&(M.completed&&M.reset(),M.paused=!1,D.push(M),r(),tt())},M.reverse=function(){g(),M.completed=!M.reversed,r()},M.restart=function(){M.reset(),M.play()},M.remove=function(t){nt(O(t),M)},M.reset(),M.autoplay&&M.play(),M}function it(t,e){for(var i=e.length;i--;)f(t,e[i].animatable.target)&&e.splice(i,1)}function nt(t,e){var i=e.animations,n=e.children;it(t,i);for(var o=n.length;o--;){var r=n[o],s=r.animations;it(t,s),s.length||r.children.length||n.splice(o,1)}i.length||n.length||e.pause()}return L.version="3.2.1",L.speed=1,L.suspendWhenDocumentHidden=!0,L.running=D,L.remove=function(t){for(var e=O(t),i=D.length;i--;)nt(e,D[i])},L.get=B,L.set=q,L.convertPx=S,L.path=function(t,e){var i=P.str(t)?o(t)[0]:t,n=e||100;return function(t){return{property:t,el:i,svg:X(i),totalLength:z(i)*(n/100)}}},L.setDashoffset=function(t){var e=z(t);return t.setAttribute("stroke-dasharray",e),e},L.stagger=function(t,e){var a=(e=void 0===e?{}:e).direction||"normal",l=e.easing?w(e.easing):null,u=e.grid,c=e.axis,h=e.from||0,d="first"===h,p="center"===h,f="last"===h,g=P.arr(t),T=g?parseFloat(t[0]):parseFloat(t),m=g?parseFloat(t[1]):0,S=E(g?t[1]:t)||0,v=e.start||0+(g?T:0),b=[],y=0;
1return function(t,e,i){if(d&&(h=0),p&&(h=(i-1)/2),f&&(h=i-1),!b.length){for(var n,o,r,s=0;s<i;s++)u?(n=p?(u[0]-1)/2:h%u[0],o=p?(u[1]-1)/2:Math.floor(h/u[0]),n=n-s%u[0],o=o-Math.floor(s/u[0]),r=Math.sqrt(n*n+o*o),"x"===c&&(r=-n),b.push(r="y"===c?-o:r)):b.push(Math.abs(h-s)),y=Math.max.apply(Math,b);l&&(b=b.map(function(t){return l(t/y)*y})),"reverse"===a&&(b=b.map(function(t){return c?t<0?-1*t:-t:Math.abs(y-t)}))}return v+(g?(m-T)/y:T)*(Math.round(100*b[e])/100)+S}},L.timeline=function(s){var a=L(s=void 0===s?{}:s);return a.duration=0,a.add=function(t,e){var i=D.indexOf(a),n=a.children;function o(t){t.passThrough=!0}-1<i&&D.splice(i,1);for(var r=0;r<n.length;r++)o(n[r]);i=I(t,y(b,s)),i.targets=i.targets||s.targets,t=a.duration,i.autoplay=!1,i.direction=a.direction,i.timelineOffset=P.und(e)?t:_(e,t),o(a),a.seek(i.timelineOffset),e=L(i),o(e),n.push(e),t=Z(n,s);return a.delay=t.delay,a.endDelay=t.endDelay,a.duration=t.duration,a.seek(0),a.reset(),a.autoplay&&a.play(),a},a},L.easing=w,L.penner=l,L.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},L}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).dynamicMarquee={})}(this,function(t){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function e(t,e,i){e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1})}function h(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}()||function(t){var e;if(t)return"string"==typeof t?i(t,void 0):"Map"===(e="Object"===(e=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(t,void 0):void 0}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}l.prototype.inBoundary=function(){return!!this._execution},l.prototype.enter=function(t){if(this._execution)return t?t(this._execution.onEnterResult):void 0;var e=this._execution={onEnterResult:void 0},i=void 0,n=!1,o=void 0;try{this._onEnter&&(e.onEnterResult=this._onEnter()),t&&(i=t(e.onEnterResult))}catch(t){n=!0,o=t}this._execution=null;var r=!n;if(this._onExit)try{this._onExit({onEnterResult:e.onEnterResult,exceptionOccurred:n,retrieveException:function(){return r=!0,o}})}catch(t){if(r)throw t}if(r)return i;throw o};var r=l,d="right",s="down",a=/px$/;function l(t){var e=t.onEnter,t=t.onExit;this._execution=null,this.inBoundary=this.inBoundary.bind(this),this.enter=this.enter.bind(this),this._onEnter=e||null,this._onExit=t||null}function u(t){if(a.test(t))return parseFloat(t.slice(0,-2));throw new Error("String missing `px` suffix")}e(m,[{key:"getWidth",value:function(){var t;return null!==this._width?this._width:(t=u(window.getComputedStyle(this._$el).width),this._observer&&(this._width=t),t)}},{key:"getHeight",value:function(){var t;return null!==this._height?this._height:(t=u(window.getComputedStyle(this._$el).height),this._observer&&(this._height=t),t)}},{key:"tearDown",value:function(){var t;null!=(t=this._observer)&&t.disconnect(),this._observer=null}}]);var p=m,c=(e(T,[{key:"getSize",value:function(){var t=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).inverse,e=this._direction;return(e=void 0!==t&&t?e===d?s:d:e)===d?this._sizeWatcher.getWidth():this._sizeWatcher.getHeight()}},{key:"setOffset",value:function(t){this._offset!==t&&(this._offset=t,this._$container.style.opacity="1",this._direction===d?this._$container.style.left="".concat(t,"px"):this._$container.style.top="".concat(t,"px"))}},{key:"remove",value:function(){this._sizeWatcher.tearDown(),this._$container.parentNode.removeChild(this._$container)}},{key:"getContainer",value:function(){return this._$container}}
1,{key:"getOriginalEl",value:function(){return this._$el}},{key:"getMetadata",value:function(){return this._metadata}}]),T),f=(e(g,[{key:"setOffset",value:function(t,e,i){var n=this._transitionState,o=!n||n.rate!==e;n&&!i&&performance.now()-n.time<2e4&&!o||((i||o)&&(this._direction===d?this._$el.style.transform="translateX(".concat(t,"px)"):this._$el.style.transform="translateY(".concat(t,"px)"),this._$el.style.transition="none",this._$el.offsetLeft),e&&(i||o)&&(this._$el.style.transition="transform ".concat(3e4,"ms linear")),e&&(n=t+e/1e3*3e4,this._direction===d?this._$el.style.transform="translateX(".concat(n,"px)"):this._$el.style.transform="translateY(".concat(n,"px)")),this._transitionState={time:performance.now(),rate:e})}}]),g);function g(t,e){o(this,g),this._$el=t,this._direction=e,this._transitionState=null}function T(t,e,i){o(this,T);var n=document.createElement("div");n.style.display="block",n.style.opacity="0",n.style.position="absolute",n.style.margin="0",n.style.padding="0",e===d&&(n.style.whiteSpace="nowrap"),this._sizeWatcher=new p(n),n.appendChild(t),this._$container=n,this._$el=t,this._direction=e,this._metadata=i,this._offset=null}function m(t){var e,i=this;o(this,m),this._$el=t,this._width=null,this._height=null,this._observer="ResizeObserver"in window?new ResizeObserver(function(t){t=t[t.length-1],t=t.borderBoxSize[0]||t.borderBoxSize;i._width=t.inlineSize,i._height=t.blockSize}):null,null!=(e=this._observer)&&e.observe(t)}function S(t){window.setTimeout(function(){return t()},0)}function v(t){var e;return"string"==typeof t||"number"==typeof t?((e=document.createElement("div")).textContent=t+"",e):t}function b(t){return t.length?t[t.length-1]:null}function y(t){return t.length?t[0]:null}e(M,[{key:"onItemRequired",value:function(t){this._onItemRequired.push(t)}},{key:"onItemRemoved",value:function(t){this._onItemRemoved.push(t)}},{key:"onAllItemsRemoved",value:function(t){this._onAllItemsRemoved.push(t)}},{key:"getNumItems",value:function(){return this._items.length}},{key:"setRate",value:function(t){t!==this._rate&&(t*this._lastEffectiveRate<0&&(this._justReversedRate=!this._justReversedRate),(this._rate=t)?(this._lastEffectiveRate=t,this._items.length||(this._waitingForItem=!0)):this._waitingForItem=!1,this._tick())}},{key:"getRate",value:function(){return this._rate}},{key:"clear",value:function(){var e=this;this._boundary.enter(function(){e._items.forEach(function(t){t=t.item;return e._removeItem(t)}),e._items=[],e._waitingForItem=!0,e._nextItemWouldBeTouching=!1,e._updateWindowInverseSize(),e._cleanup()})}},{key:"isWaitingForItem",value:function(){return this._waitingForItem}},{key:"appendItem",value:function(e){var t=this,i=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).metadata,n=void 0===i?null:i;this._boundary.enter(function(){if(!t._waitingForItem)throw new Error("No room for item.");if(e=v(e),t._items.some(function(t){return t.item.getOriginalEl()===e}))throw new Error("Item already exists.");t._waitingForItem=!1,t._pendingItem=new c(e,t._direction,n),t._tick()})}},{key:"_removeItem",value:function(i){var n=this;this._boundary.enter(function(t){var e=t.callbacks;i.remove(),n._items.splice(n._items.indexOf(i),1),n._onItemRemoved.forEach(function(t){e.push(function(){return t(i.getOriginalEl())})})})}},{key:"_updateWindowInverseSize",value:function(){var t;this._direction!==s&&(t=Math.max.apply(Math,h(this._items.map(function(t){return t.item.getSize({inverse:!0})}))),this.windowInverseSize!==t)&&(this.windowInverseSize=t,this._$window.style.height="".concat(t,"px"))}},{key:"_scheduleRender",value:function(){var t=this;this._renderTimer||(this._renderTimer=window.setTimeout(function(){return t._tick()},100))}},{key:"_cleanup",value:function(){var t;null!=(t=this._containerSizeWatcher)&&t.tearDown(),this._containerSizeWatcher=null,this._correlation=null,this._windowOffset=0}},{key:"_tick",value:function(){var c=this;this._boundary.enter(function(t){var e,i,n,o,r,s,a,l,u=t.callbacks;c._renderTimer&&clearTimeout(c._renderTimer),c._renderTimer=null,c._items.length||c._pendingItem?(c._scheduleRender(),c._$window.isConnected?(c._containerSizeWatcher||(c._containerSizeWatcher=new p(c._$window)),t=performance.now(),s=!1,c._correlation?(n=t-c._correlation.time,c._windowOffset=c._correlation.offset+-1*c._correlation.rate*(n/1e3)):s=!0,5e5<Math.abs(c._windowOffset)&&(s=!0,e=c._windowOffset,c._items.forEac
1h(function(t){return t.offset-=e}),c._correlation=null,c._windowOffset=0),l=(n=!document.hidden)&&c._visible!==n,c._visible=n,c._slider.setOffset(-1*c._windowOffset,c._rate,s||l),c._correlation&&c._correlation.rate===c._rate||(c._correlation={time:t,offset:c._windowOffset,rate:c._rate}),c._containerSize=c._direction===d?c._containerSizeWatcher.getWidth():c._containerSizeWatcher.getHeight(),i=Math.max(c._containerSize,1),n=c._justReversedRate,c._justReversedRate=!1,s=c._nextItemWouldBeTouching,o=c._nextItemWouldBeTouching=null,c._pendingItem&&(c._$moving.appendChild(c._pendingItem.getContainer()),l=(c._rate<=0?b:y)(c._items),c._rate<=0?c._items=[].concat(h(c._items),[{item:c._pendingItem,appendRate:c._rate,offset:s?l?l.offset+l.item.getSize():c._windowOffset:c._windowOffset+i}]):c._items=[{item:c._pendingItem,appendRate:c._rate,offset:s?l?l.offset-c._pendingItem.getSize():c._windowOffset+i-c._pendingItem.getSize():c._windowOffset-c._pendingItem.getSize()}].concat(h(c._items)),c._pendingItem=null),t=.1*Math.abs(c._rate),s=!1,!c._waitingForItem&&c._items.length&&(l=y(c._items),a=b(c._items),l=c._rate<=0?a:l,c._rate<=0&&a.offset+l.item.getSize()-c._windowOffset<=i+t||0<c._rate&&l.offset-c._windowOffset>-1*t)&&(c._waitingForItem=s=!0,o=n?null:{$el:l.item.getOriginalEl(),metadata:l.item.getMetadata()}),o&&(c._nextItemWouldBeTouching=!0),c._items=h(c._items).filter(function(t){var e=t.item,t=t.offset,t=c._rate<0?t+e.getSize()>c._windowOffset:t<c._windowOffset+i;return t||c._removeItem(e),t}),c._items.length||c._onAllItemsRemoved.forEach(function(t){return u.push(t)}),c._items.reduce(function(t,e){return null!==t&&e.offset<t&&(e.offset=t),e.item.setOffset(e.offset),e.offset+e.item.getSize()},null),c._updateWindowInverseSize(),s&&(c._onItemRequired.some(function(t){function e(){return!!(r=t({immediatelyFollowsPrevious:!!o,touching:o}))}try{return e()}catch(e){S(function(){throw e})}}),r&&c.appendItem(r),c._nextItemWouldBeTouching=!1)):c._correlation=null):c._cleanup()})}}]);var P=M;function M(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=e.rate,i=void 0===i?-25:i,n=e.upDown,n=void 0!==n&&n,e=e.startOnScreen,e=void 0!==e&&e,e=(o(this,M),this._boundary=new r({onEnter:function(){return{callbacks:[]}},onExit:function(t){t.onEnterResult.callbacks.forEach(function(t){return S(function(){return t()})})}}),this._waitingForItem=!0,this._nextItemWouldBeTouching=e,this._rate=i,this._lastEffectiveRate=i,this._justReversedRate=!1,this._correlation=null,this._direction=n?s:d,this._onItemRequired=[],this._onItemRemoved=[],this._onAllItemsRemoved=[],this._windowOffset=0,this._containerSize=0,this._containerSizeWatcher=null,this._items=[],this._pendingItem=null,this._visible=!!document.hidden,document.createElement("div")),i=(e.style.display="block",e.style.overflow="hidden",e.style.position="relative",this._direction===s&&(e.style.height="100%"),this._$window=e,this.windowInverseSize=null,this._updateWindowInverseSize(),document.createElement("div"));(this._$moving=i).style.display="block",i.style.position="absolute",i.style.left="0",i.style.right="0",this._slider=new f(i,this._direction),e.appendChild(i),t.appendChild(e)}t.Marquee=P,t.loop=function(i){function a(t){var e;u.length&&i.isWaitingForItem()&&(n&&t&&!0!==(null==(t=t.metadata)?void 0:t.isSeperator)?(t=v(n()),i.appendItem(t,{metadata:{isSeperator:!0}})):(e=(t=function(){var t=(l+(0<arguments.length&&void 0!==arguments[0]?arguments[0]:1))%u.length;return{builder:u[t],index:t}}()).builder,t=t.index,l=t,i.appendItem(v(e()))))}var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,l=-1,u=t.slice();return i.onItemRequired(function(t){t=t.touching;return a(t)}),a(),{update:function(t){var i,o,r,s,e=u.map(function(t,e){t=u.indexOf(t);return t<e?t:e}),n=t.map(function(t,e){return u.indexOf(t)});n=n,o={startString1:0,startString2:0,length:0},i={},e.forEach(function(t,e){i[t]=i[t]||[],i[t].push(e)}),r=i,s=[],n.forEach(function(t,e){var i,n=[];(r[t]||[]).forEach(function(t){(i=(t&&s[t-1]||0)+1)>o.length&&(o.length=i,o.startString1=t-i+1,o.startString2=e-i+1),n[t]=i}),s=n}),l=(n=(e=o).startString1)<=l&&l<n+e.length?l+(e.startString2-n):-1,u=t.slice(),a(!1)}}}
1,Object.defineProperty(t,"__esModule",{value:!0})}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,o){return jQuery.easing[jQuery.easing.def](t,e,i,n,o)},easeInQuad:function(t,e,i,n,o){return n*(e/=o)*e+i},easeOutQuad:function(t,e,i,n,o){return-n*(e/=o)*(e-2)+i},easeInOutQuad:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,o){return n*(e/=o)*e*e+i},easeOutCubic:function(t,e,i,n,o){return n*((e=e/o-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,o){return n*(e/=o)*e*e*e+i},easeOutQuart:function(t,e,i,n,o){return-n*((e=e/o-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,o){return n*(e/=o)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,o){return n*((e=e/o-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e*e*e+i:n/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,n,o){return-n*Math.cos(e/o*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,o){return n*Math.sin(e/o*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,o){return-n/2*(Math.cos(Math.PI*e/o)-1)+i},easeInExpo:function(t,e,i,n,o){return 0==e?i:n*Math.pow(2,10*(e/o-1))+i},easeOutExpo:function(t,e,i,n,o){return e==o?i+n:n*(1-Math.pow(2,-10*e/o))+i},easeInOutExpo:function(t,e,i,n,o){return 0==e?i:e==o?i+n:(e/=o/2)<1?n/2*Math.pow(2,10*(e-1))+i:n/2*(2-Math.pow(2,-10*--e))+i},easeInCirc:function(t,e,i,n,o){return-n*(Math.sqrt(1-(e/=o)*e)-1)+i},easeOutCirc:function(t,e,i,n,o){return n*Math.sqrt(1-(e=e/o-1)*e)+i},easeInOutCirc:function(t,e,i,n,o){return(e/=o/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+i:n/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,n,o){var r=1.70158,s=0,a=n;return 0==e?i:1==(e/=o)?i+n:(s=s||.3*o,r=a<Math.abs(n)?(a=n,s/4):s/(2*Math.PI)*Math.asin(n/a),-(a*Math.pow(2,10*--e)*Math.sin((e*o-r)*(2*Math.PI)/s))+i)},easeOutElastic:function(t,e,i,n,o){var r=1.70158,s=0,a=n;return 0==e?i:1==(e/=o)?i+n:(s=s||.3*o,r=a<Math.abs(n)?(a=n,s/4):s/(2*Math.PI)*Math.asin(n/a),a*Math.pow(2,-10*e)*Math.sin((e*o-r)*(2*Math.PI)/s)+n+i)},easeInOutElastic:function(t,e,i,n,o){var r=1.70158,s=0,a=n;return 0==e?i:2==(e/=o/2)?i+n:(s=s||o*(.3*1.5),r=a<Math.abs(n)?(a=n,s/4):s/(2*Math.PI)*Math.asin(n/a),e<1?a*Math.pow(2,10*--e)*Math.sin((e*o-r)*(2*Math.PI)/s)*-.5+i:a*Math.pow(2,-10*--e)*Math.sin((e*o-r)*(2*Math.PI)/s)*.5+n+i)},easeInBack:function(t,e,i,n,o,r){return n*(e/=o)*e*(((r=null==r?1.70158:r)+1)*e-r)+i},easeOutBack:function(t,e,i,n,o,r){return n*((e=e/o-1)*e*(((r=null==r?1.70158:r)+1)*e+r)+1)+i},easeInOutBack:function(t,e,i,n,o,r){return null==r&&(r=1.70158),(e/=o/2)<1?n/2*(e*e*((1+(r*=1.525))*e-r))+i:n/2*((e-=2)*e*((1+(r*=1.525))*e+r)+2)+i},easeInBounce:function(t,e,i,n,o){return n-jQuery.easing.easeOutBounce(t,o-e,0,n,o)+i},easeOutBounce:function(t,e,i,n,o){return(e/=o)<1/2.75?n*(7.5625*e*e)+i:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+i:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+i:n*(7.5625*(e-=2.625/2.75)*e+.984375)+i},easeInOutBounce:function(t,e,i,n,o){return e<o/2?.5*jQuery.easing.easeInBounce(t,2*e,0,n,o)+i:.5*jQuery.easing.easeOutBounce(t,2*e-o,0,n,o)+.5*n+i}}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Fuse",[],e):"object"==typeof exports?exports.Fuse=e():t.Fuse=e()}(this,function(){return i=[function(t,e,i){"use strict";t.exports=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,i){"use strict";var n=function(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t},s=i(5),a=i(7),u=i(4),i=(n(c,[{key:"search",value:function(t){var e,i,n,o,r;return this.options.isCaseSensitive||(t=t.toLowerCase()),this.pattern===t?{isMatch:!0,score:0,matchedIndices:[[0,t.length-1]]}:(r=(e=this.options).maxPatternLength,e=e.tokenSeparator,this.pattern.length>r?s(t,this.pattern,e):(e=(r=this.options).location,i=r.distance,n=r.threshold,o=r.findAllMatches,r=r.minMatchCharLength,a(t,this.pattern,this.patternAlphabet,{location:e,distance:i,threshold:n,findAllMatches:o,minMatchCharLength:r})))}}]),c);function c(t,e){var i=e.location,i=void 0===i?0:i,n=e.distance,n=void 0===n?100:n,o=e.threshold,o=void 0===o?.6:o,r=e.maxPatternLength,r=void 0===r?32:r,s=e.isCaseSensitive,s=void 0!==s&&s,a=e.tokenSeparator,a=void 0===a?/ +/g:a,l=e.findAllMatches,l=void 0!==l&&l,e=e.minMatchCharLength,e=void 0===e?1:e;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.options={location:i,distance:n,threshold:o,maxPatternLength:r,
1isCaseSensitive:s,tokenSeparator:a,findAllMatches:l,minMatchCharLength:e},this.pattern=this.options.isCaseSensitive?t:t.toLowerCase(),this.pattern.length<=r&&(this.patternAlphabet=u(this.pattern))}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=i},function(t,e,i){"use strict";function u(t,e,i){if(e){var n=e.indexOf("."),o=e,r=null,s=(-1!==n&&(o=e.slice(0,n),r=e.slice(n+1)),t[o]);if(null!=s)if(r||"string"!=typeof s&&"number"!=typeof s)if(c(s))for(var a=0,l=s.length;a<l;a+=1)u(s[a],r,i);else r&&u(s,r,i);else i.push(s.toString())}else i.push(t);return i}var c=i(0);t.exports=function(t,e){return u(t,e,[])}},function(t,e,i){"use strict";t.exports=function(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,i=[],n=-1,o=0,r=t.length;o<r;o+=1){var s=t[o];s&&-1===n?n=o:s||-1===n||(e<=(s=o-1)-n+1&&i.push([n,s]),n=-1)}return t[o-1]&&e<=o-n&&i.push([n,o-1]),i}},function(t,e,i){"use strict";t.exports=function(t){for(var e={},i=t.length,n=0;n<i;n+=1)e[t.charAt(n)]=0;for(var o=0;o<i;o+=1)e[t.charAt(o)]|=1<<i-o-1;return e}},function(t,e,i){"use strict";t.exports=function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:/ +/g,e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").replace(i,"|")),n=t.match(e),i=!!n,o=[];if(i)for(var r=0,s=n.length;r<s;r+=1){var a=n[r];o.push([t.indexOf(a),a.length-1])}return{score:i?.5:1,isMatch:i,matchedIndices:o}}},function(t,e,i){"use strict";t.exports=function(t,e){var i=e.errors,n=e.currentLocation,o=e.expectedLocation,e=e.distance,e=void 0===e?100:e,i=(void 0===i?0:i)/t.length,t=Math.abs((void 0===o?0:o)-(void 0===n?0:n));return e?i+t/e:t?1:i}},function(t,e,i){"use strict";var E=i(6),B=i(3);t.exports=function(t,e,i,n){for(var o=n.location,r=n.distance,s=void 0===r?100:r,r=n.threshold,a=n.findAllMatches,l=void 0!==a&&a,a=n.minMatchCharLength,n=void 0===a?1:a,u=void 0===o?0:o,c=t.length,h=void 0===r?.6:r,d=t.indexOf(e,u),p=e.length,f=[],g=0;g<c;g+=1)f[g]=0;-1!==d&&(a=E(e,{errors:0,currentLocation:d,expectedLocation:u,distance:s}),h=Math.min(a,h),-1!==(d=t.lastIndexOf(e,u+p)))&&(o=E(e,{errors:0,currentLocation:d,expectedLocation:u,distance:s}),h=Math.min(o,h));for(var d=-1,T=[],m=1,S=p+c,v=1<<p-1,b=0;b<p;b+=1){for(var y=0,P=S;y<P;)E(e,{errors:b,currentLocation:u+P,expectedLocation:u,distance:s})<=h?y=P:S=P,P=Math.floor((S-y)/2+y);var S=P,M=Math.max(1,u-P+1),A=l?c:Math.min(u+P,c)+p,C=Array(A+2);C[A+1]=(1<<b)-1;for(var w=A;M<=w;--w){var G=w-1,I=i[t.charAt(G)];if(I&&(f[G]=1),C[w]=(C[w+1]<<1|1)&I,0!==b&&(C[w]|=(T[w+1]|T[w])<<1|1|T[w+1]),C[w]&v&&(m=E(e,{errors:b,currentLocation:G,expectedLocation:u,distance:s}))<=h){if(h=m,(d=G)<=u)break;M=Math.max(1,2*u-d)}}if(E(e,{errors:b+1,currentLocation:u,expectedLocation:u,distance:s})>h)break;T=C}return{isMatch:0<=d,score:0===m?.001:m,matchedIndices:B(f,n)}}},function(t,e,i){"use strict";var n=function(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t},r=i(1),v=i(2),I=i(0),i=(n(b,[{key:"setCollection",value:function(t){return this.list=t}},{key:"search",value:function(t){this._log('---------\nSearch pattern: "'+t+'"');var t=this._prepareSearchers(t),e=t.tokenSearchers,t=t.fullSearcher,e=this._search(e,t),t=e.weights,e=e.results;return this._computeScore(t,e),this.options.shouldSort&&this._sort(e),this._format(e)}},{key:"_prepareSearchers",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=[];if(this.options.tokenize)for(var i=t.split(this.options.tokenSeparator),n=0,o=i.length;n<o;n+=1)e.push(new r(i[n],this.options));return{tokenSearchers:e,fullSearcher:new r(t,this.options)}}},{key:"_search",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],i=this.list,n={},o=[];if("string"==typeof i[0]){for(var r=0,s=i.length;r<s;r+=1)this._analyze({key:"",value:i[r],record:r,index:r},{resultMap:n,results:o,tokenSearchers:t,fullSearcher:e});return{weights:null,results:o}}for(var a={},l=0,u=i.length;l<u;l+=1)for(var c=i[l],h=0,d=this.options.keys.length;h<d;h+=1){var p=this.options.keys[h];
1if("string"!=typeof p){if(a[p.name]={weight:1-p.weight||1},p.weight<=0||1<p.weight)throw new Error("Key weight has to be > 0 and <= 1");p=p.name}else a[p]={weight:1};this._analyze({key:p,value:this.options.getFn(c,p),record:c,index:l},{resultMap:n,results:o,tokenSearchers:t,fullSearcher:e})}return{weights:a,results:o}}},{key:"_analyze",value:function(t,e){var i=t.key,n=t.arrayIndex,n=void 0===n?-1:n,o=t.value,r=t.record,s=t.index,t=e.tokenSearchers,a=void 0===t?[]:t,t=e.fullSearcher,l=void 0===t?[]:t,t=e.resultMap,u=void 0===t?{}:t,t=e.results,c=void 0===t?[]:t;if(null!=o){var h=!1,d=-1,p=0;if("string"==typeof o){this._log("\nKey: "+(""===i?"-":i));e=l.search(o);if(this._log('Full text: "'+o+'", score: '+e.score),this.options.tokenize){for(var f=o.split(this.options.tokenSeparator),g=[],T=0;T<a.length;T+=1){var m=a[T];this._log('\nPattern: "'+m.pattern+'"');for(var S=!1,v=0;v<f.length;v+=1){var b=f[v],y=m.search(b),P={};y.isMatch?(P[b]=y.score,S=h=!0,g.push(y.score)):(P[b]=1,this.options.matchAllTokens||g.push(1)),this._log('Token: "'+b+'", score: '+P[b])}S&&(p+=1)}for(var d=g[0],M=g.length,A=1;A<M;A+=1)d+=g[A];this._log("Token score average:",d/=M)}var t=e.score,C=(this._log("Score average:",t=-1<d?(t+d)/2:t),!this.options.tokenize||!this.options.matchAllTokens||p>=a.length);this._log("\nCheck Matches: "+C),(h||e.isMatch)&&C&&((C=u[s])?C.output.push({key:i,arrayIndex:n,value:o,score:t,matchedIndices:e.matchedIndices}):(u[s]={item:r,output:[{key:i,arrayIndex:n,value:o,score:t,matchedIndices:e.matchedIndices}]},c.push(u[s])))}else if(I(o))for(var w=0,G=o.length;w<G;w+=1)this._analyze({key:i,arrayIndex:w,value:o[w],record:r,index:s},{resultMap:u,results:c,tokenSearchers:a,fullSearcher:l})}}},{key:"_computeScore",value:function(t,e){this._log("\n\nComputing score:\n");for(var i=0,n=e.length;i<n;i+=1){for(var o=e[i].output,r=o.length,s=1,a=1,l=0;l<r;l+=1){var u=t?t[o[l].key].weight:1,c=(1===u?o[l].score:o[l].score||.001)*u;1!==u?a=Math.min(a,c):s*=o[l].nScore=c}e[i].score=1===a?s:a,this._log(e[i])}}},{key:"_sort",value:function(t){this._log("\n\nSorting...."),t.sort(this.options.sortFn)}},{key:"_format",value:function(t){var e=[],i=(this.options.verbose&&this._log("\n\nOutput:\n\n",JSON.stringify(t)),[]);this.options.includeMatches&&i.push(function(t,e){var i=t.output;e.matches=[];for(var n=0,o=i.length;n<o;n+=1){var r,s=i[n];0!==s.matchedIndices.length&&(r={indices:s.matchedIndices,value:s.value},s.key&&(r.key=s.key),s.hasOwnProperty("arrayIndex")&&-1<s.arrayIndex&&(r.arrayIndex=s.arrayIndex),e.matches.push(r))}}),this.options.includeScore&&i.push(function(t,e){e.score=t.score});for(var n=0,o=t.length;n<o;n+=1){var r=t[n];if(this.options.id&&(r.item=this.options.getFn(r.item,this.options.id)[0]),i.length){for(var s={item:r.item},a=0,l=i.length;a<l;a+=1)i[a](r,s);e.push(s)}else e.push(r.item)}return e}},{key:"_log",value:function(){var t;this.options.verbose&&(t=console).log.apply(t,arguments)}}]),b);function b(t,e){var i=e.location,i=void 0===i?0:i,n=e.distance,n=void 0===n?100:n,o=e.threshold,o=void 0===o?.6:o,r=e.maxPatternLength,r=void 0===r?32:r,s=e.caseSensitive,s=void 0!==s&&s,a=e.tokenSeparator,a=void 0===a?/ +/g:a,l=e.findAllMatches,l=void 0!==l&&l,u=e.minMatchCharLength,u=void 0===u?1:u,c=e.id,c=void 0===c?null:c,h=e.keys,h=void 0===h?[]:h,d=e.shouldSort,d=void 0===d||d,p=e.getFn,p=void 0===p?v:p,f=e.sortFn,f=void 0===f?function(t,e){return t.score-e.score}:f,g=e.tokenize,g=void 0!==g&&g,T=e.matchAllTokens,T=void 0!==T&&T,m=e.includeMatches,m=void 0!==m&&m,S=e.includeScore,S=void 0!==S&&S,e=e.verbose,e=void 0!==e&&e;if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this.options={location:i,distance:n,threshold:o,maxPatternLength:r,isCaseSensitive:s,tokenSeparator:a,findAllMatches:l,minMatchCharLength:u,id:c,keys:h,includeMatches:m,includeScore:S,shouldSort:d,getFn:p,sortFn:f,verbose:e,tokenize:g,matchAllTokens:T},this.setCollection(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=i}],o={},n.m=i,n.c=o,n.i=function(t){return t}
1,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=8);function n(t){var e;return(o[t]||(e=o[t]={i:t,l:!1,exports:{}},i[t].call(e.exports,e,e.exports,n),e.l=!0,e)).exports}var i,o}),function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";function i(l,u,c){(c=c||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){var e,n,o,r,s,a;return"string"==typeof t?(e=h.call(arguments,1),o=e,s="$()."+l+'("'+(n=t)+'")',(e=this).each(function(t,e){var i,e=c.data(e,l);e?(i=e[n])&&"_"!=n.charAt(0)?(i=i.apply(e,o),r=void 0===r?i:r):d(s+" is not a valid method"):d(l+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==r?r:e):(a=t,this.each(function(t,e){var i=c.data(e,l);i?(i.option(a),i._init()):(i=new u(e,a),c.data(e,l,i))}),this)},n(c))}function n(t){t&&!t.bridget&&(t.bridget=i)}var h=Array.prototype.slice,o=t.console,d=void 0===o?function(){}:function(t){o.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return-1==(i=(i=this._events=this._events||{})[t]=i[t]||[]).indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),o=i[n+=s?0:1]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function T(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function m(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t}function S(t){if(P||(P=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(u=document.body||document.documentElement).appendChild(c),r=m(c),S.isBoxSizeOuter=v=200==T(r.width),u.removeChild(c)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=m(t);if("none"==e.display){for(var i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;n<y;n++)i[b[n]]=0;return i}var o={};o.width=t.offsetWidth,o.height=t.offsetHeight;for(var r=o.isBorderBox="border-box"==e.boxSizing,s=0;s<y;s++){var a=b[s],l=e[a],l=parseFloat(l);o[a]=isNaN(l)?0:l}var u=o.paddingLeft+o.paddingRight,c=o.paddingTop+o.paddingBottom,t=o.marginLeft+o.marginRight,h=o.marginTop+o.marginBottom,d=o.borderLeftWidth+o.borderRightWidth,p=o.borderTopWidth+o.borderBottomWidth,f=r&&v,g=T(e.width),g=(!1!==g&&(o.width=g+(f?0:u+d)),T(e.height));return!1!==g&&(o.height=g+(f?0:c+p)),o.innerWidth=o.width-(u+d),o.innerHeight=o.height-(c+p),o.outerWidth=o.width+t,o.outerHeight=o.height+h,o}var c,u,r}var v,e="undefined"==typeof console?function(){}:function(t){console.error(t)},b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],y=b.length,P=!1;return S}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(i,r){var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},removeFrom:function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},getParent:function(t,e){for(;t!=document.body;)if(t=t.parentNode,r(t,e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){var e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,n){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){r(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},debounceMethod:function(t,e,n){var o=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r],e=(t&&clearTimeout(t),arguments),i=this;this[r]=setTimeout(function(){o.apply(i,e),delete i[r]},n||100)}},docReady:function(t){var e=document.readyState;"complete"==e||"interactive"==e?t():document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}},u=i.console;return l.htmlInit=function(s,a){l.docReady(function(){var t=l.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),e=l.makeArray(e).concat(l.makeArray(t)),o=n+"-options",r=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(o);try{t=i&&JSON.parse(i)}catch(t){return void(u&&u.error("Error parsing "+n+" on "+e.className+": "+t))}i=new s(e,t);r&&r.data(e,a,i)})})},l}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var n=document.documentElement.style,o="string"==typeof n.transition?"transition":"WebkitTransition",n="string"==typeof n.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],s={transform:n,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"},t=i.prototype=Object.create(t.prototype),a=(t.constructor=i,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[s[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],t=t[i?"top":"bottom"],o=this.layout.size,n=-1!=n.indexOf("%")?parseFloat(n)/100*o.width:parseInt(n,10),t=-1!=t.indexOf("%")?parseFloat(t)/100*o.height:parseInt(t,10),n=isNaN(n)?0:n,t=isNaN(t)?0:t;n-=e?o.paddingLeft:o.paddingRight,t-=i?o.paddingTop:o.paddingBottom,this.position.x=n,this.position.y=t},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"right":"left",r=this.position.x+t[i?"paddingLeft":"paddingRight"],i=(e[i?"left":"right"]=this.getXValue(r),e[o]="",n?"paddingTop":"paddingBottom"),r=n?"bottom":"top",o=this.position.y+t[i];e[n?"top":"bottom"]=this.getYValue(o),e[r]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),o=o===this.position.x&&r===this.position.y;this.setPosition(t,e),o&&!this.isTransitioning?this.layoutPosition():((r={}).transform=this.getTranslate(t-i,e-n),this.transition({to:r,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)},"opacity,"+n.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})),l=(t.enableTransition=function(){var t;this.isTransitioning||(t=this.layout.options.transitionDuration,this.css({transitionProperty:a,transitionDuration:t="number"==typeof t?t+"ms":t,transitionDelay:this.staggerDelay||0}
1),this.element.addEventListener(r,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)},{"-webkit-transform":"transform"}),u=(t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=l[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(u)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){return o&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(o,r){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,n){return r(o,t,e,i,n)}):"object"==typeof module&&module.exports?module.exports=r(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=r(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)}(window,function(t,e,o,n,r){"use strict";function s(t,e){var i=n.getQueryElement(t);i?(this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++c,this.element.outlayerGUID=e,(h[e]=this)._create(),this._getOption("initLayout")&&this.layout()):l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}function i(){}var l=t.console,u=t.jQuery,c=0,h={},d=(s.namespace="outlayer",s.Item=r,s.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)"}},s.prototype),p=(n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=new i(e[o],this);n.push(r)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0}
1,d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t,e=this.options.stagger;return null==e?void(this.stagger=0):(this.stagger="number"==typeof(e=e)?e:(t=(e=e.match(/(^\d*\.?\d*)(\w*)/))&&e[1],e=e&&e[2],t.length?(t=parseFloat(t))*(p[e]||1):0),this.stagger)},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;this._getOption("resizeContainer")&&(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){function i(){r.dispatchEvent(e+"Complete",null,[t])}function n(){++o==s&&i()}var o,r=this,s=t.length;t&&s?(o=0,t.forEach(function(t){t.once(e,n)})):i()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),u&&(this.$element=this.$element||u(this.element),e?((n=u.Event(e)).type=t,this.$element.trigger(n,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),n.makeArray(t)):void 0},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(s,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEac
1h(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete h[t],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&h[t]},s.create=function(t,e){var i=a(s);return i.defaults=n.extend({},s.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=a(r),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i},{ms:1,s:1e3});return s.Item=r,s}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,a){t=t.create("masonry");return t.compatOptions.fitWidth="isFitWidth",t.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},t.prototype.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},t.prototype._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),e=this._getColGroup(e),i=Math.min.apply(Math,e),n=e.indexOf(i),o={x:this.columnWidth*n,y:i},r=i+t.size.outerHeight,s=this.cols+1-e.length,a=0;a<s;a++)this.colYs[n+a]=r;return o},t.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},t.prototype._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),i=this._getOption("originLeft")?t.left:t.right,n=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),o=Math.floor(n/this.columnWidth);o-=n%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),r=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,s=i;s<=o;s++)this.colYs[s]=Math.max(r,this.colYs[s])},t.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},t.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t}),function(f){(function(){if(typeof module!=="undefined"&&module.exports)return function(t){module.exports=t()};else if(typeof define==="function"&&define.amd)return define;else if(typeof window!=="undefined")return function(t){window.MobileDetect=t()};else throw new Error("unknown environment")})()(function(){"use strict";var a={mobileDetectRules:{phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT109
vendor: 5,423 bytes, line 1
12",Samsung:"\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F
1",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323)",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",NokiaLumia:"Lumia [0-9]{3,4}",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLI
1M|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo 3DS",Amoi:"Amoi",INQ:"INQ",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-8703F",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MI
1D810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim|M2-A01L",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfVie
1wTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)|Qualcore 1027",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",VerizonTablet:"QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",
1NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",HisenseTablet:"\\b(F5281|E2371)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad|AppleCoreMedia",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+|Coast/[0-9.]+",Skyfire:"Skyfire",Edge:"Mobile Safari/[.0-9]* Edge",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Puffin:"Puffin",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",PaleMoon:"Android.*PaleMoon|Mobile.*PaleMoon"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:["Firefox/[VER]","FxiOS/[VER]"],Fennec:"Fennec/[VER]",Edge:"Edge/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]",UCBrowser:["UCWEB[VER]","UC.*Browser/[VER]"],MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",SamsungBrowser:"SamsungBrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",PaleMoon:"PaleMoon/[VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",Goanna:"Goanna/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},detectMobileBrowsers:{fullPattern:/(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,shortPattern:/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 )|
1sy(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,tabletPattern:/android|ipad|playbook|silk/i}},l=Object.prototype.hasOwnProperty;function e(t,e){return null!=t&&null!=e&&t.toLowerCase()===e.toLowerCase()}function i(t,e){var i,n,o=t.length;if(o&&e)for(i=e.toLowerCase(),n=0;n<o;++n)if(i===t[n].toLowerCase())return!0;return!1}function t(t){for(var e in t)l.call(t,e)&&(t[e]=new RegExp(t[e],"i"))}a.FALLBACK_PHONE="UnknownPhone",a.FALLBACK_TABLET="UnknownTablet",a.FALLBACK_MOBILE="UnknownMobile";var n,o,r,s,u,c,h="isArray"in Array?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},d=a.mobileDetectRules;for(n in d.props)if(l.call(d.props,n)){for(o=d.props[n],u=(o=h(o)?o:[o]).length,s=0;s<u;++s)0<=(c=(r=o[s]).indexOf("[VER]"))&&(r=r.substring(0,c)+"([\\w._\\+]+)"+r.substring(c+5)),o[s]=new RegExp(r,"i");d.props[n]=o}function p(t,e){this.ua=(t||"").substr(0,500),this._cache={},this.maxPhoneWidth=e||600}return t(d.oss),t(d.phones),t(d.tablets),t(d.uas),t(d.utils),d.oss0={WindowsPhoneOS:d.oss.WindowsPhoneOS,WindowsMobileOS:d.oss.WindowsMobileOS},a.findMatch=function(t,e){for(var i in t)if(l.call(t,i)&&t[i].test(e))return i;return null},a.findMatches=function(t,e){var i,n=[];for(i in t)l.call(t,i)&&t[i].test(e)&&n.push(i);return n},a.getVersionStr=function(t,e){var i,n,o,r,s=a.mobileDetectRules.props;if(l.call(s,t))for(o=(i=s[t]).length,n=0;n<o;++n)if(null!==(r=i[n].exec(e)))return r[1];return null},a.getVersion=function(t,e){t=a.getVersionStr(t,e);return t?a.prepareVersionNo(t):NaN},a.prepareVersionNo=function(t){var e=t.split(/[a-z._ \/\-]/i);return 1===e.length&&(t=e[0]),1<e.length&&(t=e[0]+".",e.shift(),t+=e.join("")),Number(t)},a.isMobileFallback=function(t){return a.detectMobileBrowsers.fullPattern.test(t)||a.detectMobileBrowsers.shortPattern.test(t.substr(0,4))},a.isTabletFallback=function(t){return a.detectMobileBrowsers.tabletPattern.test(t)},a.prepareDetectionCache=function(t,e,i){var n;t.mobile===f&&((n=a.findMatch(a.mobileDetectRules.tablets,e))?(t.mobile=t.tablet=n,t.phone=null):(n=a.findMatch(a.mobileDetectRules.phones,e))?(t.mobile=t.phone=n,t.tablet=null):a.isMobileFallback(e)?(n=p.isPhoneSized(i))===f?(t.mobile=a.FALLBACK_MOBILE,t.tablet=t.phone=null):n?(t.mobile=t.phone=a.FALLBACK_PHONE,t.tablet=null):(t.mobile=t.tablet=a.FALLBACK_TABLET,t.phone=null):a.isTabletFallback(e)?(t.mobile=t.tablet=a.FALLBACK_TABLET,t.phone=null):t.mobile=t.tablet=t.phone=null)},a.mobileGrade=function(t){var e=null!==t.mobile();return t.os("iOS")&&4.3<=t.version("iPad")||t.os("iOS")&&3.1<=t.version("iPhone")||t.os("iOS")&&3.1<=t.version("iPod")||2.1<t.version("Android")&&t.is("Webkit")||7<=t.version("Windows Phone OS")||t.is("BlackBerry")&&6<=t.version("BlackBerry")||t.match("Playbook.*Tablet")||1.4<=t.version("webOS")&&t.match("Palm|Pre|Pixi")||t.match("hp.*TouchPad")||t.is("Firefox")&&12<=t.version("Firefox")||t.is("Chrome")&&t.is("AndroidOS")&&4<=t.version("Android")||t.is("Skyfire")&&4.1<=t.version("Skyfire")&&t.is("AndroidOS")&&2.3<=t.version("Android")||t.is("Opera")&&11<t.version("Opera Mobi")&&t.is("AndroidOS")||t.is("MeeGoOS")||t.is("Tizen")||t.is("Dolfin")&&2<=t.version("Bada")||(t.is("UC Browser")||t.is("Dolfin"))&&2.3<=t.version("Android")||t.match("Kindle Fire")||t.is("Kindle")&&3<=t.version("Kindle")||t.is("AndroidOS")&&t.is("NookTablet")||11<=t.version("Chrome")&&!e||5<=t.version("Safari")&&!e||4<=t.version("Firefox")&&!e||7<=t.version("MSIE")&&!e||10<=t.version("Opera")&&!e?"A":t.os("iOS")&&t.version("iPad")<4.3||t.os("iOS")&&t.version("iPhone")<3.1||t.os("iOS")&&t.version("iPod")<3.1||t.is("Blackberry")&&5<=t.version("BlackBerry")&&t.version("BlackBerry")<6||5<=t.version("Opera Mini")&&t.version("Opera Mini")<=6.5&&(2.3<=t.version("Android")||t.is("iOS"))||t.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||11<=t.version("Opera Mobi")&&t.is("SymbianOS")?"B":(t.version("BlackBerry")<5||t.match("MSIEMobile|Windows CE.*Mobile")||t.version("Windows Mobile"),"C")},a.detectOS=function(t){return a.findMatch(a.mobileDetectRules.oss0,t)||a.findMatch(a.mobileDetectRules.oss,t)},a.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},p.prototype={constructor:p,mobile:function(){return a.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return a.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return a.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===f&&(this._cache.userAgent=a.findMatch(a.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===f&&(this._cache.userAgents=a.findMatches(a.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===f&&(this._cache.os=a.detectOS(this.ua)),this._cache.os},version:function(t){return a.getVersion(t,this.ua)},versionStr:function(t){return a.getVersionStr(t,this.ua)},is:function(t){return i(this.userAgents(),t)||e(t,this.os())||e(t,this.phone())||e(t,this.tablet())||i(a.findMatches(a.mobileDetectRules.utils,this.ua),t)},match:function(t){return(t=t instanceof RegExp?t:new RegExp(t,"i")).test(this.ua)},isPhoneSized:function(t){return p.isPhoneSized(t||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===f&&(this._cache.grade=a.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?p.isPhoneSized=function(t){return t<0?f:a.getDeviceSmallerSide()<=t}:p.isPhoneSized=function(){},p._impl=a,p.version="1.4.1 2017-12-24",p})}(),function(d,c,p){function f(t,e){return typeof t===e}function g(t){return"function"!=typeof c.createElement?c.createElement(t):G?c.createElementNS.call(c,"http://www.w3.org/2000/svg",t):c.createElement.apply(c,arguments)}
1function T(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,i){return e+i.toUpperCase()}).replace(/^-/,"")}function m(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function S(t,e,i,n){var o,r,s,a,l="modernizr",u=g("div");(a=c.body)||((a=g(G?"svg":"body")).fake=!0);if(parseInt(i,10))for(;i--;)(r=g("div")).id=n?n[i]:l+(i+1),u.appendChild(r);return(o=g("style")).type="text/css",o.id="s"+l,(a.fake?a:u).appendChild(o),a.appendChild(u),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(c.createTextNode(t)),u.id=l,a.fake&&(a.style.background="",a.style.overflow="hidden",s=w.style.overflow,w.style.overflow="hidden",w.appendChild(a)),o=e(u,t),a.fake?(a.parentNode.removeChild(a),w.style.overflow=s,w.offsetHeight):u.parentNode.removeChild(u),!!o}function v(t,e,i,n){function o(){s&&(delete H.style,delete H.modElem)}if(n=void 0!==n&&n,void 0!==i){var r=function(t,e){var i=t.length;if("CSS"in d&&"supports"in d.CSS){for(;i--;)if(d.CSS.supports(m(t[i]),e))return!0;return!1}if("CSSSupportsRule"in d){for(var n=[];i--;)n.push("("+m(t[i])+":"+e+")");return S("@supports ("+(n=n.join(" or "))+") { #modernizr { position: absolute; } }",function(t){return"absolute"==getComputedStyle(t,null).position})}return p}(t,i);if(void 0!==r)return r}for(var s,a,l,u,c,h=["modernizr","tspan","samp"];!H.style&&h.length;)s=!0,H.modElem=g(h.shift()),H.style=H.modElem.style;for(l=t.length,a=0;a<l;a++)if(u=t[a],c=H.style[u],~(""+u).indexOf("-")&&(u=T(u)),H.style[u]!==p){if(n||void 0===i)return o(),"pfx"!=e||u;try{H.style[u]=i}catch(t){}if(H.style[u]!=c)return o(),"pfx"!=e||u}return o(),!1}function n(t,e,i,n,o){var r,s,a=t.charAt(0).toUpperCase()+t.slice(1),l=(t+" "+E.join(a+" ")+a).split(" ");if(f(e,"string")||void 0===e)return v(l,e,n,o);var u=(t+" "+B.join(a+" ")+a).split(" "),c=e,h=i;for(s in u)if(u[s]in c)if(!1===h)return u[s];else{r=c[u[s]];if(f(r,"function")){var d=r;var p=h||c;return function(){return d.apply(p,arguments)};return}else return r}return!1}function t(t,e,i){return n(t,p,p,e,i)}function o(t){var e,i=O.length,n=d.CSSRule;if(void 0===n)return p;if(t){if((e=(t=t.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in n)return"@"+t;for(var o=0;o<i;o++){var r=O[o];if(r.toUpperCase()+"_"+e in n)return"@-"+r.toLowerCase()+"-"+t}}return!1}var e,i,r,s,a,l,u,h,b,y,P=[],M=[],A={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout(function(){e(i[t])},0)},addTest:function(t,e,i){M.push({name:t,fn:e,options:i})},addAsyncTest:function(t){M.push({name:null,fn:t})}},C=function(){},w=(C.prototype=A,C=new C,c.documentElement),G="svg"===w.nodeName.toLowerCase(),I="Moz O ms Webkit",E=A._config.usePrefixes?I.split(" "):[],B=(A._cssomPrefixes=E,A._config.usePrefixes?I.toLowerCase().split(" "):[]),_=(A._domPrefixes=B,{elem:g("modernizr")}),H=(C._q.push(function(){delete _.elem}),{style:_.elem.style}),O=(C._q.unshift(function(){delete H.style}),A.testAllProps=n,A.testAllProps=t,C.addTest("flexbox",t("flexBasis","1px",!0)),A._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""]),x=(A._prefixes=O,A.testStyles=S),I=(C.addTest("touchevents",function(){var e,t;return"ontouchstart"in d||d.DocumentTouch&&c instanceof DocumentTouch?e=!0:(t=["@media (",O.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join(""),x(t,function(t){e=9===t.offsetTop})),e}),A.atRule=o,A.prefixed=function(t,e,i){return 0===t.indexOf("@")?o(t):(-1!=t.indexOf("-")&&(t=T(t)),e?n(t,e,i):n(t,"pfx"))});for(u in C.addTest("objectfit",!!I("objectFit"),{aliases:["object-fit"]}),M)if(M.hasOwnProperty(u)){if(e=[],(i=M[u]).name&&(e.push(i.name.toLowerCase()),i.options)&&i.options.aliases&&i.options.aliases.length)for(r=0;r<i.options.aliases.length;r++)e.push(i.options.aliases[r].toLowerCase());for(s=f(i.fn,"function")?i.fn():i.fn,a=0;a<e.length;a++)1===(l=e[a].split(".")).length?C[l[0]]=s:(!C[l[0]]||C[l[0]]instanceof Boolean||(C[l[0]]=new Boolean(C[l[0]])),C[l[0]][l[1]]=s),P.push((s?"":"no-")+l.join("-"))}I=P,b=w.className,y=C._config.classPrefix||"",G&&(b=b.baseVal),C._config.enableJSClass&&(h=new RegExp("(^|\\s)"+y+"no-js(\\s|$)"),b=b.replace(h,"$1"+y+"js$2")),C._config.enableClasses&&(b+=" "+y+I.join(" "+y),G?w.className.baseVal=b:w.className=b),delete A.addTest,delete A.addAsyncTest;for(var D=0;D<C._q.length;D++)C._q[D]();d.Modernizr=C}(window,document),function(t,e){"function"==typeof define&&define.amd?define("sifter",e):"object"==typeof exports?module.exports=e():t.Sifter=e()}(this,function(){function t(t,e){this.items=t,this.settings=e||{diacritics:!0}}t.prototype.tokenize=function(t){if(!(t=a(String(t||"").toLowerCase()))||!t.length)return[];for(var e,i,n=[],o=t.split(/ +/),r=0,s=o.length;r<s;r++){if(e=l(o[r]),this.settings.diacritics)for(i in u)u.hasOwnProperty(i)&&(e=e.replace(new RegExp(i,"g"),u[i]));n.push({string:o[r],regex:new RegExp(e,"i")})}return n},t.prototype.iterator=function(t,e){(s(t)?Array.prototype.forEach||function(t){for(var e=0,i=this.length;e<i;e++)t(this[e],e,this)}:function(t){for(var e in this)this.hasOwnProperty(e)&&t(this[e],e,this)}).apply(t,[e])},t.prototype.getScoreFunction=function(t,e){function o(t,e){var i;return t&&-1!==(i=(t=String(t||"")).search(e.regex))?(t=e.string.length/t.length,0===i&&(t+=.5),t):0}var r,s=(t=this.prepareSearch(t,e)).tokens,a=t.options.fields,l=s.length,u=t.options.nesting,c=(r=a.length)?1===r?function(t,e){return o(f(e,a[0],u),t)}:function(t,e){for(var i=0,n=0;i<r;i++)n+=o(f(e,a[i],u),t);return n/r}:function(){return 0};return l?1===l?function(t){return c(s[0],t)}:"and"===t.options.conjunction?function(t){for(var e,i=0,n=0;i<l;i++){if((e=c(s[i],t))<=0)return 0;n+=e}return n/l}:function(t){for(var e=0,i=0;e<l;e++)i+=c(s[e],t);return i/l}:function(){return 0}},t.prototype.getSortFunction=function(t,i){function o(t,e){return"$score"===t?e.score:f(c.items[e.id],t,i.nesting)}var e,n,r,s,a,l,u,c=this,h=!(t=c.prepareSearch(t,i)).query&&i.sort_empty||i.sort,d=[];if(h)for(e=0,n=h.length;e<n;e++)!t.query&&"$score"===h[e].field||d.push(h[e]);if(t.query){for(u=!0,e=0,n=d.length;e<n;e++)if("$score"===d[e].field){u=!1;break}u&&d.unshift({field:"$score",direction:"desc"})}else for(e=0,n=d.length;e<n;e++)if("$score"===d[e].field){d.splice(e,1);break}for(l=[],e=0,n=d.length;e<n;e++)l.push("desc"===d[e].direction?-1:1);return(s=d.length)?1===s?(r=d[0].field,a=l[0],function(t,e){return a*p(o(r,t),o(r,e))}):function(t,e){for(var i,n=0;n<s;n++)if(i=d[n].field,i=l[n]*p(o(i,t),o(i,e)))return i;return 0}:null},t.prototype.prepareSearch=function(t,e){var i,n,o;return"object"==typeof t?t:(i=(e=r({},e)).fields,n=e.sort,o=e.sort_empty,i&&!s(i)&&(e.fields=[i]),n&&!s(n)&&(e.sort=[n]),o&&!s(o)&&(e.sort_empty=[o]
1),{options:e,query:String(t||"").toLowerCase(),tokens:this.tokenize(t),total:0,items:[]})},t.prototype.search=function(t,i){var n,o,r=this.prepareSearch(t,i);return i=r.options,t=r.query,o=i.score||this.getScoreFunction(r),t.length?this.iterator(this.items,function(t,e){n=o(t),(!1===i.filter||0<n)&&r.items.push({score:n,id:e})}):this.iterator(this.items,function(t,e){r.items.push({score:1,id:e})}),(t=this.getSortFunction(r,i))&&r.items.sort(t),r.total=r.items.length,"number"==typeof i.limit&&(r.items=r.items.slice(0,i.limit)),r};var p=function(t,e){return"number"==typeof t&&"number"==typeof e?e<t?1:t<e?-1:0:(t=i(String(t||"")),(e=i(String(e||"")))<t?1:t<e?-1:0)},r=function(t,e){for(var i,n,o=1,r=arguments.length;o<r;o++)if(n=arguments[o])for(i in n)n.hasOwnProperty(i)&&(t[i]=n[i]);return t},f=function(t,e,i){if(t&&e){if(!i)return t[e];for(var n=e.split(".");n.length&&(t=t[n.shift()]););return t}},a=function(t){return(t+"").replace(/^\s+|\s+$|/g,"")},l=function(t){return(t+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},s=Array.isArray||"undefined"!=typeof $&&$.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},u={a:"[aá¸á¸ÄÄÃâÇÇȺⱥȦȧẠạÃäÃà ÃáÄÄÃãÃ
Ã¥Ä
ÄÃÄ
Ä]",b:"[bâ¢Î²ÎB฿ðá]",c:"[cÄÄÄÄÄÄÄÄCÌcÌÃçá¸á¸È»È¼ÆÆÉá´ï¼£ï½]",d:"[dÄÄá¸á¸á¸á¸á¸á¸á¸á¸á¸á¸ÄÄD̦d̦ÆÉÆÉÆÆáµá¶á¶È¡á´
Dï½Ã°]",e:"[eÃéÃèÃêá¸á¸ÄÄÄÄẼẽá¸á¸áººáº»ÄÄÃëÄÄȨȩÄÄá¶ÉÉÈÈ
Ếếá»á»á»á»
á»á»á¸á¸á¸á¸á¸á¸ÈÈẸẹá»á»â±¸á´ï¼¥ï½
ÉÇÆÆÎµ]",f:"[fÆÆá¸á¸]",g:"[gÉ¢â²Ç¤Ç¥ÄÄÄÄĢģÆÉ Ä Ä¡]",h:"[hĤĥĦħḨḩáºáºá¸¤á¸¥á¸¢á¸£É¦Ê°Ç¶Æ]",i:"[iÃÃÃìĬÄÃîÇÇÃïḮḯĨĩĮįĪīá»á»ÈÈÈÈá»á»á¸¬á¸ÆÉ¨É¨Ìáµ»á¶Ä°iIıɪIï½]",j:"[jȷĴĵÉÉÊÉʲ]",k:"[kÆÆêêḰḱǨǩḲḳḴḵκϰâ]",l:"[lÅÅĽľĻļĹĺḶḷḸḹḼḽḺḻĿÅȽÆâ± ⱡⱢɫɬá¶
ÉÈ´ÊLï½]",n:"[nÅÅǸǹÅÅÃñá¹á¹
Å
Åá¹á¹á¹á¹á¹á¹NÌnÌÆÉ²È Æáµ°á¶É³ÈµÉ´ï¼®ï½ÅÅ]",o:"[oÃøÃöÃóÃòÃôÇÇÅÅÅÅȮȯá»á»ÆÉµÆ Æ¡á»á»ÅÅÃõǪǫÈÈÕÖ
]",p:"[pá¹á¹á¹á¹â±£áµ½Æ¤Æ¥áµ±]",q:"[qêêÊ ÉÉêêqÌ]",r:"[rÅÅÉÉÅÅÅÅá¹á¹ÈÈÈÈá¹á¹â±¤É½]",s:"[sÅÅṠṡṢṣê¨ê©ÅÅÅ Å¡ÅÅÈÈSÌsÌ]",t:"[tÅ¤Å¥á¹ªá¹«Å¢Å£á¹¬á¹Æ®ÊÈÈṰṱṮṯƬÆ]",u:"[uŬÅÉÊỤụÃüÃúÃùÃûÇÇŰűŬů¯Æ°á»¦á»§ÅªÅ«Å¨Å©Å²Å³ÈÈâª]",v:"[vṼṽṾṿƲÊêêâ±±Ê]",w:"[wáºáºáºáºÅ´Åµáºáº
áºáºáºáº]",x:"[xáºáºáºáºÏ]",y:"[yÃýỲỳŶŷŸÿỸỹáºáºá»´á»µÉÉÆ³Æ´]",z:"[zŹźáºáºÅ½Å¾Å»Å¼áºáºáºáºÆµÆ¶]"},i=function(){var t,e,i,n,o="",r={};for(i in u)if(u.hasOwnProperty(i))for(o+=n=u[i].substring(2,u[i].length-1),t=0,e=n.length;t<e;t++)r[n.charAt(t)]=i;var s=new RegExp("["+o+"]","g");return function(t){return t.replace(s,function(t){return r[t]}).toLowerCase()}}();return t}),function(t,e){"function"==typeof define&&define.amd?define("microplugin",e):"object"==typeof exports?module.exports=e():t.MicroPlugin=e()}(this,function(){var r={isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}};return{mixin:function(n){n.plugins={},n.prototype.initializePlugins=function(t){var e,i,n,o=[];if(this.plugins={names:[],settings:{},requested:{},loaded:{}},r.isArray(t))for(e=0,i=t.length;e<i;e++)"string"==typeof t[e]?o.push(t[e]):(this.plugins.settings[t[e].name]=t[e].options,o.push(t[e].name));else if(t)for(n in t)t.hasOwnProperty(n)&&(this.plugins.settings[n]=t[n],o.push(n));for(;o.length;)this.require(o.shift())},n.prototype.loadPlugin=function(t){var e=this.plugins,i=n.plugins[t];if(!n.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');e.requested[t]=!0,e.loaded[t]=i.fn.apply(this,[this.plugins.settings[t]||{}]),e.names.push(t)},n.prototype.require=function(t){var e=this.plugins;if(!this.plugins.loaded.hasOwnProperty(t)){if(e.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');this.loadPlugin(t)}return e.loaded[t]},n.define=function(t,e){n.plugins[t]={name:t,fn:e}}}}}),function(t,e){"function"==typeof define&&define.amd?define("selectize",["jquery","sifter","microplugin"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery"),require("sifter"),require("microplugin")):t.Selectize=e(t.jQuery,t.Sifter,t.MicroPlugin)}(this,function(A,u,t){"use strict";function n(){}function a(t){return void 0!==t}function C(t){return null==t?null:"boolean"==typeof t?t?"1":"0":t+""}function l(t){return(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function i(e,i,t){var n,o=e.trigger,r={};for(n in e.trigger=function(){var t=arguments[0];if(-1===i.indexOf(t))return o.apply(e,arguments);r[t]=arguments},t.apply(e,[]),e.trigger=o,r)r.hasOwnProperty(n)&&o.apply(e,r[n])}function c(t){var e,i,n={};return void 0===t?console.warn("WARN getSelection cannot locate input control"):"selectionStart"in t?(n.start=t.selectionStart,n.length=t.selectionEnd-n.start):document.selection&&(t.focus(),e=document.selection.createRange(),i=document.selection.createRange().text.length,e.moveStart("character",-t.value.length),n.start=e.text.length-i,n.length=i),n}function T(s){function t(t,e){var i,n,o,r;e=e||{},(t=t||window.event||{}).metaKey||t.altKey||!e.force&&!1===s.data("grow")||(n=s.val(),t.type&&"keydown"===t.type.toLowerCase()&&(o=48<=(i=t.keyCode)&&i<=57||65<=i&&i<=90||96<=i&&i<=111||186<=i&&i<=222||32===i,46===i||8===i?(e=c(s[0])).length?n=n.substring(0,e.start)+n.substring(e.start+e.length):8===i&&e.start?n=n.substring(0,e.start-1)+n.substring(e.start+1):46===i&&void 0!==e.start&&(n=n.substring(0,e.start)+n.substring(e.start+1)):o&&(o=t.shiftKey,r=String.fromCharCode(t.keyCode),n+=r=o?r.toUpperCase():r.toLowerCase())),r=s.attr("placeholder"),(n=function(t,e){if(t){h.$testInput||(h.$testInput=A("<span />").css({position:"absolute",width:"auto",padding:0,whiteSpace:"pre"}),A("<div />").css({position:"absolute",width:0,height:0,overflow:"hidden"}).append(h.$testInput).appendTo("body")),h.$testInput.text(t);for(var i=e,n=(t=h.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),o={},r=0,s=n.length;r<s;r++)o[n[r]]=i.css(n[r]);return t.css(o),h.$testInput.width()}return 0}(n=!n&&r?r:n,s)+4)!==a&&(a=n,s.width(n),s.triggerHandler("resize")))}var a=null;s.on("keydown keyup update blur",t),t()}A.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;var t=this.parentNode;t.replaceChild(this.firstChild,this),t.normalize()}).end()},n.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){var i=arguments.length;return 0===i?delete this._events:1===i?delete this._events[t]:(this._events=this._events||{},void(t in this._events!=0&&this._events[t].splice(this._events[t].indexOf(e),1)))},trigger:function(t){if(this._events=this._events||{},t in this._events!=0)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1
1))}},n.mixin=function(t){for(var e=["on","off","trigger"],i=0;i<e.length;i++)t.prototype[e[i]]=n.prototype[e[i]]};var m=/Mac/.test(navigator.userAgent),S=m?91:17,v=m?18:17,b=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,e=function(e,t,i){var n=e[t];e[t]=function(){var t=n.apply(e,arguments);return i.apply(e,arguments),t}},h=function(t,e){var i,n,o=t[0];o.selectize=this;var r,s,a,l=(l=(l=window.getComputedStyle&&window.getComputedStyle(o,null))?l.getPropertyValue("direction"):o.currentStyle&&o.currentStyle.direction)||t.parents("[dir]:first").attr("dir")||"";if(A.extend(this,{order:0,settings:e,$input:t,tabIndex:t.attr("tabindex")||"",tagType:"select"===o.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(l),eventNS:".selectize"+ ++h.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:t.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",lastValidValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===e.loadThrottle?this.onSearchChange:(r=this.onSearchChange,s=e.loadThrottle,function(){var t=this,e=arguments;window.clearTimeout(a),a=window.setTimeout(function(){r.apply(t,e)},s)})}),this.sifter=new u(this.options,{diacritics:e.diacritics}),this.settings.options){for(i=0,n=this.settings.options.length;i<n;i++)this.registerOption(this.settings.options[i]);delete this.settings.options}if(this.settings.optgroups){for(i=0,n=this.settings.optgroups.length;i<n;i++)this.registerOptionGroup(this.settings.optgroups[i]);delete this.settings.optgroups}this.settings.mode=this.settings.mode||(1===this.settings.maxItems?"single":"multi"),"boolean"!=typeof this.settings.hideSelected&&(this.settings.hideSelected="multi"===this.settings.mode),this.initializePlugins(this.settings.plugins),this.setupCallbacks(),this.setupTemplates(),this.setup()};
1return n.mixin(h),void 0!==t?t.mixin(h):(t={explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'},console.error("Selectize: Dependency MicroPlugin is missing"),t.explanation&&(console.group&&console.group(),console.error(t.explanation),console.group)&&console.groupEnd()),A.extend(h.prototype,{setup:function(){var t,i,n,e=this,o=e.settings,r=e.eventNS,s=A(window),a=A(document),l=e.$input,u=e.settings.mode,c=l.attr("class")||"",h=A("<div>").addClass(o.wrapperClass).addClass(c).addClass(u),d=A("<div>").addClass(o.inputClass).addClass("items").appendTo(h),p=A('<input type="text" autocomplete="new-password" autofill="no" />').appendTo(d).attr("tabindex",l.is(":disabled")?"-1":e.tabIndex),f=A(o.dropdownParent||h),g=A("<div>").addClass(o.dropdownClass).addClass(u).hide().appendTo(f),u=A("<div>").addClass(o.dropdownContentClass).attr("tabindex","-1").appendTo(g);(f=l.attr("id"))&&(p.attr("id",f+"-selectized"),A("label[for='"+f+"']").attr("for",f+"-selectized")),e.settings.copyClassesToDropdown&&g.addClass(c),h.css({width:l[0].style.width}),e.plugins.names.length&&(t="plugin-"+e.plugins.names.join(" plugin-"),h.addClass(t),g.addClass(t)),(null===o.maxItems||1<o.maxItems)&&1===e.tagType&&l.attr("multiple","multiple"),e.settings.placeholder&&p.attr("placeholder",o.placeholder),!e.settings.splitOn&&e.settings.delimiter&&(t=e.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),e.settings.splitOn=new RegExp("\\s*"+t+"+\\s*")),l.attr("autocorrect")&&p.attr("autocorrect",l.attr("autocorrect")),l.attr("autocapitalize")&&p.attr("autocapitalize",l.attr("autocapitalize")),p[0].type=l[0].type,e.$wrapper=h,e.$control=d,e.$control_input=p,e.$dropdown=g,e.$dropdown_content=u,g.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",function(t){t.stopImmediatePropagation()}),g.on("mouseenter","[data-selectable]",function(){return e.onOptionHover.apply(e,arguments)}),g.on("mousedown click","[data-selectable]",function(){return e.onOptionSelect.apply(e,arguments)}),n=function(){return e.onItemSelect.apply(e,arguments)},(i=d).on("mousedown",g="*:not(input)",function(t){for(var e=t.target;e&&e.parentNode!==i[0];)e=e.parentNode;return t.currentTarget=e,n.apply(this,[t])}),T(p),d.on({mousedown:function(){return e.onMouseDown.apply(e,arguments)},click:function(){return e.onClick.apply(e,arguments)}}),p.on({mousedown:function(t){t.stopPropagation()},keydown:function(){return e.onKeyDown.apply(e,arguments)},keyup:function(){return e.onKeyUp.apply(e,arguments)},keypress:function(){return e.onKeyPress.apply(e,arguments)},resize:function(){e.positionDropdown.apply(e,[])},blur:function(){return e.onBlur.apply(e,arguments)},focus:function(){return e.ignoreBlur=!1,e.onFocus.apply(e,arguments)},paste:function(){return e.onPaste.apply(e,arguments)}}),a.on("keydown"+r,function(t){e.isCmdDown=t[m?"metaKey":"ctrlKey"],e.isCtrlDown=t[m?"altKey":"ctrlKey"],e.isShiftDown=t.shiftKey}),a.on("keyup"+r,function(t){t.keyCode===v&&(e.isCtrlDown=!1),16===t.keyCode&&(e.isShiftDown=!1),t.keyCode===S&&(e.isCmdDown=!1)}),a.on("mousedown"+r,function(t){if(e.isFocused){if(t.target===e.$dropdown[0]||t.target.parentNode===e.$dropdown[0])return!1;e.$control.has(t.target).length||t.target===e.$control[0]||e.blur(t.target)}}),s.on(["scroll"+r,"resize"+r].join(" "),function(){e.isOpen&&e.positionDropdown.apply(e,arguments)}),s.on("mousemove"+r,function(){e.ignoreHover=!1}),this.revertSettings={$children:l.children().detach(),tabindex:l.attr("tabindex")},l.attr("tabindex",-1).hide().after(e.$wrapper),A.isArray(o.items)&&(e.lastValidValue=o.items,e.setValue(o.items),delete o.items),b&&l.on("invalid"+r,function(t){t.preventDefault(),e.isInvalid=!0,e.refreshState()}),e.updateOriginalInput(),e.refreshItems(),e.refreshState(),e.updatePlaceholder(),e.isSetup=!0,l.is(":disabled")&&e.disable(),e.on("change",this.onChange),l.data("selectize",e),l.addClass("selectized"),e.trigger("initialize"),!0===o.preload&&e.onSearchChange("")},setupTemplates:function(){var i=this.settings.labelField,n=this.settings.optgroupLabelField;this.settings.render=A.extend({},{optgroup:function(t){return'<div class="optgroup">'+t.html+"</div>"},optgroup_header:function(t,e){return'<div class="optgroup-header">'+e(t[n])+"</div>"},option:function(t,e){return'<div class="option">'+e(t[i])+"</div>"},item:function(t,e){return'<div class="item">'+e(t[i])+"</div>"},option_create:function(t,e){return'<div class="create">Add <strong>'+e(t.input)+"</strong>…</div>"}},this.settings.render)},setupCallbacks:function(){var t,e,i={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur",dropdown_item_activate:"onDropdownItemActivate",dropdown_item_deactivate:"onDropdownItemDeactivate"};for(t in i)i.hasOwnProperty(t)&&(e=this.settings[i[t]])&&this.on(t,e)},onClick:function(t){this.isFocused&&this.isOpen||(this.focus(),t.preventDefault())},onMouseDown:function(t){var e=this,i=t.isDefaultPrevented();if(A(t.target),e.isFocused){if(t.target!==e.$control_input[0])return"single"===e.settings.mode?e.isOpen?e.close():e.open():i||e.setActiveItem(null),!1}else i||window.setTimeout(function(){e.focus()},0)},onChange:function(){""!==this.getValue()&&(this.lastValidValue=this.getValue()),this.$input.trigger("input"),this.$input.trigger("change")},onPaste:function(t){var o=this;o.isFull()||o.isInputHidden||o.isLocked?t.preventDefault():o.settings.splitOn&&setTimeout(function(){var t=o.$control_input.val();if(t.match(o.settings.splitOn))for(var e=A.trim(t).split(o.settings.splitOn),i=0,n=e.length;i<n;i++)o.createItem(e[i])},0)},onKeyPress:function(t){var e;return this.isLocked?t&&t.preventDefault():(e=String.fromCharCode(t.keyCode||t.which),this.settings.create&&"multi"===this.settings.mode&&e===this.settings.delimiter?(this.createItem(),t.preventDefault(),!1):void 0)},onKeyDown:function(t){var e;if(t.target,this.$control_input[0],this.isLocked)9!==t.keyCode&&t.preventDefault();else{switch(t.keyCode){case 65:if(this.isCmdDown)return void this.selectAll();break;case 27:return void(this.isOpen&&(t.preventDefault(),t.stopPropagation(),this.close()));case 78:if(!t.ctrlKey||t.altKey)break;case 40:return!this.isOpen&&this.hasOptions?this.open():this.$activeOption&&(this.ignoreHover=!0,(e=this.getAdjacentOption(this.$activeOption,1)).length)&&this.setActiveOption(e,!0,!0),void t.preventDefault();case 80:if(!t.ctrlKey||t.altKey)break;case 38:return this.$activeOption&&(this.ignoreHover=!0,(e=this.getAdjacentOption(this.$activeOption,-1)).length)&&this.setActiveOption(e,!0,!0),void t.preventDefault();case 13:return void(this.isOpen&&this.$activeOption&&(this.onOptionSelect({currentTarget:this.$activeOption}),t.preventDefault()));case 37:return void this.advanceSelection(-1,t);case 39:return void this.advanceSelection(1,t);case 9:return this.settings.selectOnTab&&this.isOpen&&this.$activeOption&&(this.onOptionSelect({currentTarget:this.$activeOption}),this.isFull()||t.preventDefault()),void(this.settings.create&&this.createItem()&&t.preventDefault());case 8:case 46:return void this.deleteSelection(t)}!this.isFull()&&!this.isInputHidden||(m?t.metaKey:t.ctrlKey)||t.preventDefault()}},onKeyUp:function(t){if(this.isLocked)return t&&t.preventDefault();t=this.$control_input.val()||"",this.lastValue!==t&&(this.lastValue=t,this.onSearchChange(t),this.refreshOptions(),this.trigger("type",t))},onSearchChange:function(e){var i=this,n=i.settings.load;n&&!i.loadedSearches.hasOwnProperty(e)&&(i.loadedSearches[e]=!0,i.load(function(t){n.apply(i,[e,t])}))},onFocus:function(t){var e=this.isFocused;if(this.isDisabled)return this.blur(),t&&t.preventDefault(),!1;
1this.ignoreFocus||(this.isFocused=!0,"focus"===this.settings.preload&&this.onSearchChange(""),e||this.trigger("focus"),this.$activeItems.length||(this.showInput(),this.setActiveItem(null),this.refreshOptions(!!this.settings.openOnFocus)),this.refreshState())},onBlur:function(t,e){var i=this;i.isFocused&&(i.isFocused=!1,!i.ignoreFocus)&&(i.ignoreBlur||document.activeElement!==i.$dropdown_content[0]?(t=function(){i.close(),i.setTextboxValue(""),i.setActiveItem(null),i.setActiveOption(null),i.setCaret(i.items.length),i.refreshState(),e&&e.focus&&e.focus(),i.isBlurring=!1,i.ignoreFocus=!1,i.trigger("blur")},i.isBlurring=!0,i.ignoreFocus=!0,i.settings.create&&i.settings.createOnBlur?i.createItem(null,!1,t):t()):(i.ignoreBlur=!0,i.onFocus(t)))},onOptionHover:function(t){this.ignoreHover||this.setActiveOption(t.currentTarget,!1)},onOptionSelect:function(t){var e,i=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),(e=A(t.currentTarget)).hasClass("create")?i.createItem(null,function(){i.settings.closeAfterSelect&&i.close()}):void 0!==(e=e.attr("data-value"))&&(i.lastQuery=null,i.setTextboxValue(""),i.addItem(e),i.settings.closeAfterSelect?i.close():!i.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&i.setActiveOption(i.getOption(e)))},onItemSelect:function(t){this.isLocked||"multi"===this.settings.mode&&(t.preventDefault(),this.setActiveItem(t.currentTarget,t))},load:function(t){var e=this,i=e.$wrapper.addClass(e.settings.loadingClass);e.loading++,t.apply(e,[function(t){e.loading=Math.max(e.loading-1,0),t&&t.length&&(e.addOption(t),e.refreshOptions(e.isFocused&&!e.isInputHidden)),e.loading||i.removeClass(e.settings.loadingClass),e.trigger("load",t)}])},getTextboxValue:function(){return this.$control_input.val()},setTextboxValue:function(t){var e=this.$control_input;e.val()!==t&&(e.val(t).triggerHandler("update"),this.lastValue=t)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(t,e){i(this,e?[]:["change"],function(){this.clear(e),this.addItems(t,e)})},setMaxItems:function(t){this.settings.maxItems=t=0===t?null:t,this.settings.mode=this.settings.mode||(1===this.settings.maxItems?"single":"multi"),this.refreshState()},setActiveItem:function(t,e){var i,n,o,r,s,a;if("single"!==this.settings.mode)if((t=A(t)).length){if("mousedown"===(n=e&&e.type.toLowerCase())&&this.isShiftDown&&this.$activeItems.length){for(a=this.$control.children(".active:last"),o=Array.prototype.indexOf.apply(this.$control[0].childNodes,[a[0]]),(r=Array.prototype.indexOf.apply(this.$control[0].childNodes,[t[0]]))<o&&(a=o,o=r,r=a),i=o;i<=r;i++)s=this.$control[0].childNodes[i],-1===this.$activeItems.indexOf(s)&&(A(s).addClass("active"),this.$activeItems.push(s));e.preventDefault()}else"mousedown"===n&&this.isCtrlDown||"keydown"===n&&this.isShiftDown?t.hasClass("active")?(n=this.$activeItems.indexOf(t[0]),this.$activeItems.splice(n,1),t.removeClass("active")):this.$activeItems.push(t.addClass("active")[0]):(A(this.$activeItems).removeClass("active"),this.$activeItems=[t.addClass("active")[0]]);this.hideInput(),this.isFocused||this.focus()}else A(this.$activeItems).removeClass("active"),this.$activeItems=[],this.isFocused&&this.showInput()},setActiveOption:function(t,e,i){var n,o,r,s;this.$activeOption&&(this.$activeOption.removeClass("active"),this.trigger("dropdown_item_deactivate",this.$activeOption.attr("data-value"))),this.$activeOption=null,(t=A(t)).length&&(this.$activeOption=t.addClass("active"),this.isOpen&&this.trigger("dropdown_item_activate",this.$activeOption.attr("data-value")),!e&&a(e)||(n=this.$dropdown_content.height(),o=this.$activeOption.outerHeight(!0),e=this.$dropdown_content.scrollTop()||0,t=(s=r=this.$activeOption.offset().top-this.$dropdown_content.offset().top+e)-n+o,n+e<r+o?this.$dropdown_content.stop().animate({scrollTop:t},i?this.settings.scrollDuration:0):r<e&&this.$dropdown_content.stop().animate({scrollTop:s},i?this.settings.scrollDuration:0)))},selectAll:function(){"single"!==this.settings.mode&&(this.$activeItems=Array.prototype.slice.apply(this.$control.children(":not(input)").addClass("active")),this.$activeItems.length&&(this.hideInput(),this.close()),this.focus())},hideInput:function(){this.setTextboxValue(""),this.$control_input.css({opacity:0,position:"absolute",left:this.rtl?1e4:-1e4}),this.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var t=this;return t.isDisabled||(t.ignoreFocus=!0,t.$control_input[0].focus(),window.setTimeout(function(){t.ignoreFocus=!1,t.onFocus()},0)),t},blur:function(t){return this.$control_input[0].blur(),this.onBlur(null,t),this},getScoreFunction:function(t){return this.sifter.getScoreFunction(t,this.get
1SearchOptions())},getSearchOptions:function(){var t=this.settings,e=t.sortField;return{fields:t.searchField,conjunction:t.searchConjunction,sort:e="string"==typeof e?[{field:e}]:e,nesting:t.nesting}},search:function(t){var e,i,n,o=this.settings,r=this.getSearchOptions();if(o.score&&"function"!=typeof(n=this.settings.score.apply(this,[t])))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==this.lastQuery?(this.lastQuery=t,i=this.sifter.search(t,A.extend(r,{score:n})),this.currentResults=i):i=A.extend(!0,{},this.currentResults),o.hideSelected)for(e=i.items.length-1;0<=e;e--)-1!==this.items.indexOf(C(i.items[e].id))&&i.items.splice(e,1);return i},refreshOptions:function(t){var e,i,n,o,r,s,a,l,u,c,h,d,p,f;void 0===t&&(t=!0);var g,T,m=this,S=A.trim(m.$control_input.val()),v=m.search(S),b=m.$dropdown_content,y=m.$activeOption&&C(m.$activeOption.attr("data-value")),P=v.items.length;for("number"==typeof m.settings.maxOptions&&(P=Math.min(P,m.settings.maxOptions)),o={},r=[],e=0;e<P;e++)for(s=m.options[v.items[e].id],a=m.render("option",s),l=s[m.settings.optgroupField]||"",i=0,n=(u=A.isArray(l)?l:[l])&&u.length;i<n;i++)l=u[i],m.optgroups.hasOwnProperty(l)||(l=""),o.hasOwnProperty(l)||(o[l]=document.createDocumentFragment(),r.push(l)),o[l].appendChild(a);for(this.settings.lockOptgroupOrder&&r.sort(function(t,e){return(m.optgroups[t].$order||0)-(m.optgroups[e].$order||0)}),c=document.createDocumentFragment(),e=0,P=r.length;e<P;e++)m.optgroups.hasOwnProperty(l=r[e])&&o[l].childNodes.length?((h=document.createDocumentFragment()).appendChild(m.render("optgroup_header",m.optgroups[l])),h.appendChild(o[l]),c.appendChild(m.render("optgroup",A.extend({},m.optgroups[l],{html:(g=h,T=void 0,(T=document.createElement("div")).appendChild(g.cloneNode(!0)),T.innerHTML),dom:h})))):c.appendChild(o[l]);if(b.html(c),m.settings.highlight&&(b.removeHighlight(),v.query.length)&&v.tokens.length)for(e=0,P=v.tokens.length;e<P;e++)!function(t,e){var s,a;"string"==typeof e&&!e.length||(s="string"==typeof e?new RegExp(e,"i"):e,a=function(t){var e=0;if(3===t.nodeType){var i,n,o=t.data.search(s);0<=o&&0<t.data.length&&(n=t.data.match(s),(i=document.createElement("span")).className="highlight",(o=t.splitText(o)).splitText(n[0].length),n=o.cloneNode(!0),i.appendChild(n),o.parentNode.replaceChild(i,o),e=1)}else if(1===t.nodeType&&t.childNodes&&!/(script|style)/i.test(t.tagName)&&("highlight"!==t.className||"SPAN"!==t.tagName))for(var r=0;r<t.childNodes.length;++r)r+=a(t.childNodes[r]);return e},t.each(function(){a(this)}))}(b,v.tokens[e].regex);if(!m.settings.hideSelected)for(m.$dropdown.find(".selected").removeClass("selected"),e=0,P=m.items.length;e<P;e++)m.getOption(m.items[e]).addClass("selected");(d=m.canCreate(S))&&(b.prepend(m.render("option_create",{input:S})),f=A(b[0].childNodes[0])),m.hasOptions=0<v.items.length||d,m.hasOptions?(0<v.items.length?((y=y&&m.getOption(y))&&y.length?p=y:"single"===m.settings.mode&&m.items.length&&(p=m.getOption(m.items[0])),p&&p.length||(p=f&&!m.settings.addPrecedence?m.getAdjacentOption(f,1):b.find("[data-selectable]:first"))):p=f,m.setActiveOption(p),t&&!m.isOpen&&m.open()):(m.setActiveOption(null),t&&m.isOpen&&m.close())},addOption:function(t){var e,i,n;if(A.isArray(t))for(e=0,i=t.length;e<i;e++)this.addOption(t[e]);else(n=this.registerOption(t))&&(this.userOptions[n]=!0,this.lastQuery=null,this.trigger("option_add",n,t))},registerOption:function(t){var e=C(t[this.settings.valueField]);return null!=e&&!this.options.hasOwnProperty(e)&&(t.$order=t.$order||++this.order,this.options[e]=t,e)},registerOptionGroup:function(t){var e=C(t[this.settings.optgroupValueField]);return!!e&&(t.$order=t.$order||++this.order,this.optgroups[e]=t,e)},addOptionGroup:function(t,e){e[this.settings.optgroupValueField]=t,(t=this.registerOptionGroup(e))&&this.trigger("optgroup_add",t,e)},removeOptionGroup:function(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.renderCache={},this.trigger("optgroup_remove",t))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,e){var i,n,o;if(t=C(t),i=C(e[this.settings.valueField]),null!==t&&this.options.hasOwnProperty(t)){if("string"!=typeof i)throw new Error("Value must be set in option data");o=this.options[t].$order,i!==t&&(delete this.options[t],-1!==(n=this.items.indexOf(t)))&&this.items.splice(n,1,i),e.$order=e.$order||o,this.options[i]=e,n=this.renderCache.item,o=this.renderCache.option,n&&(delete n[t],delete n[i]),o&&(delete o[t],delete o[i]),-1!==this.items.indexOf(i)&&(t=this.getItem(t),e=A(this.render("item",e)),t.hasClass("active")&&e.addClass("active"),t.replaceWith(e)),this.lastQuery=null,this.isOpen&&this.refreshOptions(!1)}},removeOption:function(t,e){t=C(t);var i=this.renderCache.item,n=this.renderCache.option;i&&delete i[t],n&&delete n[t],delete this.userOptions[t],delete this.options[t],this.lastQuery=null,this.trigger("option_remove",t),this.removeItem(t,e)},clearOptions:function(t){var i=this,n=(i.loadedSearches={},i.userOptions={},i.renderCache={},i.options);A.each(i.options,function(t,e){-1==i.items.indexOf(t)&&delete n[t]}),i.options=i.sifter.items=n,i.lastQuery=null,i.trigger("option_clear"),i.clear(t)},getOption:function(t){return this.getElementWithValue(t,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,e){var i=this.$dropdown.find("[data-selectable]");return 0<=(e=i.index(t)+e)&&e<i.length?i.eq(e):A()},getElementWithValue:function(t,e){if(null!=(t=C(t)))for(var i=0,n=e.length;i<n;i++)if(e[i].getAttribute("data-value")===t)return A(e[i]);return A()}
1,getElementWithTextContent:function(t,e,i){if(null!=(t=C(t)))for(var n=0,o=i.length;n<o;n++){var r=i[n].textContent;if(1==e&&(r=null!==r?r.toLowerCase():null,t=t.toLowerCase()),r===t)return A(i[n])}return A()},getItem:function(t){return this.getElementWithValue(t,this.$control.children())},getFirstItemMatchedByTextContent:function(t,e){return this.getElementWithTextContent(t,e=null!==e&&!0===e,this.$dropdown_content.find("[data-selectable]"))},addItems:function(t,e){this.buffer=document.createDocumentFragment();for(var i=this.$control[0].childNodes,n=0;n<i.length;n++)this.buffer.appendChild(i[n]);for(var o=A.isArray(t)?t:[t],n=0,r=o.length;n<r;n++)this.isPending=n<r-1,this.addItem(o[n],e);(t=this.$control[0]).insertBefore(this.buffer,t.firstChild),this.buffer=null},addItem:function(o,r){i(this,r?[]:["change"],function(){var t,e,i,n=this.settings.mode;o=C(o),-1===this.items.indexOf(o)?this.options.hasOwnProperty(o)&&("single"===n&&this.clear(r),"multi"===n&&this.isFull()||(t=A(this.render("item",this.options[o])),i=this.isFull(),this.items.splice(this.caretPos,0,o),this.insertAtCaret(t),this.isPending&&(i||!this.isFull())||this.refreshState(),this.isSetup&&(e=this.$dropdown_content.find("[data-selectable]"),this.isPending||(i=this.getOption(o),i=this.getAdjacentOption(i,1).attr("data-value"),this.refreshOptions(this.isFocused&&"single"!==n),i&&this.setActiveOption(this.getOption(i))),!e.length||this.isFull()?this.close():this.isPending||this.positionDropdown(),this.updatePlaceholder(),this.trigger("item_add",o,t),this.isPending||this.updateOriginalInput({silent:r})))):"single"===n&&this.close()})},removeItem:function(t,e){var i,n,o=t instanceof A?t:this.getItem(t);t=C(o.attr("data-value")),-1!==(i=this.items.indexOf(t))&&(this.trigger("item_before_remove",t,o),o.remove(),o.hasClass("active")&&(n=this.$activeItems.indexOf(o[0]),this.$activeItems.splice(n,1)),this.items.splice(i,1),this.lastQuery=null,!this.settings.persist&&this.userOptions.hasOwnProperty(t)&&this.removeOption(t,e),i<this.caretPos&&this.setCaret(this.caretPos-1),this.refreshState(),this.updatePlaceholder(),this.updateOriginalInput({silent:e}),this.positionDropdown(),this.trigger("item_remove",t,o))},createItem:function(t,i){var n=this,o=n.caretPos,r=(t=t||A.trim(n.$control_input.val()||""),arguments[arguments.length-1]);if("function"!=typeof r&&(r=function(){}),"boolean"!=typeof i&&(i=!0),!n.canCreate(t))return r(),!1;n.lock();function e(){a||(a=!0,s.apply(this,arguments))}var s,a,l="function"==typeof n.settings.create?this.settings.create:function(t){var e={};return e[n.settings.labelField]=t,e[n.settings.valueField]=t,e},t=(a=!(s=function(t){var e;return n.unlock(),!t||"object"!=typeof t||"string"!=typeof(e=C(t[n.settings.valueField]))?r():(n.setTextboxValue(""),n.addOption(t),n.setCaret(o),n.addItem(e),n.refreshOptions(i&&"single"!==n.settings.mode),void r(t))}),l.apply(this,[t,e]));return void 0!==t&&e(t),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var t=!this.items.length;this.isInvalid=t,this.$control_input.prop("required",t),this.$input.prop("required",!t)},refreshClasses:function(){var t=this.isFull(),e=this.isLocked;this.$wrapper.toggleClass("rtl",this.rtl),this.$control.toggleClass("focus",this.isFocused).toggleClass("disabled",this.isDisabled).toggleClass("required",this.isRequired).toggleClass("invalid",this.isInvalid).toggleClass("locked",e).toggleClass("full",t).toggleClass("not-full",!t).toggleClass("input-active",this.isFocused&&!this.isInputHidden).toggleClass("dropdown-active",this.isOpen).toggleClass("has-options",!A.isEmptyObject(this.options)).toggleClass("has-items",0<this.items.length),this.$control_input.data("grow",!t&&!e)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(t){var e,i,n,o;if(t=t||{},1===this.tagType){for(n=[],e=0,i=this.items.length;e<i;e++)o=this.options[this.items[e]][this.settings.labelField]||"",n.push('<option value="'+l(this.items[e])+'" selected="selected">'+l(o)+"</option>");n.length||this.$input.attr("multiple")||n.push('<option value="" selected="selected"></option>'),this.$input.html(n.join(""))}else this.$input.val(this.getValue()),this.$input.attr("value",this.$input.val());this.isSetup&&!t.silent&&this.trigger("change",this.$input.val())},updatePlaceholder:function(){var t;this.settings.placeholder&&(t=this.$control_input,this.items.length?t.removeAttr("placeholder"):t.attr("placeholder",this.settings.placeholder),t.triggerHandler("update",{force:!0}))},open:function(){this.isLocked||this.isOpen||"multi"===this.settings.mode&&this.isFull()||(this.focus(),this.isOpen=!0,this.refreshState(),this.$dropdown.css({visibility:"hidden",display:"block"}),this.positionDropdown(),this.$dropdown.css({visibility:"visible"}),this.trigger("dropdown_open",this.$dropdown))},close:function(){var t=this.isOpen;"single"===this.settings.mode&&this.items.length&&(this.hideInput(),this.isBlurring)&&this.$control_input.blur(),this.isOpen=!1,this.$dropdown.hide(),this.setActiveOption(null),this.refreshState(),t&&this.trigger("dropdown_close",this.$dropdown)},positionDropdown:function(){var t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position();e.top+=t.outerHeight(!0),this.$dropdown.css({width:t[0].getBoundingClientRect().width,top:e.top,left
1:e.left})},clear:function(t){this.items.length&&(this.$control.children(":not(input)").remove(),this.items=[],this.lastQuery=null,this.setCaret(0),this.setActiveItem(null),this.updatePlaceholder(),this.updateOriginalInput({silent:t}),this.refreshState(),this.showInput(),this.trigger("clear"))},insertAtCaret:function(t){var e=Math.min(this.caretPos,this.items.length),i=t[0],t=this.buffer||this.$control[0];0===e?t.insertBefore(i,t.firstChild):t.insertBefore(i,t.childNodes[e]),this.setCaret(e+1)},deleteSelection:function(t){var e,i,n,o,r,s=t&&8===t.keyCode?-1:1,a=c(this.$control_input[0]);if(this.$activeOption&&!this.settings.hideSelected&&(o=this.getAdjacentOption(this.$activeOption,-1).attr("data-value")),n=[],this.$activeItems.length){for(r=this.$control.children(".active:"+(0<s?"last":"first")),r=this.$control.children(":not(input)").index(r),0<s&&r++,e=0,i=this.$activeItems.length;e<i;e++)n.push(A(this.$activeItems[e]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(this.isFocused||"single"===this.settings.mode)&&this.items.length&&(s<0&&0===a.start&&0===a.length?n.push(this.items[this.caretPos-1]):0<s&&a.start===this.$control_input.val().length&&n.push(this.items[this.caretPos]));if(!n.length||"function"==typeof this.settings.onDelete&&!1===this.settings.onDelete.apply(this,[n]))return!1;for(void 0!==r&&this.setCaret(r);n.length;)this.removeItem(n.pop());return this.showInput(),this.positionDropdown(),this.refreshOptions(!0),o&&(t=this.getOption(o)).length&&this.setActiveOption(t),!0},advanceSelection:function(t,e){var i,n,o;0!==t&&(this.rtl&&(t*=-1),o=0<t?"last":"first",i=c(this.$control_input[0]),this.isFocused&&!this.isInputHidden?(n=this.$control_input.val().length,(t<0?0!==i.start||0!==i.length:i.start!==n)||n||this.advanceCaret(t,e)):(o=this.$control.children(".active:"+o)).length&&(o=this.$control.children(":not(input)").index(o),this.setActiveItem(null),this.setCaret(0<t?o+1:o)))},advanceCaret:function(t,e){var i;0!==t&&(this.isShiftDown?(i=this.$control_input[0<t?"next":"prev"]()).length&&(this.hideInput(),this.setActiveItem(i),e)&&e.preventDefault():this.setCaret(this.caretPos+t))},setCaret:function(t){if(t="single"===this.settings.mode?this.items.length:Math.max(0,Math.min(this.items.length,t)),!this.isPending)for(var e,i=this.$control.children(":not(input)"),n=0,o=i.length;n<o;n++)e=A(i[n]).detach(),n<t?this.$control_input.before(e):this.$control.append(e);this.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){this.$input.prop("disabled",!0),this.$control_input.prop("disabled",!0).prop("tabindex",-1),this.isDisabled=!0,this.lock()},enable:function(){this.$input.prop("disabled",!1),this.$control_input.prop("disabled",!1).prop("tabindex",this.tabIndex),this.isDisabled=!1,this.unlock()},destroy:function(){var t=this.eventNS,e=this.revertSettings;this.trigger("destroy"),this.off(),this.$wrapper.remove(),this.$dropdown.remove(),this.$input.html("").append(e.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:e.tabindex}).show(),this.$control_input.removeData("grow"),this.$input.removeData("selectize"),0==--h.count&&h.$testInput&&(h.$testInput.remove(),h.$testInput=void 0),A(window).off(t),A(document).off(t),A(document.body).off(t),delete this.$input[0].selectize},render:function(t,e){var i,n,o,r="";return(o=("option"===t||"item"===t)&&!!(i=C(e[this.settings.valueField])))&&(a(this.renderCache[t])||(this.renderCache[t]={}),this.renderCache[t].hasOwnProperty(i))?this.renderCache[t][i]:(r=A(this.settings.render[t].apply(this,[e,l])),"option"===t||"option_create"===t?e[this.settings.disabledField]||r.attr("data-selectable",""):"optgroup"===t&&(n=e[this.settings.optgroupValueField]||"",r.attr("data-group",n),e[this.settings.disabledField])&&r.attr("data-disabled",""),"option"!==t&&"item"!==t||r.attr("data-value",i||""),o&&(this.renderCache[t][i]=r[0]),r[0])},clearCache:function(t){void 0===t?this.renderCache={}:delete this.renderCache[t]},canCreate:function(t){var e;return!!this.settings.create&&(e=this.settings.createFilter,t.length)&&("function"!=typeof e||e.apply(this,[t]))&&("string"!=typeof e||new RegExp(e).test(t))&&(!(e instanceof RegExp)||e.test(t))}}),h.count=0,h.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,
1createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!0,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},A.fn.selectize=function(n){var o=A.fn.selectize.defaults,T=A.extend({},o,n),m=T.dataAttr,S=T.labelField,v=T.valueField,b=T.disabledField,y=T.optgroupField,P=T.optgroupLabelField,M=T.optgroupValueField;return this.each(function(){var t,e,i;this.selectize||(t=A(this),e=this.tagName.toLowerCase(),i={placeholder:(i=t.attr("placeholder")||t.attr("data-placeholder"))||T.allowEmptyOption?i:t.children('option[value=""]').text(),options:[],optgroups:[],items:[]},("select"===e?function(t,o){function r(t){return"string"==typeof(t=m&&t.attr(m))&&t.length?JSON.parse(t):null}function e(t,e){var i,n=C((t=A(t)).val());(n||T.allowEmptyOption)&&(f.hasOwnProperty(n)?e&&((i=f[n][y])?A.isArray(i)?i.push(e):f[n][y]=[i,e]:f[n][y]=e):((i=r(t)||{})[S]=i[S]||t.text(),i[v]=i[v]||n,i[b]=i[b]||t.prop("disabled"),i[y]=i[y]||e,f[n]=i,p.push(i),t.is(":selected")&&o.items.push(n)))}var i,n,s,a,l,u,c,h,d,p=o.options,f={};for(o.maxItems=t.attr("multiple")?null:1,i=0,n=(a=t.children()).length;i<n;i++)if("optgroup"===(s=a[i].tagName.toLowerCase())){l=void 0;u=void 0;c=void 0;h=void 0;d=void 0;var g=a[i];for((c=(g=A(g)).attr("label"))&&((h=r(g)||{})[P]=c,h[M]=c,h[b]=g.prop("disabled"),o.optgroups.push(h)),l=0,u=(d=A("option",g)).length;l<u;l++)e(d[l],c)}else"option"===s&&e(a[i])}:function(t,e){var i,n,o,r,s=t.attr(m);if(s)for(e.options=JSON.parse(s),i=0,n=e.options.length;i<n;i++)e.items.push(e.options[i][v]);else if(t=A.trim(t.val()||""),T.allowEmptyOption||t.length){for(i=0,n=(o=t.split(T.delimiter)).length;i<n;i++)(r={})[S]=o[i],r[v]=o[i],e.options.push(r);e.items=o}})(t,i),new h(t,A.extend(!0,{},o,i,n)))})},A.fn.selectize.defaults=h.defaults,A.fn.selectize.support={validity:b},h.define("auto_select_on_type",function(t){var i,n=this;n.onBlur=(i=n.onBlur,function(t){var e=n.getFirstItemMatchedByTextContent(n.lastValue,!0);return void 0!==e.attr("data-value")&&n.getValue()!==e.attr("data-value")&&n.setValue(e.attr("data-value")),i.apply(this,arguments)})}),h.define("autofill_disable",function(t){var e,i=this;i.setup=(e=i.setup,function(){e.apply(i,arguments),i.$control_input.attr({autocomplete:"new-password",autofill:"no"})})}),h.define("drag_drop",function(t){if(!A.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');var n,e,o,i;"multi"===this.settings.mode&&((n=this).lock=(e=n.lock,function(){var t=n.$control.data("sortable");return t&&t.disable(),e.apply(n,arguments)}),n.unlock=(i=n.unlock,function(){var t=n.$control.data("sortable");return t&&t.enable(),i.apply(n,arguments)}),n.setup=(o=n.setup,function(){o.apply(this,arguments);var i=n.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:n.isLocked,start:function(t,e){e.placeholder.css("width",e.helper.css("width")),i.css({overflow:"visible"})},stop:function(){i.css({overflow:"hidden"});var t=n.$activeItems?n.$activeItems.slice():null,e=[];i.children("[data-value]").each(function(){e.push(A(this).attr("data-value"))}),n.setValue(e),n.setActiveItem(t)}})}))}),h.define("dropdown_header",function(t){var e,i=this;t=A.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(t){return'<div class="'+t.headerClass+'"><div class="'+t.titleRowClass+'"><span class="'+t.labelClass+'">'+t.title+'</span><a href="javascript:void(0)" class="'+t.closeClass+'">×</a></div></div>'}},t),i.setup=(e=i.setup,function(){e.apply(i,arguments),i.$dropdown_header=A(t.html(t)),i.$dropdown.prepend(i.$dropdown_header)})}),h.define("optgroup_columns",function(s){var n,a=this;function t(){var t,e,i,n,o=A("[data-group]",a.$dropdown_content),r=o.length;if(r&&a.$dropdown_content.width()){if(s.equalizeHeight){for(t=e=0;t<r;t++)e=Math.max(e,o.eq(t).height());o.css({height:e})}s.equalizeWidth&&(n=a.$dropdown_content.innerWidth()-l(),i=Math.round(n/r),o.css({width:i}),1<r)&&(i=n-i*(r-1),o.eq(r-1).css({width:i}))}}
1s=A.extend({equalizeWidth:!0,equalizeHeight:!0},s),this.getAdjacentOption=function(t,e){var i=t.closest("[data-group]").find("[data-selectable]");return 0<=(e=i.index(t)+e)&&e<i.length?i.eq(e):A()},this.onKeyDown=(n=a.onKeyDown,function(t){var e,i;return!this.isOpen||37!==t.keyCode&&39!==t.keyCode?n.apply(this,arguments):(a.ignoreHover=!0,e=(i=this.$activeOption.closest("[data-group]")).find("[data-selectable]").index(this.$activeOption),void((e=(i=(i=37===t.keyCode?i.prev("[data-group]"):i.next("[data-group]")).find("[data-selectable]")).eq(Math.min(i.length-1,e))).length&&this.setActiveOption(e)))});var l=function(){var t,e=l.width,i=document;return void 0===e&&((t=i.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',t=t.firstChild,i.body.appendChild(t),e=l.width=t.offsetWidth-t.clientWidth,i.body.removeChild(t)),e};(s.equalizeHeight||s.equalizeWidth)&&(e(this,"positionDropdown",t),e(this,"refreshOptions",t))}),h.define("remove_button",function(t){t=A.extend({label:"×",title:"Remove",className:"remove",append:!0},t),("single"===this.settings.mode?function(o,e){e.className="remove-single";var i,r=o,s='<a href="javascript:void(0)" class="'+e.className+'" tabindex="-1" title="'+l(e.title)+'">'+e.label+"</a>";o.setup=(i=r.setup,function(){var t,n;e.append&&(t=A(r.$input.context).attr("id"),A("#"+t),n=r.settings.render.item,r.settings.render.item=function(t){return e=n.apply(o,arguments),i=s,A("<span>").append(e).append(i);var e,i}),i.apply(o,arguments),o.$control.on("click","."+e.className,function(t){t.preventDefault(),r.isLocked||r.clear()})})}:function(r,t){var e,i=r,s='<a href="javascript:void(0)" class="'+t.className+'" tabindex="-1" title="'+l(t.title)+'">'+t.label+"</a>";r.setup=(e=i.setup,function(){var o;t.append&&(o=i.settings.render.item,i.settings.render.item=function(t){return e=o.apply(r,arguments),i=s,n=e.search(/(<\/[^>]+>\s*)$/),e.substring(0,n)+i+e.substring(n);var e,i,n}),e.apply(r,arguments),r.$control.on("click","."+t.className,function(t){if(t.preventDefault(),!i.isLocked)return t=A(t.currentTarget).parent(),i.setActiveItem(t),i.deleteSelection()&&i.setCaret(i.items.length),!1})})})(this,t)}),h.define("restore_on_backspace",function(i){var n;i.text=i.text||function(t){return t[this.settings.labelField]},this.onKeyDown=(n=this.onKeyDown,function(t){var e;return 8===t.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&0<=(e=this.caretPos-1)&&e<this.items.length?(e=this.options[this.items[e]],this.deleteSelection(t)&&(this.setTextboxValue(i.text.apply(this,[e])),this.refreshOptions(!0)),void t.preventDefault()):n.apply(this,arguments)})}),h.define("select_on_focus",function(t){var i,e,n=this;n.on("focus",(i=n.onFocus,function(t){var e=n.getItem(n.getValue()).text();return n.clear(),n.setTextboxValue(e),n.$control_input.select(),setTimeout(function(){n.settings.selectOnTab&&n.setActiveOption(n.getFirstItemMatchedByTextContent(e)),n.settings.score=null},0),i.apply(this,arguments)})),n.onBlur=(e=n.onBlur,function(t){return""===n.getValue()&&n.lastValidValue!==n.getValue()&&n.setValue(n.lastValidValue),setTimeout(function(){n.settings.score=function(){return function(){return 1}}},0),e.apply(this,arguments)}),n.settings.score=function(){return function(){return 1}}}),h}),String.prototype.startsWith||function(){"use strict";function t(t){if(null==this)throw TypeError();var e=String(this);if(t&&"[object RegExp]"==a.call(t))throw TypeError();var i=e.length,n=String(t),o=n.length,t=1<arguments.length?arguments[1]:void 0,t=t?Number(t):0,r=(t!=t&&(t=0),Math.min(Math.max(t,0),i));if(i<o+r)return!1;for(var s=-1;++s<o;)if(e.charCodeAt(r+s)!=n.charCodeAt(s))return!1;return!0}var e=function(){try{var t={},e=Object.defineProperty,i=e(t,t,t)&&e}catch(t){}return i}(),a={}.toString;e?e(String.prototype,"startsWith",{value:t,configurable:!0,writable:!0}):String.prototype.startsWith=t}(),function(s,t){var a,l,e,i,n,u,o,r,c,h,d,p,f,g,T,m,S,v,b,y,P;"function"==typeof s.createEvent&&(o=function(t){var e=t.toLowerCase();return navigator.msPointerEnabled?"MS"+t:!!window.PointerEvent&&e},n=function(t){return"on"+t in window&&t},a={useJquery:!t.IGNORE_JQUERY&&"undefined"!=typeof jQuery,swipeThreshold:t.SWIPE_THRESHOLD||100,tapThreshold:t.TAP_THRESHOLD||150,dbltapThreshold:t.DBL_TAP_THRESHOLD||200,longtapThreshold:t.LONG_TAP_THRESHOLD||1e3,tapPrecision:t.TAP_PRECISION/2||30,justTouchEvents:t.JUST_ON_TOUCH_DEVICES},l=!1,e=n("touchstart")||o("PointerDown"),i=n("touchend")||o("PointerUp"),n=n("touchmove")||o("PointerMove"),u=function(t){return!t.pointerId||void 0===f||t.pointerId===f},r=function(t){var e=Boolean(t.targetTouches&&t.targetTouches.length);switch(!0){case Boolean(t.target.touches):return t.target.touches[0];case e&&void 0!==t.targetTouches[0].pageX:return t.targetTouches[0];case e&&Boolean(t.targetTouches[0].touches):return t.targetTouches[0].touches[0];default:return t}},c=function(t){return 1<(t.targetTouches||t.target.touches||[]).length},h=function(){return(new Date).getTime()}
1,d=function(t,e,i,n){var o=s.createEvent("Event");if(o.originalEvent=i,(n=n||{}).x=g,n.y=T,a.useJquery&&(o=jQuery.Event(e,{originalEvent:i}),jQuery(t).trigger(o,n)),o.initEvent){for(var r in n)o[r]=n[r];o.initEvent(e,!0,!0),t.dispatchEvent(o)}for(;t;)t["on"+e]&&t["on"+e](o),t=t.parentNode},p=0,(o=function(t,e,i){for(var n=e.split(" "),o=n.length;o--;)t.addEventListener(n[o],i,!1)})(s,e+(a.justTouchEvents?"":" mousedown"),function(t){var e;!u(t)||c(t)||(f=t.pointerId,"mousedown"!==t.type&&(l=!0),"mousedown"===t.type&&l)||(e=r(t),m=g=e.pageX,S=T=e.pageY,P=setTimeout(function(){d(t.target,"longtap",t),b=t.target},a.longtapThreshold),v=h(),p++)}),o(s,i+(a.justTouchEvents?"":" mouseup"),function(t){if(u(t)&&!c(t))if(f=void 0,"mouseup"===t.type&&l)l=!1;else{var e=[],i=h(),n=S-T,o=m-g;if(clearTimeout(y),clearTimeout(P),o<=-a.swipeThreshold&&e.push("swiperight"),o>=a.swipeThreshold&&e.push("swipeleft"),n<=-a.swipeThreshold&&e.push("swipedown"),n>=a.swipeThreshold&&e.push("swipeup"),e.length){for(var r=0;r<e.length;r++)d(t.target,e[r],t,{distance:{x:Math.abs(o),y:Math.abs(n)}});p=0}else m>=g-a.tapPrecision&&m<=g+a.tapPrecision&&S>=T-a.tapPrecision&&S<=T+a.tapPrecision&&0<=v+a.tapThreshold-i&&(d(t.target,2<=p&&b===t.target?"dbltap":"tap",t),b=t.target),y=setTimeout(function(){p=0},a.dbltapThreshold)}}),o(s,n+(a.justTouchEvents?"":" mousemove"),function(t){!u(t)||"mousemove"===t.type&&l||(t=r(t),g=t.pageX,T=t.pageY)}),t.tocca=function(t){for(var e in t)a[e]=t[e];return a})}(document,window),function(){function L(t,e,i){return t.call.apply(t.bind,arguments)}function k(e,i,t){var n;if(e)return 2<arguments.length?(n=Array.prototype.slice.call(arguments,2),function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,n),e.apply(i,t)}):function(){return e.apply(i,arguments)};throw Error()}function p(t,e,i){return(p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?L:k).apply(null,arguments)}var a=Date.now||function(){return+new Date};function N(t,e){this.a=t,this.m=e||t,this.c=this.m.document}var V=!!window.FontFace;function l(t,e,i,n){if(e=t.c.createElement(e),i)for(var o in i)i.hasOwnProperty(o)&&("style"==o?e.style.cssText=i[o]:e.setAttribute(o,i[o]));return n&&e.appendChild(t.c.createTextNode(n)),e}function u(t,e,i){(t=(t=t.c.getElementsByTagName(e)[0])||document.documentElement).insertBefore(i,t.lastChild)}function i(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t,e,i){e=e||[],i=i||[];for(var n=t.className.split(/\s+/),o=0;o<e.length;o+=1){for(var r=!1,s=0;s<n.length;s+=1)if(e[o]===n[s]){r=!0;break}r||n.push(e[o])}for(e=[],o=0;o<n.length;o+=1){for(r=!1,s=0;s<i.length;s+=1)if(n[o]===i[s]){r=!0;break}r||e.push(n[o])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function r(t,e){for(var i=t.className.split(/\s+/),n=0,o=i.length;n<o;n++)if(i[n]==e)return!0;return!1}function A(t){var e;return"string"==typeof t.f?t.f:"https:"==(e="about:"==(e=t.m.location.protocol)?t.a.location.protocol:e)?"https:":"http:"}function C(t,e,i){function n(){s&&o&&(s(r),s=null)}e=l(t,"link",{rel:"stylesheet",href:e,media:"all"});var o=!1,r=null,s=i||null;V?(e.onload=function(){o=!0,n()},e.onerror=function(){o=!0,r=Error("Stylesheet failed to load"),n()}):setTimeout(function(){o=!0,n()},0),u(t,"head",e)}function n(t,e,i,n){var o,r,s=t.c.getElementsByTagName("head")[0];return s?(o=l(t,"script",{src:e}),r=!1,o.onload=o.onreadystatechange=function(){r||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(r=!0,i&&i(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&s.removeChild(o))},s.appendChild(o),setTimeout(function(){r||(r=!0,i&&i(Error("Script load timeout")))},n||5e3),o):null}function w(){this.a=0,this.c=null}function G(t){return t.a++,function(){t.a--,o(t)}}function I(t,e){t.c=e,o(t)}function o(t){0==t.a&&t.c&&(t.c(),t.c=null)}function s(t){this.a=t||"-"}function E(t,e){this.c=t,this.f=4,this.a="n";t=(e||"n4").match(/^([nio])([1-9])$/i);t&&(this.a=t[1],this.f=parseInt(t[2],10))}function c(t){var e=[];t=t.split(/,\s*/);for(var i=0;i<t.length;i++){var n=t[i].replace(/['"]/g,"");-1!=n.indexOf(" ")||/^\d/.test(n)?e.push("'"+n+"'"):e.push(n)}return e.join(",")}function g(t){return t.a+t.f}function h(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&&(e="italic"),e}function R(t,e){this.c=t,this.f=t.m.document.documentElement,this.h=e,this.a=new s("-"),this.j=!1!==e.events,this.g=!1!==e.classes}function T(t){var e,i,n;t.g&&(e=r(t.f,t.a.c("wf","active")),i=[],n=[t.a.c("wf","loading")],e||i.push(t.a.c("wf","inactive")),f(t.f,i,n)),m(t,"inactive")}function m(t,e,i){t.j&&t.h[e]&&(i?t.h[e](i.c,g(i)):t.h[e]())}function F(){this.c={}}function d(t,e){this.c=t,this.f=e,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function S(t){u(t.c,"body",t.a)}function v(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+c(t.c)+";font-style:"+h(t)+";font-weight:"+t.f+"00;"}function b(t,e,i,n,o,r){this.g=t,this.j=e,this.a=n,this.c=i,this.f=o||3e3,this.h=r||void 0}function y(t,e,i,n,o,r,s){this.v=t,this.B=e,this.c=i,this.a=n,this.s=s||"BESbswy",this.f={},this.w=o||3e3,this.u=r||null,this.o=this.j=this.h=this.g=null,this.g=new d(this.c,this.s),this.h=new d(this.c,this.s),this.j=new d(this.c,this.s),this.o=new d(this.c,this.s),t=v(t=new E(this.a.c+",serif",g(this.a))),this.g.a.style.cssText=t,t=v(t=new E(this.a.c+",sans-serif",g(this.a))),this.h.a.style.cssText=t,t=v(t=new E("serif",g(this.a))),this.j.a.style.cssText=t,t=v(t=new E("sans-serif",g(this.a))),this.o.a.style.cssText=t,S(this.g),S(this.h),S(this.j),S(this.o)}s.prototype.c=function(t){for(var e=[],i=0;i<arguments.length;i++)e.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},b.prototype.start=function(){var o=this.c.m.document,r=this,s=a(),t=new Promise(function(i,n){!function e(){var t;a()-s>=r.f?n():o.fonts.load(h(t=r.a)+" "+t.f+"00 300px "+c(t.c),r.h).then(function(t){1<=t.length?
1i():setTimeout(e,25)},function(){n()})}()}),e=new Promise(function(t,e){setTimeout(e,r.f)});Promise.race([e,t]).then(function(){r.g(r.a)},function(){r.j(r.a)})};var P={D:"serif",C:"sans-serif"},e=null;function M(){var t;return null===e&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),e=!!t&&(parseInt(t[1],10)<536||536===parseInt(t[1],10)&&parseInt(t[2],10)<=11)),e}function B(t,e,i){for(var n in P)if(P.hasOwnProperty(n)&&e===t.f[P[n]]&&i===t.f[P[n]])return!0;return!1}function _(t){var e=t.g.a.offsetWidth,i=t.h.a.offsetWidth;e===t.f.serif&&i===t.f["sans-serif"]||M()&&B(t,e,i)?a()-t.A>=t.w?M()&&B(t,e,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?H(t,t.v):H(t,t.B):setTimeout(p(function(){_(this)},t),50):H(t,t.v)}function H(t,e){setTimeout(p(function(){i(this.g.a),i(this.h.a),i(this.j.a),i(this.o.a),e(this.a)},t),0)}function O(t,e,i){this.c=t,this.a=e,this.f=0,this.o=this.j=!1,this.s=i}y.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.o.a.offsetWidth,this.A=a(),_(this)};var x=null;function W(t){0==--t.f&&t.j&&(t.o?((t=t.a).g&&f(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),m(t,"active")):T(t.a))}function $(t){this.j=t,this.a=new F,this.h=0,this.f=this.g=!0}function z(t,e){this.c=t,this.a=e}function X(t,e){this.c=t,this.a=e}function j(t,e,i){this.c=t||e+"//fonts.googleapis.com/css",this.a=[],this.f=[],this.g=i||""}O.prototype.g=function(t){var e=this.a;e.g&&f(e.f,[e.a.c("wf",t.c,g(t).toString(),"active")],[e.a.c("wf",t.c,g(t).toString(),"loading"),e.a.c("wf",t.c,g(t).toString(),"inactive")]),m(e,"fontactive",t),this.o=!0,W(this)},O.prototype.h=function(t){var e,i,n,o=this.a;o.g&&(e=r(o.f,o.a.c("wf",t.c,g(t).toString(),"active")),i=[],n=[o.a.c("wf",t.c,g(t).toString(),"loading")],e||i.push(o.a.c("wf",t.c,g(t).toString(),"inactive")),f(o.f,i,n)),m(o,"fontinactive",t),W(this)},$.prototype.load=function(t){this.c=new N(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes;var n=this,e=new R(this.c,t),i=t,o=[],t=i.timeout,o=(function(t){t.g&&f(t.f,[t.a.c("wf","loading")]),m(t,"loading")}(e),function(t,e,i){var n,o,r=[];for(n in e)e.hasOwnProperty(n)&&(o=t.c[n])&&r.push(o(e[n],i));return r}(n.a,i,n.c)),r=new O(n.c,e,t);for(n.h=o.length,e=0,i=o.length;e<i;e++)o[e].load(function(t,e,i){var l,u,c,h,d;l=r,u=t,c=e,h=i,d=0==--(t=n).h,(t.f||t.g)&&setTimeout(function(){var t=h||null,e=c||{};if(0===u.length&&d)T(l.a);else{l.f+=u.length,d&&(l.j=d);for(var i=[],n=0;n<u.length;n++){var o=u[n],r=e[o.c],s=l.a,a=o;s.g&&f(s.f,[s.a.c("wf",a.c,g(a).toString(),"loading")]),m(s,"fontloading",a),s=(x=(s=null)===x?!!window.FontFace&&(!(a=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))||42<parseInt(a[1],10)):x)?new b(p(l.g,l),p(l.h,l),l.c,o,l.s,r):new y(p(l.g,l),p(l.h,l),l.c,o,l.s,t,r),i.push(s)}for(n=0;n<i.length;n++)i[n].start()}},0)})},z.prototype.load=function(s){var a,t,e,l=this.a.projectId,i=this.a.version;l?(a=this.c.m,n(this.c,(e=l,i=i,A((t=this).c)+"//"+(t=(t.a.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,""))+"/"+e+".js"+(i?"?v="+i:"")),function(t){t?s([]):function t(){if(a["__mti_fntLst"+l]){var e,i=a["__mti_fntLst"+l](),n=[];if(i)for(var o=0;o<i.length;o++){var r=i[o].fontfamily;null!=i[o].fontStyle&&null!=i[o].fontWeight?(e=i[o].fontStyle+i[o].fontWeight,n.push(new E(r,e))):n.push(new E(r))}s(n)}else setTimeout(function(){t()},50)}()}).id="__MonotypeAPIScript__"+l):s([])},X.prototype.load=function(t){for(var e=this.a.urls||[],i=this.a.families||[],n=this.a.testStrings||{},o=new w,r=0,s=e.length;r<s;r++)C(this.c,e[r],G(o));var a=[];for(r=0,s=i.length;r<s;r++)if((e=i[r].split(":"))[1])for(var l=e[1].split(","),u=0;u<l.length;u+=1)a.push(new E(e[0],l[u]));else a.push(new E(e[0]));I(o,function(){t(a,n)})};function K(t){this.f=t,this.a=[],this.c={}}var U={latin:"BESbswy",cyrillic:"йÑÐ",greek:"αβΣ",khmer:"ááá",Hanuman:"ááá"},Q={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},q={i:"i",italic:"i",n:"n",normal:"n"},Y=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Z(t,e){this.c=t,this.a=e}var J={Arimo:!0,Cousine:!0,Tinos:!0};function tt(t,e){this.c=t,this.a=e}function et(t,e){this.c=t,this.f=e,this.a=[]}Z.prototype.load=function(t){for(var e=new w,i=this.c,n=new j(this.a.api,A(i),this.a.text),o=this.a.families,r=n,s=o,a=s.length,l=0;l<a;l++){var u=s[l].split(":"),c=(3==u.length&&r.f.push(u.pop()),"");2==u.length&&""!=u[1]&&(c=":"),r.a.push(u.join(c))}for(var h=new K(o),d=h,p=d.f.length,f=0;f<p;f++){var g=d.f[f].split(":"),T=g[0].replace(/\+/g," "),m=["n4"];if(2<=g.length){var S,v,b=g[1],y=[];if(b)for(var P=(b=b.split(",")).length,M=0;M<P;M++)(v=!(v=b[M]).match(/^[\w-]+$/)||null==(S=Y.exec(v.toLowerCase()))?"":[v=null==(v=S[2])||""==v?"n":q[v],S=null==(S=S[1])||""==S?"4":Q[S]||(isNaN(S)?"4":S.substr(0,1))].join(""))&&y.push(v);0<y.length&&(m=y),3==g.length&&(y=[],0<(g=(g=g[2])?g.split(","):y).length)&&(g=U[g[0]])&&(d.c[T]=g)}for(d.c[T]||(g=U[T])&&(d.c[T]=g),g=0;g<m.length;g+=1)d.a.push(new E(T,m[g]))}C(i,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,i=[],n=0;n<e;n++)i.push(t.a[n].replace(/ /g,"+"));return e=t.c+"?family="+i.join("%7C"),0<t.f.length&&(e+="&subset="+t.f.join(",")),0<t.g.length&&(e+="&text="+encodeURIComponent(t.g)),e}(n),G(e)),I(e,function(){t(h.a,h.c,J)})},tt.prototype.load=function(s){var t=this.a.id,a=this.c.m;t?n(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)s([]);else if(a.Typekit&&a.Typekit.config&&a.Typekit.config.fn){t=a.Typekit.config.fn;for(var e=[],i=0;i<t.length;i+=2)for(var n=t[i],o=t[i+1],r=0;r<o.length;r++)e.push(new E(n,o[r]));try{a.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}s(e)}},2e3):s([])},et.prototype.load=function(l){var t=this.f.id,e=this.c.m,u=this;t?(e.__webfontfontdeckmodule__||(e.__webfontfontdeckmodule__={}),e.__webfontfontdeckmodule__[t]=function(t,e){for(var i,n,o,r=0,s=e.fonts.length;r<s;++r){var a=e.fonts[r];u.a.push(new E(a.name,(a="font-weight:"+a.weight+";font-style:"+a.style,o=n=i=void 0,i=4,n="n",o=null,a&&((o=a.match(/(normal|oblique|italic)/i))&&o[1]&&(n=o[1].substr(0,1).toLowerCase()),o=a.match(/([1-9]00|normal|bold)/i))&&o[1]&&(/bold/i.test(o[1])?i=7:/[1-9]00/.test(o[1])&&(i=parseInt(o[1].substr(0,1),10))),n+i)))}l(u.a)},n(this.c,A(this.c)+(this.f.api||"//f.fontdeck.com/s/css/js/")+((e=this.c).m.location.hostname||e.a.location.hostname)+"/"+t+".js",function(t){t&&l([])})):l([])};var t=new $(window),D=(t.a.c.custom=function(t,e){return new X(e,t)},t.a.c.fontdeck=function(t,e){return new et(e,t)},t.a.c.monotype=function(t,e){return new z(e,t)},t.a.c.typekit=function(t,e){return new tt(e,t)},t.a.c.google=function(t,e){return new Z(e,t)},{load:p(t.load,t)});"function"==typeof define&&define.amd?define(function(){return D}):"undefined"!=typeof module&&module.exports?module.exports=D:(window.WebFont=D,window.WebFontConfig&&t.load(window.WebFontConfig))}();
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.