/*! For license information please see all.min.js.LICENSE.txt */ (()=>{var __webpack_modules__={8751:t=>{var e;window,e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},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=20)}([function(t,e,n){var r=n(2);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}t.exports=function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e){t.exports=function(t,e){if(null==t)return{};var n,r,i={},s=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}},function(t,e){var n,r,i=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,h=[],c=!1,u=-1;function p(){c&&l&&(c=!1,l.length?h=l.concat(h):u=-1,h.length&&f())}function f(){if(!c){var t=o(p);c=!0;for(var e=h.length;e;){for(l=h,h=[];++u1)for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce((function(t,e){return i()(i()({},t),{},w()({},e.key,e.value))}),{})}function A(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return-1!==e.indexOf(t)}))}function D(t,e){return new RegExp("\\/".concat(e,"(\\/.*|\\?.*){0,1}$")).test(t)}function I(t,e){var n=l()(e,2),r=n[0],s=n[1];return i()(i()({},t),{},w()({},r,s))}function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n={entries:function(e){return[e,t[e]]},values:function(e){return t[e]}};return Object[e]?Object[e](t):Object.keys(t).map(n[e])}function F(t){return M(t,"entries")}function N(t){return M(t,"values")}function B(t){return P(t)?!S(t):!!t||0===t}var R,L={namespace:"adjust-sdk",version:"5.1.2",env:"production"},O="error",V="warning",$="info",j="verbose",z=(R={},w()(R,"none",-1),w()(R,O,0),w()(R,V,1),w()(R,$,2),w()(R,j,3),R),H={log:" ",info:" ",warn:" ",error:""},G={development:j,production:O,test:j},q=U(),W="";function U(){return G[L.env]||O}function Y(t,e){var n;if(!(z[q]2?o-2:0),h=2;h1&&void 0!==arguments[1]?arguments[1]:1,n=t+"",r=1;r<=e;r+=1)t0?"-":"+")+wt(Math.floor(Math.abs(e)/60))+wt(Math.abs(e)%60)}(e);return"".concat(n,"T").concat(r,"Z").concat(i)}function Et(t,e){return isNaN(t)||isNaN(e)?0:Math.abs(e-t)}var St={},Pt=!1,_t=!1;function Ct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};St=Pt?i()({},t):{}}function Tt(){var t;Pt&&(St.lastInterval=(t=St.lastActive)?Math.round(Et(t,Date.now())/u):-1,St.lastActive=Date.now())}function At(t){St=i()(i()({},St),t)}function Dt(){_t=!0}function It(){var t=St.lastActive;return Math.round(Et(t,Date.now())/u)}function Mt(){return(St.timeSpent||0)+(_t?It():0)}function Ft(){var t=Et(St.lastActive,Date.now())=0?St.lastInterval:0,n={timeSpent:St.timeSpent||0,sessionLength:St.sessionLength||0,sessionCount:St.sessionCount||1,lastInterval:e||0};return t&&D(t,"event")&&(n.eventCount=St.eventCount),n},updateParams:function(t,e){if(Pt){var n={};n.timeSpent=Mt(),n.sessionLength=Ft(),D(t,"session")&&(n.sessionCount=(St.sessionCount||0)+1),D(t,"event")&&(n.eventCount=(St.eventCount||0)+1),At(n),e||Tt()}},updateInstalled:function(){Pt&&(St.installed||At({installed:!0}))},updateSessionOffset:Nt,updateSessionLength:function(){Pt&&(At({sessionLength:Ft()}),Tt())},resetSessionOffset:function(){Pt&&At({timeSpent:0,sessionLength:0})},updateLastActive:Tt,destroy:function(){St={},Pt=!1,_t=!1}};function Lt(t,e){return t&&void 0!==t[e]?t[e]:e}function Ot(t){var e=t.storeName,n=t.dir,r=t.record,s=t.scheme;if(r)return s=s||xt[n][zt({storeName:e,dir:Bt.right})].fields,F(r).map((function(t){var r=l()(t,2),i=r[0],a=r[1];return function(t){var e=t.storeName,n=t.scheme,r=t.dir,i=t.key,s=t.value;if(!n)return[i,s];var a=n.key||n;return P(s)?[a,Ot({storeName:e,dir:r,record:s,scheme:n.keys})]:[a,Lt(n.values,s)]}({storeName:e,scheme:s[i],dir:n,key:i,value:a})})).reduce((function(t,e){var n=l()(e,2),r=n[0],s=n[1];return i()(i()({},t),{},w()({},r,s))}),{})}function Vt(t){var e=t.storeName,n=t.dir,r=t.records;return(void 0===r?[]:r).map((function(t){return Ot({storeName:e,dir:n,record:t})}))}function $t(t){var e=t.storeName,n=t.dir,r=t.target,i=xt[n][zt({storeName:e,dir:Bt.right})],s=i.fields[i.keyPath],a=r instanceof Array?r.slice():[r],o=(s.composite||[i.keyPath]).map((function(t,e){return Lt(i.fields[t].values,a[e])}));return 1===o.length?o[0]:o}function jt(t){return xt.values[t]||t}function zt(t){var e=t.storeName,n=t.dir;return(xt.storeNames[n][e]||{}).name||e}function Ht(t){var e=t.storeName,n=t.error;return{name:n.name,message:n.message.replace('"'.concat(e,'"'),zt({storeName:e,dir:Bt.right}))}}!function(t){t.right="right",t.left="left"}(Bt||(Bt={}));var Gt=new(function(){function t(){var e=this;ot()(this,t),w()(this,"defaultName",L.namespace),w()(this,"storageName",this.defaultName),w()(this,"storeNames",xt.storeNames.left),w()(this,"storesMap",void 0),this.storesMap={};var n=this.read.bind(this),r=this.write.bind(this);N(this.storeNames).forEach((function(t){Object.defineProperty(e.storesMap,t.name,{get:function(){return n(t.name)},set:function(e){r(t.name,e)}})})),Object.freeze(this.storesMap)}return ht()(t,[{key:"read",value:function(t){var e=localStorage.getItem("".concat(this.storageName,".").concat(t)),n=JSON.parse(e||"null");return(n instanceof Array?n:Ot({storeName:this.storeNames.preferences.name,dir:Bt.right,record:n}))||null}},{key:"write",value:function(t,e){e?localStorage.setItem("".concat(this.storageName,".").concat(t),JSON.stringify(e instanceof Array?e:Ot({storeName:this.storeNames.preferences.name,dir:Bt.left,record:e}))):localStorage.removeItem("".concat(this.storageName,".").concat(t))}},{key:"clear",value:function(){this.deleteData()}},{key:"deleteData",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];N(this.storeNames).forEach((function(n){!e&&n.permanent||localStorage.removeItem("".concat(t.storageName,".").concat(n.name))}))}}]),ht()(t,[{key:"setCustomName",value:function(t){var e=this;if(t&&t.length){var n="".concat(L.namespace,"-").concat(t);N(this.storeNames).forEach((function(t){var r=t.name,i=localStorage.getItem("".concat(e.storageName,".").concat(r));i&&localStorage.setItem("".concat(n,".").concat(r),i)})),this.deleteData(!0),this.storageName=n}}},{key:"stores",get:function(){return this.storesMap}}]),t}()),qt={},Wt=[];function Ut(t,e){var n="id"+Math.random().toString(36).substr(2,16),r={id:n,cb:e};return qt[t]||(qt[t]=[]),qt[t].push(r),n}function Yt(t,e){qt[t]&&qt[t].forEach((function(n){"function"==typeof n.cb&&Wt.push(setTimeout((function(){return n.cb(t,e)})))}))}var Kt=ct.preferences.name,Xt=Jt();function Jt(){return Xt||Zt(),Xt?i()({},Xt):null}function Zt(){Xt=Gt.stores[Kt]}function Qt(){var t=Jt();return t?t.sdkDisabled:null}function te(t){var e=t?i()({},t):null;Gt.stores[Kt]=i()(i()({},Jt()),{},{sdkDisabled:e}),Zt()}function ee(){var t=Jt();return t?t.thirdPartySharingDisabled:null}function ne(){var t=Gt.stores[Kt]||{},e=(Xt||{}).sdkDisabled||null;t.sdkDisabled&&!e&&Yt("sdk:shutdown"),Zt()}function re(){Gt.stores[Kt]||(Gt.stores[Kt]=i()({},Xt))}var ie,se="undefined"==typeof Promise?n(3).Promise:Promise;!function(t){t.add="add",t.put="put",t.get="get",t.list="list",t.clear="clear",t.delete="delete"}(ie||(ie={}));var ae=function(){function t(){ot()(this,t),w()(this,"dbDefaultName",L.namespace),w()(this,"dbName",this.dbDefaultName),w()(this,"dbVersion",1),w()(this,"idbFactory",void 0),w()(this,"indexedDbConnection",null),w()(this,"notSupportedError",{name:"IDBNotSupported",message:"IndexedDB is not supported"}),w()(this,"databaseOpenError",{name:"CannotOpenDatabaseError",message:"Cannot open a database"}),w()(this,"noConnectionError",{name:"NoDatabaseConnection",message:"Cannot open a transaction"});var e=t.getIndexedDB();if(!e)throw this.notSupportedError;this.idbFactory=e}return ht()(t,null,[{key:"tryOpen",value:function(e){return new se((function(n){try{var r=e.open(t.dbValidationName);r.onsuccess=function(){r.result.close(),e.deleteDatabase(t.dbValidationName),n(!0)},r.onerror=function(){return n(!1)}}catch(t){n(!1)}}))}},{key:"isSupported",value:function(){return t.isSupportedPromise||(t.isSupportedPromise=new se((function(e){var n=t.getIndexedDB(),r=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform);!n||r?(X.warn("IndexedDB is not supported in this browser"),e(!1)):e(t.tryOpen(n).then((function(t){return t||X.warn("IndexedDB is not supported in this browser"),t})))}))),t.isSupportedPromise}},{key:"getIndexedDB",value:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB}}]),ht()(t,[{key:"setCustomName",value:function(t){return t&&t.length>0?(this.dbName="".concat(L.namespace,"-").concat(t),this.migrateDb(this.dbDefaultName,this.dbName)):se.resolve()}},{key:"openDatabase",value:function(e,n,r){var i=this;return t.isSupported().then((function(t){return t?new se((function(t,s){var a=i.idbFactory.open(e,n);r&&(a.onupgradeneeded=function(t){return r(t,s)}),a.onsuccess=function(e){var n=e.target.result;n?t(n):s(i.databaseOpenError)},a.onerror=s})):se.reject(i.notSupportedError)}))}},{key:"databaseExists",value:function(t){var e=this;return new se((function(n){var r=!0;e.openDatabase(t,void 0,(function(){r=!1})).then((function(n){if(n.close(),!r)return e.deleteDatabaseByName(t)})).then((function(){return n(r)}))}))}},{key:"cloneData",value:function(t,e){var n=this;return N(xt.storeNames.left).filter((function(t){return!t.permanent})).map((function(t){return t.name})).map((function(r){return function(){return i=r,s=n.indexedDbConnection,n.indexedDbConnection=t,n.getAll(i).then((function(t){if(n.indexedDbConnection=e,!(t.length<1))return n.addBulk(i,t,!0)})).then((function(){n.indexedDbConnection=s}));var i,s}})).reduce((function(t,e){return t.then(e)}),se.resolve())}},{key:"migrateDb",value:function(t,e){var n=this;return this.databaseExists(t).then((function(r){return r?se.all([n.openDatabase(t,n.dbVersion,n.handleUpgradeNeeded),n.openDatabase(e,n.dbVersion,n.handleUpgradeNeeded)]).then((function(e){var r=l()(e,2),i=r[0],s=r[1];return n.cloneData(i,s).then((function(){return n.indexedDbConnection=s,i.close(),n.deleteDatabaseByName(t)}))})).then((function(){return X.info("Database migration finished")})):n.openDatabase(e,n.dbVersion,n.handleUpgradeNeeded).then((function(t){n.indexedDbConnection=t}))}))}},{key:"handleUpgradeNeeded",value:function(t,e){var n=t.target.result;t.target.transaction.onerror=e,t.target.transaction.onabort=e;var r=xt.storeNames.left,i=Rt.current||{},s=i&&!S(i);F(r).filter((function(t){return!l()(t,2)[1].permanent})).forEach((function(t){var e=l()(t,2),a=e[0],o=e[1],h=xt.right[a],c=n.createObjectStore(o.name,{keyPath:h.keyPath,autoIncrement:h.autoIncrement||!1});h.index&&c.createIndex("".concat(h.index,"Index"),h.index),o.name===r.activityState.name&&s?(c.add(Ot({storeName:a,record:i,dir:Bt.left})),X.info("Activity state has been recovered")):Gt.stores[o.name]&&(Gt.stores[o.name].forEach((function(t){return c.add(t)})),X.info("Migration from localStorage done for ".concat(a," store")))})),re(),Gt.clear()}},{key:"open",value:function(){var t=this;return this.indexedDbConnection?se.resolve({success:!0}):this.openDatabase(this.dbName,this.dbVersion,this.handleUpgradeNeeded).then((function(e){return t.indexedDbConnection=e,t.indexedDbConnection.onclose=function(){return t.destroy},{success:!0}}))}},{key:"getTransactionStore",value:function(t,e,n){var r,i=t.storeName,s=t.mode,a=n.transaction([i],s),o=a.objectStore(i),l=xt.right[zt({storeName:i,dir:Bt.right})];return l.index&&(r=o.index("".concat(l.index,"Index"))),a.onerror=e,a.onabort=e,{transaction:a,store:o,index:r,options:l}}},{key:"overrideError",value:function(t,e){var n=e.target.error;return t({name:n.name,message:n.message})}},{key:"getCompositeKeys",value:function(t){return t.fields[t.keyPath].composite||null}},{key:"prepareTarget",value:function(t,e,n){var r=-1!==[ie.add,ie.put].indexOf(n),s=this.getCompositeKeys(t);return s?r?i()(w()({},t.keyPath,s.map((function(t){return e[t]})).join("")),e):e?e.join(""):null:e}},{key:"prepareResult",value:function(t,e){var n=this.getCompositeKeys(t);return n&&P(e)?n.map((function(t){return e[t]})):null}},{key:"initRequest",value:function(t){var e=this,n=t.storeName,r=t.target,i=void 0===r?null:r,s=t.action,a=t.mode,o=void 0===a?"readonly":a;return this.open().then((function(){return new se((function(t,r){if(e.indexedDbConnection){var a=e.getTransactionStore({storeName:n,mode:o},r,e.indexedDbConnection),l=a.store,h=a.options,c=l[s](e.prepareTarget(h,i,s)),u=e.prepareResult(h,i);c.onsuccess=function(){s!==ie.get||c.result?t(u||c.result||i):r({name:"NotRecordFoundError",message:'Requested record not found in "'.concat(n,'" store')})},c.onerror=function(t){return e.overrideError(r,t)}}else r(e.noConnectionError)}))}))}},{key:"initBulkRequest",value:function(t){var e=this,n=t.storeName,r=t.target,i=t.action,s=t.mode,a=void 0===s?"readwrite":s;return!r||r&&!r.length?se.reject({name:"NoTargetDefined",message:"No array provided to perform ".concat(i,' bulk operation into "').concat(n,'" store')}):this.open().then((function(){return new se((function(t,s){if(e.indexedDbConnection){var o=e.getTransactionStore({storeName:n,mode:a},s,e.indexedDbConnection),l=o.transaction,h=o.store,c=o.options,u=new Array,p=r[0];l.oncomplete=function(){return t(u)},function t(n){n.onerror=function(t){return e.overrideError(s,t)},n.onsuccess=function(){u.push(e.prepareResult(c,p)||n.result),p=r[u.length],u.length1&&void 0!==arguments[1]&&arguments[1];return this.openCursor({storeName:t,action:ie.list,firstOnly:e})}},{key:"getFirst",value:function(t){return this.getAll(t,!0)}},{key:"getItem",value:function(t,e){return this.initRequest({storeName:t,target:e,action:ie.get})}},{key:"filterBy",value:function(t,e){var n=IDBKeyRange.only(e);return this.openCursor({storeName:t,action:ie.list,range:n})}},{key:"addItem",value:function(t,e){return this.initRequest({storeName:t,target:e,action:ie.add,mode:"readwrite"})}},{key:"addBulk",value:function(t,e,n){return this.initBulkRequest({storeName:t,target:e,action:n?ie.put:ie.add,mode:"readwrite"})}},{key:"updateItem",value:function(t,e){return this.initRequest({storeName:t,target:e,action:ie.put,mode:"readwrite"})}},{key:"deleteItem",value:function(t,e){return this.initRequest({storeName:t,target:e,action:ie.delete,mode:"readwrite"})}},{key:"deleteBulk",value:function(t,e,n){var r=n?IDBKeyRange[n](e):IDBKeyRange.only(e);return this.openCursor({storeName:t,action:ie.delete,range:r,mode:"readwrite"})}},{key:"trimItems",value:function(t,e){var n=this,r=xt.right[zt({storeName:t,dir:Bt.right})];return this.getAll(t).then((function(t){return t.length?t[e-1]:null})).then((function(e){return e?n.deleteBulk(t,e[r.keyPath],"upperBound"):[]}))}},{key:"count",value:function(t){var e=this;return this.open().then((function(){return new se((function(n,r){if(e.indexedDbConnection){var i=e.getTransactionStore({storeName:t,mode:"readonly"},r,e.indexedDbConnection).store.count();i.onsuccess=function(){return n(i.result)},i.onerror=function(t){return e.overrideError(r,t)}}else r(e.noConnectionError)}))}))}},{key:"clear",value:function(t){return this.initRequest({storeName:t,action:ie.clear,mode:"readwrite"})}},{key:"destroy",value:function(){this.indexedDbConnection&&this.indexedDbConnection.close(),this.indexedDbConnection=null}},{key:"deleteDatabase",value:function(){return this.destroy(),this.deleteDatabaseByName(this.dbName)}}]),t}();w()(ae,"dbValidationName","validate-db-openable"),w()(ae,"isSupportedPromise",null);var oe="undefined"==typeof Promise?n(3).Promise:Promise,le=function(){function t(){ot()(this,t)}return ht()(t,[{key:"open",value:function(){return t.isSupported().then((function(t){if(!t)return{status:"error",error:{name:"LSNotSupported",message:"LocalStorage is not supported"}};var e=xt.storeNames.left,n=Rt.current||{},r=n&&!S(n);return F(e).filter((function(t){return!l()(t,2)[1].permanent})).forEach((function(t){var i=l()(t,2),s=i[0],a=i[1],o=e.activityState.name;a.name!==o||Gt.stores[o]?Gt.stores[a.name]||(Gt.stores[a.name]=[]):Gt.stores[o]=r?[Ot({storeName:s,record:n,dir:Bt.left})]:[]})),re(),{status:"success"}}))}},{key:"getCompositeKeys",value:function(t){return t.fields[t.keyPath].composite||null}},{key:"getKeys",value:function(t){var e=xt.right[zt({storeName:t,dir:Bt.right})];return this.getCompositeKeys(e)||[e.keyPath]}},{key:"initRequest",value:function(t,e){var n=this,r=t.storeName,s=t.id,a=t.item,o=xt.right[zt({storeName:r,dir:Bt.right})];return this.open().then((function(t){return"error"===t.status?oe.reject(t.error):new oe((function(t,l){var h=Gt.stores[r],c=n.getKeys(r),u=s instanceof Array?s.slice():[s],p=(h[h.length-1]||{})[o.keyPath]||0,f=s?c.map((function(t,e){return[t,u[e]]})).reduce(I,{}):i()({},a),d=f?C(h,c,f):null;return e(t,l,{keys:c,items:h,index:d,options:o,lastId:p})}))}))}},{key:"sort",value:function(t,e,n){var r=c()(t),i=e.slice().reverse();return r.sort((function(t,e){return i.reduce((function(r,i){return r||function(t,e,r){var i=n?n===t[r]:t[r]t[r]:t[r]>e[r];return i?-1:s?1:0}(t,e,i)}),0)}))}},{key:"prepareTarget",value:function(t,e,n){var r=this.getCompositeKeys(t);return r?i()(w()({},t.keyPath,r.map((function(t){return e[t]})).join("")),e):t.autoIncrement&&n?i()(w()({},t.keyPath,n),e):i()({},e)}},{key:"prepareResult",value:function(t,e){var n=this.getCompositeKeys(t);return n&&P(e)?n.map((function(t){return e[t]})):e[t.keyPath]||e}},{key:"getAll",value:function(t,e){var n=this;return this.open().then((function(r){return"error"===r.status?oe.reject(r.error):new oe((function(r,i){var s=Gt.stores[t];s instanceof Array?r(e?s[0]:n.sort(s,n.getKeys(t))):i({name:"NotFoundError",message:"No objectStore named ".concat(t," in this database")})}))}))}},{key:"getFirst",value:function(t){return this.getAll(t,!0)}},{key:"getItem",value:function(t,e){var n=this;return this.initRequest({storeName:t,id:e},(function(e,r,i){var s=i.items,a=i.index,o=i.options;-1===a?r({name:"NotRecordFoundError",message:'Requested record not found in "'.concat(t,'" store')}):e(n.prepareTarget(o,s[a]))}))}},{key:"filterBy",value:function(t,e){return this.getAll(t).then((function(n){return n.filter((function(n){return n[xt.right[zt({storeName:t,dir:Bt.right})].index]===e}))}))}},{key:"addItem",value:function(t,e){var n=this;return this.initRequest({storeName:t,item:e},(function(r,i,s){var a=s.items,o=s.index,l=s.options,h=s.lastId;-1!==o?i({name:"ConstraintError",message:'Constraint was not satisfied, trying to add existing item into "'.concat(t,'" store')}):(a.push(n.prepareTarget(l,e,h+1)),Gt.stores[t]=a,r(n.prepareResult(l,e)))}))}},{key:"addBulk",value:function(t,e,n){var r=this;return this.initRequest({storeName:t},(function(i,s,a){var o=a.keys,l=a.items,h=a.options,u=a.lastId;if(!e||e&&!e.length)return s({name:"NoTargetDefined",message:'No array provided to perform add bulk operation into "'.concat(t,'" store')});var p=u,f=e.map((function(t){return r.prepareTarget(h,t,++p)})),d=f.filter((function(t){return-1!==C(l,o,t)})).map((function(t){return t[h.keyPath]})),m=n?l.filter((function(t){return-1===d.indexOf(t[h.keyPath])})):c()(l);d.length&&!n?s({name:"ConstraintError",message:'Constraint was not satisfied, trying to add existing items into "'.concat(t,'" store')}):(Gt.stores[t]=r.sort([].concat(c()(m),c()(f)),o),i(e.map((function(t){return r.prepareResult(h,t)}))))}))}},{key:"updateItem",value:function(t,e){var n=this;return this.initRequest({storeName:t,item:e},(function(r,i,s){var a=s.items,o=s.index,l=s.options,h=s.lastId,c=-1===o?h+1:null,u=n.prepareTarget(l,e,c);-1===o?a.push(u):a.splice(o,1,u),Gt.stores[t]=a,r(n.prepareResult(l,e))}))}},{key:"deleteItem",value:function(t,e){return this.initRequest({storeName:t,id:e},(function(n,r,i){var s=i.items,a=i.index;-1!==a&&(s.splice(a,1),Gt.stores[t]=s),n(e)}))}},{key:"findMax",value:function(t,e,n){if(!t.length)return-1;for(var r={index:-1,value:isNaN(n)?"":0},i=0;i=r.value&&(r={value:t[i][e],index:i})}return r.index}},{key:"deleteBulk",value:function(t,e,n){var r=this;return this.getAll(t).then((function(i){var s=r.getKeys(t),a=xt.right[zt({storeName:t,dir:Bt.right})].index||s[0],o=n?null:e,l=r.sort(i,s,o),h=r.findMax(l,a,e);if(-1===h)return[];var c="lowerBound"===n?h:0,u=n&&"upperBound"!==n?l.length:h+1,p=l.splice(c,u).map((function(t){return 1===s.length?t[a]:s.map((function(e){return t[e]}))}));return Gt.stores[t]=l,p}))}},{key:"trimItems",value:function(t,e){var n=this,r=xt.right[zt({storeName:t,dir:Bt.right})];return this.getAll(t).then((function(t){return t.length?t[e-1]:null})).then((function(e){return e?n.deleteBulk(t,e[r.keyPath],"upperBound"):[]}))}},{key:"count",value:function(t){return this.open().then((function(e){return"error"===e.status?oe.reject(e.error):oe.resolve(Gt.stores[t].length)}))}},{key:"clear",value:function(t){return this.open().then((function(e){return"error"===e.status?oe.reject(e.error):new oe((function(e){Gt.stores[t]=[],e({})}))}))}},{key:"destroy",value:function(){}},{key:"deleteDatabase",value:function(){}}],[{key:"isSupported",value:function(){if(t.isSupportedPromise)return t.isSupportedPromise;var e=(new Date).toString(),n=window.localStorage;return t.isSupportedPromise=new oe((function(t){n.setItem(e,e);var r=n.getItem(e)===e;n.removeItem(e),t(!(!r||!n))})).catch((function(){return X.warn("LocalStorage is not supported in this browser"),oe.resolve(!1)})),t.isSupportedPromise}}]),t}();w()(le,"isSupportedPromise",null);var he,ce,ue="undefined"==typeof Promise?n(3).Promise:Promise;(ce=he||(he={}))[ce.noStorage=v]="noStorage",ce[ce.indexedDB=y]="indexedDB",ce[ce.localStorage=b]="localStorage";var pe,fe={getAll:function(t,e){return t.getAll(e).then((function(t){return Vt({storeName:e,dir:Bt.right,records:t})}))},getFirst:function(t,e){return t.getFirst(e).then((function(t){return Ot({storeName:e,dir:Bt.right,record:t})}))},getItem:function(t,e,n){return t.getItem(e,$t({storeName:e,dir:Bt.left,target:n})).then((function(t){return Ot({storeName:e,dir:Bt.right,record:t})})).catch((function(t){return ue.reject(Ht({storeName:e,error:t}))}))},filterBy:function(t,e,n){return t.filterBy(e,jt(n)).then((function(t){return Vt({storeName:e,dir:Bt.right,records:t})}))},addItem:function(t,e,n){return t.addItem(e,Ot({storeName:e,dir:Bt.left,record:n})).then((function(t){return $t({storeName:e,dir:Bt.right,target:t})})).catch((function(t){return ue.reject(Ht({storeName:e,error:t}))}))},addBulk:function(t,e,n,r){return t.addBulk(e,Vt({storeName:e,dir:Bt.left,records:n}),r).then((function(t){return t.map((function(t){return $t({storeName:e,dir:Bt.right,target:t})}))})).catch((function(t){return ue.reject(Ht({storeName:e,error:t}))}))},updateItem:function(t,e,n){return t.updateItem(e,Ot({storeName:e,dir:Bt.left,record:n})).then((function(t){return $t({storeName:e,dir:Bt.right,target:t})}))},deleteItem:function(t,e,n){return t.deleteItem(e,$t({storeName:e,dir:Bt.left,target:n})).then((function(t){return $t({storeName:e,dir:Bt.right,target:t})}))},deleteBulk:function(t,e,n,r){return t.deleteBulk(e,jt(n),r).then((function(t){return t.map((function(t){return $t({storeName:e,dir:Bt.right,target:t})}))}))},trimItems:function(t,e,n){return t.trimItems(e,n)},count:function(t,e){return t.count(e)},clear:function(t,e){return t.clear(e)},destroy:function(t){return t.destroy()},deleteDatabase:function(t){return t.deleteDatabase()}},de=null;function me(t){var e=null;return null!==de?de:de=ue.all([ae.isSupported(),le.isSupported()]).then((function(n){var r=l()(n,2),i=r[0],s=r[1];if(Gt.setCustomName(t),i){pe=he.indexedDB;var a=new ae;return a.setCustomName(t).then((function(){return e=a}))}return s?(pe=he.localStorage,e=new le,ue.resolve(e)):(X.error("There is no storage available, app will run with minimum set of features"),pe=he.noStorage,e=null,ue.resolve(e))})).then((function(){return{type:pe,storage:e}}))}var ge,ve,ye,be=i()({init:me,getType:function(){return pe}},F(fe).map((function(t){var e=l()(t,2),n=e[0],r=e[1];return[n,function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i2&&void 0!==arguments[2]&&arguments[2];return{status:"error",action:n?"CONTINUE":"RETRY",response:_(t.responseText)?JSON.parse(t.responseText):t.responseText,message:g[e],code:e}}function _e(t,e){var n=t.slice(0,t.length-e.length-1).split("").reduce((function(t){return t.concat(" ")}),"");return"".concat(e).concat(n,":")}function Ce(t,e){var n="REQUEST PARAMETERS:",r=function(t){return t.replace(/([A-Z])/g,(function(t){return"_".concat(t.toLowerCase())}))},s=F(i()(i()(i()({},st.getBaseParams()),e),t)).map((function(t){var e=l()(t,2),n=e[0],i=e[1];return[r(n),i]}));return X.log(n),s.filter((function(t){return B(l()(t,2)[1])})).map((function(t){var e=l()(t,2),r=e[0],i=e[1];return X.log(_e(n,r),i),function(t){var e=l()(t,2),n=e[0],r=e[1],i=encodeURIComponent(n),s=r;return"string"==typeof r&&(s=encodeURIComponent(r)),P(r)&&(s=encodeURIComponent(JSON.stringify(r)||"")),[i,s].join("=")}([r,i])})).join("&")}function Te(t,e,n){var r=n.xhr,i=n.url;if(4===r.readyState){var s=r.status>=200&&r.status<300,a=_(r.responseText);if(0!==r.status)return a?e(s?function(t,e){var n=JSON.parse(t.responseText),r={status:"success",adid:n.adid,timestamp:n.timestamp,ask_in:n.ask_in,retry_in:n.retry_in,continue_in:n.continue_in,tracking_state:n.tracking_state,attribution:void 0,message:void 0};return D(e,"attribution")&&(r.attribution=n.attribution,r.message=n.message),F(r).filter((function(t){return!!l()(t,2)[1]})).reduce(I,{})}(r,i):Pe(r,"SERVER_CANNOT_PROCESS",!0)):t(Pe(r,s?"SERVER_MALFORMED_RESPONSE":"SERVER_INTERNAL_ERROR"));t(Pe(r,"NO_CONNECTION"))}}function Ae(t,e,n){var r=t.url,i=t.method,s=void 0===i?"GET":i,a=t.params,o=function(t,e,n){var r=t.url,i=t.method,s=Ce(t.params,e);return{fullUrl:n["/gdpr_forget_device"===r?"gdpr":"app"]+r+("GET"===i?"?".concat(s):""),encodedParams:s}}({url:r,method:s,params:void 0===a?{}:a},e,n),h=o.fullUrl,c=o.encodedParams;return new Se((function(t,e){var n=new XMLHttpRequest;n.open(s,h,!0),function(t,e){var n="REQUEST HEADERS:",r=[["Client-SDK","js".concat(L.version)],["Content-Type","POST"===e?"application/x-www-form-urlencoded":"application/json"]];X.log(n),r.forEach((function(e){var r=l()(e,2),i=r[0],s=r[1];t.setRequestHeader(i,s),X.log(_e(n,i),s)}))}(n,s),n.onreadystatechange=function(){return Te(e,t,{xhr:n,url:r})},n.onerror=function(){return e(Pe(n,"TRANSACTION_ERROR"))},n.send("GET"===s?void 0:c)}))}function De(t,e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ke,n=we();if(Array.isArray(n)){var r=0;return function i(){var s=n[r++],a=e[s];return t(a).catch((function(t){if("NO_CONNECTION"===t.code&&(X.log("Failed to connect ".concat(Ee[s]," endpoint")),r0&&void 0!==arguments[0]?arguments[0]:{},e=t.url,n=t.method,r=void 0===n?"GET":n,s=t.params,a=void 0===s?{}:s,o=t.continueCb,h=t.strategy,c=t.wait,u={url:e,method:r,params:a,continueCb:o},p=e,f=r,d=i()({},a),m=o,v=h,y=null,b={request:0,connection:0},x=k(c),w=null;function k(t){return(t=t||ze)>He?He:t}function E(t){var e=t.url,n=t.method,r=t.params,s=t.continueCb;e&&(p=e),n&&(f=n),S(r)||(d=i()({},r)),d=i()({createdAt:kt()},d),"function"==typeof s&&(m=s)}function P(t){if(!w)return!1;if(y){var e=x-(Date.now()-w);if(t&&e0&&void 0!==arguments[0]?arguments[0]:{},e=t.url,n=t.method,r=t.params,i=void 0===r?{}:r,s=t.continueCb,a=t.wait;return E({url:e,method:n,params:i,continueCb:s}),_({wait:a})}function O(){return!!y}function V(){y&&clearTimeout(y),y=null}function $(){var t=!!w;V(),w=null,t&&(x=ze,b.request=0,b.connection=0,X.log("Previous ".concat(p||"unknown"," request attempt canceled")),A())}return{send:L,isRunning:O,clear:$}},We=function(t){return t===m?"GDPR disable":"disable"},Ue=function(t){return{start:{inProgress:"Adjust SDK ".concat(We(t)," process has already started"),done:"Adjust SDK ".concat(We(t)," process is now started")},finish:{inProgress:"Adjust SDK ".concat(We(t)," process has already finished"),done:"Adjust SDK ".concat(We(t)," process is now finished")}}};function Ye(t,e){var n=t.reason,r=t.pending,i=Qt()||{},s="start"===e&&i.pending?"start":"finish",a="start"===e&&i.reason,o="finish"===e&&i.reason&&!i.pending;return a||o?(X.log(Ue(i.reason)[s].inProgress),!1):(X.log(Ue(n)[s].done),te({reason:n||d,pending:r}),!0)}function Ke(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ye({reason:t,pending:e||!1},"start")}function Xe(){var t=Qt()||{};return t.reason===d||t.reason===m&&!t.pending?"off":t.reason===m&&t.pending?"paused":"on"}var Je="undefined"==typeof Promise?n(3).Promise:Promise,Ze="activityState",Qe=!1;function tn(t){return t?"unknown"===t.uuid?(Ke({reason:m}),Rt.destroy(),{exists:!0,stored:null}):(Rt.init(t),{exists:!0,stored:t}):{exists:!1}}function en(){return"off"!==Xe()&&Rt.isStarted()}function nn(){if(!en())return Je.resolve(null);var t=i()(i()({},Rt.current),{},{lastActive:Date.now()});return be.updateItem(Ze,t).then((function(){return Rt.current=t}))}var rn="undefined"==typeof Promise?n(3).Promise:Promise,sn=qe({strategy:"long",continueCb:function(t,e){var n=t&&t.continue_in||null;return ln.pause=n?{timestamp:Date.now(),wait:n}:null,be.getFirst(on).then((function(t){return t?be.deleteItem(on,t.timestamp):null})).then((function(){return e(),ln.running=!1,dn({wait:n})}))}}),an=!1,on="queue",ln={running:!1,timestamp:null,pause:null};function hn(){var t=Date.now();return ln.timestamp&&t<=ln.timestamp&&(t=ln.timestamp+1),ln.timestamp=t,t}function cn(t){return D(t,"session")&&Rt.resetSessionOffset(),Rt.updateLastActive(),nn()}function un(t){var e=t.url,n=t.method,r=t.params,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=s.auto,o=s.timestamp;Rt.updateParams(e,a);var h=F(r||{}).filter((function(t){return B(l()(t,2)[1])})).reduce(I,{}),c={timestamp:hn(),url:e,method:n,params:i()(i()({},Rt.getParams(e)),h)};return o&&(c.createdAt=o),be.addItem(on,c).then((function(){return cn(e)})).then((function(){return ln.running?{}:dn()}))}function pn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.timestamp,n=t.createdAt,r=t.url,s=t.method,a=t.params,o=arguments.length>1?arguments[1]:void 0,l=Rt.current||{},h="/session"===r&&!l.installed,c=!r&&!s&&!a;return an&&!h||c?(ln.running=!1,rn.resolve({})):sn.send({url:r,method:s,params:i()(i()({},a),{},{createdAt:kt(n||e)}),wait:o||fn()})}function fn(){var t=ln.pause||{},e=t.timestamp,n=t.wait,r=Date.now()-(e||0);return r0&&void 0!==arguments[0]?arguments[0]:{},e=t.cleanUp,n=t.wait;if(ln.running)return rn.resolve({});ln.running=!0;var r=rn.resolve({});return e&&(r=r.then(gn)),r.then((function(){return be.getFirst(on)})).then((function(t){return pn(t,n)}))}function mn(t){if(void 0!==t)if(t!==an){var e=an;an=t,!t&&e&&dn(),X.info("The app is now in ".concat(t?"offline":"online"," mode"))}else X.error("The app is already in ".concat(t?"offline":"online"," mode"));else X.error("State not provided, true or false has to be defined")}function gn(){var t=Date.now()-st.requestValidityWindow;return be.deleteBulk(on,t,"upperBound")}var vn="undefined"==typeof Promise?n(3).Promise:Promise,yn="globalParams",bn="No type provided",xn="Global parameter type not provided, `callback` or `partner` types are available";function wn(t){return(t||[]).map((function(t){return{key:t.key,value:t.value}}))}function kn(){return vn.all([be.filterBy(yn,"callback"),be.filterBy(yn,"partner")]).then((function(t){var e=l()(t,2),n=e[0],r=e[1];return{callbackParams:wn(n),partnerParams:wn(r)}}))}function En(t,e){if(void 0===e)return X.error(xn),vn.reject({message:bn});var n=T(t),r=Object.keys(n).map((function(t){return{key:t,value:n[t],type:e}}));return vn.all([be.filterBy(yn,e),be.addBulk(yn,r,!0)]).then((function(t){var n=l()(t,2),i=n[0],s=n[1],a=A(i.map((function(t){return t.key})),s.map((function(t){return t[0]})));return X.log("Following ".concat(e," parameters have been saved: ").concat(r.map((function(t){return"".concat(t.key,":").concat(t.value)})).join(", "))),a.length&&X.log("Keys: ".concat(a.join(", ")," already existed so their values have been updated")),s}))}function Sn(t,e){return void 0===e?(X.error(xn),vn.reject({message:bn})):be.deleteItem(yn,[t,e]).then((function(n){return X.log("".concat(t," ").concat(e," parameter has been deleted")),n}))}function Pn(t){return void 0===t?(X.error(xn),vn.reject({message:bn})):be.deleteBulk(yn,t).then((function(e){return X.log("All ".concat(t," parameters have been deleted")),e}))}var _n,Cn,Tn,An="undefined"==typeof Promise?n(3).Promise:Promise,Dn=!1,In=document;function Mn(){return Tn=function(){var t=document;if(void 0!==t.hidden)return{hidden:"hidden",visibilityChange:"visibilitychange"};for(var e=F({mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange",oHidden:"ovisibilitychange",webkitHidden:"webkitvisibilitychange"}),n=0;n0;return!n||n&&e*u>=st.sessionWindow?kn().then((function(t){var e,n,r;un({url:"/session",method:"POST",params:(e=t,n=e.callbackParams,r=e.partnerParams,{callbackParams:n.length?T(n):null,partnerParams:r.length?T(r):null})},{auto:!0})})):(Yt("attribution:check"),nn())}var Vn="undefined"==typeof Promise?n(3).Promise:Promise,$n=qe({url:"/attribution",strategy:"short",continueCb:function(t,e,n){return!t||t&&"error"===t.status?(e(),Vn.resolve({state:"unknown"})):t.ask_in?n(t.ask_in):(e(),function(t){if(S(t)||!function(t){var e=t.adid,n=void 0===e?"":e,r=t.attribution,i=void 0===r?{}:r;return!!n&&!!A(jn,Object.keys(i)).length}(t)||function(t){var e=t.adid,n=t.attribution,r=Rt.current.attribution||{};return!(n&&jn.some((function(t){return r[t]!==n[t]})))&&e===r.adid}(t))return Vn.resolve({state:"same"});var e=F(t.attribution).filter((function(t){var e=l()(t,1)[0];return-1!==jn.indexOf(e)})).reduce(I,{adid:t.adid});return Rt.current=i()(i()({},Rt.current),{},{attribution:e}),nn().then((function(){return Yt("attribution:change",e),X.info("Attribution has been updated"),{state:"changed"}}))}(t))}}),jn=["tracker_token","tracker_name","network","campaign","adgroup","creative","click_label","state"],zn=qe({url:"/gdpr_forget_device",method:"POST",strategy:"short"}),Hn={running:"Adjust SDK is running pending GDPR Forget Me request",pending:"Adjust SDK will run GDPR Forget Me request after initialisation",paused:"Adjust SDK is already prepared to send GDPR Forget Me request",off:"Adjust SDK is already disabled"};function Gn(t){var e=Xe();return t||"on"===e?st.isInitialised()?(zn.send({params:i()({},Rt.getParams())}).then((function(){Yt("sdk:gdpr-forget-me")})),!0):(X.log(Hn.pending),!0):(X.log(Hn[e]),!1)}function qn(){return Ye({reason:m,pending:!1},"finish")}var Wn={running:"Adjust SDK is running pending third-party sharing opt-out request",delayed:"Adjust SDK will run third-party sharing opt-out request after initialisation",pending:"Adjust SDK already queued third-party sharing opt-out request",off:"Third-party sharing opt-out is already done",start:{inProgress:"Third-party sharing opt-out has already started",done:"Third-party sharing opt-out is now started"},finish:{inProgress:"Third-party sharing opt-out has already finished",done:"Third-party sharing opt-out is now finished"}};function Un(){var t=ee()||{};return t.reason?t.pending?"pending":"off":"on"}function Yn(t){var e=Un();return t||"on"===e?st.isInitialised()?(un({url:"/disable_third_party_sharing",method:"POST"}),!0):(X.log(Wn.delayed),!0):(X.log(Wn[e]),!1)}function Kn(t,e){var n,r,s=ee()||{},a="start"===e&&t?"start":"finish",o="start"===e&&s.reason,l="finish"===e&&s.reason&&!s.pending;return o||l?(X.log(Wn[a].inProgress),!1):(X.log(Wn[a].done),r=(n={reason:d,pending:t})?i()({},n):null,Gt.stores[Kt]=i()(i()({},Jt()),{},{thirdPartySharingDisabled:r}),Zt(),!0)}function Xn(){return Kn(!1,"finish")}function Jn(){"pending"===Un()&&(X.log(Wn.running),Yn(!0))}var Zn=[];function Qn(t,e){Zn.push({method:t,description:e,timestamp:Date.now()})}var tr="undefined"==typeof Promise?n(3).Promise:Promise,er="eventDeduplication";function nr(t,e){var n,r,s=e.callbackParams,a=e.partnerParams,o={},l=i()({eventToken:t.eventToken},(n=t.revenue,r=t.currency,isNaN(n)||(n=parseFloat(n))<0||!r?{}:{revenue:n.toFixed(5),currency:r})),h=i()(i()({},T(s)),T(t.callbackParams)),c=i()(i()({},T(a)),T(t.partnerParams));return S(h)||(o.callbackParams=h),S(c)||(o.partnerParams=c),i()(i()({},l),o)}function rr(t){return t?be.getAll(er).then((function(t){return t.map((function(t){return t.id}))})).then((function(e){return-1===e.indexOf(t)?function(t){var e=st.getCustomConfig().eventDeduplicationListLimit,n=e>0?e:10;return be.count(er).then((function(t){var e=tr.resolve();if(t>=n){var r=t-n+1;X.log("Event deduplication list limit has been reached. Oldest ids are about to be removed (".concat(r," of them)")),e=be.trimItems(er,r)}return e})).then((function(){return X.info("New event deduplication id is added to the list: ".concat(t)),be.addItem(er,{id:t})}))}(t):tr.reject({message:"Event won't be tracked, since it was previously tracked with the same deduplication id ".concat(t)})})):tr.resolve()}function ir(t){return{clickTime:kt(),source:"web_referrer",referrer:decodeURIComponent(t)}}function sr(){var t=window.location.search.substring(1).split("&").map((function(t){return t.split("=")})).reduce(I,{}).adjust_referrer;t&&un({url:"/sdk_click",method:"POST",params:ir(t)})}var ar="undefined"==typeof Promise?n(3).Promise:Promise,or=null,lr=!1,hr=!1,cr=!1;function ur(){Yn()&&Kn(!0,"start")}function pr(){var t;"paused"===Xe()&&(qn(),ar.all([(t={uuid:"unknown"},Rt.current=t,be.clear(Ze).then((function(){return be.addItem(Ze,t)}))),be.clear(yn),be.clear(on)]).then(gr))}function fr(){return lr||st.isInitialised()}function dr(){lr=!1,hr=!1,Zn=[],sn.clear(),ln.running=!1,ln.timestamp=null,ln.pause=null,Dn=!1,Rt.toBackground(),Ln(),Tn&&(clearTimeout(Cn),Ve(In,Tn.visibilityChange,Bn)),$n.clear()}function mr(t){t&&X.log("Adjust SDK has been shutdown due to asynchronous disable"),dr(),Wt.forEach(clearTimeout),Wt=[],qt={},Rt.destroy(),Ve(window,"online",Re),Ve(window,"offline",Le),be.destroy(),st.destroy()}function gr(){cr=!1,mr(),zn.clear(),or=null,X.log("Adjust SDK instance has been destroyed")}function vr(t){X.log("Adjust SDK is starting with web_uuid set to ".concat(t.uuid));var e=Rt.current.installed;"paused"===Xe()&&(X.log(Hn.running),Gn(!0)),e||Jn();var n=Xe(),r=function(t){return"Adjust SDK start has been interrupted ".concat(t)};return"off"===n?(mr(),ar.reject({interrupted:!0,message:r("due to complete async disable")})):"paused"===n?(dr(),ar.reject({interrupted:!0,message:r("due to partial async disable")})):hr?ar.reject({interrupted:!0,message:r("due to multiple synchronous start attempt")}):(dn({cleanUp:!0}),Mn().then((function(){lr=!1,hr=!0,e&&(yr(),Jn())})))}function yr(){var t;cr=!0,Zn.forEach((function(t){"function"==typeof t.method&&(X.log("Delayed ".concat(t.description," task is running now")),t.method(t.timestamp))})),Zn=[],(t="sdk:installed")&&F(qt).some((function(e){var n=l()(e,2)[1];return n.some((function(e,r){if(e.id===t)return n.splice(r,1),!0}))}))}function br(t){if(t.interrupted)X.log(t.message);else if(mr(),X.error("Adjust SDK start has been canceled due to an error",t),t.stack)throw t}function xr(t){"off"!==Xe()?(st.set(t),Oe(window,"online",Re),Oe(window,"offline",Le),Ut("sdk:installed",yr),Ut("sdk:shutdown",(function(){return mr(!0)})),Ut("sdk:gdpr-forget-me",pr),Ut("sdk:third-party-sharing-opt-out",Xn),Ut("attribution:check",(function(t,e){return n=e,r=Rt.current,(s=(n||{}).ask_in)||!r.attribution&&r.installed?($n.send({params:i()({initiatedBy:n?"backend":"sdk"},Rt.getParams()),wait:s}),Rt.updateSessionOffset(),nn()):Vn.resolve(r);var n,r,s})),"function"==typeof t.attributionCallback&&Ut("attribution:change",t.attributionCallback),(Qe?Je.reject({interrupted:!0,message:"Adjust SDK start already in progress"}):(Qe=!0,be.getFirst(Ze).then(tn).then((function(t){if(t.exists)return Qe=!1,t.stored;var e,n=S(Rt.current)?{uuid:(e=Date.now(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:11&n).toString(16)})))}:Rt.current;return be.addItem(Ze,n).then((function(){return Rt.init(n),ne(),Qe=!1,n}))})))).then(vr).then(sr).catch(br)):X.log("Adjust SDK is disabled, can not start the sdk")}function wr(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.schedule,i=n.stopBeforeInit;be.getType()!==v?"on"===Xe()?r&&i&&!fr()?X.error("Adjust SDK can not ".concat(t,", sdk instance is not initialized")):"function"==typeof e&&(!r||cr&&hr||!i&&!fr()?e():(Qn(e,t),X.log("Running ".concat(t," is delayed until Adjust SDK is up")))):X.log("Adjust SDK is disabled, can not ".concat(t)):X.log("Adjust SDK can not ".concat(t,", no storage available"))}var kr={initSdk:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.logLevel,n=t.logOutput,r=a()(t,["logLevel","logOutput"]);X.setLogLevel(e,n),fr()?X.error("You already initiated your instance"):st.hasMissing(r)||(lr=!0,be.init(r.namespace).then((function(t){t.type!==v?(X.info("Available storage is ".concat(t.type)),or=i()({},r),xr(r)):X.error("Adjust SDK can not start, there is no storage available")})))},trackEvent:function(t){wr("track event",(function(e){return function(t,e){if(t&&(!t||!S(t)&&t.eventToken))return rr(t.deduplicationId).then(kn).then((function(n){un({url:"/event",method:"POST",params:nr(t,n)},{timestamp:e})})).catch((function(t){t&&t.message&&X.error(t.message)}));X.error("You must provide event token in order to track event")}(t,e)}),{schedule:!0,stopBeforeInit:!0})},addGlobalCallbackParameters:function(t){wr("add global callback parameters",(function(){return En(t,"callback")}))},addGlobalPartnerParameters:function(t){wr("add global partner parameters",(function(){return En(t,"partner")}))},removeGlobalCallbackParameter:function(t){wr("remove global callback parameter",(function(){return Sn(t,"callback")}))},removeGlobalPartnerParameter:function(t){wr("remove global partner parameter",(function(){return Sn(t,"partner")}))},clearGlobalCallbackParameters:function(){wr("remove all global callback parameters",(function(){return Pn("callback")}))},clearGlobalPartnerParameters:function(){wr("remove all global partner parameters",(function(){return Pn("partner")}))},switchToOfflineMode:function(){wr("set offline mode",(function(){return mn(!0)}))},switchBackToOnlineMode:function(){wr("set online mode",(function(){return mn(!1)}))},stop:function(){Ke()&&st.isInitialised()&&mr()},restart:function(){var t;((t=Qt()||{}).reason===m?(X.log("Adjust SDK is disabled due to GDPR-Forget-Me request and it can not be re-enabled"),0):t.reason?(X.log("Adjust SDK has been enabled"),te(null),1):(X.log("Adjust SDK is already enabled"),0))&&or&&xr(or)},gdprForgetMe:function(){var t=Gn();t&&(t=Ke(m,!0))&&st.isInitialised()&&dr()},disableThirdPartySharing:function(){wr("disable third-party sharing",ur,{schedule:!0,stopBeforeInit:!1})},__testonly__:{destroy:gr,clearDatabase:function(){return be.deleteDatabase()}}};e.default=kr}]).default},t.exports=e()},1532:(t,e,n)=>{"use strict";n(6612);var r=n(6808),i=n.n(r),s=n(8751),a=n.n(s);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&$("#cookie-settings-modal").addClass("cookie-banner__settings--visible"),document.getElementById("cookie-banner").classList.remove("bp-banner--hidden")};function c(){$("#ad-cookies-check").is(":checked")?($(".ad-cookies-switch .active-inactive-text .active").show(),$(".ad-cookies-switch .active-inactive-text .inactive").hide()):($(".ad-cookies-switch .active-inactive-text .inactive").show(),$(".ad-cookies-switch .active-inactive-text .active").hide()),$("#performance-cookies-check").is(":checked")?($(".performance-cookies-switch .active-inactive-text .active").show(),$(".performance-cookies-switch .active-inactive-text .inactive").hide()):($(".performance-cookies-switch .active-inactive-text .inactive").show(),$(".performance-cookies-switch .active-inactive-text .active").hide())}function u(){window.dataLayer.push({action:"disable_advertisement_cookies",event:"interaction",label:"disable",target:"advertisement_modifier",value:0})}function p(){window.dataLayer.push({action:"enable_advertisement_cookies",event:"interaction",label:"enable",target:"advertisement_modifier",value:1})}function f(){function t(){dataLayer.push(arguments)}if(document.querySelector("body").classList.contains("blog-page")){var e=document.createElement("script");e.setAttribute("async","true"),e.src="https://www.googletagmanager.com/gtag/js?id=".concat(google_analytics_property),document.getElementsByTagName("head")[0].appendChild(e),window.dataLayer=window.dataLayer||[],t("js",new Date),t("config",google_analytics_property,{anonymize_ip:!0})}}function d(){i().remove("_ga")}function m(){a().initSdk(function(t){for(var e=1;e414?document.getElementById("js-bp-notification").classList.remove("bp-banner--hidden"):setTimeout((function(){window.initialPctScrolled=a(),window.addEventListener("scroll",h,!1)}),500))},h=function t(){clearTimeout(r),r=setTimeout((function(){a();var e=a();e&&Math.abs(window.initialPctScrolled-e)<5||(document.getElementById("js-bp-notification").classList.remove("bp-banner--hidden"),window.removeEventListener("scroll",t),window.removeEventListener("resize",s))}),50)};(window.banner&&window.banner.show_in_all_countries||window.banner&&window.banner.show_in_countries.length>0||window.footer_banner&&window.footer_banner.show_in_countries.length>0)&&(void 0===i().get("geoip_country")?geoip2.country((function(t){i().set("geoip_country",t.country.iso_code,{expires:7,domain:o}),l()}),(function(){})):l()),document.getElementById("js-bp-notification-dismiss").addEventListener("click",(function(t){var e=document.getElementById("js-bp-notification"),n=e.getAttribute("data-banner-id")||!0;e.classList.add("bp-banner--hidden"),i().set("bp_banner_is_dismissed",n,{expires:7,domain:o})}))}}(),$(document).ready((function(){i().get("bp_navbar_banner_dismissed")||($("#js-bp-navbar__banner").removeClass("uk-hidden"),$("#js-bp-navbar__banner__close-btn").on("click",(function(){$("#js-bp-navbar__banner").fadeOut();var t=window.location.hostname.replace("www","");i().set("bp_navbar_banner_dismissed",!0,{expires:8/24,domain:t})})))}));n(1033);var x=n(9755),w=n.n(x);0!=document.getElementsByClassName("module-text").length&&0!=document.getElementsByClassName("bp-info-tooltip").length&&w()(document).ready((function(){w()(".module-text .bp-info-tooltip, .bp3-card .bp-info-tooltip").each((function(){var t=w()(this).html(),e=w()(this).prev();if(e.length>0&&"P"===e[0].nodeName&&t.length>0){var n=w()(''));e.append(n)}w()(this).remove()}))}));n(2684);var k=n(1248),E=n.n(k);$(document).ready((function(){$(".bp-lottie").each((function(){var t=!0,e=!0;1===$(this).data("animate-on-hover")&&(t=!1,e=!1);var n=$(this)[0],r=$(this).data("animation-path"),i=E().loadAnimation({container:n,renderer:"svg",loop:t,autoplay:e,path:r,rendererSettings:{filterSize:{width:"200%",height:"200%",x:"-50%",y:"-50%"}}});$(this).data("animate-on-hover")&&($(this).on("mouseenter",(function(){i.setDirection(1),i.play()})),$(this).on("mouseleave",(function(){i.setDirection(-1),i.play()})))}))}));n(8693),n(2397)},8693:()=>{function t(t){navigator.clipboard?navigator.clipboard.writeText(t).then((function(){}),(function(t){console.error("Async: Could not copy text: ",t)})):function(t){var e=document.createElement("textarea");e.value=t,e.style.top="0",e.style.left="0",e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(t){console.error("Fallback: Oops, unable to copy",t)}document.body.removeChild(e)}(t)}var e,n,r;n=(e={en:"Copied to clipboard.",de:"In Zwischenablage kopiert",fr:"Copié dans le presse-papier.",es:"Se ha copiado al portapapeles.",it:"Copiata negli appunti.",pl:"Skopiowano do schowka."})[document.documentElement.lang.toLowerCase()]||e.en,0!=(r=document.querySelectorAll("[data-clipboard]")).length&&r.forEach((function(e){e.addEventListener("click",(function(e){t(e.target.getAttribute("data-clipboard"));var r=document.createElement("span");r.innerHTML=n,r.classList.add("clipboard-toast"),document.body.appendChild(r),setTimeout((function(){r.classList.add("visible")}),100),setTimeout((function(){r.classList.remove("visible")}),3e3),setTimeout((function(){r.remove()}),3500)}))}))},2684:()=>{function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}window.initBpIcons=function(){var e=apiUrls.bpIcons;$("#layout-content .bp-icon").each((function(){if(""!==$(this).data("pid")&&void 0!==t($(this).data("pid"))){var n=$(this),r=new Image;r.onload=function(){n.css("background-image",'url("'.concat(e).concat(n.data("pid"),'.svg"'))},r.onerror=function(){},r.src="".concat(e).concat($(this).data("pid"),".svg")}}))},window.addEventListener("load",(function(){window.initBpIcons()}))},2397:()=>{!function(){function t(e){return e.classList.contains("bp-popup__inner")?e:null===e.parentElement?window:t(e.parentNode)}document.querySelectorAll(".js-contains-anchor").forEach((function(e){e.querySelectorAll('a[href^="#"]').forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var n=this.getAttribute("href"),r=n.slice(1,n.length);r.length>0&&t(document.getElementById(r)).scroll({top:document.getElementById(r).offsetTop-100,left:0,behavior:"smooth"})}))}))}))}()},1033:()=>{function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var e,n;"object"===("undefined"==typeof utmTextReplace?"undefined":t(utmTextReplace))&&(e=utmTextReplace.utmParameter,n={},location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi,(function(t,e,r){n[e]=r})),(e?n[e]:n)===utmTextReplace.utmValue&&$(utmTextReplace.cssSelector).html(utmTextReplace.text))},1990:()=>{$(document).ready((function(){if(searchParams=new URLSearchParams(window.location.search),isVariant=searchParams.get("v"),"1"===isVariant&&$("a#primary-button").length)switch($("a#primary-button").text()){case"Get started":$("a#primary-button").text("Create free account");break;case"Jetzt loslegen":$("a#primary-button").text("Gratis Konto erstellen")}}))},9755:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var s=[],a=Object.getPrototypeOf,o=s.slice,l=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},h=s.push,c=s.indexOf,u={},p=u.toString,f=u.hasOwnProperty,d=f.toString,m=d.call(Object),g={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var r,i,s=(n=n||b).createElement("script");if(s.text=t,e)for(r in x)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&s.setAttribute(r,i);n.head.appendChild(s).parentNode.removeChild(s)}function k(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[p.call(t)]||"object":typeof t}var E="3.6.0",S=function(t,e){return new S.fn.init(t,e)};function P(t){var e=!!t&&"length"in t&&t.length,n=k(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}S.fn=S.prototype={jquery:E,constructor:S,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),q=new RegExp(L+"|>"),W=new RegExp($),U=new RegExp("^"+O+"$"),Y={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+V),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},st=function(){p()},at=xt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{F.apply(D=N.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(t){F={apply:D.length?function(t,e){M.apply(t,N.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function ot(t,e,r,i){var s,o,h,c,u,d,v,y=e&&e.ownerDocument,w=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return r;if(!i&&(p(e),e=e||f,m)){if(11!==w&&(u=Q.exec(t)))if(s=u[1]){if(9===w){if(!(h=e.getElementById(s)))return r;if(h.id===s)return r.push(h),r}else if(y&&(h=y.getElementById(s))&&b(e,h)&&h.id===s)return r.push(h),r}else{if(u[2])return F.apply(r,e.getElementsByTagName(t)),r;if((s=u[3])&&n.getElementsByClassName&&e.getElementsByClassName)return F.apply(r,e.getElementsByClassName(s)),r}if(n.qsa&&!C[t+" "]&&(!g||!g.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(v=t,y=e,1===w&&(q.test(t)||G.test(t))){for((y=tt.test(t)&&vt(e.parentNode)||e)===e&&n.scope||((c=e.getAttribute("id"))?c=c.replace(rt,it):e.setAttribute("id",c=x)),o=(d=a(t)).length;o--;)d[o]=(c?"#"+c:":scope")+" "+bt(d[o]);v=d.join(",")}try{return F.apply(r,y.querySelectorAll(v)),r}catch(e){C(t,!0)}finally{c===x&&e.removeAttribute("id")}}}return l(t.replace(z,"$1"),e,r,i)}function lt(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function ht(t){return t[x]=!0,t}function ct(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function pt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function mt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ht((function(e){return e=+e,ht((function(n,r){for(var i,s=t([],n.length,e),a=s.length;a--;)n[i=s[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=ot.support={},s=ot.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!K.test(e||n&&n.nodeName||"HTML")},p=ot.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:w;return a!=f&&9===a.nodeType&&a.documentElement?(d=(f=a).documentElement,m=!s(f),w!=f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",st,!1):i.attachEvent&&i.attachEvent("onunload",st)),n.scope=ct((function(t){return d.appendChild(t).appendChild(f.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=ct((function(t){return d.appendChild(t).id=x,!f.getElementsByName||!f.getElementsByName(x).length})),n.getById?(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,r,i,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(i=e.getElementsByName(t),r=0;s=i[r++];)if((n=s.getAttributeNode("id"))&&n.value===t)return[s]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,s=e.getElementsByTagName(t);if("*"===t){for(;n=s[i++];)1===n.nodeType&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(n.qsa=Z.test(f.querySelectorAll))&&(ct((function(t){var e;d.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+R+")"),t.querySelectorAll("[id~="+x+"-]").length||g.push("~="),(e=f.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]"),t.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Z.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",$)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=Z.test(d.compareDocumentPosition),b=e||Z.test(d.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},T=e?function(t,e){if(t===e)return u=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==f||t.ownerDocument==w&&b(w,t)?-1:e==f||e.ownerDocument==w&&b(w,e)?1:c?B(c,t)-B(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,r=0,i=t.parentNode,s=e.parentNode,a=[t],o=[e];if(!i||!s)return t==f?-1:e==f?1:i?-1:s?1:c?B(c,t)-B(c,e):0;if(i===s)return pt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)o.unshift(n);for(;a[r]===o[r];)r++;return r?pt(a[r],o[r]):a[r]==w?-1:o[r]==w?1:0},f):f},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if(p(t),n.matchesSelector&&m&&!C[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){C(e,!0)}return ot(e,f,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!=f&&p(t),b(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!=f&&p(t);var i=r.attrHandle[e.toLowerCase()],s=i&&A.call(r.attrHandle,e.toLowerCase())?i(t,e,!m):void 0;return void 0!==s?s:n.attributes||!m?t.getAttribute(e):(s=t.getAttributeNode(e))&&s.specified?s.value:null},ot.escape=function(t){return(t+"").replace(rt,it)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,r=[],i=0,s=0;if(u=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(T),u){for(;e=t[s++];)e===t[s]&&(i=r.push(s));for(;i--;)t.splice(r[i],1)}return c=null,t},i=ot.getText=function(t){var e,n="",r=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=ot.selectors={cacheLength:50,createPseudo:ht,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+L+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=ot.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(j," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var s="nth"!==t.slice(0,3),a="last"!==t.slice(-4),o="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var h,c,u,p,f,d,m=s!==a?"nextSibling":"previousSibling",g=e.parentNode,v=o&&e.nodeName.toLowerCase(),y=!l&&!o,b=!1;if(g){if(s){for(;m;){for(p=e;p=p[m];)if(o?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;d=m="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&y){for(b=(f=(h=(c=(u=(p=g)[x]||(p[x]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]||[])[0]===k&&h[1])&&h[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(b=f=0)||d.pop();)if(1===p.nodeType&&++b&&p===e){c[t]=[k,f,b];break}}else if(y&&(b=f=(h=(c=(u=(p=e)[x]||(p[x]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]||[])[0]===k&&h[1]),!1===b)for(;(p=++f&&p&&p[m]||(b=f=0)||d.pop())&&((o?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((c=(u=p[x]||(p[x]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]=[k,b]),p!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return i[x]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?ht((function(t,n){for(var r,s=i(t,e),a=s.length;a--;)t[r=B(t,s[a])]=!(n[r]=s[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:ht((function(t){var e=[],n=[],r=o(t.replace(z,"$1"));return r[x]?ht((function(t,e,n,i){for(var s,a=r(t,null,i,[]),o=t.length;o--;)(s=a[o])&&(t[o]=!(e[o]=s))})):function(t,i,s){return e[0]=t,r(e,null,s,n),e[0]=null,!n.pop()}})),has:ht((function(t){return function(e){return ot(t,e).length>0}})),contains:ht((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:ht((function(t){return U.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===d},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return J.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt((function(){return[0]})),last:gt((function(t,e){return[e-1]})),eq:gt((function(t,e,n){return[n<0?n+e:n]})),even:gt((function(t,e){for(var n=0;ne?e:n;--r>=0;)t.push(r);return t})),gt:gt((function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function kt(t,e,n,r,i){for(var s,a=[],o=0,l=t.length,h=null!=e;o-1&&(s[h]=!(a[h]=u))}}else v=kt(v===a?v.splice(d,v.length):v),i?i(null,a,v,l):F.apply(a,v)}))}function St(t){for(var e,n,i,s=t.length,a=r.relative[t[0].type],o=a||r.relative[" "],l=a?1:0,c=xt((function(t){return t===e}),o,!0),u=xt((function(t){return B(e,t)>-1}),o,!0),p=[function(t,n,r){var i=!a&&(r||n!==h)||((e=n).nodeType?c(t,n,r):u(t,n,r));return e=null,i}];l1&&wt(p),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(z,"$1"),n,l0,i=t.length>0,s=function(s,a,o,l,c){var u,d,g,v=0,y="0",b=s&&[],x=[],w=h,E=s||i&&r.find.TAG("*",c),S=k+=null==w?1:Math.random()||.1,P=E.length;for(c&&(h=a==f||a||c);y!==P&&null!=(u=E[y]);y++){if(i&&u){for(d=0,a||u.ownerDocument==f||(p(u),o=!m);g=t[d++];)if(g(u,a||f,o)){l.push(u);break}c&&(k=S)}n&&((u=!g&&u)&&v--,s&&b.push(u))}if(v+=y,n&&y!==v){for(d=0;g=e[d++];)g(b,x,a,o);if(s){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=I.call(l));x=kt(x)}F.apply(l,x),c&&!s&&x.length>0&&v+e.length>1&&ot.uniqueSort(l)}return c&&(k=S,h=w),b};return n?ht(s):s}(s,i))).selector=t}return o},l=ot.select=function(t,e,n,i){var s,l,h,c,u,p="function"==typeof t&&t,f=!i&&a(t=p.selector||t);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(h=l[0]).type&&9===e.nodeType&&m&&r.relative[l[1].type]){if(!(e=(r.find.ID(h.matches[0].replace(et,nt),e)||[])[0]))return n;p&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(s=Y.needsContext.test(t)?0:l.length;s--&&(h=l[s],!r.relative[c=h.type]);)if((u=r.find[c])&&(i=u(h.matches[0].replace(et,nt),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(s,1),!(t=i.length&&bt(l)))return F.apply(n,i),n;break}}return(p||o(t,f))(i,e,!m,n,!e||tt.test(t)&&vt(e.parentNode)||e),n},n.sortStable=x.split("").sort(T).join("")===x,n.detectDuplicates=!!u,p(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))})),ct((function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")}))||ut("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ut("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ut(R,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),ot}(r);S.find=_,S.expr=_.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=_.uniqueSort,S.text=_.getText,S.isXMLDoc=_.isXML,S.contains=_.contains,S.escapeSelector=_.escape;var C=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&S(t).is(n))break;r.push(t)}return r},T=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},A=S.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(t,e,n){return v(e)?S.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?S.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?S.grep(t,(function(t){return c.call(e,t)>-1!==n})):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,(function(t){return 1===t.nodeType})))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(S(t).filter((function(){for(e=0;e1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(M(this,t||[],!1))},not:function(t){return this.pushStack(M(this,t||[],!0))},is:function(t){return!!M(this,"string"==typeof t&&A.test(t)?S(t):t||[],!1).length}});var F,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||F,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:N.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),I.test(r[1])&&S.isPlainObject(e))for(r in e)v(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,F=S(b);var B=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&S.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?S.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?c.call(S(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return C(t,"parentNode")},parentsUntil:function(t,e,n){return C(t,"parentNode",n)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return C(t,"nextSibling")},prevAll:function(t){return C(t,"previousSibling")},nextUntil:function(t,e,n){return C(t,"nextSibling",n)},prevUntil:function(t,e,n){return C(t,"previousSibling",n)},siblings:function(t){return T((t.parentNode||{}).firstChild,t)},children:function(t){return T(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(D(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},(function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(R[t]||S.uniqueSort(i),B.test(t)&&i.reverse()),this.pushStack(i)}}));var O=/[^\x20\t\r\n\f]+/g;function V(t){return t}function $(t){throw t}function j(t,e,n,r){var i;try{t&&v(i=t.promise)?i.call(t).done(e).fail(n):t&&v(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(O)||[],(function(t,n){e[n]=!0})),e}(t):S.extend({},t);var e,n,r,i,s=[],a=[],o=-1,l=function(){for(i=i||t.once,r=e=!0;a.length;o=-1)for(n=a.shift();++o-1;)s.splice(n,1),n<=o&&o--})),this},has:function(t){return t?S.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=a=[],n||e||(s=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return S.Deferred((function(n){S.each(e,(function(e,r){var i=v(t[r[4]])&&t[r[4]];s[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var s=0;function a(t,e,n,i){return function(){var o=this,l=arguments,h=function(){var r,h;if(!(t=s&&(n!==$&&(o=void 0,l=[r]),e.rejectWith(o,l))}};t?c():(S.Deferred.getStackHook&&(c.stackTrace=S.Deferred.getStackHook()),r.setTimeout(c))}}return S.Deferred((function(r){e[0][3].add(a(0,r,v(i)?i:V,r.notifyWith)),e[1][3].add(a(0,r,v(t)?t:V)),e[2][3].add(a(0,r,v(n)?n:$))})).promise()},promise:function(t){return null!=t?S.extend(t,i):i}},s={};return S.each(e,(function(t,r){var a=r[2],o=r[5];i[r[1]]=a.add,o&&a.add((function(){n=o}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(r[3].fire),s[r[0]]=function(){return s[r[0]+"With"](this===s?void 0:this,arguments),this},s[r[0]+"With"]=a.fireWith})),i.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,r=Array(n),i=o.call(arguments),s=S.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?o.call(arguments):n,--e||s.resolveWith(r,i)}};if(e<=1&&(j(t,s.done(a(n)).resolve,s.reject,!e),"pending"===s.state()||v(i[n]&&i[n].then)))return s.then();for(;n--;)j(i[n],a(n),s.reject);return s.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&z.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){r.setTimeout((function(){throw t}))};var H=S.Deferred();function G(){b.removeEventListener("DOMContentLoaded",G),r.removeEventListener("load",G),S.ready()}S.fn.ready=function(t){return H.then(t).catch((function(t){S.readyException(t)})),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||H.resolveWith(b,[S]))}}),S.ready.then=H.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(S.ready):(b.addEventListener("DOMContentLoaded",G),r.addEventListener("load",G));var q=function(t,e,n,r,i,s,a){var o=0,l=t.length,h=null==n;if("object"===k(n))for(o in i=!0,n)q(t,e,o,n[o],!0,s,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),h&&(a?(e.call(t,r),e=null):(h=e,e=function(t,e,n){return h.call(S(t),n)})),e))for(;o1,null,!0)},removeData:function(t){return this.each((function(){Q.remove(this,t)}))}}),S.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=Z.get(t,e),n&&(!r||Array.isArray(n)?r=Z.access(t,e,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),r=n.length,i=n.shift(),s=S._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,(function(){S.dequeue(t,e)}),s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Z.get(t,n)||Z.access(t,n,{empty:S.Callbacks("once memory").add((function(){Z.remove(t,[e+"queue",n])}))})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,yt=/^$|^module$|\/(?:java|ecma)script/i;dt=b.createDocumentFragment().appendChild(b.createElement("div")),(mt=b.createElement("input")).setAttribute("type","radio"),mt.setAttribute("checked","checked"),mt.setAttribute("name","t"),dt.appendChild(mt),g.checkClone=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="",g.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="",g.option=!!dt.lastChild;var bt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function xt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?S.merge([t],n):n}function wt(t,e){for(var n=0,r=t.length;n",""]);var kt=/<|&#?\w+;/;function Et(t,e,n,r,i){for(var s,a,o,l,h,c,u=e.createDocumentFragment(),p=[],f=0,d=t.length;f-1)i&&i.push(s);else if(h=ot(s),a=xt(u.appendChild(s),"script"),h&&wt(a),n)for(c=0;s=a[c++];)yt.test(s.type||"")&&n.push(s);return u}var St=/^([^.]*)(?:\.(.+)|)/;function Pt(){return!0}function _t(){return!1}function Ct(t,e){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===e)}function Tt(t,e,n,r,i,s){var a,o;if("object"==typeof e){for(o in"string"!=typeof n&&(r=r||n,n=void 0),e)Tt(t,o,n,r,e[o],s);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=_t;else if(!i)return t;return 1===s&&(a=i,(i=function(t){return S().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),t.each((function(){S.event.add(this,e,i,r,n)}))}function At(t,e,n){n?(Z.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var r,i,s=Z.get(this,e);if(1&t.isTrigger&&this[e]){if(s.length)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(s=o.call(arguments),Z.set(this,e,s),r=n(this,e),this[e](),s!==(i=Z.get(this,e))||r?Z.set(this,e,!1):i={},s!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else s.length&&(Z.set(this,e,{value:S.event.trigger(S.extend(s[0],S.Event.prototype),s.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Z.get(t,e)&&S.event.add(t,e,Pt)}S.event={global:{},add:function(t,e,n,r,i){var s,a,o,l,h,c,u,p,f,d,m,g=Z.get(t);if(X(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&S.find.matchesSelector(at,i),n.guid||(n.guid=S.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(O)||[""]).length;h--;)f=m=(o=St.exec(e[h])||[])[1],d=(o[2]||"").split(".").sort(),f&&(u=S.event.special[f]||{},f=(i?u.delegateType:u.bindType)||f,u=S.event.special[f]||{},c=S.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:d.join(".")},s),(p=l[f])||((p=l[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,r,d,a)||t.addEventListener&&t.addEventListener(f,a)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[f]=!0)},remove:function(t,e,n,r,i){var s,a,o,l,h,c,u,p,f,d,m,g=Z.hasData(t)&&Z.get(t);if(g&&(l=g.events)){for(h=(e=(e||"").match(O)||[""]).length;h--;)if(f=m=(o=St.exec(e[h])||[])[1],d=(o[2]||"").split(".").sort(),f){for(u=S.event.special[f]||{},p=l[f=(r?u.delegateType:u.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=p.length;s--;)c=p[s],!i&&m!==c.origType||n&&n.guid!==c.guid||o&&!o.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(s,1),c.selector&&p.delegateCount--,u.remove&&u.remove.call(t,c));a&&!p.length&&(u.teardown&&!1!==u.teardown.call(t,d,g.handle)||S.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)S.event.remove(t,f+e[h],n,r,!0);S.isEmptyObject(l)&&Z.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,a,o=new Array(arguments.length),l=S.event.fix(t),h=(Z.get(this,"events")||Object.create(null))[l.type]||[],c=S.event.special[l.type]||{};for(o[0]=l,e=1;e=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(s=[],a={},n=0;n-1:S.find(i,this,null,[h]).length),a[i]&&s.push(r);s.length&&o.push({elem:h,handlers:s})}return h=this,l\s*$/g;function Ft(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function Nt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Rt(t,e){var n,r,i,s,a,o;if(1===e.nodeType){if(Z.hasData(t)&&(o=Z.get(t).events))for(i in Z.remove(e,"handle events"),o)for(n=0,r=o[i].length;n1&&"string"==typeof d&&!g.checkClone&&It.test(d))return t.each((function(i){var s=t.eq(i);m&&(e[0]=d.call(this,i,s.html())),Ot(s,e,n,r)}));if(p&&(s=(i=Et(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(o=(a=S.map(xt(i,"script"),Nt)).length;u0&&wt(a,!l&&xt(t,"script")),o},cleanData:function(t){for(var e,n,r,i=S.event.special,s=0;void 0!==(n=t[s]);s++)if(X(n)){if(e=n[Z.expando]){if(e.events)for(r in e.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[Z.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Vt(this,t,!0)},remove:function(t){return Vt(this,t)},text:function(t){return q(this,(function(t){return void 0===t?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ot(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)}))},prepend:function(){return Ot(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ot(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ot(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(xt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return S.clone(this,t,e)}))},html:function(t){return q(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Dt.test(t)&&!bt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-o-.5))||0),l}function ne(t,e,n){var r=jt(t),i=(!g.boxSizingReliable()||n)&&"border-box"===S.css(t,"boxSizing",!1,r),s=i,a=Gt(t,e,r),o="offset"+e[0].toUpperCase()+e.slice(1);if($t.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&D(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===S.css(t,"boxSizing",!1,r),(s=o in t)&&(a=t[o])),(a=parseFloat(a)||0)+ee(t,e,n||(i?"border":"content"),s,r,a)+"px"}function re(t,e,n,r,i){return new re.prototype.init(t,e,n,r,i)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Gt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,s,a,o=K(e),l=Jt.test(e),h=t.style;if(l||(e=Kt(o)),a=S.cssHooks[e]||S.cssHooks[o],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:h[e];"string"===(s=typeof n)&&(i=it.exec(n))&&i[1]&&(n=ct(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=i&&i[3]||(S.cssNumber[o]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(h[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(l?h.setProperty(e,n):h[e]=n))}},css:function(t,e,n,r){var i,s,a,o=K(e);return Jt.test(e)||(e=Kt(o)),(a=S.cssHooks[e]||S.cssHooks[o])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Gt(t,e,r)),"normal"===i&&e in Qt&&(i=Qt[e]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),S.each(["height","width"],(function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!Xt.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ne(t,e,r):zt(t,Zt,(function(){return ne(t,e,r)}))},set:function(t,n,r){var i,s=jt(t),a=!g.scrollboxSize()&&"absolute"===s.position,o=(a||r)&&"border-box"===S.css(t,"boxSizing",!1,s),l=r?ee(t,e,r,o,s):0;return o&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-ee(t,e,"border",!1,s)-.5)),l&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),te(0,n,l)}}})),S.cssHooks.marginLeft=qt(g.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Gt(t,"marginLeft"))||t.getBoundingClientRect().left-zt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(t,e){S.cssHooks[t+e]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+st[r]+e]=s[r]||s[r-2]||s[0];return i}},"margin"!==t&&(S.cssHooks[t+e].set=te)})),S.fn.extend({css:function(t,e){return q(this,(function(t,e,n){var r,i,s={},a=0;if(Array.isArray(e)){for(r=jt(t),i=e.length;a1)}}),S.Tween=re,re.prototype={constructor:re,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(S.cssNumber[n]?"":"px")},cur:function(){var t=re.propHooks[this.prop];return t&&t.get?t.get(this):re.propHooks._default.get(this)},run:function(t){var e,n=re.propHooks[this.prop];return this.options.duration?this.pos=e=S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):re.propHooks._default.set(this),this}},re.prototype.init.prototype=re.prototype,re.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},re.propHooks.scrollTop=re.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=re.prototype.init,S.fx.step={};var ie,se,ae=/^(?:toggle|show|hide)$/,oe=/queueHooks$/;function le(){se&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(le):r.setTimeout(le,S.fx.interval),S.fx.tick())}function he(){return r.setTimeout((function(){ie=void 0})),ie=Date.now()}function ce(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=st[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ue(t,e,n){for(var r,i=(pe.tweeners[e]||[]).concat(pe.tweeners["*"]),s=0,a=i.length;s1)},removeAttr:function(t){return this.each((function(){S.removeAttr(this,t)}))}}),S.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?S.prop(t,e,n):(1===s&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?fe:void 0)),void 0!==n?null===n?void S.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=S.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&D(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(O);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),fe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=de[e]||S.find.attr;de[e]=function(t,e,r){var i,s,a=e.toLowerCase();return r||(s=de[a],de[a]=i,i=null!=n(t,e,r)?a:null,de[a]=s),i}}));var me=/^(?:input|select|textarea|button)$/i,ge=/^(?:a|area)$/i;function ve(t){return(t.match(O)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function be(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(O)||[]}S.fn.extend({prop:function(t,e){return q(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[S.propFix[t]||t]}))}}),S.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&S.isXMLDoc(t)||(e=S.propFix[e]||e,i=S.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):me.test(t.nodeName)||ge.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(t){var e,n,r,i,s,a,o,l=0;if(v(t))return this.each((function(e){S(this).addClass(t.call(this,e,ye(this)))}));if((e=be(t)).length)for(;n=this[l++];)if(i=ye(n),r=1===n.nodeType&&" "+ve(i)+" "){for(a=0;s=e[a++];)r.indexOf(" "+s+" ")<0&&(r+=s+" ");i!==(o=ve(r))&&n.setAttribute("class",o)}return this},removeClass:function(t){var e,n,r,i,s,a,o,l=0;if(v(t))return this.each((function(e){S(this).removeClass(t.call(this,e,ye(this)))}));if(!arguments.length)return this.attr("class","");if((e=be(t)).length)for(;n=this[l++];)if(i=ye(n),r=1===n.nodeType&&" "+ve(i)+" "){for(a=0;s=e[a++];)for(;r.indexOf(" "+s+" ")>-1;)r=r.replace(" "+s+" "," ");i!==(o=ve(r))&&n.setAttribute("class",o)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):v(t)?this.each((function(n){S(this).toggleClass(t.call(this,n,ye(this),e),e)})):this.each((function(){var e,i,s,a;if(r)for(i=0,s=S(this),a=be(t);e=a[i++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else void 0!==t&&"boolean"!==n||((e=ye(this))&&Z.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Z.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+ve(ye(n))+" ").indexOf(e)>-1)return!0;return!1}});var xe=/\r/g;S.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=v(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,S(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,(function(t){return null==t?"":t+""}))),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(xe,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:ve(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,a="select-one"===t.type,o=a?null:[],l=a?s+1:i.length;for(r=s<0?l:a?s:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},g.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),g.focusin="onfocusin"in r;var we=/^(?:focusinfocus|focusoutblur)$/,ke=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,n,i){var s,a,o,l,h,c,u,p,d=[n||b],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(a=p=o=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!we.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),h=m.indexOf(":")<0&&"on"+m,(t=t[S.expando]?t:new S.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:S.makeArray(e,[t]),u=S.event.special[m]||{},i||!u.trigger||!1!==u.trigger.apply(n,e))){if(!i&&!u.noBubble&&!y(n)){for(l=u.delegateType||m,we.test(l+m)||(a=a.parentNode);a;a=a.parentNode)d.push(a),o=a;o===(n.ownerDocument||b)&&d.push(o.defaultView||o.parentWindow||r)}for(s=0;(a=d[s++])&&!t.isPropagationStopped();)p=a,t.type=s>1?l:u.bindType||m,(c=(Z.get(a,"events")||Object.create(null))[t.type]&&Z.get(a,"handle"))&&c.apply(a,e),(c=h&&a[h])&&c.apply&&X(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!X(n)||h&&v(n[m])&&!y(n)&&((o=n[h])&&(n[h]=null),S.event.triggered=m,t.isPropagationStopped()&&p.addEventListener(m,ke),n[m](),t.isPropagationStopped()&&p.removeEventListener(m,ke),S.event.triggered=void 0,o&&(n[h]=o)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each((function(){S.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}}),g.focusin||S.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){S.event.simulate(e,t.target,S.event.fix(t))};S.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,e);i||r.addEventListener(t,n,!0),Z.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,e)-1;i?Z.access(r,e,i):(r.removeEventListener(t,n,!0),Z.remove(r,e))}}}));var Ee=r.location,Se={guid:Date.now()},Pe=/\?/;S.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var _e=/\[\]$/,Ce=/\r?\n/g,Te=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;function De(t,e,n,r){var i;if(Array.isArray(e))S.each(e,(function(e,i){n||_e.test(t)?r(t,i):De(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==k(e))r(t,e);else for(i in e)De(t+"["+i+"]",e[i],n,r)}S.param=function(t,e){var n,r=[],i=function(t,e){var n=v(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,(function(){i(this.name,this.value)}));else for(n in t)De(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Ae.test(this.nodeName)&&!Te.test(t)&&(this.checked||!gt.test(t))})).map((function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}})):{name:e.name,value:n.replace(Ce,"\r\n")}})).get()}});var Ie=/%20/g,Me=/#.*$/,Fe=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)$/gm,Be=/^(?:GET|HEAD)$/,Re=/^\/\//,Le={},Oe={},Ve="*/".concat("*"),$e=b.createElement("a");function je(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(O)||[];if(v(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function ze(t,e,n,r){var i={},s=t===Oe;function a(o){var l;return i[o]=!0,S.each(t[o]||[],(function(t,o){var h=o(e,n,r);return"string"!=typeof h||s||i[h]?s?!(l=h):void 0:(e.dataTypes.unshift(h),a(h),!1)})),l}return a(e.dataTypes[0])||!i["*"]&&a("*")}function He(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}$e.href=Ee.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,S.ajaxSettings),e):He(S.ajaxSettings,t)},ajaxPrefilter:je(Le),ajaxTransport:je(Oe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,s,a,o,l,h,c,u,p,f=S.ajaxSetup({},e),d=f.context||f,m=f.context&&(d.nodeType||d.jquery)?S(d):S.event,g=S.Deferred(),v=S.Callbacks("once memory"),y=f.statusCode||{},x={},w={},k="canceled",E={readyState:0,getResponseHeader:function(t){var e;if(h){if(!a)for(a={};e=Ne.exec(s);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?s:null},setRequestHeader:function(t,e){return null==h&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==h&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)E.always(t[E.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||k;return n&&n.abort(e),P(0,e),this}};if(g.promise(E),f.url=((t||f.url||Ee.href)+"").replace(Re,Ee.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(O)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=$e.protocol+"//"+$e.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=S.param(f.data,f.traditional)),ze(Le,f,e,E),h)return E;for(u in(c=S.event&&f.global)&&0==S.active++&&S.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Be.test(f.type),i=f.url.replace(Me,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ie,"+")):(p=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Pe.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Fe,"$1"),p=(Pe.test(i)?"&":"?")+"_="+Se.guid+++p),f.url=i+p),f.ifModified&&(S.lastModified[i]&&E.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&E.setRequestHeader("If-None-Match",S.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ve+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(!1===f.beforeSend.call(d,E,f)||h))return E.abort();if(k="abort",v.add(f.complete),E.done(f.success),E.fail(f.error),n=ze(Oe,f,e,E)){if(E.readyState=1,c&&m.trigger("ajaxSend",[E,f]),h)return E;f.async&&f.timeout>0&&(o=r.setTimeout((function(){E.abort("timeout")}),f.timeout));try{h=!1,n.send(x,P)}catch(t){if(h)throw t;P(-1,t)}}else P(-1,"No Transport");function P(t,e,a,l){var u,p,b,x,w,k=e;h||(h=!0,o&&r.clearTimeout(o),n=void 0,s=l||"",E.readyState=t>0?4:0,u=t>=200&&t<300||304===t,a&&(x=function(t,e,n){for(var r,i,s,a,o=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in o)if(o[i]&&o[i].test(r)){l.unshift(i);break}if(l[0]in n)s=l[0];else{for(i in n){if(!l[0]||t.converters[i+" "+l[0]]){s=i;break}a||(a=i)}s=s||a}if(s)return s!==l[0]&&l.unshift(s),n[s]}(f,E,a)),!u&&S.inArray("script",f.dataTypes)>-1&&S.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(t,e,n,r){var i,s,a,o,l,h={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)h[a.toLowerCase()]=t.converters[a];for(s=c.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=c.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(a=h[l+" "+s]||h["* "+s]))for(i in h)if((o=i.split(" "))[1]===s&&(a=h[l+" "+o[0]]||h["* "+o[0]])){!0===a?a=h[i]:!0!==h[i]&&(s=o[0],c.unshift(o[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(f,x,E,u),u?(f.ifModified&&((w=E.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=w),(w=E.getResponseHeader("etag"))&&(S.etag[i]=w)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=x.state,p=x.data,u=!(b=x.error))):(b=k,!t&&k||(k="error",t<0&&(t=0))),E.status=t,E.statusText=(e||k)+"",u?g.resolveWith(d,[p,k,E]):g.rejectWith(d,[E,k,b]),E.statusCode(y),y=void 0,c&&m.trigger(u?"ajaxSuccess":"ajaxError",[E,f,u?p:b]),v.fireWith(d,[E,k]),c&&(m.trigger("ajaxComplete",[E,f]),--S.active||S.event.trigger("ajaxStop")))}return E},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],(function(t,e){S[e]=function(t,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}})),S.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){S(this).wrapInner(t.call(this,e))})):this.each((function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){S(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Ge={0:200,1223:204},qe=S.ajaxSettings.xhr();g.cors=!!qe&&"withCredentials"in qe,g.ajax=qe=!!qe,S.ajaxTransport((function(t){var e,n;if(g.cors||qe&&!t.crossDomain)return{send:function(i,s){var a,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)o[a]=t.xhrFields[a];for(a in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)o.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===t?o.abort():"error"===t?"number"!=typeof o.status?s(0,"error"):s(o.status,o.statusText):s(Ge[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=e(),n=o.onerror=o.ontimeout=e("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&r.setTimeout((function(){e&&n()}))},e=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),S.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return S.globalEval(t),t}}}),S.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),S.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=S("