From 3ab4b6bd7b965032bdea428c029c490b5cff38dc Mon Sep 17 00:00:00 2001 From: vegim carkaxhija Date: Tue, 19 Mar 2024 10:58:44 +0100 Subject: [PATCH 1/3] fix billink afterpay klarna to work with fee, also update billink fee values --- .../payments/BillinkPaymentConfig.vue | 15 ++++--- library/checkout/afterpaycheckout.php | 23 +++++----- library/checkout/billinkcheckout.php | 43 ++++++++----------- library/checkout/klarnacheckout.php | 22 +++++----- src/Repository/RawPaymentMethodRepository.php | 9 +++- upgrade/upgrade-4.2.0.php | 12 ++++++ views/js/buckaroo.vue.js | 2 +- 7 files changed, 70 insertions(+), 56 deletions(-) diff --git a/dev/src/components/payments/BillinkPaymentConfig.vue b/dev/src/components/payments/BillinkPaymentConfig.vue index fed5c696..57eac832 100644 --- a/dev/src/components/payments/BillinkPaymentConfig.vue +++ b/dev/src/components/payments/BillinkPaymentConfig.vue @@ -73,11 +73,16 @@ export default { const config = inject('config'); const vatOptions = [ - { text: t('1 = High rate'), value: '1' }, - { text: t('2 = Low rate'), value: '2' }, - { text: t('3 = Zero rate'), value: '3' }, - { text: t('4 = Null rate'), value: '4' }, - { text: t('5 = Middle rate'), value: '5' }, + { text: t('21%'), value: '21' }, + { text: t('20%'), value: '20' }, + { text: t('19%'), value: '19' }, + { text: t('16%'), value: '16' }, + { text: t('12%'), value: '12' }, + { text: t('9%'), value: '9' }, + { text: t('7%'), value: '7' }, + { text: t('6%'), value: '6' }, + { text: t('5%'), value: '5' }, + { text: t('0%'), value: '0' }, ]; const customerTypeOptions = [ diff --git a/library/checkout/afterpaycheckout.php b/library/checkout/afterpaycheckout.php index 1c4d68f7..0cfe9572 100644 --- a/library/checkout/afterpaycheckout.php +++ b/library/checkout/afterpaycheckout.php @@ -140,22 +140,21 @@ public function getArticles() { $products = $this->prepareProductArticles(); - $wrappingVat = $this->buckarooConfigService->getConfigValue('afterpay', 'wrapping_vat'); + $wrappingVat = $this->buckarooConfigService->getConfigValue('afterpay', 'wrapping_vat') ?? 2; - if ($wrappingVat == null) { - $wrappingVat = 2; - } - - $products = array_merge($products, $this->prepareWrappingArticle($wrappingVat)); - $products = array_merge($products, $this->prepareBuckarooFeeArticle($wrappingVat)); - $mergedProducts = $this->mergeProductsBySKU($products); + $additionalArticles = [ + $this->prepareWrappingArticle($wrappingVat), + $this->prepareBuckarooFeeArticle($wrappingVat), + $this->prepareShippingCostArticle(), + ]; - $shippingCostArticle = $this->prepareShippingCostArticle(); - if ($shippingCostArticle) { - $mergedProducts[] = $shippingCostArticle; + foreach ($additionalArticles as $article) { + if (!empty($article)) { + $products[] = $article; + } } - return $mergedProducts; + return $this->mergeProductsBySKU($products); } private function prepareBuckarooFeeArticle($wrappingVat) diff --git a/library/checkout/billinkcheckout.php b/library/checkout/billinkcheckout.php index 37467956..7f816133 100644 --- a/library/checkout/billinkcheckout.php +++ b/library/checkout/billinkcheckout.php @@ -111,21 +111,21 @@ public function getBillingAddress() public function getArticles() { $products = $this->prepareProductArticles(); - $wrappingVat = $this->buckarooConfigService->getConfigValue('billink', 'wrapping_vat'); + $wrappingVat = $this->buckarooConfigService->getConfigValue('billink', 'wrapping_vat') ?? 21; - if ($wrappingVat == null) { - $wrappingVat = 2; - } - $products = array_merge($products, $this->prepareWrappingArticle($wrappingVat)); - $products = array_merge($products, $this->prepareBuckarooFeeArticle($wrappingVat)); - $mergedProducts = $this->mergeProductsBySKU($products); + $additionalArticles = [ + $this->prepareWrappingArticle($wrappingVat), + $this->prepareBuckarooFeeArticle($wrappingVat), + $this->prepareShippingCostArticle(), + ]; - $shippingCostArticle = $this->prepareShippingCostArticle(); - if ($shippingCostArticle) { - $mergedProducts[] = $shippingCostArticle; + foreach ($additionalArticles as $article) { + if (!empty($article)) { + $products[] = $article; + } } - return $mergedProducts; + return $this->mergeProductsBySKU($products); } public function getRecipientCategory() @@ -143,12 +143,12 @@ protected function prepareProductArticles() $articles = []; foreach ($this->products as $item) { $tmp = []; - $tmp['description'] = $item['name']; $tmp['identifier'] = $item['id_product']; $tmp['quantity'] = $item['quantity']; $tmp['price'] = round($item['price_with_reduction'], 2); $tmp['priceExcl'] = round($item['price_with_reduction_without_tax'], 2); $tmp['vatPercentage'] = $item['rate']; + $tmp['description'] = $item['name']; $articles[] = $tmp; } @@ -159,35 +159,28 @@ protected function prepareWrappingArticle($wrappingVat) { $wrappingCost = $this->cart->getOrderTotal(true, CartCore::ONLY_WRAPPING); - if ($wrappingCost <= 0) { - return []; - } - - return [ + return $wrappingCost > 0 ? [ 'identifier' => '0', 'quantity' => '1', 'price' => $wrappingCost, 'priceExcl' => $wrappingCost, 'vatPercentage' => $wrappingVat, 'description' => 'Wrapping', - ]; + ] : []; } private function prepareBuckarooFeeArticle($wrappingVat) { $buckarooFee = $this->getBuckarooFee(); - if ($buckarooFee <= 0) { - return []; - } - return [ + return $buckarooFee > 0 ? [ 'identifier' => '0', 'quantity' => '1', 'price' => round($buckarooFee, 2), 'priceExcl' => round($buckarooFee, 2), 'vatPercentage' => $wrappingVat, 'description' => 'buckaroo_fee', - ]; + ] : []; } protected function prepareShippingCostArticle() @@ -205,11 +198,11 @@ protected function prepareShippingCostArticle() return [ 'identifier' => 'shipping', - 'description' => 'Shipping Costs', - 'vatPercentage' => $shippingCostsTax, 'quantity' => 1, 'price' => $shippingCost, 'priceExcl' => $shippingCost, + 'vatPercentage' => $shippingCostsTax, + 'description' => 'Shipping Costs', ]; } diff --git a/library/checkout/klarnacheckout.php b/library/checkout/klarnacheckout.php index 8f1702b4..a0ca78c1 100644 --- a/library/checkout/klarnacheckout.php +++ b/library/checkout/klarnacheckout.php @@ -87,21 +87,21 @@ public function getShippingAddress() public function getArticles() { $products = $this->prepareProductArticles(); - $wrappingVat = $this->buckarooConfigService->getConfigValue('klarna', 'wrapping_vat'); + $wrappingVat = $this->buckarooConfigService->getConfigValue('klarna', 'wrapping_vat') ?? 2; - if ($wrappingVat == null) { - $wrappingVat = 2; - } - $products = array_merge($products, $this->prepareWrappingArticle($wrappingVat)); - $products = array_merge($products, $this->prepareBuckarooFeeArticle($wrappingVat)); - $mergedProducts = $this->mergeProductsBySKU($products); + $additionalArticles = [ + $this->prepareWrappingArticle($wrappingVat), + $this->prepareBuckarooFeeArticle($wrappingVat), + $this->prepareShippingCostArticle(), + ]; - $shippingCostArticle = $this->prepareShippingCostArticle(); - if ($shippingCostArticle) { - $mergedProducts[] = $shippingCostArticle; + foreach ($additionalArticles as $article) { + if (!empty($article)) { + $products[] = $article; + } } - return $mergedProducts; + return $this->mergeProductsBySKU($products); } private function prepareBuckarooFeeArticle($wrappingVat) diff --git a/src/Repository/RawPaymentMethodRepository.php b/src/Repository/RawPaymentMethodRepository.php index 7522a790..2948b0f4 100644 --- a/src/Repository/RawPaymentMethodRepository.php +++ b/src/Repository/RawPaymentMethodRepository.php @@ -71,7 +71,7 @@ private function insertConfiguration(string $paymentName, int $paymentMethodId): case 'creditcard': case 'ideal': $configValue['show_issuers'] = true; - // no break + case 'paybybank': $configValue['display_type'] = 'radio'; break; @@ -85,8 +85,13 @@ private function insertConfiguration(string $paymentName, int $paymentMethodId): $configValue['seller_protection'] = '0'; break; - case 'afterpay': case 'billink': + $configValue['wrapping_vat'] = '21'; + $configValue['customer_type'] = 'B2C'; + $configValue['financial_warning'] = true; + break; + + case 'afterpay': $configValue['wrapping_vat'] = '2'; $configValue['customer_type'] = 'B2C'; $configValue['financial_warning'] = true; diff --git a/upgrade/upgrade-4.2.0.php b/upgrade/upgrade-4.2.0.php index e9229f36..e8b0250b 100644 --- a/upgrade/upgrade-4.2.0.php +++ b/upgrade/upgrade-4.2.0.php @@ -56,8 +56,20 @@ function upgrade_module_4_2_0($object) ]; $configInsertQuery = 'INSERT INTO ' . _DB_PREFIX_ . 'bk_configuration (configurable_id, value) VALUES (' . (int)$paymentMethodId . ', \'' . pSQL(json_encode($knakenConfig)) . '\')'; + Db::getInstance()->execute($configInsertQuery); + $billinkId = Db::getInstance()->getValue('SELECT id FROM ' . _DB_PREFIX_ . 'bk_payment_methods WHERE name = "billink"'); + if ($billinkId) { + $existingConfig = Db::getInstance()->getValue('SELECT value FROM ' . _DB_PREFIX_ . 'bk_configuration WHERE configurable_id = ' . (int)$billinkId); + if ($existingConfig) { + $configArray = json_decode($existingConfig, true); + $configArray['wrapping_vat'] = '21'; + $configUpdateQuery = 'UPDATE ' . _DB_PREFIX_ . 'bk_configuration SET value = \'' . pSQL(json_encode($configArray)) . '\' WHERE configurable_id = ' . (int)$billinkId; + Db::getInstance()->execute($configUpdateQuery); + } + } + $orderingRepository = new RawOrderingRepository(); $orderingRepository->insertCountryOrdering(); diff --git a/views/js/buckaroo.vue.js b/views/js/buckaroo.vue.js index b1c56bfe..3fcebbc1 100644 --- a/views/js/buckaroo.vue.js +++ b/views/js/buckaroo.vue.js @@ -113,7 +113,7 @@ Für genaue Kostendetails wenden Sie sich bitte direkt an =0&&b0&&p-1 in u}function F(u,p){return u.nodeName&&u.nodeName.toLowerCase()===p.toLowerCase()}var V=r.pop,se=r.sort,ce=r.splice,J="[\\x20\\t\\r\\n\\f]",ye=new RegExp("^"+J+"+|((?:^|[^\\\\])(?:\\\\.)*)"+J+"+$","g");m.contains=function(u,p){var b=p&&p.parentNode;return u===b||!!(b&&b.nodeType===1&&(u.contains?u.contains(b):u.compareDocumentPosition&&u.compareDocumentPosition(b)&16))};var Me=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function fe(u,p){return p?u==="\0"?"�":u.slice(0,-1)+"\\"+u.charCodeAt(u.length-1).toString(16)+" ":"\\"+u}m.escapeSelector=function(u){return(u+"").replace(Me,fe)};var we=I,Ee=c;(function(){var u,p,b,x,k,O=Ee,M,X,z,oe,_e,xe=m.expando,he=0,De=0,Ke=Va(),Tt=Va(),wt=Va(),Xn=Va(),On=function(W,ne){return W===ne&&(k=!0),0},bs="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",vs="(?:\\\\[\\da-fA-F]{1,6}"+J+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",jt="\\["+J+"*("+vs+")(?:"+J+"*([*^$|!~]?=)"+J+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+vs+"))|)"+J+"*\\]",ni=":("+vs+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+jt+")*)|.*)\\)|)",Vt=new RegExp(J+"+","g"),gn=new RegExp("^"+J+"*,"+J+"*"),Ua=new RegExp("^"+J+"*([>+~]|"+J+")"+J+"*"),Fo=new RegExp(J+"|>"),rs=new RegExp(ni),_i=new RegExp("^"+vs+"$"),Hr={ID:new RegExp("^#("+vs+")"),CLASS:new RegExp("^\\.("+vs+")"),TAG:new RegExp("^("+vs+"|[*])"),ATTR:new RegExp("^"+jt),PSEUDO:new RegExp("^"+ni),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+J+"*(even|odd|(([+-]|)(\\d*)n|)"+J+"*(?:([+-]|)"+J+"*(\\d+)|))"+J+"*\\)|)","i"),bool:new RegExp("^(?:"+bs+")$","i"),needsContext:new RegExp("^"+J+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+J+"*((?:-\\d)?\\d*)"+J+"*\\)|)(?=[^-]|$)","i")},Ms=/^(?:input|select|textarea|button)$/i,ri=/^h\d$/i,vr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ha=/[+~]/,$s=new RegExp("\\\\[\\da-fA-F]{1,6}"+J+"?|\\\\([^\\r\\n\\f])","g"),_s=function(W,ne){var de="0x"+W.slice(1)-65536;return ne||(de<0?String.fromCharCode(de+65536):String.fromCharCode(de>>10|55296,de&1023|56320))},kr=function(){si()},Gl=xi(function(W){return W.disabled===!0&&F(W,"fieldset")},{dir:"parentNode",next:"legend"});function ja(){try{return M.activeElement}catch{}}try{O.apply(r=o.call(we.childNodes),we.childNodes),r[we.childNodes.length].nodeType}catch{O={apply:function(ne,de){Ee.apply(ne,o.call(de))},call:function(ne){Ee.apply(ne,o.call(arguments,1))}}}function cn(W,ne,de,me){var j,Q,Z,Se,Ie,ze,qe,We=ne&&ne.ownerDocument,Pt=ne?ne.nodeType:9;if(de=de||[],typeof W!="string"||!W||Pt!==1&&Pt!==9&&Pt!==11)return de;if(!me&&(si(ne),ne=ne||M,z)){if(Pt!==11&&(Ie=vr.exec(W)))if(j=Ie[1]){if(Pt===9)if(Z=ne.getElementById(j)){if(Z.id===j)return O.call(de,Z),de}else return de;else if(We&&(Z=We.getElementById(j))&&cn.contains(ne,Z)&&Z.id===j)return O.call(de,Z),de}else{if(Ie[2])return O.apply(de,ne.getElementsByTagName(W)),de;if((j=Ie[3])&&ne.getElementsByClassName)return O.apply(de,ne.getElementsByClassName(j)),de}if(!Xn[W+" "]&&(!oe||!oe.test(W))){if(qe=W,We=ne,Pt===1&&(Fo.test(W)||Ua.test(W))){for(We=Ha.test(W)&&Kl(ne.parentNode)||ne,(We!=ne||!S.scope)&&((Se=ne.getAttribute("id"))?Se=m.escapeSelector(Se):ne.setAttribute("id",Se=xe)),ze=ta(W),Q=ze.length;Q--;)ze[Q]=(Se?"#"+Se:":scope")+" "+is(ze[Q]);qe=ze.join(",")}try{return O.apply(de,We.querySelectorAll(qe)),de}catch{Xn(W,!0)}finally{Se===xe&&ne.removeAttribute("id")}}}return Yu(W.replace(ye,"$1"),ne,de,me)}function Va(){var W=[];function ne(de,me){return W.push(de+" ")>p.cacheLength&&delete ne[W.shift()],ne[de+" "]=me}return ne}function ss(W){return W[xe]=!0,W}function ea(W){var ne=M.createElement("fieldset");try{return!!W(ne)}catch{return!1}finally{ne.parentNode&&ne.parentNode.removeChild(ne),ne=null}}function zh(W){return function(ne){return F(ne,"input")&&ne.type===W}}function qh(W){return function(ne){return(F(ne,"input")||F(ne,"button"))&&ne.type===W}}function zu(W){return function(ne){return"form"in ne?ne.parentNode&&ne.disabled===!1?"label"in ne?"label"in ne.parentNode?ne.parentNode.disabled===W:ne.disabled===W:ne.isDisabled===W||ne.isDisabled!==!W&&Gl(ne)===W:ne.disabled===W:"label"in ne?ne.disabled===W:!1}}function jr(W){return ss(function(ne){return ne=+ne,ss(function(de,me){for(var j,Q=W([],de.length,ne),Z=Q.length;Z--;)de[j=Q[Z]]&&(de[j]=!(me[j]=de[j]))})})}function Kl(W){return W&&typeof W.getElementsByTagName<"u"&&W}function si(W){var ne,de=W?W.ownerDocument||W:we;return de==M||de.nodeType!==9||!de.documentElement||(M=de,X=M.documentElement,z=!m.isXMLDoc(M),_e=X.matches||X.webkitMatchesSelector||X.msMatchesSelector,X.msMatchesSelector&&we!=M&&(ne=M.defaultView)&&ne.top!==ne&&ne.addEventListener("unload",kr),S.getById=ea(function(me){return X.appendChild(me).id=m.expando,!M.getElementsByName||!M.getElementsByName(m.expando).length}),S.disconnectedMatch=ea(function(me){return _e.call(me,"*")}),S.scope=ea(function(){return M.querySelectorAll(":scope")}),S.cssHas=ea(function(){try{return M.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),S.getById?(p.filter.ID=function(me){var j=me.replace($s,_s);return function(Q){return Q.getAttribute("id")===j}},p.find.ID=function(me,j){if(typeof j.getElementById<"u"&&z){var Q=j.getElementById(me);return Q?[Q]:[]}}):(p.filter.ID=function(me){var j=me.replace($s,_s);return function(Q){var Z=typeof Q.getAttributeNode<"u"&&Q.getAttributeNode("id");return Z&&Z.value===j}},p.find.ID=function(me,j){if(typeof j.getElementById<"u"&&z){var Q,Z,Se,Ie=j.getElementById(me);if(Ie){if(Q=Ie.getAttributeNode("id"),Q&&Q.value===me)return[Ie];for(Se=j.getElementsByName(me),Z=0;Ie=Se[Z++];)if(Q=Ie.getAttributeNode("id"),Q&&Q.value===me)return[Ie]}return[]}}),p.find.TAG=function(me,j){return typeof j.getElementsByTagName<"u"?j.getElementsByTagName(me):j.querySelectorAll(me)},p.find.CLASS=function(me,j){if(typeof j.getElementsByClassName<"u"&&z)return j.getElementsByClassName(me)},oe=[],ea(function(me){var j;X.appendChild(me).innerHTML="",me.querySelectorAll("[selected]").length||oe.push("\\["+J+"*(?:value|"+bs+")"),me.querySelectorAll("[id~="+xe+"-]").length||oe.push("~="),me.querySelectorAll("a#"+xe+"+*").length||oe.push(".#.+[+~]"),me.querySelectorAll(":checked").length||oe.push(":checked"),j=M.createElement("input"),j.setAttribute("type","hidden"),me.appendChild(j).setAttribute("name","D"),X.appendChild(me).disabled=!0,me.querySelectorAll(":disabled").length!==2&&oe.push(":enabled",":disabled"),j=M.createElement("input"),j.setAttribute("name",""),me.appendChild(j),me.querySelectorAll("[name='']").length||oe.push("\\["+J+"*name"+J+"*="+J+`*(?:''|"")`)}),S.cssHas||oe.push(":has"),oe=oe.length&&new RegExp(oe.join("|")),On=function(me,j){if(me===j)return k=!0,0;var Q=!me.compareDocumentPosition-!j.compareDocumentPosition;return Q||(Q=(me.ownerDocument||me)==(j.ownerDocument||j)?me.compareDocumentPosition(j):1,Q&1||!S.sortDetached&&j.compareDocumentPosition(me)===Q?me===M||me.ownerDocument==we&&cn.contains(we,me)?-1:j===M||j.ownerDocument==we&&cn.contains(we,j)?1:x?d.call(x,me)-d.call(x,j):0:Q&4?-1:1)}),M}cn.matches=function(W,ne){return cn(W,null,null,ne)},cn.matchesSelector=function(W,ne){if(si(W),z&&!Xn[ne+" "]&&(!oe||!oe.test(ne)))try{var de=_e.call(W,ne);if(de||S.disconnectedMatch||W.document&&W.document.nodeType!==11)return de}catch{Xn(ne,!0)}return cn(ne,M,null,[W]).length>0},cn.contains=function(W,ne){return(W.ownerDocument||W)!=M&&si(W),m.contains(W,ne)},cn.attr=function(W,ne){(W.ownerDocument||W)!=M&&si(W);var de=p.attrHandle[ne.toLowerCase()],me=de&&g.call(p.attrHandle,ne.toLowerCase())?de(W,ne,!z):void 0;return me!==void 0?me:W.getAttribute(ne)},cn.error=function(W){throw new Error("Syntax error, unrecognized expression: "+W)},m.uniqueSort=function(W){var ne,de=[],me=0,j=0;if(k=!S.sortStable,x=!S.sortStable&&o.call(W,0),se.call(W,On),k){for(;ne=W[j++];)ne===W[j]&&(me=de.push(j));for(;me--;)ce.call(W,de[me],1)}return x=null,W},m.fn.uniqueSort=function(){return this.pushStack(m.uniqueSort(o.apply(this)))},p=m.expr={cacheLength:50,createPseudo:ss,match:Hr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(W){return W[1]=W[1].replace($s,_s),W[3]=(W[3]||W[4]||W[5]||"").replace($s,_s),W[2]==="~="&&(W[3]=" "+W[3]+" "),W.slice(0,4)},CHILD:function(W){return W[1]=W[1].toLowerCase(),W[1].slice(0,3)==="nth"?(W[3]||cn.error(W[0]),W[4]=+(W[4]?W[5]+(W[6]||1):2*(W[3]==="even"||W[3]==="odd")),W[5]=+(W[7]+W[8]||W[3]==="odd")):W[3]&&cn.error(W[0]),W},PSEUDO:function(W){var ne,de=!W[6]&&W[2];return Hr.CHILD.test(W[0])?null:(W[3]?W[2]=W[4]||W[5]||"":de&&rs.test(de)&&(ne=ta(de,!0))&&(ne=de.indexOf(")",de.length-ne)-de.length)&&(W[0]=W[0].slice(0,ne),W[2]=de.slice(0,ne)),W.slice(0,3))}},filter:{TAG:function(W){var ne=W.replace($s,_s).toLowerCase();return W==="*"?function(){return!0}:function(de){return F(de,ne)}},CLASS:function(W){var ne=Ke[W+" "];return ne||(ne=new RegExp("(^|"+J+")"+W+"("+J+"|$)"))&&Ke(W,function(de){return ne.test(typeof de.className=="string"&&de.className||typeof de.getAttribute<"u"&&de.getAttribute("class")||"")})},ATTR:function(W,ne,de){return function(me){var j=cn.attr(me,W);return j==null?ne==="!=":ne?(j+="",ne==="="?j===de:ne==="!="?j!==de:ne==="^="?de&&j.indexOf(de)===0:ne==="*="?de&&j.indexOf(de)>-1:ne==="$="?de&&j.slice(-de.length)===de:ne==="~="?(" "+j.replace(Vt," ")+" ").indexOf(de)>-1:ne==="|="?j===de||j.slice(0,de.length+1)===de+"-":!1):!0}},CHILD:function(W,ne,de,me,j){var Q=W.slice(0,3)!=="nth",Z=W.slice(-4)!=="last",Se=ne==="of-type";return me===1&&j===0?function(Ie){return!!Ie.parentNode}:function(Ie,ze,qe){var We,Pt,at,Ut,Jn,or=Q!==Z?"nextSibling":"previousSibling",Zn=Ie.parentNode,Or=Se&&Ie.nodeName.toLowerCase(),Fs=!qe&&!Se,xt=!1;if(Zn){if(Q){for(;or;){for(at=Ie;at=at[or];)if(Se?F(at,Or):at.nodeType===1)return!1;Jn=or=W==="only"&&!Jn&&"nextSibling"}return!0}if(Jn=[Z?Zn.firstChild:Zn.lastChild],Z&&Fs){for(Pt=Zn[xe]||(Zn[xe]={}),We=Pt[W]||[],Ut=We[0]===he&&We[1],xt=Ut&&We[2],at=Ut&&Zn.childNodes[Ut];at=++Ut&&at&&at[or]||(xt=Ut=0)||Jn.pop();)if(at.nodeType===1&&++xt&&at===Ie){Pt[W]=[he,Ut,xt];break}}else if(Fs&&(Pt=Ie[xe]||(Ie[xe]={}),We=Pt[W]||[],Ut=We[0]===he&&We[1],xt=Ut),xt===!1)for(;(at=++Ut&&at&&at[or]||(xt=Ut=0)||Jn.pop())&&!((Se?F(at,Or):at.nodeType===1)&&++xt&&(Fs&&(Pt=at[xe]||(at[xe]={}),Pt[W]=[he,xt]),at===Ie)););return xt-=j,xt===me||xt%me===0&&xt/me>=0}}},PSEUDO:function(W,ne){var de,me=p.pseudos[W]||p.setFilters[W.toLowerCase()]||cn.error("unsupported pseudo: "+W);return me[xe]?me(ne):me.length>1?(de=[W,W,"",ne],p.setFilters.hasOwnProperty(W.toLowerCase())?ss(function(j,Q){for(var Z,Se=me(j,ne),Ie=Se.length;Ie--;)Z=d.call(j,Se[Ie]),j[Z]=!(Q[Z]=Se[Ie])}):function(j){return me(j,0,de)}):me}},pseudos:{not:ss(function(W){var ne=[],de=[],me=ql(W.replace(ye,"$1"));return me[xe]?ss(function(j,Q,Z,Se){for(var Ie,ze=me(j,null,Se,[]),qe=j.length;qe--;)(Ie=ze[qe])&&(j[qe]=!(Q[qe]=Ie))}):function(j,Q,Z){return ne[0]=j,me(ne,null,Z,de),ne[0]=null,!de.pop()}}),has:ss(function(W){return function(ne){return cn(W,ne).length>0}}),contains:ss(function(W){return W=W.replace($s,_s),function(ne){return(ne.textContent||m.text(ne)).indexOf(W)>-1}}),lang:ss(function(W){return _i.test(W||"")||cn.error("unsupported lang: "+W),W=W.replace($s,_s).toLowerCase(),function(ne){var de;do if(de=z?ne.lang:ne.getAttribute("xml:lang")||ne.getAttribute("lang"))return de=de.toLowerCase(),de===W||de.indexOf(W+"-")===0;while((ne=ne.parentNode)&&ne.nodeType===1);return!1}}),target:function(W){var ne=t.location&&t.location.hash;return ne&&ne.slice(1)===W.id},root:function(W){return W===X},focus:function(W){return W===ja()&&M.hasFocus()&&!!(W.type||W.href||~W.tabIndex)},enabled:zu(!1),disabled:zu(!0),checked:function(W){return F(W,"input")&&!!W.checked||F(W,"option")&&!!W.selected},selected:function(W){return W.parentNode&&W.parentNode.selectedIndex,W.selected===!0},empty:function(W){for(W=W.firstChild;W;W=W.nextSibling)if(W.nodeType<6)return!1;return!0},parent:function(W){return!p.pseudos.empty(W)},header:function(W){return ri.test(W.nodeName)},input:function(W){return Ms.test(W.nodeName)},button:function(W){return F(W,"input")&&W.type==="button"||F(W,"button")},text:function(W){var ne;return F(W,"input")&&W.type==="text"&&((ne=W.getAttribute("type"))==null||ne.toLowerCase()==="text")},first:jr(function(){return[0]}),last:jr(function(W,ne){return[ne-1]}),eq:jr(function(W,ne,de){return[de<0?de+ne:de]}),even:jr(function(W,ne){for(var de=0;dene?me=ne:me=de;--me>=0;)W.push(me);return W}),gt:jr(function(W,ne,de){for(var me=de<0?de+ne:de;++me1?function(ne,de,me){for(var j=W.length;j--;)if(!W[j](ne,de,me))return!1;return!0}:W[0]}function Yh(W,ne,de){for(var me=0,j=ne.length;me-1&&(Z[qe]=!(Se[qe]=Pt))}}else at=Uo(at===Se?at.splice(or,at.length):at),j?j(null,Se,at,ze):O.apply(Se,at)})}function Ar(W){for(var ne,de,me,j=W.length,Q=p.relative[W[0].type],Z=Q||p.relative[" "],Se=Q?1:0,Ie=xi(function(We){return We===ne},Z,!0),ze=xi(function(We){return d.call(ne,We)>-1},Z,!0),qe=[function(We,Pt,at){var Ut=!Q&&(at||Pt!=b)||((ne=Pt).nodeType?Ie(We,Pt,at):ze(We,Pt,at));return ne=null,Ut}];Se1&&zl(qe),Se>1&&is(W.slice(0,Se-1).concat({value:W[Se-2].type===" "?"*":""})).replace(ye,"$1"),de,Se0,me=W.length>0,j=function(Q,Z,Se,Ie,ze){var qe,We,Pt,at=0,Ut="0",Jn=Q&&[],or=[],Zn=b,Or=Q||me&&p.find.TAG("*",ze),Fs=he+=Zn==null?1:Math.random()||.1,xt=Or.length;for(ze&&(b=Z==M||Z||ze);Ut!==xt&&(qe=Or[Ut])!=null;Ut++){if(me&&qe){for(We=0,!Z&&qe.ownerDocument!=M&&(si(qe),Se=!z);Pt=W[We++];)if(Pt(qe,Z||M,Se)){O.call(Ie,qe);break}ze&&(he=Fs)}de&&((qe=!Pt&&qe)&&at--,Q&&Jn.push(qe))}if(at+=Ut,de&&Ut!==at){for(We=0;Pt=ne[We++];)Pt(Jn,or,Z,Se);if(Q){if(at>0)for(;Ut--;)Jn[Ut]||or[Ut]||(or[Ut]=V.call(Ie));or=Uo(or)}O.apply(Ie,or),ze&&!Q&&or.length>0&&at+ne.length>1&&m.uniqueSort(Ie)}return ze&&(he=Fs,b=Zn),Jn};return de?ss(j):j}function ql(W,ne){var de,me=[],j=[],Q=wt[W+" "];if(!Q){for(ne||(ne=ta(W)),de=ne.length;de--;)Q=Ar(ne[de]),Q[xe]?me.push(Q):j.push(Q);Q=wt(W,qu(j,me)),Q.selector=W}return Q}function Yu(W,ne,de,me){var j,Q,Z,Se,Ie,ze=typeof W=="function"&&W,qe=!me&&ta(W=ze.selector||W);if(de=de||[],qe.length===1){if(Q=qe[0]=qe[0].slice(0),Q.length>2&&(Z=Q[0]).type==="ID"&&ne.nodeType===9&&z&&p.relative[Q[1].type]){if(ne=(p.find.ID(Z.matches[0].replace($s,_s),ne)||[])[0],ne)ze&&(ne=ne.parentNode);else return de;W=W.slice(Q.shift().value.length)}for(j=Hr.needsContext.test(W)?0:Q.length;j--&&(Z=Q[j],!p.relative[Se=Z.type]);)if((Ie=p.find[Se])&&(me=Ie(Z.matches[0].replace($s,_s),Ha.test(Q[0].type)&&Kl(ne.parentNode)||ne))){if(Q.splice(j,1),W=me.length&&is(Q),!W)return O.apply(de,me),de;break}}return(ze||ql(W,qe))(me,ne,!z,de,!ne||Ha.test(W)&&Kl(ne.parentNode)||ne),de}S.sortStable=xe.split("").sort(On).join("")===xe,si(),S.sortDetached=ea(function(W){return W.compareDocumentPosition(M.createElement("fieldset"))&1}),m.find=cn,m.expr[":"]=m.expr.pseudos,m.unique=m.uniqueSort,cn.compile=ql,cn.select=Yu,cn.setDocument=si,cn.tokenize=ta,cn.escape=m.escapeSelector,cn.getText=m.text,cn.isXML=m.isXMLDoc,cn.selectors=m.expr,cn.support=m.support,cn.uniqueSort=m.uniqueSort})();var Qe=function(u,p,b){for(var x=[],k=b!==void 0;(u=u[p])&&u.nodeType!==9;)if(u.nodeType===1){if(k&&m(u).is(b))break;x.push(u)}return x},ht=function(u,p){for(var b=[];u;u=u.nextSibling)u.nodeType===1&&u!==p&&b.push(u);return b},ot=m.expr.match.needsContext,vt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Yt(u,p,b){return T(p)?m.grep(u,function(x,k){return!!p.call(x,k,x)!==b}):p.nodeType?m.grep(u,function(x){return x===p!==b}):typeof p!="string"?m.grep(u,function(x){return d.call(p,x)>-1!==b}):m.filter(p,u,b)}m.filter=function(u,p,b){var x=p[0];return b&&(u=":not("+u+")"),p.length===1&&x.nodeType===1?m.find.matchesSelector(x,u)?[x]:[]:m.find.matches(u,m.grep(p,function(k){return k.nodeType===1}))},m.fn.extend({find:function(u){var p,b,x=this.length,k=this;if(typeof u!="string")return this.pushStack(m(u).filter(function(){for(p=0;p1?m.uniqueSort(b):b},filter:function(u){return this.pushStack(Yt(this,u||[],!1))},not:function(u){return this.pushStack(Yt(this,u||[],!0))},is:function(u){return!!Yt(this,typeof u=="string"&&ot.test(u)?m(u):u||[],!1).length}});var tn,Bt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,yt=m.fn.init=function(u,p,b){var x,k;if(!u)return this;if(b=b||tn,typeof u=="string")if(u[0]==="<"&&u[u.length-1]===">"&&u.length>=3?x=[null,u,null]:x=Bt.exec(u),x&&(x[1]||!p))if(x[1]){if(p=p instanceof m?p[0]:p,m.merge(this,m.parseHTML(x[1],p&&p.nodeType?p.ownerDocument||p:I,!0)),vt.test(x[1])&&m.isPlainObject(p))for(x in p)T(this[x])?this[x](p[x]):this.attr(x,p[x]);return this}else return k=I.getElementById(x[2]),k&&(this[0]=k,this.length=1),this;else return!p||p.jquery?(p||b).find(u):this.constructor(p).find(u);else{if(u.nodeType)return this[0]=u,this.length=1,this;if(T(u))return b.ready!==void 0?b.ready(u):u(m)}return m.makeArray(u,this)};yt.prototype=m.fn,tn=m(I);var Rt=/^(?:parents|prev(?:Until|All))/,Qt={children:!0,contents:!0,next:!0,prev:!0};m.fn.extend({has:function(u){var p=m(u,this),b=p.length;return this.filter(function(){for(var x=0;x-1:b.nodeType===1&&m.find.matchesSelector(b,u))){O.push(b);break}}return this.pushStack(O.length>1?m.uniqueSort(O):O)},index:function(u){return u?typeof u=="string"?d.call(m(u),this[0]):d.call(this,u.jquery?u[0]:u):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(u,p){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(u,p))))},addBack:function(u){return this.add(u==null?this.prevObject:this.prevObject.filter(u))}});function Kt(u,p){for(;(u=u[p])&&u.nodeType!==1;);return u}m.each({parent:function(u){var p=u.parentNode;return p&&p.nodeType!==11?p:null},parents:function(u){return Qe(u,"parentNode")},parentsUntil:function(u,p,b){return Qe(u,"parentNode",b)},next:function(u){return Kt(u,"nextSibling")},prev:function(u){return Kt(u,"previousSibling")},nextAll:function(u){return Qe(u,"nextSibling")},prevAll:function(u){return Qe(u,"previousSibling")},nextUntil:function(u,p,b){return Qe(u,"nextSibling",b)},prevUntil:function(u,p,b){return Qe(u,"previousSibling",b)},siblings:function(u){return ht((u.parentNode||{}).firstChild,u)},children:function(u){return ht(u.firstChild)},contents:function(u){return u.contentDocument!=null&&a(u.contentDocument)?u.contentDocument:(F(u,"template")&&(u=u.content||u),m.merge([],u.childNodes))}},function(u,p){m.fn[u]=function(b,x){var k=m.map(this,p,b);return u.slice(-5)!=="Until"&&(x=b),x&&typeof x=="string"&&(k=m.filter(x,k)),this.length>1&&(Qt[u]||m.uniqueSort(k),Rt.test(u)&&k.reverse()),this.pushStack(k)}});var Dt=/[^\x20\t\r\n\f]+/g;function yn(u){var p={};return m.each(u.match(Dt)||[],function(b,x){p[x]=!0}),p}m.Callbacks=function(u){u=typeof u=="string"?yn(u):m.extend({},u);var p,b,x,k,O=[],M=[],X=-1,z=function(){for(k=k||u.once,x=p=!0;M.length;X=-1)for(b=M.shift();++X-1;)O.splice(he,1),he<=X&&X--}),this},has:function(_e){return _e?m.inArray(_e,O)>-1:O.length>0},empty:function(){return O&&(O=[]),this},disable:function(){return k=M=[],O=b="",this},disabled:function(){return!O},lock:function(){return k=M=[],!b&&!p&&(O=b=""),this},locked:function(){return!!k},fireWith:function(_e,xe){return k||(xe=xe||[],xe=[_e,xe.slice?xe.slice():xe],M.push(xe),p||z()),this},fire:function(){return oe.fireWith(this,arguments),this},fired:function(){return!!x}};return oe};function ln(u){return u}function A(u){throw u}function C(u,p,b,x){var k;try{u&&T(k=u.promise)?k.call(u).done(p).fail(b):u&&T(k=u.then)?k.call(u,p,b):p.apply(void 0,[u].slice(x))}catch(O){b.apply(void 0,[O])}}m.extend({Deferred:function(u){var p=[["notify","progress",m.Callbacks("memory"),m.Callbacks("memory"),2],["resolve","done",m.Callbacks("once memory"),m.Callbacks("once memory"),0,"resolved"],["reject","fail",m.Callbacks("once memory"),m.Callbacks("once memory"),1,"rejected"]],b="pending",x={state:function(){return b},always:function(){return k.done(arguments).fail(arguments),this},catch:function(O){return x.then(null,O)},pipe:function(){var O=arguments;return m.Deferred(function(M){m.each(p,function(X,z){var oe=T(O[z[4]])&&O[z[4]];k[z[1]](function(){var _e=oe&&oe.apply(this,arguments);_e&&T(_e.promise)?_e.promise().progress(M.notify).done(M.resolve).fail(M.reject):M[z[0]+"With"](this,oe?[_e]:arguments)})}),O=null}).promise()},then:function(O,M,X){var z=0;function oe(_e,xe,he,De){return function(){var Ke=this,Tt=arguments,wt=function(){var On,bs;if(!(_e=z&&(he!==A&&(Ke=void 0,Tt=[On]),xe.rejectWith(Ke,Tt))}};_e?Xn():(m.Deferred.getErrorHook?Xn.error=m.Deferred.getErrorHook():m.Deferred.getStackHook&&(Xn.error=m.Deferred.getStackHook()),t.setTimeout(Xn))}}return m.Deferred(function(_e){p[0][3].add(oe(0,_e,T(X)?X:ln,_e.notifyWith)),p[1][3].add(oe(0,_e,T(O)?O:ln)),p[2][3].add(oe(0,_e,T(M)?M:A))}).promise()},promise:function(O){return O!=null?m.extend(O,x):x}},k={};return m.each(p,function(O,M){var X=M[2],z=M[5];x[M[1]]=X.add,z&&X.add(function(){b=z},p[3-O][2].disable,p[3-O][3].disable,p[0][2].lock,p[0][3].lock),X.add(M[3].fire),k[M[0]]=function(){return k[M[0]+"With"](this===k?void 0:this,arguments),this},k[M[0]+"With"]=X.fireWith}),x.promise(k),u&&u.call(k,k),k},when:function(u){var p=arguments.length,b=p,x=Array(b),k=o.call(arguments),O=m.Deferred(),M=function(X){return function(z){x[X]=this,k[X]=arguments.length>1?o.call(arguments):z,--p||O.resolveWith(x,k)}};if(p<=1&&(C(u,O.done(M(b)).resolve,O.reject,!p),O.state()==="pending"||T(k[b]&&k[b].then)))return O.then();for(;b--;)C(k[b],M(b),O.reject);return O.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;m.Deferred.exceptionHook=function(u,p){t.console&&t.console.warn&&u&&G.test(u.name)&&t.console.warn("jQuery.Deferred exception: "+u.message,u.stack,p)},m.readyException=function(u){t.setTimeout(function(){throw u})};var ae=m.Deferred();m.fn.ready=function(u){return ae.then(u).catch(function(p){m.readyException(p)}),this},m.extend({isReady:!1,readyWait:1,ready:function(u){(u===!0?--m.readyWait:m.isReady)||(m.isReady=!0,!(u!==!0&&--m.readyWait>0)&&ae.resolveWith(I,[m]))}}),m.ready.then=ae.then;function te(){I.removeEventListener("DOMContentLoaded",te),t.removeEventListener("load",te),m.ready()}I.readyState==="complete"||I.readyState!=="loading"&&!I.documentElement.doScroll?t.setTimeout(m.ready):(I.addEventListener("DOMContentLoaded",te),t.addEventListener("load",te));var ve=function(u,p,b,x,k,O,M){var X=0,z=u.length,oe=b==null;if(R(b)==="object"){k=!0;for(X in b)ve(u,p,X,b[X],!0,O,M)}else if(x!==void 0&&(k=!0,T(x)||(M=!0),oe&&(M?(p.call(u,x),p=null):(oe=p,p=function(_e,xe,he){return oe.call(m(_e),he)})),p))for(;X1,null,!0)},removeData:function(u){return this.each(function(){ge.remove(this,u)})}}),m.extend({queue:function(u,p,b){var x;if(u)return p=(p||"fx")+"queue",x=Y.get(u,p),b&&(!x||Array.isArray(b)?x=Y.access(u,p,m.makeArray(b)):x.push(b)),x||[]},dequeue:function(u,p){p=p||"fx";var b=m.queue(u,p),x=b.length,k=b.shift(),O=m._queueHooks(u,p),M=function(){m.dequeue(u,p)};k==="inprogress"&&(k=b.shift(),x--),k&&(p==="fx"&&b.unshift("inprogress"),delete O.stop,k.call(u,M,O)),!x&&O&&O.empty.fire()},_queueHooks:function(u,p){var b=p+"queueHooks";return Y.get(u,b)||Y.access(u,b,{empty:m.Callbacks("once memory").add(function(){Y.remove(u,[p+"queue",b])})})}}),m.fn.extend({queue:function(u,p){var b=2;return typeof u!="string"&&(p=u,u="fx",b--),arguments.length\x20\t\r\n\f]*)/i,zi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var u=I.createDocumentFragment(),p=u.appendChild(I.createElement("div")),b=I.createElement("input");b.setAttribute("type","radio"),b.setAttribute("checked","checked"),b.setAttribute("name","t"),p.appendChild(b),S.checkClone=p.cloneNode(!0).cloneNode(!0).lastChild.checked,p.innerHTML="",S.noCloneChecked=!!p.cloneNode(!0).lastChild.defaultValue,p.innerHTML="",S.option=!!p.lastChild})();var br={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};br.tbody=br.tfoot=br.colgroup=br.caption=br.thead,br.th=br.td,S.option||(br.optgroup=br.option=[1,""]);function Hn(u,p){var b;return typeof u.getElementsByTagName<"u"?b=u.getElementsByTagName(p||"*"):typeof u.querySelectorAll<"u"?b=u.querySelectorAll(p||"*"):b=[],p===void 0||p&&F(u,p)?m.merge([u],b):b}function Oo(u,p){for(var b=0,x=u.length;b-1){k&&k.push(O);continue}if(oe=rt(O),M=Hn(xe.appendChild(O),"script"),oe&&Oo(M),b)for(_e=0;O=M[_e++];)zi.test(O.type||"")&&b.push(O)}return xe}var Eu=/^([^.]*)(?:\.(.+)|)/;function Qs(){return!0}function qi(){return!1}function $a(u,p,b,x,k,O){var M,X;if(typeof p=="object"){typeof b!="string"&&(x=x||b,b=void 0);for(X in p)$a(u,X,b,x,p[X],O);return u}if(x==null&&k==null?(k=b,x=b=void 0):k==null&&(typeof b=="string"?(k=x,x=void 0):(k=x,x=b,b=void 0)),k===!1)k=qi;else if(!k)return u;return O===1&&(M=k,k=function(z){return m().off(z),M.apply(this,arguments)},k.guid=M.guid||(M.guid=m.guid++)),u.each(function(){m.event.add(this,p,k,x,b)})}m.event={global:{},add:function(u,p,b,x,k){var O,M,X,z,oe,_e,xe,he,De,Ke,Tt,wt=Y.get(u);if(Fe(u))for(b.handler&&(O=b,b=O.handler,k=O.selector),k&&m.find.matchesSelector(Je,k),b.guid||(b.guid=m.guid++),(z=wt.events)||(z=wt.events=Object.create(null)),(M=wt.handle)||(M=wt.handle=function(Xn){return typeof m<"u"&&m.event.triggered!==Xn.type?m.event.dispatch.apply(u,arguments):void 0}),p=(p||"").match(Dt)||[""],oe=p.length;oe--;)X=Eu.exec(p[oe])||[],De=Tt=X[1],Ke=(X[2]||"").split(".").sort(),De&&(xe=m.event.special[De]||{},De=(k?xe.delegateType:xe.bindType)||De,xe=m.event.special[De]||{},_e=m.extend({type:De,origType:Tt,data:x,handler:b,guid:b.guid,selector:k,needsContext:k&&m.expr.match.needsContext.test(k),namespace:Ke.join(".")},O),(he=z[De])||(he=z[De]=[],he.delegateCount=0,(!xe.setup||xe.setup.call(u,x,Ke,M)===!1)&&u.addEventListener&&u.addEventListener(De,M)),xe.add&&(xe.add.call(u,_e),_e.handler.guid||(_e.handler.guid=b.guid)),k?he.splice(he.delegateCount++,0,_e):he.push(_e),m.event.global[De]=!0)},remove:function(u,p,b,x,k){var O,M,X,z,oe,_e,xe,he,De,Ke,Tt,wt=Y.hasData(u)&&Y.get(u);if(!(!wt||!(z=wt.events))){for(p=(p||"").match(Dt)||[""],oe=p.length;oe--;){if(X=Eu.exec(p[oe])||[],De=Tt=X[1],Ke=(X[2]||"").split(".").sort(),!De){for(De in z)m.event.remove(u,De+p[oe],b,x,!0);continue}for(xe=m.event.special[De]||{},De=(x?xe.delegateType:xe.bindType)||De,he=z[De]||[],X=X[2]&&new RegExp("(^|\\.)"+Ke.join("\\.(?:.*\\.|)")+"(\\.|$)"),M=O=he.length;O--;)_e=he[O],(k||Tt===_e.origType)&&(!b||b.guid===_e.guid)&&(!X||X.test(_e.namespace))&&(!x||x===_e.selector||x==="**"&&_e.selector)&&(he.splice(O,1),_e.selector&&he.delegateCount--,xe.remove&&xe.remove.call(u,_e));M&&!he.length&&((!xe.teardown||xe.teardown.call(u,Ke,wt.handle)===!1)&&m.removeEvent(u,De,wt.handle),delete z[De])}m.isEmptyObject(z)&&Y.remove(u,"handle events")}},dispatch:function(u){var p,b,x,k,O,M,X=new Array(arguments.length),z=m.event.fix(u),oe=(Y.get(this,"events")||Object.create(null))[z.type]||[],_e=m.event.special[z.type]||{};for(X[0]=z,p=1;p=1)){for(;oe!==this;oe=oe.parentNode||this)if(oe.nodeType===1&&!(u.type==="click"&&oe.disabled===!0)){for(O=[],M={},b=0;b-1:m.find(k,this,null,[oe]).length),M[k]&&O.push(x);O.length&&X.push({elem:oe,handlers:O})}}return oe=this,z\s*$/g;function Tu(u,p){return F(u,"table")&&F(p.nodeType!==11?p:p.firstChild,"tr")&&m(u).children("tbody")[0]||u}function Nh(u){return u.type=(u.getAttribute("type")!==null)+"/"+u.type,u}function Lh(u){return(u.type||"").slice(0,5)==="true/"?u.type=u.type.slice(5):u.removeAttribute("type"),u}function Cu(u,p){var b,x,k,O,M,X,z;if(p.nodeType===1){if(Y.hasData(u)&&(O=Y.get(u),z=O.events,z)){Y.remove(p,"handle events");for(k in z)for(b=0,x=z[k].length;b1&&typeof De=="string"&&!S.checkClone&&Oh.test(De))return u.each(function(Tt){var wt=u.eq(Tt);Ke&&(p[0]=De.call(this,Tt,wt.html())),Yi(wt,p,b,x)});if(xe&&(k=wu(p,u[0].ownerDocument,!1,u,x),O=k.firstChild,k.childNodes.length===1&&(k=O),O||x)){for(M=m.map(Hn(k,"script"),Nh),X=M.length;_e0&&Oo(M,!z&&Hn(u,"script")),X},cleanData:function(u){for(var p,b,x,k=m.event.special,O=0;(b=u[O])!==void 0;O++)if(Fe(b)){if(p=b[Y.expando]){if(p.events)for(x in p.events)k[x]?m.event.remove(b,x):m.removeEvent(b,x,p.handle);b[Y.expando]=void 0}b[ge.expando]&&(b[ge.expando]=void 0)}}}),m.fn.extend({detach:function(u){return ku(this,u,!0)},remove:function(u){return ku(this,u)},text:function(u){return ve(this,function(p){return p===void 0?m.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=p)})},null,u,arguments.length)},append:function(){return Yi(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var p=Tu(this,u);p.appendChild(u)}})},prepend:function(){return Yi(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var p=Tu(this,u);p.insertBefore(u,p.firstChild)}})},before:function(){return Yi(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this)})},after:function(){return Yi(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this.nextSibling)})},empty:function(){for(var u,p=0;(u=this[p])!=null;p++)u.nodeType===1&&(m.cleanData(Hn(u,!1)),u.textContent="");return this},clone:function(u,p){return u=u??!1,p=p??u,this.map(function(){return m.clone(this,u,p)})},html:function(u){return ve(this,function(p){var b=this[0]||{},x=0,k=this.length;if(p===void 0&&b.nodeType===1)return b.innerHTML;if(typeof p=="string"&&!Ah.test(p)&&!br[(Yn.exec(p)||["",""])[1].toLowerCase()]){p=m.htmlPrefilter(p);try{for(;x=0&&(z+=Math.max(0,Math.ceil(u["offset"+p[0].toUpperCase()+p.slice(1)]-O-z-X-.5))||0),z+oe}function Pl(u,p,b){var x=No(u),k=!S.boxSizingReliable()||b,O=k&&m.css(u,"boxSizing",!1,x)==="border-box",M=O,X=Fa(u,p,x),z="offset"+p[0].toUpperCase()+p.slice(1);if(kl.test(X)){if(!b)return X;X="auto"}return(!S.boxSizingReliable()&&O||!S.reliableTrDimensions()&&F(u,"tr")||X==="auto"||!parseFloat(X)&&m.css(u,"display",!1,x)==="inline")&&u.getClientRects().length&&(O=m.css(u,"boxSizing",!1,x)==="border-box",M=z in u,M&&(X=u[z])),X=parseFloat(X)||0,X+Ol(u,p,b||(O?"border":"content"),M,x,X)+"px"}m.extend({cssHooks:{opacity:{get:function(u,p){if(p){var b=Fa(u,"opacity");return b===""?"1":b}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(u,p,b,x){if(!(!u||u.nodeType===3||u.nodeType===8||!u.style)){var k,O,M,X=Te(p),z=Al.test(p),oe=u.style;if(z||(p=Ro(X)),M=m.cssHooks[p]||m.cssHooks[X],b!==void 0){if(O=typeof b,O==="string"&&(k=Ne.exec(b))&&k[1]&&(b=st(u,p,k),O="number"),b==null||b!==b)return;O==="number"&&!z&&(b+=k&&k[3]||(m.cssNumber[X]?"":"px")),!S.clearCloneStyle&&b===""&&p.indexOf("background")===0&&(oe[p]="inherit"),(!M||!("set"in M)||(b=M.set(u,b,x))!==void 0)&&(z?oe.setProperty(p,b):oe[p]=b)}else return M&&"get"in M&&(k=M.get(u,!1,x))!==void 0?k:oe[p]}},css:function(u,p,b,x){var k,O,M,X=Te(p),z=Al.test(p);return z||(p=Ro(X)),M=m.cssHooks[p]||m.cssHooks[X],M&&"get"in M&&(k=M.get(u,!0,b)),k===void 0&&(k=Fa(u,p,x)),k==="normal"&&p in Du&&(k=Du[p]),b===""||b?(O=parseFloat(k),b===!0||isFinite(O)?O||0:k):k}}),m.each(["height","width"],function(u,p){m.cssHooks[p]={get:function(b,x,k){if(x)return Ru.test(m.css(b,"display"))&&(!b.getClientRects().length||!b.getBoundingClientRect().width)?Au(b,Rh,function(){return Pl(b,p,k)}):Pl(b,p,k)},set:function(b,x,k){var O,M=No(b),X=!S.scrollboxSize()&&M.position==="absolute",z=X||k,oe=z&&m.css(b,"boxSizing",!1,M)==="border-box",_e=k?Ol(b,p,k,oe,M):0;return oe&&X&&(_e-=Math.ceil(b["offset"+p[0].toUpperCase()+p.slice(1)]-parseFloat(M[p])-Ol(b,p,"border",!1,M)-.5)),_e&&(O=Ne.exec(x))&&(O[3]||"px")!=="px"&&(b.style[p]=x,x=m.css(b,p)),Mu(b,x,_e)}}}),m.cssHooks.marginLeft=Ba(S.reliableMarginLeft,function(u,p){if(p)return(parseFloat(Fa(u,"marginLeft"))||u.getBoundingClientRect().left-Au(u,{marginLeft:0},function(){return u.getBoundingClientRect().left}))+"px"}),m.each({margin:"",padding:"",border:"Width"},function(u,p){m.cssHooks[u+p]={expand:function(b){for(var x=0,k={},O=typeof b=="string"?b.split(" "):[b];x<4;x++)k[u+He[x]+p]=O[x]||O[x-2]||O[0];return k}},u!=="margin"&&(m.cssHooks[u+p].set=Mu)}),m.fn.extend({css:function(u,p){return ve(this,function(b,x,k){var O,M,X={},z=0;if(Array.isArray(x)){for(O=No(b),M=x.length;z1)}});function dr(u,p,b,x,k){return new dr.prototype.init(u,p,b,x,k)}m.Tween=dr,dr.prototype={constructor:dr,init:function(u,p,b,x,k,O){this.elem=u,this.prop=b,this.easing=k||m.easing._default,this.options=p,this.start=this.now=this.cur(),this.end=x,this.unit=O||(m.cssNumber[b]?"":"px")},cur:function(){var u=dr.propHooks[this.prop];return u&&u.get?u.get(this):dr.propHooks._default.get(this)},run:function(u){var p,b=dr.propHooks[this.prop];return this.options.duration?this.pos=p=m.easing[this.easing](u,this.options.duration*u,0,1,this.options.duration):this.pos=p=u,this.now=(this.end-this.start)*p+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),b&&b.set?b.set(this):dr.propHooks._default.set(this),this}},dr.prototype.init.prototype=dr.prototype,dr.propHooks={_default:{get:function(u){var p;return u.elem.nodeType!==1||u.elem[u.prop]!=null&&u.elem.style[u.prop]==null?u.elem[u.prop]:(p=m.css(u.elem,u.prop,""),!p||p==="auto"?0:p)},set:function(u){m.fx.step[u.prop]?m.fx.step[u.prop](u):u.elem.nodeType===1&&(m.cssHooks[u.prop]||u.elem.style[Ro(u.prop)]!=null)?m.style(u.elem,u.prop,u.now+u.unit):u.elem[u.prop]=u.now}}},dr.propHooks.scrollTop=dr.propHooks.scrollLeft={set:function(u){u.elem.nodeType&&u.elem.parentNode&&(u.elem[u.prop]=u.now)}},m.easing={linear:function(u){return u},swing:function(u){return .5-Math.cos(u*Math.PI)/2},_default:"swing"},m.fx=dr.prototype.init,m.fx.step={};var bi,Xi,Dh=/^(?:toggle|show|hide)$/,$u=/queueHooks$/;function Ji(){Xi&&(I.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Ji):t.setTimeout(Ji,m.fx.interval),m.fx.tick())}function Nl(){return t.setTimeout(function(){bi=void 0}),bi=Date.now()}function Do(u,p){var b,x=0,k={height:u};for(p=p?1:0;x<4;x+=2-p)b=He[x],k["margin"+b]=k["padding"+b]=u;return p&&(k.opacity=k.width=u),k}function Ll(u,p,b){for(var x,k=(ns.tweeners[p]||[]).concat(ns.tweeners["*"]),O=0,M=k.length;O1)},removeAttr:function(u){return this.each(function(){m.removeAttr(this,u)})}}),m.extend({attr:function(u,p,b){var x,k,O=u.nodeType;if(!(O===3||O===8||O===2)){if(typeof u.getAttribute>"u")return m.prop(u,p,b);if((O!==1||!m.isXMLDoc(u))&&(k=m.attrHooks[p.toLowerCase()]||(m.expr.match.bool.test(p)?Dl:void 0)),b!==void 0){if(b===null){m.removeAttr(u,p);return}return k&&"set"in k&&(x=k.set(u,b,p))!==void 0?x:(u.setAttribute(p,b+""),b)}return k&&"get"in k&&(x=k.get(u,p))!==null?x:(x=m.find.attr(u,p),x??void 0)}},attrHooks:{type:{set:function(u,p){if(!S.radioValue&&p==="radio"&&F(u,"input")){var b=u.value;return u.setAttribute("type",p),b&&(u.value=b),p}}}},removeAttr:function(u,p){var b,x=0,k=p&&p.match(Dt);if(k&&u.nodeType===1)for(;b=k[x++];)u.removeAttribute(b)}}),Dl={set:function(u,p,b){return p===!1?m.removeAttr(u,b):u.setAttribute(b,b),b}},m.each(m.expr.match.bool.source.match(/\w+/g),function(u,p){var b=vi[p]||m.find.attr;vi[p]=function(x,k,O){var M,X,z=k.toLowerCase();return O||(X=vi[z],vi[z]=M,M=b(x,k,O)!=null?z:null,vi[z]=X),M}});var Ml=/^(?:input|select|textarea|button)$/i,Zi=/^(?:a|area)$/i;m.fn.extend({prop:function(u,p){return ve(this,m.prop,u,p,arguments.length>1)},removeProp:function(u){return this.each(function(){delete this[m.propFix[u]||u]})}}),m.extend({prop:function(u,p,b){var x,k,O=u.nodeType;if(!(O===3||O===8||O===2))return(O!==1||!m.isXMLDoc(u))&&(p=m.propFix[p]||p,k=m.propHooks[p]),b!==void 0?k&&"set"in k&&(x=k.set(u,b,p))!==void 0?x:u[p]=b:k&&"get"in k&&(x=k.get(u,p))!==null?x:u[p]},propHooks:{tabIndex:{get:function(u){var p=m.find.attr(u,"tabindex");return p?parseInt(p,10):Ml.test(u.nodeName)||Zi.test(u.nodeName)&&u.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),S.optSelected||(m.propHooks.selected={get:function(u){var p=u.parentNode;return p&&p.parentNode&&p.parentNode.selectedIndex,null},set:function(u){var p=u.parentNode;p&&(p.selectedIndex,p.parentNode&&p.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});function ei(u){var p=u.match(Dt)||[];return p.join(" ")}function ti(u){return u.getAttribute&&u.getAttribute("class")||""}function $l(u){return Array.isArray(u)?u:typeof u=="string"?u.match(Dt)||[]:[]}m.fn.extend({addClass:function(u){var p,b,x,k,O,M;return T(u)?this.each(function(X){m(this).addClass(u.call(this,X,ti(this)))}):(p=$l(u),p.length?this.each(function(){if(x=ti(this),b=this.nodeType===1&&" "+ei(x)+" ",b){for(O=0;O-1;)b=b.replace(" "+k+" "," ");M=ei(b),x!==M&&this.setAttribute("class",M)}}):this):this.attr("class","")},toggleClass:function(u,p){var b,x,k,O,M=typeof u,X=M==="string"||Array.isArray(u);return T(u)?this.each(function(z){m(this).toggleClass(u.call(this,z,ti(this),p),p)}):typeof p=="boolean"&&X?p?this.addClass(u):this.removeClass(u):(b=$l(u),this.each(function(){if(X)for(O=m(this),k=0;k-1)return!0;return!1}});var Bu=/\r/g;m.fn.extend({val:function(u){var p,b,x,k=this[0];return arguments.length?(x=T(u),this.each(function(O){var M;this.nodeType===1&&(x?M=u.call(this,O,m(this).val()):M=u,M==null?M="":typeof M=="number"?M+="":Array.isArray(M)&&(M=m.map(M,function(X){return X==null?"":X+""})),p=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],(!p||!("set"in p)||p.set(this,M,"value")===void 0)&&(this.value=M))})):k?(p=m.valHooks[k.type]||m.valHooks[k.nodeName.toLowerCase()],p&&"get"in p&&(b=p.get(k,"value"))!==void 0?b:(b=k.value,typeof b=="string"?b.replace(Bu,""):b??"")):void 0}}),m.extend({valHooks:{option:{get:function(u){var p=m.find.attr(u,"value");return p??ei(m.text(u))}},select:{get:function(u){var p,b,x,k=u.options,O=u.selectedIndex,M=u.type==="select-one",X=M?null:[],z=M?O+1:k.length;for(O<0?x=z:x=M?O:0;x-1)&&(b=!0);return b||(u.selectedIndex=-1),O}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(u,p){if(Array.isArray(p))return u.checked=m.inArray(m(u).val(),p)>-1}},S.checkOn||(m.valHooks[this].get=function(u){return u.getAttribute("value")===null?"on":u.value})});var Qi=t.location,Fl={guid:Date.now()},Mo=/\?/;m.parseXML=function(u){var p,b;if(!u||typeof u!="string")return null;try{p=new t.DOMParser().parseFromString(u,"text/xml")}catch{}return b=p&&p.getElementsByTagName("parsererror")[0],(!p||b)&&m.error("Invalid XML: "+(b?m.map(b.childNodes,function(x){return x.textContent}).join(` `):u)),p};var Uu=/^(?:focusinfocus|focusoutblur)$/,Hu=function(u){u.stopPropagation()};m.extend(m.event,{trigger:function(u,p,b,x){var k,O,M,X,z,oe,_e,xe,he=[b||I],De=g.call(u,"type")?u.type:u,Ke=g.call(u,"namespace")?u.namespace.split("."):[];if(O=xe=M=b=b||I,!(b.nodeType===3||b.nodeType===8)&&!Uu.test(De+m.event.triggered)&&(De.indexOf(".")>-1&&(Ke=De.split("."),De=Ke.shift(),Ke.sort()),z=De.indexOf(":")<0&&"on"+De,u=u[m.expando]?u:new m.Event(De,typeof u=="object"&&u),u.isTrigger=x?2:3,u.namespace=Ke.join("."),u.rnamespace=u.namespace?new RegExp("(^|\\.)"+Ke.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=void 0,u.target||(u.target=b),p=p==null?[u]:m.makeArray(p,[u]),_e=m.event.special[De]||{},!(!x&&_e.trigger&&_e.trigger.apply(b,p)===!1))){if(!x&&!_e.noBubble&&!N(b)){for(X=_e.delegateType||De,Uu.test(X+De)||(O=O.parentNode);O;O=O.parentNode)he.push(O),M=O;M===(b.ownerDocument||I)&&he.push(M.defaultView||M.parentWindow||t)}for(k=0;(O=he[k++])&&!u.isPropagationStopped();)xe=O,u.type=k>1?X:_e.bindType||De,oe=(Y.get(O,"events")||Object.create(null))[u.type]&&Y.get(O,"handle"),oe&&oe.apply(O,p),oe=z&&O[z],oe&&oe.apply&&Fe(O)&&(u.result=oe.apply(O,p),u.result===!1&&u.preventDefault());return u.type=De,!x&&!u.isDefaultPrevented()&&(!_e._default||_e._default.apply(he.pop(),p)===!1)&&Fe(b)&&z&&T(b[De])&&!N(b)&&(M=b[z],M&&(b[z]=null),m.event.triggered=De,u.isPropagationStopped()&&xe.addEventListener(De,Hu),b[De](),u.isPropagationStopped()&&xe.removeEventListener(De,Hu),m.event.triggered=void 0,M&&(b[z]=M)),u.result}},simulate:function(u,p,b){var x=m.extend(new m.Event,b,{type:u,isSimulated:!0});m.event.trigger(x,null,p)}}),m.fn.extend({trigger:function(u,p){return this.each(function(){m.event.trigger(u,p,this)})},triggerHandler:function(u,p){var b=this[0];if(b)return m.event.trigger(u,p,b,!0)}});var Mh=/\[\]$/,Bl=/\r?\n/g,$h=/^(?:submit|button|image|reset|file)$/i,Fh=/^(?:input|select|textarea|keygen)/i;function Ul(u,p,b,x){var k;if(Array.isArray(p))m.each(p,function(O,M){b||Mh.test(u)?x(u,M):Ul(u+"["+(typeof M=="object"&&M!=null?O:"")+"]",M,b,x)});else if(!b&&R(p)==="object")for(k in p)Ul(u+"["+k+"]",p[k],b,x);else x(u,p)}m.param=function(u,p){var b,x=[],k=function(O,M){var X=T(M)?M():M;x[x.length]=encodeURIComponent(O)+"="+encodeURIComponent(X??"")};if(u==null)return"";if(Array.isArray(u)||u.jquery&&!m.isPlainObject(u))m.each(u,function(){k(this.name,this.value)});else for(b in u)Ul(b,u[b],p,k);return x.join("&")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var u=m.prop(this,"elements");return u?m.makeArray(u):this}).filter(function(){var u=this.type;return this.name&&!m(this).is(":disabled")&&Fh.test(this.nodeName)&&!$h.test(u)&&(this.checked||!It.test(u))}).map(function(u,p){var b=m(this).val();return b==null?null:Array.isArray(b)?m.map(b,function(x){return{name:p.name,value:x.replace(Bl,`\r `)}}):{name:p.name,value:b.replace(Bl,`\r -`)}}).get()}});var Bh=/%20/g,Hl=/#.*$/,Uh=/([?&])_=[^&]*/,Hh=/^(.*?):[ \t]*([^\r\n]*)$/mg,jh=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Vh=/^(?:GET|HEAD)$/,Wh=/^\/\//,bn={},fn={},ju="*/".concat("*"),jl=I.createElement("a");jl.href=Qi.href;function Vu(u){return function(p,b){typeof p!="string"&&(b=p,p="*");var x,k=0,O=p.toLowerCase().match(Dt)||[];if(T(b))for(;x=O[k++];)x[0]==="+"?(x=x.slice(1)||"*",(u[x]=u[x]||[]).unshift(b)):(u[x]=u[x]||[]).push(b)}}function Wu(u,p,b,x){var k={},O=u===fn;function M(X){var z;return k[X]=!0,m.each(u[X]||[],function(oe,_e){var xe=_e(p,b,x);if(typeof xe=="string"&&!O&&!k[xe])return p.dataTypes.unshift(xe),M(xe),!1;if(O)return!(z=xe)}),z}return M(p.dataTypes[0])||!k["*"]&&M("*")}function Vl(u,p){var b,x,k=m.ajaxSettings.flatOptions||{};for(b in p)p[b]!==void 0&&((k[b]?u:x||(x={}))[b]=p[b]);return x&&m.extend(!0,u,x),u}function Gh(u,p,b){for(var x,k,O,M,X=u.contents,z=u.dataTypes;z[0]==="*";)z.shift(),x===void 0&&(x=u.mimeType||p.getResponseHeader("Content-Type"));if(x){for(k in X)if(X[k]&&X[k].test(x)){z.unshift(k);break}}if(z[0]in b)O=z[0];else{for(k in b){if(!z[0]||u.converters[k+" "+z[0]]){O=k;break}M||(M=k)}O=O||M}if(O)return O!==z[0]&&z.unshift(O),b[O]}function Gu(u,p,b,x){var k,O,M,X,z,oe={},_e=u.dataTypes.slice();if(_e[1])for(M in u.converters)oe[M.toLowerCase()]=u.converters[M];for(O=_e.shift();O;)if(u.responseFields[O]&&(b[u.responseFields[O]]=p),!z&&x&&u.dataFilter&&(p=u.dataFilter(p,u.dataType)),z=O,O=_e.shift(),O){if(O==="*")O=z;else if(z!=="*"&&z!==O){if(M=oe[z+" "+O]||oe["* "+O],!M){for(k in oe)if(X=k.split(" "),X[1]===O&&(M=oe[z+" "+X[0]]||oe["* "+X[0]],M)){M===!0?M=oe[k]:oe[k]!==!0&&(O=X[0],_e.unshift(X[1]));break}}if(M!==!0)if(M&&u.throws)p=M(p);else try{p=M(p)}catch(xe){return{state:"parsererror",error:M?xe:"No conversion from "+z+" to "+O}}}}return{state:"success",data:p}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Qi.href,type:"GET",isLocal:jh.test(Qi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ju,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":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(u,p){return p?Vl(Vl(u,m.ajaxSettings),p):Vl(m.ajaxSettings,u)},ajaxPrefilter:Vu(bn),ajaxTransport:Vu(fn),ajax:function(u,p){typeof u=="object"&&(p=u,u=void 0),p=p||{};var b,x,k,O,M,X,z,oe,_e,xe,he=m.ajaxSetup({},p),De=he.context||he,Ke=he.context&&(De.nodeType||De.jquery)?m(De):m.event,Tt=m.Deferred(),wt=m.Callbacks("once memory"),Xn=he.statusCode||{},On={},bs={},vs="canceled",jt={readyState:0,getResponseHeader:function(Vt){var gn;if(z){if(!O)for(O={};gn=Hh.exec(k);)O[gn[1].toLowerCase()+" "]=(O[gn[1].toLowerCase()+" "]||[]).concat(gn[2]);gn=O[Vt.toLowerCase()+" "]}return gn==null?null:gn.join(", ")},getAllResponseHeaders:function(){return z?k:null},setRequestHeader:function(Vt,gn){return z==null&&(Vt=bs[Vt.toLowerCase()]=bs[Vt.toLowerCase()]||Vt,On[Vt]=gn),this},overrideMimeType:function(Vt){return z==null&&(he.mimeType=Vt),this},statusCode:function(Vt){var gn;if(Vt)if(z)jt.always(Vt[jt.status]);else for(gn in Vt)Xn[gn]=[Xn[gn],Vt[gn]];return this},abort:function(Vt){var gn=Vt||vs;return b&&b.abort(gn),ni(0,gn),this}};if(Tt.promise(jt),he.url=((u||he.url||Qi.href)+"").replace(Wh,Qi.protocol+"//"),he.type=p.method||p.type||he.method||he.type,he.dataTypes=(he.dataType||"*").toLowerCase().match(Dt)||[""],he.crossDomain==null){X=I.createElement("a");try{X.href=he.url,X.href=X.href,he.crossDomain=jl.protocol+"//"+jl.host!=X.protocol+"//"+X.host}catch{he.crossDomain=!0}}if(he.data&&he.processData&&typeof he.data!="string"&&(he.data=m.param(he.data,he.traditional)),Wu(bn,he,p,jt),z)return jt;oe=m.event&&he.global,oe&&m.active++===0&&m.event.trigger("ajaxStart"),he.type=he.type.toUpperCase(),he.hasContent=!Vh.test(he.type),x=he.url.replace(Hl,""),he.hasContent?he.data&&he.processData&&(he.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(he.data=he.data.replace(Bh,"+")):(xe=he.url.slice(x.length),he.data&&(he.processData||typeof he.data=="string")&&(x+=(Mo.test(x)?"&":"?")+he.data,delete he.data),he.cache===!1&&(x=x.replace(Uh,"$1"),xe=(Mo.test(x)?"&":"?")+"_="+Fl.guid+++xe),he.url=x+xe),he.ifModified&&(m.lastModified[x]&&jt.setRequestHeader("If-Modified-Since",m.lastModified[x]),m.etag[x]&&jt.setRequestHeader("If-None-Match",m.etag[x])),(he.data&&he.hasContent&&he.contentType!==!1||p.contentType)&&jt.setRequestHeader("Content-Type",he.contentType),jt.setRequestHeader("Accept",he.dataTypes[0]&&he.accepts[he.dataTypes[0]]?he.accepts[he.dataTypes[0]]+(he.dataTypes[0]!=="*"?", "+ju+"; q=0.01":""):he.accepts["*"]);for(_e in he.headers)jt.setRequestHeader(_e,he.headers[_e]);if(he.beforeSend&&(he.beforeSend.call(De,jt,he)===!1||z))return jt.abort();if(vs="abort",wt.add(he.complete),jt.done(he.success),jt.fail(he.error),b=Wu(fn,he,p,jt),!b)ni(-1,"No Transport");else{if(jt.readyState=1,oe&&Ke.trigger("ajaxSend",[jt,he]),z)return jt;he.async&&he.timeout>0&&(M=t.setTimeout(function(){jt.abort("timeout")},he.timeout));try{z=!1,b.send(On,ni)}catch(Vt){if(z)throw Vt;ni(-1,Vt)}}function ni(Vt,gn,Ua,Fo){var rs,_i,Hr,Ms,ri,vr=gn;z||(z=!0,M&&t.clearTimeout(M),b=void 0,k=Fo||"",jt.readyState=Vt>0?4:0,rs=Vt>=200&&Vt<300||Vt===304,Ua&&(Ms=Gh(he,jt,Ua)),!rs&&m.inArray("script",he.dataTypes)>-1&&m.inArray("json",he.dataTypes)<0&&(he.converters["text script"]=function(){}),Ms=Gu(he,Ms,jt,rs),rs?(he.ifModified&&(ri=jt.getResponseHeader("Last-Modified"),ri&&(m.lastModified[x]=ri),ri=jt.getResponseHeader("etag"),ri&&(m.etag[x]=ri)),Vt===204||he.type==="HEAD"?vr="nocontent":Vt===304?vr="notmodified":(vr=Ms.state,_i=Ms.data,Hr=Ms.error,rs=!Hr)):(Hr=vr,(Vt||!vr)&&(vr="error",Vt<0&&(Vt=0))),jt.status=Vt,jt.statusText=(gn||vr)+"",rs?Tt.resolveWith(De,[_i,vr,jt]):Tt.rejectWith(De,[jt,vr,Hr]),jt.statusCode(Xn),Xn=void 0,oe&&Ke.trigger(rs?"ajaxSuccess":"ajaxError",[jt,he,rs?_i:Hr]),wt.fireWith(De,[jt,vr]),oe&&(Ke.trigger("ajaxComplete",[jt,he]),--m.active||m.event.trigger("ajaxStop")))}return jt},getJSON:function(u,p,b){return m.get(u,p,b,"json")},getScript:function(u,p){return m.get(u,void 0,p,"script")}}),m.each(["get","post"],function(u,p){m[p]=function(b,x,k,O){return T(x)&&(O=O||k,k=x,x=void 0),m.ajax(m.extend({url:b,type:p,dataType:O,data:x,success:k},m.isPlainObject(b)&&b))}}),m.ajaxPrefilter(function(u){var p;for(p in u.headers)p.toLowerCase()==="content-type"&&(u.contentType=u.headers[p]||"")}),m._evalUrl=function(u,p,b){return m.ajax({url:u,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(x){m.globalEval(x,p,b)}})},m.fn.extend({wrapAll:function(u){var p;return this[0]&&(T(u)&&(u=u.call(this[0])),p=m(u,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&p.insertBefore(this[0]),p.map(function(){for(var b=this;b.firstElementChild;)b=b.firstElementChild;return b}).append(this)),this},wrapInner:function(u){return T(u)?this.each(function(p){m(this).wrapInner(u.call(this,p))}):this.each(function(){var p=m(this),b=p.contents();b.length?b.wrapAll(u):p.append(u)})},wrap:function(u){var p=T(u);return this.each(function(b){m(this).wrapAll(p?u.call(this,b):u)})},unwrap:function(u){return this.parent(u).not("body").each(function(){m(this).replaceWith(this.childNodes)}),this}}),m.expr.pseudos.hidden=function(u){return!m.expr.pseudos.visible(u)},m.expr.pseudos.visible=function(u){return!!(u.offsetWidth||u.offsetHeight||u.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Kh={0:200,1223:204},An=m.ajaxSettings.xhr();S.cors=!!An&&"withCredentials"in An,S.ajax=An=!!An,m.ajaxTransport(function(u){var p,b;if(S.cors||An&&!u.crossDomain)return{send:function(x,k){var O,M=u.xhr();if(M.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(O in u.xhrFields)M[O]=u.xhrFields[O];u.mimeType&&M.overrideMimeType&&M.overrideMimeType(u.mimeType),!u.crossDomain&&!x["X-Requested-With"]&&(x["X-Requested-With"]="XMLHttpRequest");for(O in x)M.setRequestHeader(O,x[O]);p=function(X){return function(){p&&(p=b=M.onload=M.onerror=M.onabort=M.ontimeout=M.onreadystatechange=null,X==="abort"?M.abort():X==="error"?typeof M.status!="number"?k(0,"error"):k(M.status,M.statusText):k(Kh[M.status]||M.status,M.statusText,(M.responseType||"text")!=="text"||typeof M.responseText!="string"?{binary:M.response}:{text:M.responseText},M.getAllResponseHeaders()))}},M.onload=p(),b=M.onerror=M.ontimeout=p("error"),M.onabort!==void 0?M.onabort=b:M.onreadystatechange=function(){M.readyState===4&&t.setTimeout(function(){p&&b()})},p=p("abort");try{M.send(u.hasContent&&u.data||null)}catch(X){if(p)throw X}},abort:function(){p&&p()}}}),m.ajaxPrefilter(function(u){u.crossDomain&&(u.contents.script=!1)}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(u){return m.globalEval(u),u}}}),m.ajaxPrefilter("script",function(u){u.cache===void 0&&(u.cache=!1),u.crossDomain&&(u.type="GET")}),m.ajaxTransport("script",function(u){if(u.crossDomain||u.scriptAttrs){var p,b;return{send:function(x,k){p=m("