diff --git a/.github/git-pr-release-template.erb b/.github/git-pr-release-template.erb new file mode 100644 index 0000000..a47b522 --- /dev/null +++ b/.github/git-pr-release-template.erb @@ -0,0 +1,3 @@ +<%= ENV['GIT_PR_RELEASE_TITLE'] %> + +<%= ENV['GIT_PR_RELEASE_BODY'] %> diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..6df2efc --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,61 @@ +prerelease: true + +# Filter previous releases to consider target_commitish +include-pre-releases: true +filter-by-commitish: true + +categories: + - title: 'BREAKING CHANGES' + labels: + - 'type/breaking' + - title: '💎 Features' + labels: + - 'type/feature' + - title: '🚀 Improvement' + labels: + - 'type/improvement' + - title: '🐛 Bug Fixes' + labels: + - 'type/bug' + - title: '🧰 Maintenance' + labels: + - 'type/support' + - 'type/dependencies' +category-template: '### $TITLE' +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +autolabeler: + - label: 'type/feature' + branch: + - '/^feat\/.+/' + title: + - '/^feat/i' + - label: 'type/improvement' + branch: + - '/^imprv\/.+/' + title: + - '/^imprv/i' + - label: 'type/bug' + branch: + - '/^fix\/.+/' + title: + - '/^fix/i' + - label: 'type/support' + branch: + - '/^support\/.+/' + title: + - '/^support/i' + - '/^chore/i' + - '/^ci/i' + - '/^docs/i' + - '/^test/i' +include-labels: + - type/breaking + - type/feature + - type/improvement + - type/bug + - type/support + - type/dependencies +exclude-labels: + - 'flag/exclude-from-changelog' +template: | + $CHANGES diff --git a/.github/workflows/pr_check_title.yaml b/.github/workflows/pr_check_title.yaml new file mode 100644 index 0000000..9fe7a5b --- /dev/null +++ b/.github/workflows/pr_check_title.yaml @@ -0,0 +1,38 @@ +name: Pull Request - Check title + +on: + pull_request: + branches: + - main + - dev/*.*.* + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, edited, synchronize] + +jobs: + check-title: + runs-on: ubuntu-latest + + # Ignore these cases + # - Out of changelog target + # - Created by "dependabot", "github-actions" + if: > + ( + !contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' ) + && !startsWith( github.head_ref, 'dependabot/' ) + && !contains( github.actor, 'github-actions' ) + ) + steps: + - uses: amannn/action-semantic-pull-request@v5.4.0 + with: + types: | + feat + imprv + fix + support + chore + ci + docs + test + requireScope: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr_labelling.yaml b/.github/workflows/pr_labelling.yaml new file mode 100644 index 0000000..4f54edc --- /dev/null +++ b/.github/workflows/pr_labelling.yaml @@ -0,0 +1,26 @@ +name: Pull Request - Labelling + +permissions: + pull-requests: write +on: + pull_request: + branches: + - main + - dev/*.*.* + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, edited, synchronize] + +jobs: + # Refs: https://github.com/release-drafter/release-drafter + labeling: + runs-on: ubuntu-latest + + if: > + !contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' ) + + steps: + - uses: release-drafter/release-drafter@v5 + with: + disable-releaser: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..1419437 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,95 @@ +name: Release + +permissions: + pull-requests: write + contents: write +on: + pull_request: + branches: + - release/current + - release/*.*.* + types: [closed] + +jobs: + release: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + outputs: + RELEASED_VERSION: ${{ steps.package-json.outputs.packageVersion }} + + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.base.ref }} + - uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Bump version (ex. from "v1.0.0-RC.0" to "v1.0.0") + run: yarn version --no-git-tag-version --preid=RC --patch + + - name: Retrieve information from package.json + uses: myrotvorets/info-from-package-json-action@2.0.0 + id: package-json + + - name: Update CHANGELOG.md + uses: stefanzweifel/changelog-updater-action@v1 + with: + latest-version: v${{ steps.package-json.outputs.packageVersion }} + release-notes: ${{ github.event.pull_request.body }} + + - name: 'Git commit, tagging and push (commit message: "Release v1.0.0", tag name: "v1.0.0")' + uses: stefanzweifel/git-auto-commit-action@v5 + with: + branch: ${{ github.event.pull_request.base.ref }} + commit_message: Release v${{ steps.package-json.outputs.packageVersion }} + tagging_message: v${{ steps.package-json.outputs.packageVersion }} + + - name: Publish GitHub Release + uses: softprops/action-gh-release@v1 + with: + body: ${{ github.event.pull_request.body }} + tag_name: v${{ steps.package-json.outputs.packageVersion }} + target_commitish: ${{ github.head_ref }} + + - name: Delete GitHub draft Releases + uses: hugo19941994/delete-draft-releases@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + create-pr-for-next-rc: + needs: release + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + ref: v${{ needs.release.outputs.RELEASED_VERSION }} + - uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Bump version for next RC (ex. from "v1.0.0" to "v1.0.1-RC.0") + run: yarn version --no-git-tag-version --preid=RC --prepatch + + - name: Retrieve information from package.json + uses: myrotvorets/info-from-package-json-action@1.2.0 + id: package-json + + - name: Git commit + uses: github-actions-x/commit@v2.9 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + push-branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }} + commit-message: 'Bump version' + name: GitHub Action + + - name: Create PR + uses: repo-sync/pull-request@v2 + with: + source_branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }} + destination_branch: ${{ github.head_ref }} + pr_title: Prepare v${{ steps.package-json.outputs.packageVersion }} + pr_label: flag/exclude-from-changelog,type/prepare-next-version + pr_body: '[skip ci] An automated PR generated by create-pr-for-next-rc' + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update_draft.yaml b/.github/workflows/update_draft.yaml new file mode 100644 index 0000000..6ccdf0d --- /dev/null +++ b/.github/workflows/update_draft.yaml @@ -0,0 +1,77 @@ +name: Update draft + +permissions: + pull-requests: write + contents: write +on: + push: + branches: + - main + - dev/*.*.* +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + # Refs: https://github.com/release-drafter/release-drafter + update-release-draft: + runs-on: ubuntu-latest + + outputs: + CURRENT_VERSION: ${{ steps.package-json.outputs.packageVersion }} + RELEASE_DRAFT_BODY: ${{ steps.release-drafter.outputs.body }} + + steps: + - uses: actions/checkout@v4 + + - name: Retrieve information from package.json + uses: myrotvorets/info-from-package-json-action@2.0.0 + id: package-json + + # Drafts your next Release notes as Pull Requests are merged into "main" + - uses: release-drafter/release-drafter@v5 + id: release-drafter + with: + name: v${{ steps.package-json.outputs.packageVersion }} + tag: v${{ steps.package-json.outputs.packageVersion }} + version: ${{ steps.package-json.outputs.packageVersion }} + disable-autolabeler: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # Refs: https://github.com/bakunyo/git-pr-release-action + update-release-pr: + needs: update-release-draft + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Get release version + id: release-version + run: | + RELEASE_VERSION=`npx semver -i patch ${{ needs.update-release-draft.outputs.CURRENT_VERSION }}` + echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_OUTPUT + + - name: Get base branch + id: base-branch + run: | + GITHUB_REF_NAME=${{ github.ref_name }} + WILDCARD_VERSION=${GITHUB_REF_NAME#dev/} + # set "release/current" or "release/X.X.x" to BASE_BRANCH + BASE_BRANCH=release/${{ github.ref_name == 'main' && 'current' || '$WILDCARD_VERSION' }} + echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_OUTPUT + + - name: Create/Update Pull Request + uses: bakunyo/git-pr-release-action@master + with: + # Overwrite everything so that the old content does not remain in the release notes, if the label attached to the PR changes + args: --overwrite-description + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GIT_PR_RELEASE_BRANCH_PRODUCTION: ${{ steps.base-branch.outputs.BASE_BRANCH }} + GIT_PR_RELEASE_BRANCH_STAGING: ${{ github.ref_name }} + GIT_PR_RELEASE_TEMPLATE: .github/git-pr-release-template.erb + GIT_PR_RELEASE_TITLE: Release v${{ steps.release-version.outputs.RELEASE_VERSION }} + GIT_PR_RELEASE_BODY: ${{ needs.update-release-draft.outputs.RELEASE_DRAFT_BODY }} diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..c33b30a --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,37 @@ +shared: + required_actions_were_succeeded_or_skipped: &required_actions_were_succeeded_or_skipped + - or: + - check-success = check_artifacts_are_latest + - check-skipped = check_artifacts_are_latest + - or: + - check-skipped = lint + - check-success = lint + - or: + - check-skipped = build + - check-success = build + - or: + - check-skipped = check-title + - check-success = check-title + - or: + - check-skipped = labeling + - check-success = labeling + +pull_request_rules: + - name: All required actions were succeeded or skipped + conditions: + - and: *required_actions_were_succeeded_or_skipped + actions: + post_check: + title: required-actions-were-succeeded-or-skipped + success_conditions: + - and: *required_actions_were_succeeded_or_skipped + - name: Automatic merge for Preparing next version + conditions: + - author = github-actions[bot] + - label = "type/prepare-next-version" + actions: + review: + type: APPROVE + message: Automatically approving github-actions[bot] + merge: + method: merge diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..51dda26 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,18 @@ +# Changelog + +## v1.0.0 - 2024-02-17 + +### 💎 Features + +* feat: Add a button to adapt `DataTable` that extends some functionality to a table (#15) @ryu-sato +* feat: Add new CalcMethod using Math.js (#7) @miya +* feat: Implementation of {hsum} and {havg} calc methods (#4) @miya +* feat: Replace {sum} and {avg} with the results of each calculation (#3) @miya + +### 🐛 Bug Fixes + +* fix: Moves to the bottom when activated if there are culumns with only number (#11) @ryu-sato + +## Unreleased + +*Please do not manually update this file. We've automated the process.* diff --git a/README.md b/README.md index f55645d..5535dcd 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,19 @@ DataTable is extended by following features. - Numerical values are in natural order - ex. "2.4m", "4.5m", "10.9m", ... (Ascending) - Scrolling vertically (Max table height: 500px) +- Extension buttons + - "Column visibility" button: Toggle column visibility + - "SearchPanels" button: Filter rows for each column (by search value, by select value) + - "Copy" button: Copy the table + - "CSV" button: Download the table in CSV format + - "Print" button: Print the table ### before adapt -![image](https://github.com/weseek/growi-plugin-datatables/assets/32702772/1d045990-11e2-4d32-af79-9bb09b1775e3) +![image](https://github.com/weseek/growi-plugin-datatables/assets/32702772/fed3b66b-6b1b-4dd3-9d2b-43693255eb49) -### after adapt and search with "carnivore" and sort by "Name" +### after adapt and filter with "carnivore" and sort by "Name" -![image](https://github.com/weseek/growi-plugin-datatables/assets/32702772/b6e43820-66f8-41b9-8f68-21e86c3262e7) +![image](https://github.com/weseek/growi-plugin-datatables/assets/32702772/5491e0af-0150-4189-947e-e3c2acf85293) + +![image](https://github.com/weseek/growi-plugin-datatables/assets/32702772/7e6512b0-9fcd-4c08-94fb-072d35a2f492) diff --git a/dist/assets/client-entry.13796303.js b/dist/assets/client-entry.13796303.js new file mode 100644 index 0000000..b9b93ac --- /dev/null +++ b/dist/assets/client-entry.13796303.js @@ -0,0 +1,88 @@ +var _c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var el={exports:{}};/*! + * jQuery JavaScript Library v3.7.1 + * https://jquery.com/ + * + * Copyright OpenJS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2023-08-28T13:37Z + */(function(e){(function(t,r){e.exports=t.document?r(t,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return r(n)}})(typeof window<"u"?window:_c,function(t,r){var n=[],i=Object.getPrototypeOf,a=n.slice,o=n.flat?function(s){return n.flat.call(s)}:function(s){return n.concat.apply([],s)},f=n.push,c=n.indexOf,h={},u=h.toString,l=h.hasOwnProperty,p=l.toString,D=p.call(Object),w={},m=function(d){return typeof d=="function"&&typeof d.nodeType!="number"&&typeof d.item!="function"},A=function(d){return d!=null&&d===d.window},y=t.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function E(s,d,g){g=g||y;var b,F,S=g.createElement("script");if(S.text=s,d)for(b in _)F=d[b]||d.getAttribute&&d.getAttribute(b),F&&S.setAttribute(b,F);g.head.appendChild(S).parentNode.removeChild(S)}function P(s){return s==null?s+"":typeof s=="object"||typeof s=="function"?h[u.call(s)]||"object":typeof s}var I="3.7.1",O=/HTML$/i,v=function(s,d){return new v.fn.init(s,d)};v.fn=v.prototype={jquery:I,constructor:v,length:0,toArray:function(){return a.call(this)},get:function(s){return s==null?a.call(this):s<0?this[s+this.length]:this[s]},pushStack:function(s){var d=v.merge(this.constructor(),s);return d.prevObject=this,d},each:function(s){return v.each(this,s)},map:function(s){return this.pushStack(v.map(this,function(d,g){return s.call(d,g,d)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(v.grep(this,function(s,d){return(d+1)%2}))},odd:function(){return this.pushStack(v.grep(this,function(s,d){return d%2}))},eq:function(s){var d=this.length,g=+s+(s<0?d:0);return this.pushStack(g>=0&&g0&&d-1 in s}function z(s,d){return s.nodeName&&s.nodeName.toLowerCase()===d.toLowerCase()}var J=n.pop,V=n.sort,M=n.splice,C="[\\x20\\t\\r\\n\\f]",x=new RegExp("^"+C+"+|((?:^|[^\\\\])(?:\\\\.)*)"+C+"+$","g");v.contains=function(s,d){var g=d&&d.parentNode;return s===g||!!(g&&g.nodeType===1&&(s.contains?s.contains(g):s.compareDocumentPosition&&s.compareDocumentPosition(g)&16))};var N=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function B(s,d){return d?s==="\0"?"\uFFFD":s.slice(0,-1)+"\\"+s.charCodeAt(s.length-1).toString(16)+" ":"\\"+s}v.escapeSelector=function(s){return(s+"").replace(N,B)};var R=y,j=f;(function(){var s,d,g,b,F,S=j,T,U,q,K,ne,ue=v.expando,ee=0,ve=0,Oe=Ai(),Je=Ai(),qe=Ai(),Tt=Ai(),Ft=function(L,Z){return L===Z&&(F=!0),0},xr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Ar="(?:\\\\[\\da-fA-F]{1,6}"+C+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Xe="\\["+C+"*("+Ar+")(?:"+C+"*([*^$|!~]?=)"+C+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Ar+"))|)"+C+"*\\]",ln=":("+Ar+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Xe+")*)|.*)\\)|)",Ye=new RegExp(C+"+","g"),yt=new RegExp("^"+C+"*,"+C+"*"),Xn=new RegExp("^"+C+"*([>+~]|"+C+")"+C+"*"),Wa=new RegExp(C+"|>"),Fr=new RegExp(ln),Zn=new RegExp("^"+Ar+"$"),_r={ID:new RegExp("^#("+Ar+")"),CLASS:new RegExp("^\\.("+Ar+")"),TAG:new RegExp("^("+Ar+"|[*])"),ATTR:new RegExp("^"+Xe),PSEUDO:new RegExp("^"+ln),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+C+"*(even|odd|(([+-]|)(\\d*)n|)"+C+"*(?:([+-]|)"+C+"*(\\d+)|))"+C+"*\\)|)","i"),bool:new RegExp("^(?:"+xr+")$","i"),needsContext:new RegExp("^"+C+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+C+"*((?:-\\d)?\\d*)"+C+"*\\)|)(?=[^-]|$)","i")},jr=/^(?:input|select|textarea|button)$/i,Ur=/^h\d$/i,nr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Va=/[+~]/,Pr=new RegExp("\\\\[\\da-fA-F]{1,6}"+C+"?|\\\\([^\\r\\n\\f])","g"),Ir=function(L,Z){var Q="0x"+L.slice(1)-65536;return Z||(Q<0?String.fromCharCode(Q+65536):String.fromCharCode(Q>>10|55296,Q&1023|56320))},Dc=function(){Wr()},bc=_i(function(L){return L.disabled===!0&&z(L,"fieldset")},{dir:"parentNode",next:"legend"});function wc(){try{return T.activeElement}catch{}}try{S.apply(n=a.call(R.childNodes),R.childNodes),n[R.childNodes.length].nodeType}catch{S={apply:function(Z,Q){j.apply(Z,a.call(Q))},call:function(Z){j.apply(Z,a.call(arguments,1))}}}function it(L,Z,Q,te){var se,ye,Ce,_e,xe,je,Ie,Re=Z&&Z.ownerDocument,Ue=Z?Z.nodeType:9;if(Q=Q||[],typeof L!="string"||!L||Ue!==1&&Ue!==9&&Ue!==11)return Q;if(!te&&(Wr(Z),Z=Z||T,q)){if(Ue!==11&&(xe=nr.exec(L)))if(se=xe[1]){if(Ue===9)if(Ce=Z.getElementById(se)){if(Ce.id===se)return S.call(Q,Ce),Q}else return Q;else if(Re&&(Ce=Re.getElementById(se))&&it.contains(Z,Ce)&&Ce.id===se)return S.call(Q,Ce),Q}else{if(xe[2])return S.apply(Q,Z.getElementsByTagName(L)),Q;if((se=xe[3])&&Z.getElementsByClassName)return S.apply(Q,Z.getElementsByClassName(se)),Q}if(!Tt[L+" "]&&(!K||!K.test(L))){if(Ie=L,Re=Z,Ue===1&&(Wa.test(L)||Xn.test(L))){for(Re=Va.test(L)&&Xa(Z.parentNode)||Z,(Re!=Z||!w.scope)&&((_e=Z.getAttribute("id"))?_e=v.escapeSelector(_e):Z.setAttribute("id",_e=ue)),je=Gn(L),ye=je.length;ye--;)je[ye]=(_e?"#"+_e:":scope")+" "+Fi(je[ye]);Ie=je.join(",")}try{return S.apply(Q,Re.querySelectorAll(Ie)),Q}catch{Tt(L,!0)}finally{_e===ue&&Z.removeAttribute("id")}}}return Os(L.replace(x,"$1"),Z,Q,te)}function Ai(){var L=[];function Z(Q,te){return L.push(Q+" ")>d.cacheLength&&delete Z[L.shift()],Z[Q+" "]=te}return Z}function pr(L){return L[ue]=!0,L}function Dn(L){var Z=T.createElement("fieldset");try{return!!L(Z)}catch{return!1}finally{Z.parentNode&&Z.parentNode.removeChild(Z),Z=null}}function Cc(L){return function(Z){return z(Z,"input")&&Z.type===L}}function xc(L){return function(Z){return(z(Z,"input")||z(Z,"button"))&&Z.type===L}}function Ps(L){return function(Z){return"form"in Z?Z.parentNode&&Z.disabled===!1?"label"in Z?"label"in Z.parentNode?Z.parentNode.disabled===L:Z.disabled===L:Z.isDisabled===L||Z.isDisabled!==!L&&bc(Z)===L:Z.disabled===L:"label"in Z?Z.disabled===L:!1}}function fn(L){return pr(function(Z){return Z=+Z,pr(function(Q,te){for(var se,ye=L([],Q.length,Z),Ce=ye.length;Ce--;)Q[se=ye[Ce]]&&(Q[se]=!(te[se]=Q[se]))})})}function Xa(L){return L&&typeof L.getElementsByTagName<"u"&&L}function Wr(L){var Z,Q=L?L.ownerDocument||L:R;return Q==T||Q.nodeType!==9||!Q.documentElement||(T=Q,U=T.documentElement,q=!v.isXMLDoc(T),ne=U.matches||U.webkitMatchesSelector||U.msMatchesSelector,U.msMatchesSelector&&R!=T&&(Z=T.defaultView)&&Z.top!==Z&&Z.addEventListener("unload",Dc),w.getById=Dn(function(te){return U.appendChild(te).id=v.expando,!T.getElementsByName||!T.getElementsByName(v.expando).length}),w.disconnectedMatch=Dn(function(te){return ne.call(te,"*")}),w.scope=Dn(function(){return T.querySelectorAll(":scope")}),w.cssHas=Dn(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),w.getById?(d.filter.ID=function(te){var se=te.replace(Pr,Ir);return function(ye){return ye.getAttribute("id")===se}},d.find.ID=function(te,se){if(typeof se.getElementById<"u"&&q){var ye=se.getElementById(te);return ye?[ye]:[]}}):(d.filter.ID=function(te){var se=te.replace(Pr,Ir);return function(ye){var Ce=typeof ye.getAttributeNode<"u"&&ye.getAttributeNode("id");return Ce&&Ce.value===se}},d.find.ID=function(te,se){if(typeof se.getElementById<"u"&&q){var ye,Ce,_e,xe=se.getElementById(te);if(xe){if(ye=xe.getAttributeNode("id"),ye&&ye.value===te)return[xe];for(_e=se.getElementsByName(te),Ce=0;xe=_e[Ce++];)if(ye=xe.getAttributeNode("id"),ye&&ye.value===te)return[xe]}return[]}}),d.find.TAG=function(te,se){return typeof se.getElementsByTagName<"u"?se.getElementsByTagName(te):se.querySelectorAll(te)},d.find.CLASS=function(te,se){if(typeof se.getElementsByClassName<"u"&&q)return se.getElementsByClassName(te)},K=[],Dn(function(te){var se;U.appendChild(te).innerHTML="",te.querySelectorAll("[selected]").length||K.push("\\["+C+"*(?:value|"+xr+")"),te.querySelectorAll("[id~="+ue+"-]").length||K.push("~="),te.querySelectorAll("a#"+ue+"+*").length||K.push(".#.+[+~]"),te.querySelectorAll(":checked").length||K.push(":checked"),se=T.createElement("input"),se.setAttribute("type","hidden"),te.appendChild(se).setAttribute("name","D"),U.appendChild(te).disabled=!0,te.querySelectorAll(":disabled").length!==2&&K.push(":enabled",":disabled"),se=T.createElement("input"),se.setAttribute("name",""),te.appendChild(se),te.querySelectorAll("[name='']").length||K.push("\\["+C+"*name"+C+"*="+C+`*(?:''|"")`)}),w.cssHas||K.push(":has"),K=K.length&&new RegExp(K.join("|")),Ft=function(te,se){if(te===se)return F=!0,0;var ye=!te.compareDocumentPosition-!se.compareDocumentPosition;return ye||(ye=(te.ownerDocument||te)==(se.ownerDocument||se)?te.compareDocumentPosition(se):1,ye&1||!w.sortDetached&&se.compareDocumentPosition(te)===ye?te===T||te.ownerDocument==R&&it.contains(R,te)?-1:se===T||se.ownerDocument==R&&it.contains(R,se)?1:b?c.call(b,te)-c.call(b,se):0:ye&4?-1:1)}),T}it.matches=function(L,Z){return it(L,null,null,Z)},it.matchesSelector=function(L,Z){if(Wr(L),q&&!Tt[Z+" "]&&(!K||!K.test(Z)))try{var Q=ne.call(L,Z);if(Q||w.disconnectedMatch||L.document&&L.document.nodeType!==11)return Q}catch{Tt(Z,!0)}return it(Z,T,null,[L]).length>0},it.contains=function(L,Z){return(L.ownerDocument||L)!=T&&Wr(L),v.contains(L,Z)},it.attr=function(L,Z){(L.ownerDocument||L)!=T&&Wr(L);var Q=d.attrHandle[Z.toLowerCase()],te=Q&&l.call(d.attrHandle,Z.toLowerCase())?Q(L,Z,!q):void 0;return te!==void 0?te:L.getAttribute(Z)},it.error=function(L){throw new Error("Syntax error, unrecognized expression: "+L)},v.uniqueSort=function(L){var Z,Q=[],te=0,se=0;if(F=!w.sortStable,b=!w.sortStable&&a.call(L,0),V.call(L,Ft),F){for(;Z=L[se++];)Z===L[se]&&(te=Q.push(se));for(;te--;)M.call(L,Q[te],1)}return b=null,L},v.fn.uniqueSort=function(){return this.pushStack(v.uniqueSort(a.apply(this)))},d=v.expr={cacheLength:50,createPseudo:pr,match:_r,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(L){return L[1]=L[1].replace(Pr,Ir),L[3]=(L[3]||L[4]||L[5]||"").replace(Pr,Ir),L[2]==="~="&&(L[3]=" "+L[3]+" "),L.slice(0,4)},CHILD:function(L){return L[1]=L[1].toLowerCase(),L[1].slice(0,3)==="nth"?(L[3]||it.error(L[0]),L[4]=+(L[4]?L[5]+(L[6]||1):2*(L[3]==="even"||L[3]==="odd")),L[5]=+(L[7]+L[8]||L[3]==="odd")):L[3]&&it.error(L[0]),L},PSEUDO:function(L){var Z,Q=!L[6]&&L[2];return _r.CHILD.test(L[0])?null:(L[3]?L[2]=L[4]||L[5]||"":Q&&Fr.test(Q)&&(Z=Gn(Q,!0))&&(Z=Q.indexOf(")",Q.length-Z)-Q.length)&&(L[0]=L[0].slice(0,Z),L[2]=Q.slice(0,Z)),L.slice(0,3))}},filter:{TAG:function(L){var Z=L.replace(Pr,Ir).toLowerCase();return L==="*"?function(){return!0}:function(Q){return z(Q,Z)}},CLASS:function(L){var Z=Oe[L+" "];return Z||(Z=new RegExp("(^|"+C+")"+L+"("+C+"|$)"))&&Oe(L,function(Q){return Z.test(typeof Q.className=="string"&&Q.className||typeof Q.getAttribute<"u"&&Q.getAttribute("class")||"")})},ATTR:function(L,Z,Q){return function(te){var se=it.attr(te,L);return se==null?Z==="!=":Z?(se+="",Z==="="?se===Q:Z==="!="?se!==Q:Z==="^="?Q&&se.indexOf(Q)===0:Z==="*="?Q&&se.indexOf(Q)>-1:Z==="$="?Q&&se.slice(-Q.length)===Q:Z==="~="?(" "+se.replace(Ye," ")+" ").indexOf(Q)>-1:Z==="|="?se===Q||se.slice(0,Q.length+1)===Q+"-":!1):!0}},CHILD:function(L,Z,Q,te,se){var ye=L.slice(0,3)!=="nth",Ce=L.slice(-4)!=="last",_e=Z==="of-type";return te===1&&se===0?function(xe){return!!xe.parentNode}:function(xe,je,Ie){var Re,Ue,Ne,ft,Gt,Lt=ye!==Ce?"nextSibling":"previousSibling",ir=xe.parentNode,Sr=_e&&xe.nodeName.toLowerCase(),bn=!Ie&&!_e,qt=!1;if(ir){if(ye){for(;Lt;){for(Ne=xe;Ne=Ne[Lt];)if(_e?z(Ne,Sr):Ne.nodeType===1)return!1;Gt=Lt=L==="only"&&!Gt&&"nextSibling"}return!0}if(Gt=[Ce?ir.firstChild:ir.lastChild],Ce&&bn){for(Ue=ir[ue]||(ir[ue]={}),Re=Ue[L]||[],ft=Re[0]===ee&&Re[1],qt=ft&&Re[2],Ne=ft&&ir.childNodes[ft];Ne=++ft&&Ne&&Ne[Lt]||(qt=ft=0)||Gt.pop();)if(Ne.nodeType===1&&++qt&&Ne===xe){Ue[L]=[ee,ft,qt];break}}else if(bn&&(Ue=xe[ue]||(xe[ue]={}),Re=Ue[L]||[],ft=Re[0]===ee&&Re[1],qt=ft),qt===!1)for(;(Ne=++ft&&Ne&&Ne[Lt]||(qt=ft=0)||Gt.pop())&&!((_e?z(Ne,Sr):Ne.nodeType===1)&&++qt&&(bn&&(Ue=Ne[ue]||(Ne[ue]={}),Ue[L]=[ee,qt]),Ne===xe)););return qt-=se,qt===te||qt%te===0&&qt/te>=0}}},PSEUDO:function(L,Z){var Q,te=d.pseudos[L]||d.setFilters[L.toLowerCase()]||it.error("unsupported pseudo: "+L);return te[ue]?te(Z):te.length>1?(Q=[L,L,"",Z],d.setFilters.hasOwnProperty(L.toLowerCase())?pr(function(se,ye){for(var Ce,_e=te(se,Z),xe=_e.length;xe--;)Ce=c.call(se,_e[xe]),se[Ce]=!(ye[Ce]=_e[xe])}):function(se){return te(se,0,Q)}):te}},pseudos:{not:pr(function(L){var Z=[],Q=[],te=Ja(L.replace(x,"$1"));return te[ue]?pr(function(se,ye,Ce,_e){for(var xe,je=te(se,null,_e,[]),Ie=se.length;Ie--;)(xe=je[Ie])&&(se[Ie]=!(ye[Ie]=xe))}):function(se,ye,Ce){return Z[0]=se,te(Z,null,Ce,Q),Z[0]=null,!Q.pop()}}),has:pr(function(L){return function(Z){return it(L,Z).length>0}}),contains:pr(function(L){return L=L.replace(Pr,Ir),function(Z){return(Z.textContent||v.text(Z)).indexOf(L)>-1}}),lang:pr(function(L){return Zn.test(L||"")||it.error("unsupported lang: "+L),L=L.replace(Pr,Ir).toLowerCase(),function(Z){var Q;do if(Q=q?Z.lang:Z.getAttribute("xml:lang")||Z.getAttribute("lang"))return Q=Q.toLowerCase(),Q===L||Q.indexOf(L+"-")===0;while((Z=Z.parentNode)&&Z.nodeType===1);return!1}}),target:function(L){var Z=t.location&&t.location.hash;return Z&&Z.slice(1)===L.id},root:function(L){return L===U},focus:function(L){return L===wc()&&T.hasFocus()&&!!(L.type||L.href||~L.tabIndex)},enabled:Ps(!1),disabled:Ps(!0),checked:function(L){return z(L,"input")&&!!L.checked||z(L,"option")&&!!L.selected},selected:function(L){return L.parentNode&&L.parentNode.selectedIndex,L.selected===!0},empty:function(L){for(L=L.firstChild;L;L=L.nextSibling)if(L.nodeType<6)return!1;return!0},parent:function(L){return!d.pseudos.empty(L)},header:function(L){return Ur.test(L.nodeName)},input:function(L){return jr.test(L.nodeName)},button:function(L){return z(L,"input")&&L.type==="button"||z(L,"button")},text:function(L){var Z;return z(L,"input")&&L.type==="text"&&((Z=L.getAttribute("type"))==null||Z.toLowerCase()==="text")},first:fn(function(){return[0]}),last:fn(function(L,Z){return[Z-1]}),eq:fn(function(L,Z,Q){return[Q<0?Q+Z:Q]}),even:fn(function(L,Z){for(var Q=0;QZ?te=Z:te=Q;--te>=0;)L.push(te);return L}),gt:fn(function(L,Z,Q){for(var te=Q<0?Q+Z:Q;++te1?function(Z,Q,te){for(var se=L.length;se--;)if(!L[se](Z,Q,te))return!1;return!0}:L[0]}function Ac(L,Z,Q){for(var te=0,se=Z.length;te-1&&(Ce[Ie]=!(_e[Ie]=Ue))}}else Ne=Si(Ne===_e?Ne.splice(Lt,Ne.length):Ne),se?se(null,_e,Ne,je):S.apply(_e,Ne)})}function Ka(L){for(var Z,Q,te,se=L.length,ye=d.relative[L[0].type],Ce=ye||d.relative[" "],_e=ye?1:0,xe=_i(function(Re){return Re===Z},Ce,!0),je=_i(function(Re){return c.call(Z,Re)>-1},Ce,!0),Ie=[function(Re,Ue,Ne){var ft=!ye&&(Ne||Ue!=g)||((Z=Ue).nodeType?xe(Re,Ue,Ne):je(Re,Ue,Ne));return Z=null,ft}];_e1&&Za(Ie),_e>1&&Fi(L.slice(0,_e-1).concat({value:L[_e-2].type===" "?"*":""})).replace(x,"$1"),Q,_e0,te=L.length>0,se=function(ye,Ce,_e,xe,je){var Ie,Re,Ue,Ne=0,ft="0",Gt=ye&&[],Lt=[],ir=g,Sr=ye||te&&d.find.TAG("*",je),bn=ee+=ir==null?1:Math.random()||.1,qt=Sr.length;for(je&&(g=Ce==T||Ce||je);ft!==qt&&(Ie=Sr[ft])!=null;ft++){if(te&&Ie){for(Re=0,!Ce&&Ie.ownerDocument!=T&&(Wr(Ie),_e=!q);Ue=L[Re++];)if(Ue(Ie,Ce||T,_e)){S.call(xe,Ie);break}je&&(ee=bn)}Q&&((Ie=!Ue&&Ie)&&Ne--,ye&&Gt.push(Ie))}if(Ne+=ft,Q&&ft!==Ne){for(Re=0;Ue=Z[Re++];)Ue(Gt,Lt,Ce,_e);if(ye){if(Ne>0)for(;ft--;)Gt[ft]||Lt[ft]||(Lt[ft]=J.call(xe));Lt=Si(Lt)}S.apply(xe,Lt),je&&!ye&&Lt.length>0&&Ne+Z.length>1&&v.uniqueSort(xe)}return je&&(ee=bn,g=ir),Gt};return Q?pr(se):se}function Ja(L,Z){var Q,te=[],se=[],ye=qe[L+" "];if(!ye){for(Z||(Z=Gn(L)),Q=Z.length;Q--;)ye=Ka(Z[Q]),ye[ue]?te.push(ye):se.push(ye);ye=qe(L,Fc(se,te)),ye.selector=L}return ye}function Os(L,Z,Q,te){var se,ye,Ce,_e,xe,je=typeof L=="function"&&L,Ie=!te&&Gn(L=je.selector||L);if(Q=Q||[],Ie.length===1){if(ye=Ie[0]=Ie[0].slice(0),ye.length>2&&(Ce=ye[0]).type==="ID"&&Z.nodeType===9&&q&&d.relative[ye[1].type]){if(Z=(d.find.ID(Ce.matches[0].replace(Pr,Ir),Z)||[])[0],Z)je&&(Z=Z.parentNode);else return Q;L=L.slice(ye.shift().value.length)}for(se=_r.needsContext.test(L)?0:ye.length;se--&&(Ce=ye[se],!d.relative[_e=Ce.type]);)if((xe=d.find[_e])&&(te=xe(Ce.matches[0].replace(Pr,Ir),Va.test(ye[0].type)&&Xa(Z.parentNode)||Z))){if(ye.splice(se,1),L=te.length&&Fi(ye),!L)return S.apply(Q,te),Q;break}}return(je||Ja(L,Ie))(te,Z,!q,Q,!Z||Va.test(L)&&Xa(Z.parentNode)||Z),Q}w.sortStable=ue.split("").sort(Ft).join("")===ue,Wr(),w.sortDetached=Dn(function(L){return L.compareDocumentPosition(T.createElement("fieldset"))&1}),v.find=it,v.expr[":"]=v.expr.pseudos,v.unique=v.uniqueSort,it.compile=Ja,it.select=Os,it.setDocument=Wr,it.tokenize=Gn,it.escape=v.escapeSelector,it.getText=v.text,it.isXML=v.isXMLDoc,it.selectors=v.expr,it.support=v.support,it.uniqueSort=v.uniqueSort})();var X=function(s,d,g){for(var b=[],F=g!==void 0;(s=s[d])&&s.nodeType!==9;)if(s.nodeType===1){if(F&&v(s).is(g))break;b.push(s)}return b},re=function(s,d){for(var g=[];s;s=s.nextSibling)s.nodeType===1&&s!==d&&g.push(s);return g},oe=v.expr.match.needsContext,ie=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function le(s,d,g){return m(d)?v.grep(s,function(b,F){return!!d.call(b,F,b)!==g}):d.nodeType?v.grep(s,function(b){return b===d!==g}):typeof d!="string"?v.grep(s,function(b){return c.call(d,b)>-1!==g}):v.filter(d,s,g)}v.filter=function(s,d,g){var b=d[0];return g&&(s=":not("+s+")"),d.length===1&&b.nodeType===1?v.find.matchesSelector(b,s)?[b]:[]:v.find.matches(s,v.grep(d,function(F){return F.nodeType===1}))},v.fn.extend({find:function(s){var d,g,b=this.length,F=this;if(typeof s!="string")return this.pushStack(v(s).filter(function(){for(d=0;d1?v.uniqueSort(g):g},filter:function(s){return this.pushStack(le(this,s||[],!1))},not:function(s){return this.pushStack(le(this,s||[],!0))},is:function(s){return!!le(this,typeof s=="string"&&oe.test(s)?v(s):s||[],!1).length}});var ge,we=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Me=v.fn.init=function(s,d,g){var b,F;if(!s)return this;if(g=g||ge,typeof s=="string")if(s[0]==="<"&&s[s.length-1]===">"&&s.length>=3?b=[null,s,null]:b=we.exec(s),b&&(b[1]||!d))if(b[1]){if(d=d instanceof v?d[0]:d,v.merge(this,v.parseHTML(b[1],d&&d.nodeType?d.ownerDocument||d:y,!0)),ie.test(b[1])&&v.isPlainObject(d))for(b in d)m(this[b])?this[b](d[b]):this.attr(b,d[b]);return this}else return F=y.getElementById(b[2]),F&&(this[0]=F,this.length=1),this;else return!d||d.jquery?(d||g).find(s):this.constructor(d).find(s);else{if(s.nodeType)return this[0]=s,this.length=1,this;if(m(s))return g.ready!==void 0?g.ready(s):s(v)}return v.makeArray(s,this)};Me.prototype=v.fn,ge=v(y);var Ae=/^(?:parents|prev(?:Until|All))/,He={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({has:function(s){var d=v(s,this),g=d.length;return this.filter(function(){for(var b=0;b-1:g.nodeType===1&&v.find.matchesSelector(g,s))){S.push(g);break}}return this.pushStack(S.length>1?v.uniqueSort(S):S)},index:function(s){return s?typeof s=="string"?c.call(v(s),this[0]):c.call(this,s.jquery?s[0]:s):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(s,d){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(s,d))))},addBack:function(s){return this.add(s==null?this.prevObject:this.prevObject.filter(s))}});function Pe(s,d){for(;(s=s[d])&&s.nodeType!==1;);return s}v.each({parent:function(s){var d=s.parentNode;return d&&d.nodeType!==11?d:null},parents:function(s){return X(s,"parentNode")},parentsUntil:function(s,d,g){return X(s,"parentNode",g)},next:function(s){return Pe(s,"nextSibling")},prev:function(s){return Pe(s,"previousSibling")},nextAll:function(s){return X(s,"nextSibling")},prevAll:function(s){return X(s,"previousSibling")},nextUntil:function(s,d,g){return X(s,"nextSibling",g)},prevUntil:function(s,d,g){return X(s,"previousSibling",g)},siblings:function(s){return re((s.parentNode||{}).firstChild,s)},children:function(s){return re(s.firstChild)},contents:function(s){return s.contentDocument!=null&&i(s.contentDocument)?s.contentDocument:(z(s,"template")&&(s=s.content||s),v.merge([],s.childNodes))}},function(s,d){v.fn[s]=function(g,b){var F=v.map(this,d,g);return s.slice(-5)!=="Until"&&(b=g),b&&typeof b=="string"&&(F=v.filter(b,F)),this.length>1&&(He[s]||v.uniqueSort(F),Ae.test(s)&&F.reverse()),this.pushStack(F)}});var Ee=/[^\x20\t\r\n\f]+/g;function st(s){var d={};return v.each(s.match(Ee)||[],function(g,b){d[b]=!0}),d}v.Callbacks=function(s){s=typeof s=="string"?st(s):v.extend({},s);var d,g,b,F,S=[],T=[],U=-1,q=function(){for(F=F||s.once,b=d=!0;T.length;U=-1)for(g=T.shift();++U-1;)S.splice(ee,1),ee<=U&&U--}),this},has:function(ne){return ne?v.inArray(ne,S)>-1:S.length>0},empty:function(){return S&&(S=[]),this},disable:function(){return F=T=[],S=g="",this},disabled:function(){return!S},lock:function(){return F=T=[],!g&&!d&&(S=g=""),this},locked:function(){return!!F},fireWith:function(ne,ue){return F||(ue=ue||[],ue=[ne,ue.slice?ue.slice():ue],T.push(ue),d||q()),this},fire:function(){return K.fireWith(this,arguments),this},fired:function(){return!!b}};return K};function Ve(s){return s}function $e(s){throw s}function tt(s,d,g,b){var F;try{s&&m(F=s.promise)?F.call(s).done(d).fail(g):s&&m(F=s.then)?F.call(s,d,g):d.apply(void 0,[s].slice(b))}catch(S){g.apply(void 0,[S])}}v.extend({Deferred:function(s){var d=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],g="pending",b={state:function(){return g},always:function(){return F.done(arguments).fail(arguments),this},catch:function(S){return b.then(null,S)},pipe:function(){var S=arguments;return v.Deferred(function(T){v.each(d,function(U,q){var K=m(S[q[4]])&&S[q[4]];F[q[1]](function(){var ne=K&&K.apply(this,arguments);ne&&m(ne.promise)?ne.promise().progress(T.notify).done(T.resolve).fail(T.reject):T[q[0]+"With"](this,K?[ne]:arguments)})}),S=null}).promise()},then:function(S,T,U){var q=0;function K(ne,ue,ee,ve){return function(){var Oe=this,Je=arguments,qe=function(){var Ft,xr;if(!(ne=q&&(ee!==$e&&(Oe=void 0,Je=[Ft]),ue.rejectWith(Oe,Je))}};ne?Tt():(v.Deferred.getErrorHook?Tt.error=v.Deferred.getErrorHook():v.Deferred.getStackHook&&(Tt.error=v.Deferred.getStackHook()),t.setTimeout(Tt))}}return v.Deferred(function(ne){d[0][3].add(K(0,ne,m(U)?U:Ve,ne.notifyWith)),d[1][3].add(K(0,ne,m(S)?S:Ve)),d[2][3].add(K(0,ne,m(T)?T:$e))}).promise()},promise:function(S){return S!=null?v.extend(S,b):b}},F={};return v.each(d,function(S,T){var U=T[2],q=T[5];b[T[1]]=U.add,q&&U.add(function(){g=q},d[3-S][2].disable,d[3-S][3].disable,d[0][2].lock,d[0][3].lock),U.add(T[3].fire),F[T[0]]=function(){return F[T[0]+"With"](this===F?void 0:this,arguments),this},F[T[0]+"With"]=U.fireWith}),b.promise(F),s&&s.call(F,F),F},when:function(s){var d=arguments.length,g=d,b=Array(g),F=a.call(arguments),S=v.Deferred(),T=function(U){return function(q){b[U]=this,F[U]=arguments.length>1?a.call(arguments):q,--d||S.resolveWith(b,F)}};if(d<=1&&(tt(s,S.done(T(g)).resolve,S.reject,!d),S.state()==="pending"||m(F[g]&&F[g].then)))return S.then();for(;g--;)tt(F[g],T(g),S.reject);return S.promise()}});var nt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(s,d){t.console&&t.console.warn&&s&&nt.test(s.name)&&t.console.warn("jQuery.Deferred exception: "+s.message,s.stack,d)},v.readyException=function(s){t.setTimeout(function(){throw s})};var bt=v.Deferred();v.fn.ready=function(s){return bt.then(s).catch(function(d){v.readyException(d)}),this},v.extend({isReady:!1,readyWait:1,ready:function(s){(s===!0?--v.readyWait:v.isReady)||(v.isReady=!0,!(s!==!0&&--v.readyWait>0)&&bt.resolveWith(y,[v]))}}),v.ready.then=bt.then;function ct(){y.removeEventListener("DOMContentLoaded",ct),t.removeEventListener("load",ct),v.ready()}y.readyState==="complete"||y.readyState!=="loading"&&!y.documentElement.doScroll?t.setTimeout(v.ready):(y.addEventListener("DOMContentLoaded",ct),t.addEventListener("load",ct));var dt=function(s,d,g,b,F,S,T){var U=0,q=s.length,K=g==null;if(P(g)==="object"){F=!0;for(U in g)dt(s,d,U,g[U],!0,S,T)}else if(b!==void 0&&(F=!0,m(b)||(T=!0),K&&(T?(d.call(s,b),d=null):(K=d,d=function(ne,ue,ee){return K.call(v(ne),ee)})),d))for(;U1,null,!0)},removeData:function(s){return this.each(function(){ae.remove(this,s)})}}),v.extend({queue:function(s,d,g){var b;if(s)return d=(d||"fx")+"queue",b=G.get(s,d),g&&(!b||Array.isArray(g)?b=G.access(s,d,v.makeArray(g)):b.push(g)),b||[]},dequeue:function(s,d){d=d||"fx";var g=v.queue(s,d),b=g.length,F=g.shift(),S=v._queueHooks(s,d),T=function(){v.dequeue(s,d)};F==="inprogress"&&(F=g.shift(),b--),F&&(d==="fx"&&g.unshift("inprogress"),delete S.stop,F.call(s,T,S)),!b&&S&&S.empty.fire()},_queueHooks:function(s,d){var g=d+"queueHooks";return G.get(s,g)||G.access(s,g,{empty:v.Callbacks("once memory").add(function(){G.remove(s,[d+"queue",g])})})}}),v.fn.extend({queue:function(s,d){var g=2;return typeof s!="string"&&(d=s,s="fx",g--),arguments.length\x20\t\r\n\f]*)/i,pi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var s=y.createDocumentFragment(),d=s.appendChild(y.createElement("div")),g=y.createElement("input");g.setAttribute("type","radio"),g.setAttribute("checked","checked"),g.setAttribute("name","t"),d.appendChild(g),w.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked,d.innerHTML="",w.noCloneChecked=!!d.cloneNode(!0).lastChild.defaultValue,d.innerHTML="",w.option=!!d.lastChild})();var Xt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Xt.tbody=Xt.tfoot=Xt.colgroup=Xt.caption=Xt.thead,Xt.th=Xt.td,w.option||(Xt.optgroup=Xt.option=[1,""]);function Ot(s,d){var g;return typeof s.getElementsByTagName<"u"?g=s.getElementsByTagName(d||"*"):typeof s.querySelectorAll<"u"?g=s.querySelectorAll(d||"*"):g=[],d===void 0||d&&z(s,d)?v.merge([s],g):g}function $n(s,d){for(var g=0,b=s.length;g-1){F&&F.push(S);continue}if(K=ut(S),T=Ot(ue.appendChild(S),"script"),K&&$n(T),g)for(ne=0;S=T[ne++];)pi.test(S.type||"")&&g.push(S)}return ue}var mi=/^([^.]*)(?:\.(.+)|)/;function qr(){return!0}function Hr(){return!1}function qn(s,d,g,b,F,S){var T,U;if(typeof d=="object"){typeof g!="string"&&(b=b||g,g=void 0);for(U in d)qn(s,U,g,b,d[U],S);return s}if(b==null&&F==null?(F=g,b=g=void 0):F==null&&(typeof g=="string"?(F=b,b=void 0):(F=b,b=g,g=void 0)),F===!1)F=Hr;else if(!F)return s;return S===1&&(T=F,F=function(q){return v().off(q),T.apply(this,arguments)},F.guid=T.guid||(T.guid=v.guid++)),s.each(function(){v.event.add(this,d,F,b,g)})}v.event={global:{},add:function(s,d,g,b,F){var S,T,U,q,K,ne,ue,ee,ve,Oe,Je,qe=G.get(s);if(!!$(s))for(g.handler&&(S=g,g=S.handler,F=S.selector),F&&v.find.matchesSelector(Ke,F),g.guid||(g.guid=v.guid++),(q=qe.events)||(q=qe.events=Object.create(null)),(T=qe.handle)||(T=qe.handle=function(Tt){return typeof v<"u"&&v.event.triggered!==Tt.type?v.event.dispatch.apply(s,arguments):void 0}),d=(d||"").match(Ee)||[""],K=d.length;K--;)U=mi.exec(d[K])||[],ve=Je=U[1],Oe=(U[2]||"").split(".").sort(),ve&&(ue=v.event.special[ve]||{},ve=(F?ue.delegateType:ue.bindType)||ve,ue=v.event.special[ve]||{},ne=v.extend({type:ve,origType:Je,data:b,handler:g,guid:g.guid,selector:F,needsContext:F&&v.expr.match.needsContext.test(F),namespace:Oe.join(".")},S),(ee=q[ve])||(ee=q[ve]=[],ee.delegateCount=0,(!ue.setup||ue.setup.call(s,b,Oe,T)===!1)&&s.addEventListener&&s.addEventListener(ve,T)),ue.add&&(ue.add.call(s,ne),ne.handler.guid||(ne.handler.guid=g.guid)),F?ee.splice(ee.delegateCount++,0,ne):ee.push(ne),v.event.global[ve]=!0)},remove:function(s,d,g,b,F){var S,T,U,q,K,ne,ue,ee,ve,Oe,Je,qe=G.hasData(s)&&G.get(s);if(!(!qe||!(q=qe.events))){for(d=(d||"").match(Ee)||[""],K=d.length;K--;){if(U=mi.exec(d[K])||[],ve=Je=U[1],Oe=(U[2]||"").split(".").sort(),!ve){for(ve in q)v.event.remove(s,ve+d[K],g,b,!0);continue}for(ue=v.event.special[ve]||{},ve=(b?ue.delegateType:ue.bindType)||ve,ee=q[ve]||[],U=U[2]&&new RegExp("(^|\\.)"+Oe.join("\\.(?:.*\\.|)")+"(\\.|$)"),T=S=ee.length;S--;)ne=ee[S],(F||Je===ne.origType)&&(!g||g.guid===ne.guid)&&(!U||U.test(ne.namespace))&&(!b||b===ne.selector||b==="**"&&ne.selector)&&(ee.splice(S,1),ne.selector&&ee.delegateCount--,ue.remove&&ue.remove.call(s,ne));T&&!ee.length&&((!ue.teardown||ue.teardown.call(s,Oe,qe.handle)===!1)&&v.removeEvent(s,ve,qe.handle),delete q[ve])}v.isEmptyObject(q)&&G.remove(s,"handle events")}},dispatch:function(s){var d,g,b,F,S,T,U=new Array(arguments.length),q=v.event.fix(s),K=(G.get(this,"events")||Object.create(null))[q.type]||[],ne=v.event.special[q.type]||{};for(U[0]=q,d=1;d=1)){for(;K!==this;K=K.parentNode||this)if(K.nodeType===1&&!(s.type==="click"&&K.disabled===!0)){for(S=[],T={},g=0;g-1:v.find(F,this,null,[K]).length),T[F]&&S.push(b);S.length&&U.push({elem:K,handlers:S})}}return K=this,q\s*$/g;function gi(s,d){return z(s,"table")&&z(d.nodeType!==11?d:d.firstChild,"tr")&&v(s).children("tbody")[0]||s}function Ma(s){return s.type=(s.getAttribute("type")!==null)+"/"+s.type,s}function Pa(s){return(s.type||"").slice(0,5)==="true/"?s.type=s.type.slice(5):s.removeAttribute("type"),s}function yi(s,d){var g,b,F,S,T,U,q;if(d.nodeType===1){if(G.hasData(s)&&(S=G.get(s),q=S.events,q)){G.remove(d,"handle events");for(F in q)for(g=0,b=q[F].length;g1&&typeof ve=="string"&&!w.checkClone&&Na.test(ve))return s.each(function(Je){var qe=s.eq(Je);Oe&&(d[0]=ve.call(this,Je,qe.html())),zr(qe,d,g,b)});if(ue&&(F=vi(d,s[0].ownerDocument,!1,s,b),S=F.firstChild,F.childNodes.length===1&&(F=S),S||b)){for(T=v.map(Ot(F,"script"),Ma),U=T.length;ne0&&$n(T,!q&&Ot(s,"script")),U},cleanData:function(s){for(var d,g,b,F=v.event.special,S=0;(g=s[S])!==void 0;S++)if($(g)){if(d=g[G.expando]){if(d.events)for(b in d.events)F[b]?v.event.remove(g,b):v.removeEvent(g,b,d.handle);g[G.expando]=void 0}g[ae.expando]&&(g[ae.expando]=void 0)}}}),v.fn.extend({detach:function(s){return Di(this,s,!0)},remove:function(s){return Di(this,s)},text:function(s){return dt(this,function(d){return d===void 0?v.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=d)})},null,s,arguments.length)},append:function(){return zr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var d=gi(this,s);d.appendChild(s)}})},prepend:function(){return zr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var d=gi(this,s);d.insertBefore(s,d.firstChild)}})},before:function(){return zr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this)})},after:function(){return zr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling)})},empty:function(){for(var s,d=0;(s=this[d])!=null;d++)s.nodeType===1&&(v.cleanData(Ot(s,!1)),s.textContent="");return this},clone:function(s,d){return s=s==null?!1:s,d=d==null?s:d,this.map(function(){return v.clone(this,s,d)})},html:function(s){return dt(this,function(d){var g=this[0]||{},b=0,F=this.length;if(d===void 0&&g.nodeType===1)return g.innerHTML;if(typeof d=="string"&&!Ta.test(d)&&!Xt[(hi.exec(d)||["",""])[1].toLowerCase()]){d=v.htmlPrefilter(d);try{for(;b=0&&(q+=Math.max(0,Math.ceil(s["offset"+d[0].toUpperCase()+d.slice(1)]-S-q-U-.5))||0),q+K}function bs(s,d,g){var b=gn(s),F=!w.boxSizingReliable()||g,S=F&&v.css(s,"boxSizing",!1,b)==="border-box",T=S,U=dr(s,d,b),q="offset"+d[0].toUpperCase()+d.slice(1);if(Hn.test(U)){if(!g)return U;U="auto"}return(!w.boxSizingReliable()&&S||!w.reliableTrDimensions()&&z(s,"tr")||U==="auto"||!parseFloat(U)&&v.css(s,"display",!1,b)==="inline")&&s.getClientRects().length&&(S=v.css(s,"boxSizing",!1,b)==="border-box",T=q in s,T&&(U=s[q])),U=parseFloat(U)||0,U+La(s,d,g||(S?"border":"content"),T,b,U)+"px"}v.extend({cssHooks:{opacity:{get:function(s,d){if(d){var g=dr(s,"opacity");return g===""?"1":g}}}},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(s,d,g,b){if(!(!s||s.nodeType===3||s.nodeType===8||!s.style)){var F,S,T,U=St(d),q=zn.test(d),K=s.style;if(q||(d=jn(U)),T=v.cssHooks[d]||v.cssHooks[U],g!==void 0){if(S=typeof g,S==="string"&&(F=pe.exec(g))&&F[1]&&(g=Wt(s,d,F),S="number"),g==null||g!==g)return;S==="number"&&!q&&(g+=F&&F[3]||(v.cssNumber[U]?"":"px")),!w.clearCloneStyle&&g===""&&d.indexOf("background")===0&&(K[d]="inherit"),(!T||!("set"in T)||(g=T.set(s,g,b))!==void 0)&&(q?K.setProperty(d,g):K[d]=g)}else return T&&"get"in T&&(F=T.get(s,!1,b))!==void 0?F:K[d]}},css:function(s,d,g,b){var F,S,T,U=St(d),q=zn.test(d);return q||(d=jn(U)),T=v.cssHooks[d]||v.cssHooks[U],T&&"get"in T&&(F=T.get(s,!0,g)),F===void 0&&(F=dr(s,d,b)),F==="normal"&&d in ys&&(F=ys[d]),g===""||g?(S=parseFloat(F),g===!0||isFinite(S)?S||0:F):F}}),v.each(["height","width"],function(s,d){v.cssHooks[d]={get:function(g,b,F){if(b)return Zf.test(v.css(g,"display"))&&(!g.getClientRects().length||!g.getBoundingClientRect().width)?bi(g,Gf,function(){return bs(g,d,F)}):bs(g,d,F)},set:function(g,b,F){var S,T=gn(g),U=!w.scrollboxSize()&&T.position==="absolute",q=U||F,K=q&&v.css(g,"boxSizing",!1,T)==="border-box",ne=F?La(g,d,F,K,T):0;return K&&U&&(ne-=Math.ceil(g["offset"+d[0].toUpperCase()+d.slice(1)]-parseFloat(T[d])-La(g,d,"border",!1,T)-.5)),ne&&(S=pe.exec(b))&&(S[3]||"px")!=="px"&&(g.style[d]=b,b=v.css(g,d)),Ds(g,b,ne)}}}),v.cssHooks.marginLeft=Qe(w.reliableMarginLeft,function(s,d){if(d)return(parseFloat(dr(s,"marginLeft"))||s.getBoundingClientRect().left-bi(s,{marginLeft:0},function(){return s.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(s,d){v.cssHooks[s+d]={expand:function(g){for(var b=0,F={},S=typeof g=="string"?g.split(" "):[g];b<4;b++)F[s+ze[b]+d]=S[b]||S[b-2]||S[0];return F}},s!=="margin"&&(v.cssHooks[s+d].set=Ds)}),v.fn.extend({css:function(s,d){return dt(this,function(g,b,F){var S,T,U={},q=0;if(Array.isArray(b)){for(S=gn(g),T=b.length;q1)}});function Zt(s,d,g,b,F){return new Zt.prototype.init(s,d,g,b,F)}v.Tween=Zt,Zt.prototype={constructor:Zt,init:function(s,d,g,b,F,S){this.elem=s,this.prop=g,this.easing=F||v.easing._default,this.options=d,this.start=this.now=this.cur(),this.end=b,this.unit=S||(v.cssNumber[g]?"":"px")},cur:function(){var s=Zt.propHooks[this.prop];return s&&s.get?s.get(this):Zt.propHooks._default.get(this)},run:function(s){var d,g=Zt.propHooks[this.prop];return this.options.duration?this.pos=d=v.easing[this.easing](s,this.options.duration*s,0,1,this.options.duration):this.pos=d=s,this.now=(this.end-this.start)*d+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),g&&g.set?g.set(this):Zt.propHooks._default.set(this),this}},Zt.prototype.init.prototype=Zt.prototype,Zt.propHooks={_default:{get:function(s){var d;return s.elem.nodeType!==1||s.elem[s.prop]!=null&&s.elem.style[s.prop]==null?s.elem[s.prop]:(d=v.css(s.elem,s.prop,""),!d||d==="auto"?0:d)},set:function(s){v.fx.step[s.prop]?v.fx.step[s.prop](s):s.elem.nodeType===1&&(v.cssHooks[s.prop]||s.elem.style[jn(s.prop)]!=null)?v.style(s.elem,s.prop,s.now+s.unit):s.elem[s.prop]=s.now}}},Zt.propHooks.scrollTop=Zt.propHooks.scrollLeft={set:function(s){s.elem.nodeType&&s.elem.parentNode&&(s.elem[s.prop]=s.now)}},v.easing={linear:function(s){return s},swing:function(s){return .5-Math.cos(s*Math.PI)/2},_default:"swing"},v.fx=Zt.prototype.init,v.fx.step={};var yn,Ci,Kf=/^(?:toggle|show|hide)$/,Jf=/queueHooks$/;function Ra(){Ci&&(y.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Ra):t.setTimeout(Ra,v.fx.interval),v.fx.tick())}function ws(){return t.setTimeout(function(){yn=void 0}),yn=Date.now()}function xi(s,d){var g,b=0,F={height:s};for(d=d?1:0;b<4;b+=2-d)g=ze[b],F["margin"+g]=F["padding"+g]=s;return d&&(F.opacity=F.width=s),F}function Cs(s,d,g){for(var b,F=(hr.tweeners[d]||[]).concat(hr.tweeners["*"]),S=0,T=F.length;S1)},removeAttr:function(s){return this.each(function(){v.removeAttr(this,s)})}}),v.extend({attr:function(s,d,g){var b,F,S=s.nodeType;if(!(S===3||S===8||S===2)){if(typeof s.getAttribute>"u")return v.prop(s,d,g);if((S!==1||!v.isXMLDoc(s))&&(F=v.attrHooks[d.toLowerCase()]||(v.expr.match.bool.test(d)?xs:void 0)),g!==void 0){if(g===null){v.removeAttr(s,d);return}return F&&"set"in F&&(b=F.set(s,g,d))!==void 0?b:(s.setAttribute(d,g+""),g)}return F&&"get"in F&&(b=F.get(s,d))!==null?b:(b=v.find.attr(s,d),b==null?void 0:b)}},attrHooks:{type:{set:function(s,d){if(!w.radioValue&&d==="radio"&&z(s,"input")){var g=s.value;return s.setAttribute("type",d),g&&(s.value=g),d}}}},removeAttr:function(s,d){var g,b=0,F=d&&d.match(Ee);if(F&&s.nodeType===1)for(;g=F[b++];)s.removeAttribute(g)}}),xs={set:function(s,d,g){return d===!1?v.removeAttr(s,g):s.setAttribute(g,g),g}},v.each(v.expr.match.bool.source.match(/\w+/g),function(s,d){var g=Un[d]||v.find.attr;Un[d]=function(b,F,S){var T,U,q=F.toLowerCase();return S||(U=Un[q],Un[q]=T,T=g(b,F,S)!=null?q:null,Un[q]=U),T}});var ec=/^(?:input|select|textarea|button)$/i,tc=/^(?:a|area)$/i;v.fn.extend({prop:function(s,d){return dt(this,v.prop,s,d,arguments.length>1)},removeProp:function(s){return this.each(function(){delete this[v.propFix[s]||s]})}}),v.extend({prop:function(s,d,g){var b,F,S=s.nodeType;if(!(S===3||S===8||S===2))return(S!==1||!v.isXMLDoc(s))&&(d=v.propFix[d]||d,F=v.propHooks[d]),g!==void 0?F&&"set"in F&&(b=F.set(s,g,d))!==void 0?b:s[d]=g:F&&"get"in F&&(b=F.get(s,d))!==null?b:s[d]},propHooks:{tabIndex:{get:function(s){var d=v.find.attr(s,"tabindex");return d?parseInt(d,10):ec.test(s.nodeName)||tc.test(s.nodeName)&&s.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),w.optSelected||(v.propHooks.selected={get:function(s){var d=s.parentNode;return d&&d.parentNode&&d.parentNode.selectedIndex,null},set:function(s){var d=s.parentNode;d&&(d.selectedIndex,d.parentNode&&d.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this});function sn(s){var d=s.match(Ee)||[];return d.join(" ")}function un(s){return s.getAttribute&&s.getAttribute("class")||""}function ka(s){return Array.isArray(s)?s:typeof s=="string"?s.match(Ee)||[]:[]}v.fn.extend({addClass:function(s){var d,g,b,F,S,T;return m(s)?this.each(function(U){v(this).addClass(s.call(this,U,un(this)))}):(d=ka(s),d.length?this.each(function(){if(b=un(this),g=this.nodeType===1&&" "+sn(b)+" ",g){for(S=0;S-1;)g=g.replace(" "+F+" "," ");T=sn(g),b!==T&&this.setAttribute("class",T)}}):this):this.attr("class","")},toggleClass:function(s,d){var g,b,F,S,T=typeof s,U=T==="string"||Array.isArray(s);return m(s)?this.each(function(q){v(this).toggleClass(s.call(this,q,un(this),d),d)}):typeof d=="boolean"&&U?d?this.addClass(s):this.removeClass(s):(g=ka(s),this.each(function(){if(U)for(S=v(this),F=0;F-1)return!0;return!1}});var rc=/\r/g;v.fn.extend({val:function(s){var d,g,b,F=this[0];return arguments.length?(b=m(s),this.each(function(S){var T;this.nodeType===1&&(b?T=s.call(this,S,v(this).val()):T=s,T==null?T="":typeof T=="number"?T+="":Array.isArray(T)&&(T=v.map(T,function(U){return U==null?"":U+""})),d=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()],(!d||!("set"in d)||d.set(this,T,"value")===void 0)&&(this.value=T))})):F?(d=v.valHooks[F.type]||v.valHooks[F.nodeName.toLowerCase()],d&&"get"in d&&(g=d.get(F,"value"))!==void 0?g:(g=F.value,typeof g=="string"?g.replace(rc,""):g==null?"":g)):void 0}}),v.extend({valHooks:{option:{get:function(s){var d=v.find.attr(s,"value");return d!=null?d:sn(v.text(s))}},select:{get:function(s){var d,g,b,F=s.options,S=s.selectedIndex,T=s.type==="select-one",U=T?null:[],q=T?S+1:F.length;for(S<0?b=q:b=T?S:0;b-1)&&(g=!0);return g||(s.selectedIndex=-1),S}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(s,d){if(Array.isArray(d))return s.checked=v.inArray(v(s).val(),d)>-1}},w.checkOn||(v.valHooks[this].get=function(s){return s.getAttribute("value")===null?"on":s.value})});var Wn=t.location,As={guid:Date.now()},$a=/\?/;v.parseXML=function(s){var d,g;if(!s||typeof s!="string")return null;try{d=new t.DOMParser().parseFromString(s,"text/xml")}catch{}return g=d&&d.getElementsByTagName("parsererror")[0],(!d||g)&&v.error("Invalid XML: "+(g?v.map(g.childNodes,function(b){return b.textContent}).join(` +`):s)),d};var Fs=/^(?:focusinfocus|focusoutblur)$/,_s=function(s){s.stopPropagation()};v.extend(v.event,{trigger:function(s,d,g,b){var F,S,T,U,q,K,ne,ue,ee=[g||y],ve=l.call(s,"type")?s.type:s,Oe=l.call(s,"namespace")?s.namespace.split("."):[];if(S=ue=T=g=g||y,!(g.nodeType===3||g.nodeType===8)&&!Fs.test(ve+v.event.triggered)&&(ve.indexOf(".")>-1&&(Oe=ve.split("."),ve=Oe.shift(),Oe.sort()),q=ve.indexOf(":")<0&&"on"+ve,s=s[v.expando]?s:new v.Event(ve,typeof s=="object"&&s),s.isTrigger=b?2:3,s.namespace=Oe.join("."),s.rnamespace=s.namespace?new RegExp("(^|\\.)"+Oe.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,s.result=void 0,s.target||(s.target=g),d=d==null?[s]:v.makeArray(d,[s]),ne=v.event.special[ve]||{},!(!b&&ne.trigger&&ne.trigger.apply(g,d)===!1))){if(!b&&!ne.noBubble&&!A(g)){for(U=ne.delegateType||ve,Fs.test(U+ve)||(S=S.parentNode);S;S=S.parentNode)ee.push(S),T=S;T===(g.ownerDocument||y)&&ee.push(T.defaultView||T.parentWindow||t)}for(F=0;(S=ee[F++])&&!s.isPropagationStopped();)ue=S,s.type=F>1?U:ne.bindType||ve,K=(G.get(S,"events")||Object.create(null))[s.type]&&G.get(S,"handle"),K&&K.apply(S,d),K=q&&S[q],K&&K.apply&&$(S)&&(s.result=K.apply(S,d),s.result===!1&&s.preventDefault());return s.type=ve,!b&&!s.isDefaultPrevented()&&(!ne._default||ne._default.apply(ee.pop(),d)===!1)&&$(g)&&q&&m(g[ve])&&!A(g)&&(T=g[q],T&&(g[q]=null),v.event.triggered=ve,s.isPropagationStopped()&&ue.addEventListener(ve,_s),g[ve](),s.isPropagationStopped()&&ue.removeEventListener(ve,_s),v.event.triggered=void 0,T&&(g[q]=T)),s.result}},simulate:function(s,d,g){var b=v.extend(new v.Event,g,{type:s,isSimulated:!0});v.event.trigger(b,null,d)}}),v.fn.extend({trigger:function(s,d){return this.each(function(){v.event.trigger(s,d,this)})},triggerHandler:function(s,d){var g=this[0];if(g)return v.event.trigger(s,d,g,!0)}});var nc=/\[\]$/,Ss=/\r?\n/g,ic=/^(?:submit|button|image|reset|file)$/i,ac=/^(?:input|select|textarea|keygen)/i;function qa(s,d,g,b){var F;if(Array.isArray(d))v.each(d,function(S,T){g||nc.test(s)?b(s,T):qa(s+"["+(typeof T=="object"&&T!=null?S:"")+"]",T,g,b)});else if(!g&&P(d)==="object")for(F in d)qa(s+"["+F+"]",d[F],g,b);else b(s,d)}v.param=function(s,d){var g,b=[],F=function(S,T){var U=m(T)?T():T;b[b.length]=encodeURIComponent(S)+"="+encodeURIComponent(U==null?"":U)};if(s==null)return"";if(Array.isArray(s)||s.jquery&&!v.isPlainObject(s))v.each(s,function(){F(this.name,this.value)});else for(g in s)qa(g,s[g],d,F);return b.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var s=v.prop(this,"elements");return s?v.makeArray(s):this}).filter(function(){var s=this.type;return this.name&&!v(this).is(":disabled")&&ac.test(this.nodeName)&&!ic.test(s)&&(this.checked||!nn.test(s))}).map(function(s,d){var g=v(this).val();return g==null?null:Array.isArray(g)?v.map(g,function(b){return{name:d.name,value:b.replace(Ss,`\r +`)}}):{name:d.name,value:g.replace(Ss,`\r +`)}}).get()}});var oc=/%20/g,sc=/#.*$/,uc=/([?&])_=[^&]*/,lc=/^(.*?):[ \t]*([^\r\n]*)$/mg,fc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,cc=/^(?:GET|HEAD)$/,dc=/^\/\//,Es={},Ha={},Ts="*/".concat("*"),za=y.createElement("a");za.href=Wn.href;function Ns(s){return function(d,g){typeof d!="string"&&(g=d,d="*");var b,F=0,S=d.toLowerCase().match(Ee)||[];if(m(g))for(;b=S[F++];)b[0]==="+"?(b=b.slice(1)||"*",(s[b]=s[b]||[]).unshift(g)):(s[b]=s[b]||[]).push(g)}}function Bs(s,d,g,b){var F={},S=s===Ha;function T(U){var q;return F[U]=!0,v.each(s[U]||[],function(K,ne){var ue=ne(d,g,b);if(typeof ue=="string"&&!S&&!F[ue])return d.dataTypes.unshift(ue),T(ue),!1;if(S)return!(q=ue)}),q}return T(d.dataTypes[0])||!F["*"]&&T("*")}function ja(s,d){var g,b,F=v.ajaxSettings.flatOptions||{};for(g in d)d[g]!==void 0&&((F[g]?s:b||(b={}))[g]=d[g]);return b&&v.extend(!0,s,b),s}function hc(s,d,g){for(var b,F,S,T,U=s.contents,q=s.dataTypes;q[0]==="*";)q.shift(),b===void 0&&(b=s.mimeType||d.getResponseHeader("Content-Type"));if(b){for(F in U)if(U[F]&&U[F].test(b)){q.unshift(F);break}}if(q[0]in g)S=q[0];else{for(F in g){if(!q[0]||s.converters[F+" "+q[0]]){S=F;break}T||(T=F)}S=S||T}if(S)return S!==q[0]&&q.unshift(S),g[S]}function pc(s,d,g,b){var F,S,T,U,q,K={},ne=s.dataTypes.slice();if(ne[1])for(T in s.converters)K[T.toLowerCase()]=s.converters[T];for(S=ne.shift();S;)if(s.responseFields[S]&&(g[s.responseFields[S]]=d),!q&&b&&s.dataFilter&&(d=s.dataFilter(d,s.dataType)),q=S,S=ne.shift(),S){if(S==="*")S=q;else if(q!=="*"&&q!==S){if(T=K[q+" "+S]||K["* "+S],!T){for(F in K)if(U=F.split(" "),U[1]===S&&(T=K[q+" "+U[0]]||K["* "+U[0]],T)){T===!0?T=K[F]:K[F]!==!0&&(S=U[0],ne.unshift(U[1]));break}}if(T!==!0)if(T&&s.throws)d=T(d);else try{d=T(d)}catch(ue){return{state:"parsererror",error:T?ue:"No conversion from "+q+" to "+S}}}}return{state:"success",data:d}}v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Wn.href,type:"GET",isLocal:fc.test(Wn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ts,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":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(s,d){return d?ja(ja(s,v.ajaxSettings),d):ja(v.ajaxSettings,s)},ajaxPrefilter:Ns(Es),ajaxTransport:Ns(Ha),ajax:function(s,d){typeof s=="object"&&(d=s,s=void 0),d=d||{};var g,b,F,S,T,U,q,K,ne,ue,ee=v.ajaxSetup({},d),ve=ee.context||ee,Oe=ee.context&&(ve.nodeType||ve.jquery)?v(ve):v.event,Je=v.Deferred(),qe=v.Callbacks("once memory"),Tt=ee.statusCode||{},Ft={},xr={},Ar="canceled",Xe={readyState:0,getResponseHeader:function(Ye){var yt;if(q){if(!S)for(S={};yt=lc.exec(F);)S[yt[1].toLowerCase()+" "]=(S[yt[1].toLowerCase()+" "]||[]).concat(yt[2]);yt=S[Ye.toLowerCase()+" "]}return yt==null?null:yt.join(", ")},getAllResponseHeaders:function(){return q?F:null},setRequestHeader:function(Ye,yt){return q==null&&(Ye=xr[Ye.toLowerCase()]=xr[Ye.toLowerCase()]||Ye,Ft[Ye]=yt),this},overrideMimeType:function(Ye){return q==null&&(ee.mimeType=Ye),this},statusCode:function(Ye){var yt;if(Ye)if(q)Xe.always(Ye[Xe.status]);else for(yt in Ye)Tt[yt]=[Tt[yt],Ye[yt]];return this},abort:function(Ye){var yt=Ye||Ar;return g&&g.abort(yt),ln(0,yt),this}};if(Je.promise(Xe),ee.url=((s||ee.url||Wn.href)+"").replace(dc,Wn.protocol+"//"),ee.type=d.method||d.type||ee.method||ee.type,ee.dataTypes=(ee.dataType||"*").toLowerCase().match(Ee)||[""],ee.crossDomain==null){U=y.createElement("a");try{U.href=ee.url,U.href=U.href,ee.crossDomain=za.protocol+"//"+za.host!=U.protocol+"//"+U.host}catch{ee.crossDomain=!0}}if(ee.data&&ee.processData&&typeof ee.data!="string"&&(ee.data=v.param(ee.data,ee.traditional)),Bs(Es,ee,d,Xe),q)return Xe;K=v.event&&ee.global,K&&v.active++===0&&v.event.trigger("ajaxStart"),ee.type=ee.type.toUpperCase(),ee.hasContent=!cc.test(ee.type),b=ee.url.replace(sc,""),ee.hasContent?ee.data&&ee.processData&&(ee.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ee.data=ee.data.replace(oc,"+")):(ue=ee.url.slice(b.length),ee.data&&(ee.processData||typeof ee.data=="string")&&(b+=($a.test(b)?"&":"?")+ee.data,delete ee.data),ee.cache===!1&&(b=b.replace(uc,"$1"),ue=($a.test(b)?"&":"?")+"_="+As.guid+++ue),ee.url=b+ue),ee.ifModified&&(v.lastModified[b]&&Xe.setRequestHeader("If-Modified-Since",v.lastModified[b]),v.etag[b]&&Xe.setRequestHeader("If-None-Match",v.etag[b])),(ee.data&&ee.hasContent&&ee.contentType!==!1||d.contentType)&&Xe.setRequestHeader("Content-Type",ee.contentType),Xe.setRequestHeader("Accept",ee.dataTypes[0]&&ee.accepts[ee.dataTypes[0]]?ee.accepts[ee.dataTypes[0]]+(ee.dataTypes[0]!=="*"?", "+Ts+"; q=0.01":""):ee.accepts["*"]);for(ne in ee.headers)Xe.setRequestHeader(ne,ee.headers[ne]);if(ee.beforeSend&&(ee.beforeSend.call(ve,Xe,ee)===!1||q))return Xe.abort();if(Ar="abort",qe.add(ee.complete),Xe.done(ee.success),Xe.fail(ee.error),g=Bs(Ha,ee,d,Xe),!g)ln(-1,"No Transport");else{if(Xe.readyState=1,K&&Oe.trigger("ajaxSend",[Xe,ee]),q)return Xe;ee.async&&ee.timeout>0&&(T=t.setTimeout(function(){Xe.abort("timeout")},ee.timeout));try{q=!1,g.send(Ft,ln)}catch(Ye){if(q)throw Ye;ln(-1,Ye)}}function ln(Ye,yt,Xn,Wa){var Fr,Zn,_r,jr,Ur,nr=yt;q||(q=!0,T&&t.clearTimeout(T),g=void 0,F=Wa||"",Xe.readyState=Ye>0?4:0,Fr=Ye>=200&&Ye<300||Ye===304,Xn&&(jr=hc(ee,Xe,Xn)),!Fr&&v.inArray("script",ee.dataTypes)>-1&&v.inArray("json",ee.dataTypes)<0&&(ee.converters["text script"]=function(){}),jr=pc(ee,jr,Xe,Fr),Fr?(ee.ifModified&&(Ur=Xe.getResponseHeader("Last-Modified"),Ur&&(v.lastModified[b]=Ur),Ur=Xe.getResponseHeader("etag"),Ur&&(v.etag[b]=Ur)),Ye===204||ee.type==="HEAD"?nr="nocontent":Ye===304?nr="notmodified":(nr=jr.state,Zn=jr.data,_r=jr.error,Fr=!_r)):(_r=nr,(Ye||!nr)&&(nr="error",Ye<0&&(Ye=0))),Xe.status=Ye,Xe.statusText=(yt||nr)+"",Fr?Je.resolveWith(ve,[Zn,nr,Xe]):Je.rejectWith(ve,[Xe,nr,_r]),Xe.statusCode(Tt),Tt=void 0,K&&Oe.trigger(Fr?"ajaxSuccess":"ajaxError",[Xe,ee,Fr?Zn:_r]),qe.fireWith(ve,[Xe,nr]),K&&(Oe.trigger("ajaxComplete",[Xe,ee]),--v.active||v.event.trigger("ajaxStop")))}return Xe},getJSON:function(s,d,g){return v.get(s,d,g,"json")},getScript:function(s,d){return v.get(s,void 0,d,"script")}}),v.each(["get","post"],function(s,d){v[d]=function(g,b,F,S){return m(b)&&(S=S||F,F=b,b=void 0),v.ajax(v.extend({url:g,type:d,dataType:S,data:b,success:F},v.isPlainObject(g)&&g))}}),v.ajaxPrefilter(function(s){var d;for(d in s.headers)d.toLowerCase()==="content-type"&&(s.contentType=s.headers[d]||"")}),v._evalUrl=function(s,d,g){return v.ajax({url:s,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(b){v.globalEval(b,d,g)}})},v.fn.extend({wrapAll:function(s){var d;return this[0]&&(m(s)&&(s=s.call(this[0])),d=v(s,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&d.insertBefore(this[0]),d.map(function(){for(var g=this;g.firstElementChild;)g=g.firstElementChild;return g}).append(this)),this},wrapInner:function(s){return m(s)?this.each(function(d){v(this).wrapInner(s.call(this,d))}):this.each(function(){var d=v(this),g=d.contents();g.length?g.wrapAll(s):d.append(s)})},wrap:function(s){var d=m(s);return this.each(function(g){v(this).wrapAll(d?s.call(this,g):s)})},unwrap:function(s){return this.parent(s).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(s){return!v.expr.pseudos.visible(s)},v.expr.pseudos.visible=function(s){return!!(s.offsetWidth||s.offsetHeight||s.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var vc={0:200,1223:204},Vn=v.ajaxSettings.xhr();w.cors=!!Vn&&"withCredentials"in Vn,w.ajax=Vn=!!Vn,v.ajaxTransport(function(s){var d,g;if(w.cors||Vn&&!s.crossDomain)return{send:function(b,F){var S,T=s.xhr();if(T.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(S in s.xhrFields)T[S]=s.xhrFields[S];s.mimeType&&T.overrideMimeType&&T.overrideMimeType(s.mimeType),!s.crossDomain&&!b["X-Requested-With"]&&(b["X-Requested-With"]="XMLHttpRequest");for(S in b)T.setRequestHeader(S,b[S]);d=function(U){return function(){d&&(d=g=T.onload=T.onerror=T.onabort=T.ontimeout=T.onreadystatechange=null,U==="abort"?T.abort():U==="error"?typeof T.status!="number"?F(0,"error"):F(T.status,T.statusText):F(vc[T.status]||T.status,T.statusText,(T.responseType||"text")!=="text"||typeof T.responseText!="string"?{binary:T.response}:{text:T.responseText},T.getAllResponseHeaders()))}},T.onload=d(),g=T.onerror=T.ontimeout=d("error"),T.onabort!==void 0?T.onabort=g:T.onreadystatechange=function(){T.readyState===4&&t.setTimeout(function(){d&&g()})},d=d("abort");try{T.send(s.hasContent&&s.data||null)}catch(U){if(d)throw U}},abort:function(){d&&d()}}}),v.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(s){return v.globalEval(s),s}}}),v.ajaxPrefilter("script",function(s){s.cache===void 0&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),v.ajaxTransport("script",function(s){if(s.crossDomain||s.scriptAttrs){var d,g;return{send:function(b,F){d=v("