@sellgar/kit 0.0.116 → 0.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.js +46 -0
- package/package.json +9 -9
- package/dist/index.cjs +0 -46
package/dist/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const o=require("react"),se=require("classnames"),Be=require("react/jsx-runtime");function Nm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=Nm(o),$m="_wrapper_y5p8d_1",dt={wrapper:$m,"size--2xl":"_size--2xl_y5p8d_11","size--xl":"_size--xl_y5p8d_15","size--lg":"_size--lg_y5p8d_19","size--md":"_size--md_y5p8d_23","size--sm":"_size--sm_y5p8d_27","size--xs":"_size--xs_y5p8d_31","color--gray":"_color--gray_y5p8d_37","color--green":"_color--green_y5p8d_40","color--blue":"_color--blue_y5p8d_43","color--orange":"_color--orange_y5p8d_46","color--red":"_color--red_y5p8d_49","color--purple":"_color--purple_y5p8d_52"},co=({size:e="2xl",color:t="gray"})=>{const n=o.useMemo(()=>se(dt.wrapper,{[dt["size--2xl"]]:e==="2xl",[dt["size--xl"]]:e==="xl",[dt["size--lg"]]:e==="lg",[dt["size--md"]]:e==="md",[dt["size--sm"]]:e==="sm",[dt["size--xs"]]:e==="xs"},{[dt["color--gray"]]:t==="gray",[dt["color--green"]]:t==="green",[dt["color--blue"]]:t==="blue",[dt["color--orange"]]:t==="orange",[dt["color--red"]]:t==="red",[dt["color--purple"]]:t==="purple"}),[e,t]);return o.createElement("div",{className:n})},xe=e=>o.createElement("span",{className:"icon-"+e.icon}),Pm=["ancient-gate-fill","ancient-gate-line","ancient-pavilion-fill","ancient-pavilion-line","bank-fill","bank-line","building-2-fill","building-2-line","building-3-fill","building-3-line","building-4-fill","building-4-line","building-fill","building-line","community-fill","community-line","government-fill","government-line","home-2-fill","home-2-line","home-3-fill","home-3-line","home-4-fill","home-4-line","home-5-fill","home-5-line","home-6-fill","home-6-line","home-7-fill","home-7-line","home-8-fill","home-8-line","home-fill","home-gear-fill","home-gear-line","home-heart-fill","home-heart-line","home-line","home-smile-2-fill","home-smile-2-line","home-smile-fill","home-smile-line","home-wifi-fill","home-wifi-line","hospital-fill","hospital-line","hotel-fill","hotel-line","store-2-fill","store-2-line","store-3-fill","store-3-line","store-fill","store-line","advertisement-fill","advertisement-line","archive-drawer-fill","archive-drawer-line","archive-fill","archive-line","at-fill","at-line","attachment-fill","attachment-line","award-fill","award-line","bar-chart-2-fill","bar-chart-2-line","bar-chart-box-fill","bar-chart-box-line","bar-chart-fill","bar-chart-grouped-fill","bar-chart-grouped-line","bar-chart-horizontal-fill","bar-chart-horizontal-line","bar-chart-line","bookmark-2-fill","bookmark-2-line","bookmark-3-fill","bookmark-3-line","bookmark-fill","bookmark-line","briefcase-2-fill","briefcase-2-line","briefcase-3-fill","briefcase-3-line","briefcase-4-fill","briefcase-4-line","briefcase-5-fill","briefcase-5-line","briefcase-fill","briefcase-line","bubble-chart-fill","bubble-chart-line","calculator-fill","calculator-line","calendar-2-fill","calendar-2-line","calendar-check-fill","calendar-check-line","calendar-event-fill","calendar-event-line","calendar-fill","calendar-line","calendar-todo-fill","calendar-todo-line","cloud-fill","cloud-line","cloud-off-fill","cloud-off-line","copyleft-fill","copyleft-line","copyright-fill","copyright-line","creative-commons-by-fill","creative-commons-by-line","creative-commons-fill","creative-commons-line","creative-commons-nc-fill","creative-commons-nc-line","creative-commons-nd-fill","creative-commons-nd-line","creative-commons-sa-fill","creative-commons-sa-line","creative-commons-zero-fill","creative-commons-zero-line","customer-service-2-fill","customer-service-2-line","customer-service-fill","customer-service-line","donut-chart-fill","donut-chart-line","flag-2-fill","flag-2-line","flag-fill","flag-line","global-fill","global-line","honour-fill","honour-line","inbox-archive-fill","inbox-archive-line","inbox-fill","inbox-line","inbox-unarchive-fill","inbox-unarchive-line","line-chart-fill","line-chart-line","links-fill","links-line","mail-add-fill","mail-add-line","mail-check-fill","mail-check-line","mail-close-fill","mail-close-line","mail-download-fill","mail-download-line","mail-fill","mail-forbid-fill","mail-forbid-line","mail-line","mail-lock-fill","mail-lock-line","mail-open-fill","mail-open-line","mail-send-fill","mail-send-line","mail-settings-fill","mail-settings-line","mail-star-fill","mail-star-line","mail-unread-fill","mail-unread-line","mail-volume-fill","mail-volume-line","medal-2-fill","medal-2-line","medal-fill","medal-line","pie-chart-2-fill","pie-chart-2-line","pie-chart-box-fill","pie-chart-box-line","pie-chart-fill","pie-chart-line","printer-cloud-fill","printer-cloud-line","printer-fill","printer-line","profile-fill","profile-line","projector-2-fill","projector-2-line","projector-fill","projector-line","record-mail-fill","record-mail-line","registered-fill","registered-line","reply-all-fill","reply-all-line","reply-fill","reply-line","send-plane-2-fill","send-plane-2-line","send-plane-fill","send-plane-line","service-fill","service-line","slideshow-2-fill","slideshow-2-line","slideshow-3-fill","slideshow-3-line","slideshow-4-fill","slideshow-4-line","slideshow-fill","slideshow-line","stack-fill","stack-line","trademark-fill","trademark-line","window-2-fill","window-2-line","window-fill","window-line","chat-1-fill","chat-1-line","chat-2-fill","chat-2-line","chat-3-fill","chat-3-line","chat-4-fill","chat-4-line","chat-check-fill","chat-check-line","chat-delete-fill","chat-delete-line","chat-download-fill","chat-download-line","chat-follow-up-fill","chat-follow-up-line","chat-forward-fill","chat-forward-line","chat-heart-fill","chat-heart-line","chat-history-fill","chat-history-line","chat-new-fill","chat-new-line","chat-off-fill","chat-off-line","chat-poll-fill","chat-poll-line","chat-private-fill","chat-private-line","chat-quote-fill","chat-quote-line","chat-settings-fill","chat-settings-line","chat-smile-2-fill","chat-smile-2-line","chat-smile-3-fill","chat-smile-3-line","chat-smile-fill","chat-smile-line","chat-upload-fill","chat-upload-line","chat-voice-fill","chat-voice-line","discuss-fill","discuss-line","feedback-fill","feedback-line","message-2-fill","message-2-line","message-3-fill","message-3-line","message-fill","message-line","question-answer-fill","question-answer-line","questionnaire-fill","questionnaire-line","video-chat-fill","video-chat-line","anticlockwise-2-fill","anticlockwise-2-line","anticlockwise-fill","anticlockwise-line","artboard-2-fill","artboard-2-line","artboard-fill","artboard-line","ball-pen-fill","ball-pen-line","blur-off-fill","blur-off-line","brush-2-fill","brush-2-line","brush-3-fill","brush-3-line","brush-4-fill","brush-4-line","brush-fill","brush-line","clockwise-2-fill","clockwise-2-line","clockwise-fill","clockwise-line","collage-fill","collage-line","compasses-2-fill","compasses-2-line","compasses-fill","compasses-line","contrast-2-fill","contrast-2-line","contrast-drop-2-fill","contrast-drop-2-line","contrast-drop-fill","contrast-drop-line","contrast-fill","contrast-line","crop-2-fill","crop-2-line","crop-fill","crop-line","drag-drop-fill","drag-drop-line","drag-move-2-fill","drag-move-2-line","drag-move-fill","drag-move-line","drop-fill","drop-line","edit-2-fill","edit-2-line","edit-box-fill","edit-box-line","edit-circle-fill","edit-circle-line","edit-fill","edit-line","eraser-fill","eraser-line","focus-2-fill","focus-2-line","focus-3-fill","focus-3-line","focus-fill","focus-line","grid-fill","grid-line","hammer-fill","hammer-line","ink-bottle-fill","braces-fill","braces-line","brackets-fill","brackets-line","bug-2-fill","bug-2-line","bug-fill","bug-line","code-box-fill","code-box-line","code-fill","code-line","code-s-fill","code-s-line","code-s-slash-fill","code-s-slash-line","command-fill","command-line","css3-fill","css3-line","cursor-fill","cursor-line","git-branch-fill","git-branch-line","git-commit-fill","git-commit-line","git-merge-fill","git-merge-line","git-pull-request-fill","git-pull-request-line","git-repository-commits-fill","git-repository-commits-line","git-repository-fill","git-repository-line","git-repository-private-fill","git-repository-private-line","html5-fill","html5-line","parentheses-fill","parentheses-line","terminal-box-fill","terminal-box-line","terminal-fill","terminal-line","terminal-window-fill","terminal-window-line","airplay-fill","airplay-line","barcode-box-fill","barcode-box-line","barcode-fill","barcode-line","base-station-fill","base-station-line","battery-2-charge-fill","battery-2-charge-line","battery-2-fill","battery-2-line","battery-charge-fill","battery-charge-line","battery-fill","battery-line","battery-low-fill","battery-low-line","battery-saver-fill","battery-saver-line","battery-share-fill","battery-share-line","bluetooth-connect-fill","bluetooth-connect-line","bluetooth-fill","bluetooth-line","cast-fill","cast-line","cellphone-fill","cellphone-line","computer-fill","computer-line","cpu-fill","cpu-line","dashboard-2-fill","dashboard-2-line","dashboard-3-fill","dashboard-3-line","database-2-fill","database-2-line","database-fill","database-line","device-fill","device-line","device-recover-fill","device-recover-line","device-recover-line-1","dual-sim-1-fill","dual-sim-1-line","dual-sim-2-fill","dual-sim-2-line","fingerprint-2-fill","fingerprint-2-line","fingerprint-fill","fingerprint-line","gamepad-fill","gamepad-line","gps-fill","gps-line","gradienter-fill","gradienter-line","hard-drive-2-fill","hard-drive-2-line","hard-drive-fill","hard-drive-line","hotspot-fill","hotspot-line","install-fill","install-line","keyboard-box-fill","keyboard-box-line","keyboard-fill","keyboard-line","macbook-fill","macbook-line","mac-fill","mac-line","mouse-fill","mouse-line","phone-fill","phone-find-fill","phone-find-line","phone-line","phone-lock-fill","phone-lock-line","qr-code-fill","qr-code-line","qr-scan-2-fill","qr-scan-2-line","qr-scan-fill","qr-scan-line","radar-fill","radar-line","remote-control-2-fill","remote-control-2-line","remote-control-fill","remote-control-line","restart-fill","restart-line","rotate-lock-fill","rotate-lock-line","router-fill","router-line","rss-fill","rss-line","save-2-fill","save-2-line","save-3-fill","save-3-line","save-fill","save-line","scan-2-fill","scan-2-line","scan-fill","scan-line","sd-card-fill","sd-card-line","sd-card-mini-fill","sd-card-mini-line","sensor-fill","sensor-line","server-fill","server-line","shut-down-fill","shut-down-line","signal-wifi-1-fill","signal-wifi-1-line","signal-wifi-2-fill","signal-wifi-2-line","signal-wifi-3-fill","signal-wifi-3-line","signal-wifi-error-fill","signal-wifi-error-line","signal-wifi-fill","signal-wifi-line","signal-wifi-off-fill","signal-wifi-off-line","sim-card-2-fill","sim-card-2-line","sim-card-fill","sim-card-line","smartphone-fill","smartphone-line","tablet-fill","tablet-line","tv-2-fill","tv-2-line","tv-fill","tv-line","u-disk-fill","u-disk-line","uninstall-fill","uninstall-line","usb-fill","usb-line","wifi-fill","wifi-line","wifi-off-fill","wifi-off-line","wireless-charging-fill","wireless-charging-line","article-fill","article-line","bill-fill","bill-line","book-2-fill","book-2-line","book-3-fill","book-3-line","book-fill","booklet-fill","booklet-line","book-line","book-mark-fill","book-mark-line","book-open-fill","book-open-line","book-read-fill","book-read-line","clipboard-fill","clipboard-line","contacts-book-2-fill","contacts-book-2-line","contacts-book-fill","contacts-book-line","contacts-book-upload-fill","contacts-book-upload-line","draft-fill","draft-line","file-2-fill","file-2-line","file-3-fill","file-3-line","file-4-fill","file-4-line","file-add-fill","file-add-line","file-chart-2-fill","file-chart-2-line","file-chart-fill","file-chart-line","file-cloud-fill","file-cloud-line","file-code-fill","file-code-line","file-copy-2-fill","file-copy-2-line","file-copy-fill","file-copy-line","file-damage-fill","file-damage-line","file-download-fill","file-download-line","file-edit-fill","file-edit-line","file-excel-2-fill","file-excel-2-line","file-excel-fill","file-excel-line","file-fill","file-forbid-fill","file-forbid-line","file-gif-fill","file-gif-line","file-history-fill","file-history-line","file-hwp-fill","file-hwp-line","file-info-fill","file-info-line","file-line","file-list-2-fill","file-list-2-line","file-list-3-fill","file-list-3-line","file-list-fill","file-list-line","file-lock-fill","file-lock-line","file-mark-fill","file-mark-line","file-music-fill","file-music-line","file-paper-2-fill","file-paper-2-line","file-paper-fill","file-paper-line","file-pdf-fill","file-pdf-line","file-ppt-2-fill","file-ppt-2-line","file-ppt-fill","file-ppt-line","file-reduce-fill","file-reduce-line","file-search-fill","file-search-line","file-settings-fill","file-settings-line","file-shield-2-fill","file-shield-2-line","file-shield-fill","file-shield-line","file-shred-fill","file-shred-line","file-text-fill","file-text-line","file-transfer-fill","file-transfer-line","file-unknow-fill","file-unknow-line","file-upload-fill","file-upload-line","file-user-fill","file-user-line","file-warning-fill","file-warning-line","file-word-2-fill","file-word-2-line","file-word-fill","file-word-line","file-zip-fill","file-zip-line","folder-2-fill","folder-2-line","folder-3-fill","folder-3-line","folder-4-fill","folder-4-line","folder-5-fill","folder-5-line","folder-add-fill","folder-add-line","folder-chart-2-fill","folder-chart-2-line","folder-chart-fill","folder-chart-line","folder-download-fill","folder-download-line","folder-fill","folder-forbid-fill","folder-forbid-line","folder-history-fill","folder-history-line","folder-info-fill","folder-info-line","folder-keyhole-fill","folder-keyhole-line","folder-line","folder-lock-fill","folder-lock-line","folder-music-fill","folder-music-line","folder-open-fill","folder-open-line","folder-received-fill","folder-received-line","folder-reduce-fill","folder-reduce-line","folder-settings-fill","folder-settings-line","folders-fill","folder-shared-fill","folder-shared-line","folder-shield-2-fill","folder-shield-2-line","folder-shield-fill","folder-shield-line","folders-line","folder-transfer-fill","folder-transfer-line","folder-unknow-fill","folder-unknow-line","folder-upload-fill","folder-upload-line","folder-user-fill","folder-user-line","folder-warning-fill","folder-warning-line","folder-zip-fill","folder-zip-line","keynote-fill","keynote-line","markdown-fill","markdown-line","newspaper-fill","newspaper-line","numbers-fill","numbers-line","pages-fill","pages-line","sticky-note-2-fill","sticky-note-2-line","sticky-note-fill","sticky-note-line","survey-fill","survey-line","task-fill","task-line","todo-fill","todo-line","a-b","align-bottom","align-center","align-justify","align-left","align-right","align-top","align-vertically","asterisk","attachment-2","bold","bring-forward","bring-to-front","code-view","delete-column","delete-row","double-quotes-l","double-quotes-r","emphasis","emphasis-cn","english-input","flow-chart","font-color","font-size","font-size-2","format-clear","functions","h-1","h-2","h-3","h-4","h-5","h-6","hashtag","heading","indent-decrease","indent-increase","input-cursor-move","insert-column-left","insert-column-right","insert-row-bottom","insert-row-top","italic","line-height","link","link-m","link-unlink","link-unlink-m","list-check","list-check-2","list-ordered","list-unordered","merge-cells-horizontal","merge-cells-vertical","mind-map","node-tree","number-0","number-1","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","omega","organization-chart","page-separator","paragraph","pinyin-input","question-mark","rounded-corner","send-backward","send-to-back","separator","single-quotes-l","single-quotes-r","sort-asc","sort-desc","space","split-cells-horizontal","split-cells-vertical","strikethrough","strikethrough-2","subscript","subscript-2","superscript","superscript-2","table-2","text","text-direction-l","text-direction-r","text-spacing","text-wrap","translate","translate-2","underline","wubi-input","hours-fill","hours-line","auction-fill","auction-line","bank-card-2-fill","bank-card-2-line","bank-card-fill","bank-card-line","bit-coin-fill","bit-coin-line","coin-fill","coin-line","coins-fill","coins-line","copper-coin-fill","copper-coin-line","copper-diamond-fill","copper-diamond-line","coupon-2-line","coupon-3-fill","coupon-3-line","coupon-4-fill","coupon-4-line","coupon-5-fill","coupon-5-line","coupon-fill","coupon-line","currency-fill","currency-line","exchange-box-fill","exchange-box-line","exchange-cny-fill","exchange-cny-line","exchange-dollar-fill","exchange-dollar-line","exchange-fill","exchange-funds-fill","exchange-funds-line","exchange-line","funds-box-fill","funds-box-line","funds-fill","funds-line","gift-2-fill","gift-2-line","gift-fill","gift-line","hand-coin-fill","hand-coin-line","hand-heart-fill","hand-heart-line","increase-decrease-fill","increase-decrease-line","money-cny-box-fill","money-cny-box-line","money-cny-circle-fill","money-cny-circle-line","money-dollar-box-fill","money-dollar-box-line","money-dollar-circle-fill","money-dollar-circle-line","money-euro-box-fill","money-euro-box-line","money-euro-circle-fill","money-euro-circle-line","money-pound-box-fill","money-pound-box-line","money-pound-circle-fill","money-pound-circle-line","percent-fill","percent-line","price-tag-2-fill","price-tag-2-line","price-tag-3-fill","price-tag-3-line","price-tag-fill","price-tag-line","red-packet-fill","red-packet-line","refund-2-fill","refund-2-line","refund-fill","refund-line","safe-2-fill","safe-2-line","safe-fill","safe-line","secure-payment-fill","secure-payment-line","shopping-bag-2-fill","shopping-bag-2-line","shopping-bag-3-fill","shopping-bag-3-line","shopping-bag-fill","shopping-bag-line","shopping-basket-2-fill","shopping-basket-2-line","shopping-basket-fill","shopping-basket-line","shopping-cart-2-fill","shopping-cart-2-line","shopping-cart-fill","shopping-cart-line","stock-fill","stock-line","swap-box-fill","swap-box-line","swap-fill","swap-line","ticket-2-fill","ticket-2-line","ticket-fill","ticket-line","trophy-fill","trophy-line","vip-crown-2-fill","vip-crown-2-line","vip-crown-fill","vip-crown-line","vip-diamond-fill","vip-diamond-line","vip-fill","vip-line","wallet-2-fill","wallet-2-line","wallet-3-fill","wallet-3-line","wallet-fill","wallet-line","water-flash-fill","water-flash-line","capsule-fill","capsule-line","dislike-fill","dislike-line","dossier-fill","dossier-line","empathize-fill","empathize-line","first-aid-kit-fill","first-aid-kit-line","flask-fill","flask-line","hand-sanitizer-fill","hand-sanitizer-line","health-book-fill","health-book-line","heart-2-fill","heart-2-line","heart-3-fill","heart-3-line","heart-add-fill","heart-add-line","heart-fill","heart-line","heart-pulse-fill","heart-pulse-line","hearts-fill","infrared-thermometer-fill","infrared-thermometer-line","lungs-fill","lungs-line","lungs-line-1","medicine-bottle-fill","medicine-bottle-line","mental-health-fill","mental-health-line","microscope-fill","microscope-line","nurse-fill","nurse-line","psychotherapy-fill","psychotherapy-line","pulse-fill","pulse-line","rest-time-fill","rest-time-line","stethoscope-fill","stethoscope-line","surgical-mask-fill","surgical-mask-line","syringe-fill","syringe-line","test-tube-fill","test-tube-line","thermometer-fill","thermometer-line","virus-fill","virus-line","zzz-fill","zzz-line","alipay-fill","alipay-line","amazon-fill","amazon-line","android-fill","android-line","angularjs-fill","angularjs-line","apple-fill","apple-line","app-store-fill","app-store-line","baidu-fill","baidu-line","behance-fill","behance-line","bilibili-fill","bilibili-line","centos-fill","centos-line","chrome-fill","chrome-line","codepen-fill","codepen-line","coreos-fill","coreos-line","dingding-fill","dingding-line","discord-fill","discord-line","disqus-fill","disqus-line","douban-fill","douban-line","dribbble-fill","dribbble-line","drive-fill","drive-line","dropbox-fill","dropbox-line","edge-fill","edge-line","evernote-fill","evernote-line","facebook-box-fill","facebook-box-line","facebook-circle-fill","facebook-circle-line","facebook-fill","facebook-line","figma-line","finder-fill","finder-line","firefox-fill","firefox-line","flutter-fill","flutter-line","gatsby-fill","gatsby-line","github-fill","github-line","gitlab-fill","gitlab-line","google-fill","google-line","google-play-fill","google-play-line","honor-of-kings-fill","honor-of-kings-line","ie-fill","ie-line","instagram-fill","instagram-line","invision-fill","invision-line","kakao-talk-fill","kakao-talk-line","line-fill","line-line","linkedin-box-fill","linkedin-box-line","linkedin-fill","linkedin-line","mastercard-fill","mastercard-line","mastodon-fill","mastodon-line","medium-fill","medium-line","messenger-fill","messenger-line","microsoft-fill","microsoft-line","mini-program-fill","mini-program-line","netease-cloud-music-fill","netease-cloud-music-line","netflix-fill","netflix-line","npmjs-fill","npmjs-line","open-source-fill","open-source-line","opera-fill","opera-line","patreon-fill","patreon-line","paypal-fill","paypal-line","pinterest-fill","pinterest-line","pixelfed-fill","pixelfed-line","playstation-fill","playstation-line","product-hunt-fill","product-hunt-line","qq-fill","qq-line","reactjs-fill","reactjs-line","reddit-fill","reddit-line","remixicon-fill","remixicon-line","safari-fill","safari-line","skype-fill","skype-line","slack-fill","slack-line","snapchat-fill","snapchat-line","soundcloud-fill","soundcloud-line","spectrum-fill","spectrum-line","spotify-fill","spotify-line","stack-overflow-fill","stack-overflow-line","stackshare-fill","stackshare-line","steam-fill","steam-line","switch-fill","switch-line","taobao-fill","taobao-line","telegram-fill","telegram-line","trello-fill","trello-line","tumblr-fill","tumblr-line","twitch-fill","twitch-line","twitter-fill","twitter-line","ubuntu-fill","ubuntu-line","unsplash-fill","unsplash-line","vimeo-fill","vimeo-line","visa-fill","visa-line","vuejs-fill","vuejs-line","wechat-2-fill","wechat-2-line","wechat-fill","wechat-line","wechat-pay-fill","wechat-pay-line","weibo-fill","weibo-line","whatsapp-fill","whatsapp-line","windows-fill","windows-line","xbox-fill","xbox-line","xing-fill","xing-line","youtube-fill","youtube-line","zcool-fill","zcool-line","zhihu-fill","zhihu-line","anchor-fill","anchor-line","barricade-fill","barricade-line","bike-fill","bike-line","bus-2-fill","bus-2-line","bus-fill","bus-line","bus-wifi-fill","bus-wifi-line","caravan-fill","caravan-line","car-fill","car-line","car-washing-fill","car-washing-line","charging-pile-2-fill","charging-pile-2-line","charging-pile-fill","charging-pile-line","china-railway-fill","china-railway-line","compass-2-fill","compass-2-line","compass-3-fill","compass-3-line","compass-4-fill","compass-4-line","compass-discover-fill","compass-discover-line","compass-fill","compass-line","cup-fill","cup-line","direction-fill","direction-line","earth-fill","earth-line","e-bike-2-fill","e-bike-2-line","e-bike-fill","e-bike-line","flight-land-fill","flight-land-line","flight-takeoff-fill","flight-takeoff-line","footprint-fill","footprint-line","gas-station-fill","gas-station-line","globe-fill","globe-line","goblet-fill","goblet-line","guide-fill","guide-line","hotel-bed-fill","hotel-bed-line","lifebuoy-fill","lifebuoy-line","luggage-cart-fill","luggage-cart-line","luggage-deposit-fill","luggage-deposit-line","map-2-fill","map-2-line","map-fill","map-line","map-pin-2-fill","map-pin-2-line","map-pin-3-fill","map-pin-3-line","map-pin-4-fill","map-pin-4-line","map-pin-5-fill","map-pin-5-line","map-pin-add-fill","map-pin-add-line","map-pin-fill","map-pin-line","map-pin-range-fill","map-pin-range-line","map-pin-time-fill","map-pin-time-line","map-pin-user-fill","map-pin-user-line","motorbike-fill","motorbike-line","navigation-fill","navigation-line","oil-fill","oil-line","parking-box-fill","parking-box-line","parking-fill","parking-line","passport-fill","passport-line","pin-distance-fill","pin-distance-line","plane-fill","plane-line","police-car-fill","police-car-line","pushpin-2-fill","pushpin-2-line","pushpin-fill","pushpin-line","restaurant-2-fill","restaurant-2-line","restaurant-fill","restaurant-line","riding-fill","riding-line","road-map-fill","road-map-line","roadster-fill","roadster-line","rocket-2-fill","rocket-2-line","rocket-fill","rocket-line","route-fill","route-line","run-fill","run-line","sailboat-fill","sailboat-line","ship-2-fill","ship-2-line","ship-fill","ship-line","signal-tower-fill","signal-tower-line","space-ship-fill","space-ship-line","steering-2-fill","steering-2-line","steering-fill","steering-line","subway-fill","subway-line","subway-wifi-fill","subway-wifi-line","suitcase-2-fill","suitcase-2-line","suitcase-3-fill","suitcase-3-line","suitcase-fill","suitcase-line","takeaway-fill","takeaway-line","taxi-fill","taxi-line","taxi-wifi-fill","taxi-wifi-line","traffic-light-fill","traffic-light-line","train-fill","train-line","train-wifi-fill","train-wifi-line","treasure-map-fill","treasure-map-line","truck-fill","truck-line","walk-fill","walk-line","k-fill","k-line","album-fill","album-line","aspect-ratio-fill","aspect-ratio-line","broadcast-fill","broadcast-line","camera-2-fill","camera-2-line","camera-3-fill","camera-3-line","camera-fill","camera-lens-fill","camera-lens-line","camera-line","camera-off-fill","camera-off-line","camera-switch-fill","camera-switch-line","clapperboard-fill","clapperboard-line","closed-captioning-fill","closed-captioning-line","disc-fill","disc-line","dvd-fill","dvd-line","dv-fill","dv-line","eject-fill","eject-line","equalizer-fill","equalizer-line","film-fill","film-line","fullscreen-exit-fill","fullscreen-exit-line","fullscreen-fill","fullscreen-line","gallery-fill","gallery-line","gallery-upload-fill","gallery-upload-line","hd-fill","hd-line","headphone-fill","headphone-line","hq-fill","hq-line","image-2-fill","image-2-line","image-add-fill","image-add-line","image-edit-fill","image-edit-line","image-fill","image-line","landscape-fill","landscape-line","live-fill","live-line","mic-2-fill","mic-2-line","mic-fill","mic-line","mic-off-fill","mic-off-line","movie-2-fill","movie-2-line","movie-fill","movie-line","music-2-fill","music-2-line","music-fill","music-line","mv-fill","mv-line","notification-2-fill","notification-2-line","notification-3-fill","notification-3-line","notification-4-fill","notification-4-line","notification-fill","notification-line","notification-off-fill","notification-off-line","order-play-fill","order-play-line","pause-circle-fill","pause-circle-line","pause-fill","pause-line","pause-mini-fill","pause-mini-line","phone-camera-fill","phone-camera-line","picture-in-picture-2-fill","picture-in-picture-2-line","picture-in-picture-exit-fill","picture-in-picture-exit-line","picture-in-picture-fill","picture-in-picture-line","play-circle-fill","play-circle-line","play-fill","play-line","play-list-2-fill","play-list-2-line","play-list-add-fill","play-list-add-line","play-list-fill","play-list-line","play-mini-fill","play-mini-line","polaroid-2-fill","polaroid-2-line","polaroid-fill","polaroid-line","radio-2-fill","radio-2-line","radio-fill","radio-line","record-circle-fill","record-circle-line","repeat-2-fill","repeat-2-line","repeat-fill","repeat-line","repeat-one-fill","repeat-one-line","rewind-fill","rewind-line","rewind-mini-fill","rewind-mini-line","rhythm-fill","rhythm-line","shuffle-fill","shuffle-line","skip-back-fill","skip-back-line","skip-back-mini-fill","skip-back-mini-line","skip-forward-fill","skip-forward-line","skip-forward-mini-fill","skip-forward-mini-line","sound-module-fill","sound-module-line","speaker-2-fill","speaker-2-line","speaker-3-fill","speaker-3-line","speaker-fill","speaker-line","speed-fill","speed-line","speed-mini-fill","speed-mini-line","stop-circle-fill","stop-circle-line","stop-fill","stop-line","stop-mini-fill","stop-mini-line","surround-sound-fill","surround-sound-line","tape-fill","tape-line","video-add-fill","video-add-line","video-download-fill","video-download-line","video-fill","video-line","video-upload-fill","video-upload-line","vidicon-2-fill","vidicon-2-line","vidicon-fill","vidicon-line","voiceprint-fill","voiceprint-line","volume-down-fill","volume-down-line","volume-mute-fill","volume-mute-line","volume-off-vibrate-fill","volume-off-vibrate-line","volume-up-fill","volume-up-line","volume-vibrate-fill","volume-vibrate-line","webcam-fill","webcam-line","basketball-fill","basketball-line","bell-fill","bell-line","billiards-fill","billiards-line","boxing-fill","boxing-line","cactus-fill","cactus-line","cake-2-fill","cake-2-line","cake-3-fill","cake-3-line","cake-fill","cake-line","character-recognition-fill","character-recognition-line","checkmark-fill","checkmark-line","door-closed-fill","door-closed-line","door-fill","door-line","door-lock-box-fill","door-lock-box-line","door-lock-fill","door-lock-line","door-open-fill","door-open-line","football-fill","football-line","fridge-fill","fridge-line","game-fill","game-line","handbag-fill","handbag-line","key-2-fill","key-2-line","key-fill","key-line","knife-blood-fill","knife-fill","knife-line","leaf-fill","leaf-line","lightbulb-fill","lightbulb-flash-fill","lightbulb-flash-line","lightbulb-line","outlet-2-fill","outlet-2-line","outlet-fill","outlet-line","ping-pong-fill","ping-pong-line","plant-fill","plant-line","plug-2-fill","plug-2-line","plug-fill","plug-line","recycle-fill","recycle-line","reserved-fill","reserved-line","scales-2-fill","scales-2-line","scales-3-fill","scales-3-line","scales-fill","scales-line","seedling-fill","seedling-line","shirt-fill","shirt-line","sword-fill","sword-line","t-shirt-2-fill","t-shirt-2-line","t-shirt-air-fill","t-shirt-air-line","t-shirt-fill","t-shirt-line","umbrella-fill","umbrella-line","voice-recognition-fill","voice-recognition-line","wheelchair-fill","wheelchair-line","add-box-fill","add-box-line","add-circle-fill","add-circle-line","add-fill","add-line","alarm-fill","alarm-line","alarm-warning-fill","alarm-warning-line","alert-fill","alert-line","apps-2-fill","apps-2-line","apps-fill","apps-line","arrow-down-circle-fill","arrow-down-circle-line","arrow-down-fill","arrow-down-line","arrow-down-s-fill","arrow-down-s-line","arrow-drop-down-fill","arrow-drop-down-line","arrow-drop-left-fill","arrow-drop-left-line","arrow-drop-right-fill","arrow-drop-right-line","arrow-drop-up-fill","arrow-drop-up-line","arrow-go-back-fill","arrow-go-back-line","arrow-go-forward-fill","arrow-go-forward-line","arrow-left-circle-fill","arrow-left-circle-line","arrow-left-down-fill","arrow-left-down-line","arrow-left-fill","arrow-left-line","arrow-left-right-fill","arrow-left-right-line","arrow-left-s-fill","arrow-left-s-line","arrow-left-up-fill","arrow-left-up-line","arrow-right-circle-fill","arrow-right-circle-line","arrow-right-down-fill","arrow-right-down-line","arrow-right-fill","arrow-right-line","arrow-right-s-fill","arrow-right-s-line","arrow-right-up-fill","arrow-right-up-line","arrow-up-circle-fill","arrow-up-circle-line","arrow-up-down-fill","arrow-up-down-line","arrow-up-fill","arrow-up-line","arrow-up-s-fill","arrow-up-s-line","checkbox-blank-circle-fill","checkbox-blank-circle-line","checkbox-blank-fill","checkbox-blank-line","checkbox-circle-fill","checkbox-circle-line","checkbox-fill","checkbox-indeterminate-fill","checkbox-indeterminate-line","checkbox-line","checkbox-multiple-blank-fill","checkbox-multiple-blank-line","checkbox-multiple-fill","checkbox-multiple-line","check-double-fill","check-double-line","check-fill","check-line","close-circle-fill","close-circle-line","close-fill","close-line","dashboard-fill","dashboard-line","delete-back-2-fill","delete-back-2-line","delete-back-fill","delete-back-line","delete-bin-2-fill","delete-bin-2-line","delete-bin-3-fill","delete-bin-3-line","delete-bin-4-fill","delete-bin-4-line","delete-bin-5-fill","delete-bin-5-line","delete-bin-6-fill","delete-bin-6-line","delete-bin-7-fill","delete-bin-7-line","delete-bin-fill","delete-bin-line","divide-fill","divide-line","dots-out-line","download-2-fill","download-2-line","download-cloud-2-fill","download-cloud-2-line","download-cloud-fill","download-cloud-line","download-fill","download-line","error-warning-fill","error-warning-line","expand-left-right","expand-up-down","external-link-fill","external-link-line","eye-2-fill","eye-2-line","eye-close-fill","eye-close-line","eye-fill","eye-line","eye-off-fill","eye-off-line","filter-2-fill","filter-2-line","filter-3-fill","filter-3-line","filter-fill","filter-line","filter-off-fill","filter-off-line","find-replace-fill","find-replace-line","forbid-2-fill","forbid-2-line","forbid-fill","forbid-line","function-fill","function-line","history-fill","history-line","indeterminate-circle-fill","indeterminate-circle-line","information-fill","information-line","list-settings-fill","list-settings-line","loader-2-fill","loader-2-line","loader-3-fill","loader-3-line","loader-4-fill","loader-4-line","loader-5-fill","loader-5-line","loader-fill","loader-line","lock-2-fill","lock-2-line","lock-fill","lock-line","lock-password-fill","lock-password-line","lock-unlock-fill","lock-unlock-line","login-box-fill","login-box-line","login-circle-fill","login-circle-line","logout-box-fill","logout-box-line","logout-box-r-fill","logout-box-r-line","logout-circle-fill","logout-circle-line","logout-circle-r-fill","logout-circle-r-line","menu-2-fill","menu-2-line","menu-3-fill","menu-3-line","menu-4-fill","menu-4-line","menu-5-fill","menu-5-line","menu-add-fill","menu-add-line","menu-fill","menu-fold-fill","menu-fold-line","menu-line","menu-unfold-fill","menu-unfold-line","more-2-fill","more-2-line","more-fill","more-line","notification-badge-fill","notification-badge-line","question-fill","question-line","radio-button-fill","radio-button-line","refresh-fill","refresh-line","search-2-fill","search-2-line","search-eye-fill","search-eye-line","search-fill","search-line","settings-2-fill","settings-2-line","settings-3-fill","settings-3-line","settings-4-fill","settings-4-line","settings-5-fill","settings-5-line","settings-6-fill","settings-6-line","settings-fill","settings-line","share-box-fill","share-box-line","share-circle-fill","share-circle-line","share-fill","share-forward-2-fill","share-forward-2-line","share-forward-box-fill","share-forward-box-line","share-forward-fill","share-forward-line","share-line","shield-check-fill","shield-check-line","shield-cross-fill","shield-cross-line","shield-fill","shield-flash-fill","shield-flash-line","shield-keyhole-fill","shield-keyhole-line","shield-line","shield-star-fill","shield-star-line","shield-user-fill","shield-user-line","side-bar-fill","side-bar-line","spam-2-fill","spam-2-line","spam-3-fill","spam-3-line","spam-fill","spam-line","star-fill","star-half-fill","star-half-line","star-half-s-fill","star-half-s-line","star-line","star-s-fill","star-s-line","subtract-fill","subtract-line","thumb-down-fill","thumb-down-line","thumb-up-fill","thumb-up-line","time-fill","time-line","timer-2-fill","timer-2-line","timer-fill","timer-flash-fill","timer-flash-line","timer-line","toggle-fill","toggle-line","upload-2-fill","upload-2-line","upload-cloud-2-fill","upload-cloud-2-line","upload-cloud-fill","upload-cloud-line","upload-fill","upload-line","zoom-in-fill","zoom-in-line","zoom-out-fill","zoom-out-line","account-box-fill","account-box-line","account-circle-fill","account-circle-line","account-pin-box-fill","account-pin-box-line","account-pin-circle-fill","account-pin-circle-line","admin-fill","admin-line","aliens-fill","aliens-line","bear-smile-fill","bear-smile-line","body-scan-fill","body-scan-line","contacts-fill","contacts-line","criminal-fill","criminal-line","emotion-2-fill","emotion-2-line","emotion-fill","emotion-happy-fill","emotion-happy-line","emotion-laugh-fill","emotion-laugh-line","emotion-line","emotion-normal-fill","emotion-normal-line","emotion-sad-fill","emotion-sad-line","emotion-unhappy-fill","emotion-unhappy-line","genderless-fill","genderless-line","ghost-2-fill","ghost-2-line","ghost-fill","ghost-line","ghost-smile-fill","ghost-smile-line","group-2-fill","group-2-line","group-fill","group-line","men-fill","men-line","mickey-fill","mickey-line","open-arm-fill","open-arm-line","parent-fill","parent-line","robot-fill","robot-line","skull-2-fill","skull-2-line","skull-fill","skull-line","spy-fill","spy-line","star-smile-fill","star-smile-line","team-fill","team-line","travesti-fill","travesti-line","user-2-fill","user-2-line","user-3-fill","user-3-line","user-4-fill","user-4-line","user-5-fill","user-5-line","user-6-fill","user-6-line","user-add-fill","user-add-line","user-fill","user-follow-fill","user-follow-line","user-heart-fill","user-heart-line","user-line","user-location-fill","user-location-line","user-received-2-fill","user-received-2-line","user-received-fill","user-received-line","user-search-fill","user-search-line","user-settings-fill","user-settings-line","user-shared-2-fill","user-shared-2-line","user-shared-fill","user-shared-line","user-smile-fill","user-smile-line","user-star-fill","user-star-line","user-unfollow-fill","user-unfollow-line","user-voice-fill","user-voice-line","women-fill","women-line","blaze-fill","blaze-line","celsius-fill","celsius-line","cloud-windy-fill","cloud-windy-line","cloudy-2-fill","cloudy-2-line","cloudy-fill","cloudy-line","drizzle-fill","drizzle-line","earthquake-fill","earthquake-line","fahrenheit-fill","fahrenheit-line","fire-fill","fire-line","flashlight-fill","flashlight-line","flood-fill","flood-line","foggy-fill","foggy-line","hail-fill","hail-line","haze-2-fill","haze-2-line","haze-fill","haze-line","heavy-showers-fill","heavy-showers-line","meteor-fill","meteor-line","mist-fill","mist-line","moon-clear-fill","moon-clear-line","moon-cloudy-fill","moon-cloudy-line","moon-fill","moon-foggy-fill","moon-foggy-line","moon-line","rainbow-fill","rainbow-line","rainy-fill","rainy-line","showers-fill","showers-line","snowy-fill","snowy-line","sun-cloudy-fill","sun-cloudy-line","sun-fill","sun-foggy-fill","sun-foggy-line","sun-line","temp-cold-fill","temp-cold-line","temp-hot-fill","temp-hot-line","thunderstorms-fill","thunderstorms-line","tornado-fill","tornado-line","typhoon-fill","typhoon-line","windy-fill","windy-line"],Im="_wrapper_199vt_1",zm="_label_199vt_8",Am="_stroke_199vt_172",Lm="_disabled_199vt_176",De={wrapper:Im,label:zm,"lead-icon":"_lead-icon_199vt_9","tail-icon":"_tail-icon_199vt_10","color--gray":"_color--gray_199vt_19","color--blue":"_color--blue_199vt_23","color--green":"_color--green_199vt_27","color--orange":"_color--orange_199vt_31","color--red":"_color--red_199vt_35","color--purple":"_color--purple_199vt_39","color--white":"_color--white_199vt_43","color--surface":"_color--surface_199vt_47","color--white-destructive":"_color--white-destructive_199vt_51","color--surface-destructive":"_color--surface-destructive_199vt_58","color--white-info":"_color--white-info_199vt_65","color--surface-info":"_color--surface-info_199vt_72","color--white-success":"_color--white-success_199vt_79","color--surface-success":"_color--surface-success_199vt_86","size--large":"_size--large_199vt_94","size--medium":"_size--medium_199vt_110","size--small":"_size--small_199vt_126","size--extra-small":"_size--extra-small_199vt_142","shape--rounded":"_shape--rounded_199vt_156","shape--pill":"_shape--pill_199vt_168",stroke:Am,disabled:Lm},Ri=({color:e="gray",size:t="md",shape:n="rounded",stroke:r=!1,disabled:i,label:l,leadIcon:s,tailIcon:a})=>{const c=o.useMemo(()=>se(De.wrapper,{[De["color--gray"]]:e==="gray",[De["color--blue"]]:e==="blue",[De["color--green"]]:e==="green",[De["color--orange"]]:e==="orange",[De["color--red"]]:e==="red",[De["color--purple"]]:e==="purple",[De["color--white"]]:e==="white",[De["color--surface"]]:e==="surface",[De["color--white-destructive"]]:e==="white-destructive",[De["color--surface-destructive"]]:e==="surface-destructive",[De["color--white-info"]]:e==="white-info",[De["color--surface-info"]]:e==="surface-info",[De["color--white-success"]]:e==="white-success",[De["color--surface-success"]]:e==="surface-success"},{[De["size--large"]]:t==="lg",[De["size--medium"]]:t==="md",[De["size--small"]]:t==="sm",[De["size--extra-small"]]:t==="xs"},{[De["shape--rounded"]]:n==="rounded",[De["shape--pill"]]:n==="pill"},{[De.stroke]:r},{[De.disabled]:i}),[e,t,n,r,i]);return o.createElement("div",{className:c},s&&o.createElement("span",{className:De["lead-icon"]},s),o.createElement("span",{className:De.label},l),a&&o.createElement("span",{className:De["tail-icon"]},a))},Fm="_wrapper_nv9wz_1",Ym="_text_nv9wz_23",jm="_badge_nv9wz_29",We={wrapper:Fm,"lead-icon":"_lead-icon_nv9wz_14",text:Ym,badge:jm,"tail-icon":"_tail-icon_nv9wz_34","size--large":"_size--large_nv9wz_47","size--medium":"_size--medium_nv9wz_68","size--small":"_size--small_nv9wz_89","size--extra-small":"_size--extra-small_nv9wz_110","style--primary":"_style--primary_nv9wz_129","style--secondary":"_style--secondary_nv9wz_146","style--tertiary":"_style--tertiary_nv9wz_177","style--ghost":"_style--ghost_nv9wz_205","target--destructive":"_target--destructive_nv9wz_235","target--info":"_target--info_nv9wz_336","target--success":"_target--success_nv9wz_451","shape--rounded":"_shape--rounded_nv9wz_567","shape--pill":"_shape--pill_nv9wz_579"},Wm=e=>o.useMemo(()=>{switch(e){case"lg":return"md";case"md":case"sm":return"sm";case"xs":return"xs"}},[e]),Vm=(e,t)=>o.useMemo(()=>{switch(t){case"default":switch(e){case"primary":return"white";case"secondary":return"gray";case"tertiary":return"white";case"ghost":return"gray"}case"destructive":switch(e){case"primary":return"white-destructive";case"secondary":case"tertiary":case"ghost":return"surface-destructive"}case"info":switch(e){case"primary":return"white-info";case"secondary":case"tertiary":case"ghost":return"surface-info"}case"success":switch(e){case"primary":return"white-success";case"secondary":case"tertiary":case"ghost":return"surface-success"}}},[e,t]),Hm=e=>o.useMemo(()=>{switch(e){case"primary":return!1;case"secondary":return!0;case"tertiary":return!0;case"ghost":return!0}},[e]),pi=({size:e="md",style:t="primary",shape:n="rounded",target:r="default",leadIcon:i,tailIcon:l,badge:s,...a})=>{const c=o.useMemo(()=>se(We.wrapper,{[We["size--large"]]:e==="lg",[We["size--medium"]]:e==="md",[We["size--small"]]:e==="sm",[We["size--extra-small"]]:e==="xs"},{[We["style--primary"]]:t==="primary",[We["style--secondary"]]:t==="secondary",[We["style--tertiary"]]:t==="tertiary",[We["style--ghost"]]:t==="ghost"},{[We["target--info"]]:r==="info",[We["target--success"]]:r==="success",[We["target--destructive"]]:r==="destructive"},{[We["shape--rounded"]]:n==="rounded",[We["shape--pill"]]:n==="pill"}),[e,t,r,n]),u=Wm(e),f=Vm(t,r),m=Hm(t);return o.createElement("button",{...a,className:c},i&&o.createElement("div",{className:We["lead-icon"]},i),o.createElement("div",{className:We.text},a.children),s&&o.createElement("div",{className:We.badge},o.Children.map(s,d=>{if(o.isValidElement(d)){const h=d;return o.cloneElement(h,{size:u,color:f,stroke:m,disabled:a.disabled})}return d})),l&&o.createElement("div",{className:We["tail-icon"]},l))},qm="_wrapper_17v8y_1",mt={wrapper:qm,"lead-icon":"_lead-icon_17v8y_12","size--large":"_size--large_17v8y_23","size--medium":"_size--medium_17v8y_32","size--small":"_size--small_17v8y_41","size--extra-small":"_size--extra-small_17v8y_50","style--primary":"_style--primary_17v8y_60","style--secondary":"_style--secondary_17v8y_71","style--tertiary":"_style--tertiary_17v8y_88","style--ghost":"_style--ghost_17v8y_102","target--destructive":"_target--destructive_17v8y_117","shape--rounded":"_shape--rounded_17v8y_182","shape--pill":"_shape--pill_17v8y_194"},Um=({size:e="md",style:t="primary",shape:n="rounded",target:r,icon:i,...l})=>{const s=o.useMemo(()=>se(mt.wrapper,{[mt["size--large"]]:e==="lg",[mt["size--medium"]]:e==="md",[mt["size--small"]]:e==="sm",[mt["size--extra-small"]]:e==="xs"},{[mt["style--primary"]]:t==="primary",[mt["style--secondary"]]:t==="secondary",[mt["style--tertiary"]]:t==="tertiary",[mt["style--ghost"]]:t==="ghost"},{[mt["target--destructive"]]:r==="destructive"},{[mt["shape--rounded"]]:n==="rounded",[mt["shape--pill"]]:n==="pill"}),[e,t,r,n]);return o.createElement("button",{...l,className:s},o.createElement("div",{className:mt["lead-icon"]},i))},Bm="_wrapper_4zl1h_1",Gm="_text_4zl1h_23",Km="_badge_4zl1h_27",Zm="_label_4zl1h_40",cn={wrapper:Bm,"lead-icon":"_lead-icon_4zl1h_13",text:Gm,badge:Km,label:Zm,"tail-icon":"_tail-icon_4zl1h_43","size--md":"_size--md_4zl1h_70","size--sm":"_size--sm_4zl1h_96","target--destructive":"_target--destructive_4zl1h_123"},Xm=({size:e="md",style:t="primary",shape:n="rounded",target:r,leadIcon:i,tailIcon:l,label:s,...a})=>{const c=o.useMemo(()=>se(cn.wrapper,{[cn["size--md"]]:e==="md",[cn["size--sm"]]:e==="sm"},{[cn["target--destructive"]]:r==="destructive"}),[e,t,r,n]);return o.createElement("button",{...a,className:c},i&&o.createElement("div",{className:cn["lead-icon"]},i),o.createElement("div",{className:cn.text},a.children),s&&o.createElement("div",{className:cn.badge},o.createElement("span",{className:cn.label},s)),l&&o.createElement("div",{className:cn["tail-icon"]},l))};function Vl(){return typeof window<"u"}function Gn(e){return Xo(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(Xo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xo(e){return Vl()?e instanceof Node||e instanceof ct(e).Node:!1}function Re(e){return Vl()?e instanceof Element||e instanceof ct(e).Element:!1}function Fe(e){return Vl()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function uo(e){return!Vl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}const Qm=new Set(["inline","contents"]);function Ti(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Qm.has(i)}const Jm=new Set(["table","td","th"]);function eh(e){return Jm.has(Gn(e))}const th=[":popover-open",":modal"];function Hl(e){return th.some(t=>{try{return e.matches(t)}catch{return!1}})}const nh=["transform","translate","scale","rotate","perspective"],rh=["transform","translate","scale","rotate","perspective","filter"],ih=["paint","layout","strict","content"];function Qo(e){const t=ql(),n=Re(e)?wt(e):e;return nh.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||rh.some(r=>(n.willChange||"").includes(r))||ih.some(r=>(n.contain||"").includes(r))}function lh(e){let t=On(e);for(;Fe(t)&&!xn(t);){if(Qo(t))return t;if(Hl(t))return null;t=On(t)}return null}function ql(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sh=new Set(["html","body","#document"]);function xn(e){return sh.has(Gn(e))}function wt(e){return ct(e).getComputedStyle(e)}function Ul(e){return Re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function On(e){if(Gn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||uo(e)&&e.host||rn(e);return uo(t)?t.host:t}function ju(e){const t=On(e);return xn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fe(t)&&Ti(t)?t:ju(t)}function Vn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=ju(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),s=ct(i);if(l){const a=fo(s);return t.concat(s,s.visualViewport||[],Ti(i)?i:[],a&&n?Vn(a):[])}return t.concat(i,Vn(i,[],n))}function fo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Un=Math.min,yt=Math.max,gl=Math.round,Sr=Math.floor,en=e=>({x:e,y:e}),oh={left:"right",right:"left",bottom:"top",top:"bottom"},ah={start:"end",end:"start"};function mo(e,t,n){return yt(e,Un(t,n))}function Wr(e,t){return typeof e=="function"?e(t):e}function Bn(e){return e.split("-")[0]}function Vr(e){return e.split("-")[1]}function Wu(e){return e==="x"?"y":"x"}function Jo(e){return e==="y"?"height":"width"}const ch=new Set(["top","bottom"]);function _n(e){return ch.has(Bn(e))?"y":"x"}function ea(e){return Wu(_n(e))}function uh(e,t,n){n===void 0&&(n=!1);const r=Vr(e),i=ea(e),l=Jo(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(s=vl(s)),[s,vl(s)]}function fh(e){const t=vl(e);return[ho(e),t,ho(t)]}function ho(e){return e.replace(/start|end/g,t=>ah[t])}const dc=["left","right"],mc=["right","left"],dh=["top","bottom"],mh=["bottom","top"];function hh(e,t,n){switch(e){case"top":case"bottom":return n?t?mc:dc:t?dc:mc;case"left":case"right":return t?dh:mh;default:return[]}}function ph(e,t,n,r){const i=Vr(e);let l=hh(Bn(e),n==="start",r);return i&&(l=l.map(s=>s+"-"+i),t&&(l=l.concat(l.map(ho)))),l}function vl(e){return e.replace(/left|right|bottom|top/g,t=>oh[t])}function gh(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vu(e){return typeof e!="number"?gh(e):{top:e,right:e,bottom:e,left:e}}function yl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
|
|
2
|
+
* tabbable 6.2.0
|
|
3
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
+
*/var vh=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],_l=vh.join(","),Hu=typeof Element>"u",Fr=Hu?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,bl=!Hu&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},wl=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),l=i===""||i==="true",s=l||n&&t&&e(t.parentNode);return s},yh=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},qu=function(t,n,r){if(wl(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(_l));return n&&Fr.call(t,_l)&&i.unshift(t),i=i.filter(r),i},Uu=function e(t,n,r){for(var i=[],l=Array.from(t);l.length;){var s=l.shift();if(!wl(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,u=e(c,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:s,candidates:u})}else{var f=Fr.call(s,_l);f&&r.filter(s)&&(n||!t.includes(s))&&i.push(s);var m=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),d=!wl(m,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(m&&d){var h=e(m===!0?s.children:m.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:s,candidates:h})}else l.unshift.apply(l,s.children)}}return i},Bu=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Gu=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||yh(t))&&!Bu(t)?0:t.tabIndex},_h=function(t,n){var r=Gu(t);return r<0&&n&&!Bu(t)?0:r},bh=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Ku=function(t){return t.tagName==="INPUT"},wh=function(t){return Ku(t)&&t.type==="hidden"},xh=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Eh=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},kh=function(t){if(!t.name)return!0;var n=t.form||bl(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var l=Eh(i,t.form);return!l||l===t},Sh=function(t){return Ku(t)&&t.type==="radio"},Oh=function(t){return Sh(t)&&!kh(t)},Mh=function(t){var n,r=t&&bl(t),i=(n=r)===null||n===void 0?void 0:n.host,l=!1;if(r&&r!==t){var s,a,c;for(l=!!((s=i)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!l&&i;){var u,f,m;r=bl(i),i=(u=r)===null||u===void 0?void 0:u.host,l=!!((f=i)!==null&&f!==void 0&&(m=f.ownerDocument)!==null&&m!==void 0&&m.contains(i))}}return l},hc=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Dh=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var l=Fr.call(t,"details>summary:first-of-type"),s=l?t.parentElement:t;if(Fr.call(s,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var a=t;t;){var c=t.parentElement,u=bl(t);if(c&&!c.shadowRoot&&i(c)===!0)return hc(t);t.assignedSlot?t=t.assignedSlot:!c&&u!==t.ownerDocument?t=u.host:t=c}t=a}if(Mh(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return hc(t);return!1},Rh=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return Fr.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},po=function(t,n){return!(n.disabled||wl(n)||wh(n)||Dh(n,t)||xh(n)||Rh(n))},go=function(t,n){return!(Oh(n)||Gu(n)<0||!po(t,n))},Th=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Ch=function e(t){var n=[],r=[];return t.forEach(function(i,l){var s=!!i.scopeParent,a=s?i.scopeParent:i,c=_h(a,s),u=s?e(i.candidates):a;c===0?s?n.push.apply(n,u):n.push(a):r.push({documentOrder:l,tabIndex:c,item:i,isScope:s,content:u})}),r.sort(bh).reduce(function(i,l){return l.isScope?i.push.apply(i,l.content):i.push(l.content),i},[]).concat(n)},Bl=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Uu([t],n.includeContainer,{filter:go.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Th}):r=qu(t,n.includeContainer,go.bind(null,n)),Ch(r)},Nh=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Uu([t],n.includeContainer,{filter:po.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=qu(t,n.includeContainer,po.bind(null,n)),r},Zu=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Fr.call(t,_l)===!1?!1:go(n,t)};function ta(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Xu(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Qu(){return/apple/i.test(navigator.vendor)}function vo(){const e=/android/i;return e.test(ta())||e.test(Xu())}function $h(){return ta().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Ju(){return Xu().includes("jsdom/")}const pc="data-floating-ui-focusable",Ph="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Cs="ArrowLeft",Ns="ArrowRight",Ih="ArrowUp",zh="ArrowDown";function Xt(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function qe(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&uo(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function vn(e){return"composedPath"in e?e.composedPath()[0]:e.target}function $s(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Ah(e){return e.matches("html,body")}function Ue(e){return e?.ownerDocument||document}function na(e){return Fe(e)&&e.matches(Ph)}function yo(e){return e?e.getAttribute("role")==="combobox"&&na(e):!1}function Lh(e){if(!e||Ju())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function xl(e){return e?e.hasAttribute(pc)?e:e.querySelector("["+pc+"]")||e:null}function fr(e,t,n){return n===void 0&&(n=!0),e.filter(i=>{var l;return i.parentId===t&&(!n||((l=i.context)==null?void 0:l.open))}).flatMap(i=>[i,...fr(e,i.id,n)])}function Fh(e,t){let n,r=-1;function i(l,s){s>r&&(n=l,r=s),fr(e,l).forEach(c=>{i(c.id,s+1)})}return i(t,0),e.find(l=>l.id===n)}function gc(e,t){var n;let r=[],i=(n=e.find(l=>l.id===t))==null?void 0:n.parentId;for(;i;){const l=e.find(s=>s.id===i);i=l?.parentId,l&&(r=r.concat(l))}return r}function lt(e){e.preventDefault(),e.stopPropagation()}function Yh(e){return"nativeEvent"in e}function ef(e){return e.mozInputSource===0&&e.isTrusted?!0:vo()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tf(e){return Ju()?!1:!vo()&&e.width===0&&e.height===0||vo()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function gi(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var jh=typeof document<"u",Wh=function(){},Ce=jh?o.useLayoutEffect:Wh;const Vh={...E};function et(e){const t=E.useRef(e);return Ce(()=>{t.current=e}),t}const Hh=Vh.useInsertionEffect,qh=Hh||(e=>e());function Ge(e){const t=E.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return qh(()=>{t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function ji(e,t,n){return Math.floor(e/t)!==n}function ai(e,t){return t<0||t>=e.current.length}function Ps(e,t){return Je(e,{disabledIndices:t})}function vc(e,t){return Je(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Je(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:l=1}=t===void 0?{}:t,s=n;do s+=r?-l:l;while(s>=0&&s<=e.current.length-1&&ll(e,s,i));return s}function Uh(e,t){let{event:n,orientation:r,loop:i,rtl:l,cols:s,disabledIndices:a,minIndex:c,maxIndex:u,prevIndex:f,stopEvent:m=!1}=t,d=f;if(n.key===Ih){if(m&<(n),f===-1)d=u;else if(d=Je(e,{startingIndex:d,amount:s,decrement:!0,disabledIndices:a}),i&&(f-s<c||d<0)){const h=f%s,p=u%s,g=u-(p-h);p===h?d=u:d=p>h?g:g-s}ai(e,d)&&(d=f)}if(n.key===zh&&(m&<(n),f===-1?d=c:(d=Je(e,{startingIndex:f,amount:s,disabledIndices:a}),i&&f+s>u&&(d=Je(e,{startingIndex:f%s-s,amount:s,disabledIndices:a}))),ai(e,d)&&(d=f)),r==="both"){const h=Sr(f/s);n.key===(l?Cs:Ns)&&(m&<(n),f%s!==s-1?(d=Je(e,{startingIndex:f,disabledIndices:a}),i&&ji(d,s,h)&&(d=Je(e,{startingIndex:f-f%s-1,disabledIndices:a}))):i&&(d=Je(e,{startingIndex:f-f%s-1,disabledIndices:a})),ji(d,s,h)&&(d=f)),n.key===(l?Ns:Cs)&&(m&<(n),f%s!==0?(d=Je(e,{startingIndex:f,decrement:!0,disabledIndices:a}),i&&ji(d,s,h)&&(d=Je(e,{startingIndex:f+(s-f%s),decrement:!0,disabledIndices:a}))):i&&(d=Je(e,{startingIndex:f+(s-f%s),decrement:!0,disabledIndices:a})),ji(d,s,h)&&(d=f));const p=Sr(u/s)===h;ai(e,d)&&(i&&p?d=n.key===(l?Ns:Cs)?u:Je(e,{startingIndex:f-f%s-1,disabledIndices:a}):d=f)}return d}function Bh(e,t,n){const r=[];let i=0;return e.forEach((l,s)=>{let{width:a,height:c}=l;if(a>t&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let u=!1;for(n&&(i=0);!u;){const f=[];for(let m=0;m<a;m++)for(let d=0;d<c;d++)f.push(i+m+d*t);i%t+a<=t&&f.every(m=>r[m]==null)?(f.forEach(m=>{r[m]=s}),u=!0):i++}}),[...r]}function Gh(e,t,n,r,i){if(e===-1)return-1;const l=n.indexOf(e),s=t[e];switch(i){case"tl":return l;case"tr":return s?l+s.width-1:l;case"bl":return s?l+(s.height-1)*r:l;case"br":return n.lastIndexOf(e)}}function Kh(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function ll(e,t,n){if(typeof n=="function")return n(t);if(n)return n.includes(t);const r=e.current[t];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}const Ci=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function nf(e,t){const n=Bl(e,Ci()),r=n.length;if(r===0)return;const i=Xt(Ue(e)),l=n.indexOf(i),s=l===-1?t===1?0:r-1:l+t;return n[s]}function rf(e){return nf(Ue(e).body,1)||e}function lf(e){return nf(Ue(e).body,-1)||e}function ci(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!qe(n,r)}function Zh(e){Bl(e,Ci()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function yc(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}var Wi={exports:{}},Ze={};/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react-dom.production.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/var _c;function Xh(){if(_c)return Ze;_c=1;var e=o;function t(c){var u="https://react.dev/errors/"+c;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)u+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+c+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function l(c,u,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:c,containerInfo:u,implementation:f}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(c,u){if(c==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Ze.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ze.createPortal=function(c,u){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return l(c,u,null,f)},Ze.flushSync=function(c){var u=s.T,f=r.p;try{if(s.T=null,r.p=2,c)return c()}finally{s.T=u,r.p=f,r.d.f()}},Ze.preconnect=function(c,u){typeof c=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,r.d.C(c,u))},Ze.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},Ze.preinit=function(c,u){if(typeof c=="string"&&u&&typeof u.as=="string"){var f=u.as,m=a(f,u.crossOrigin),d=typeof u.integrity=="string"?u.integrity:void 0,h=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;f==="style"?r.d.S(c,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:m,integrity:d,fetchPriority:h}):f==="script"&&r.d.X(c,{crossOrigin:m,integrity:d,fetchPriority:h,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Ze.preinitModule=function(c,u){if(typeof c=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var f=a(u.as,u.crossOrigin);r.d.M(c,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&r.d.M(c)},Ze.preload=function(c,u){if(typeof c=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var f=u.as,m=a(f,u.crossOrigin);r.d.L(c,f,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Ze.preloadModule=function(c,u){if(typeof c=="string")if(u){var f=a(u.as,u.crossOrigin);r.d.m(c,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else r.d.m(c)},Ze.requestFormReset=function(c){r.d.r(c)},Ze.unstable_batchedUpdates=function(c,u){return c(u)},Ze.useFormState=function(c,u,f){return s.H.useFormState(c,u,f)},Ze.useFormStatus=function(){return s.H.useHostTransitionStatus()},Ze.version="19.2.0",Ze}var Xe={};/**
|
|
13
|
+
* @license React
|
|
14
|
+
* react-dom.development.js
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the MIT license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/var bc;function Qh(){return bc||(bc=1,process.env.NODE_ENV!=="production"&&function(){function e(){}function t(m){return""+m}function n(m,d,h){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(p);var g=!1}catch{g=!0}return g&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&p[Symbol.toStringTag]||p.constructor.name||"Object"),t(p)),{$$typeof:u,key:p==null?null:""+p,children:m,containerInfo:d,implementation:h}}function r(m,d){if(m==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}function i(m){return m===null?"`null`":m===void 0?"`undefined`":m===""?"an empty string":'something with type "'+typeof m+'"'}function l(m){return m===null?"`null`":m===void 0?"`undefined`":m===""?"an empty string":typeof m=="string"?JSON.stringify(m):typeof m=="number"?"`"+m+"`":'something with type "'+typeof m+'"'}function s(){var m=f.H;return m===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
21
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
22
|
+
2. You might be breaking the Rules of Hooks
|
|
23
|
+
3. You might have more than one copy of React in the same app
|
|
24
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=o,c={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},u=Symbol.for("react.portal"),f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Xe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,Xe.createPortal=function(m,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error("Target container is not a DOM element.");return n(m,d,null,h)},Xe.flushSync=function(m){var d=f.T,h=c.p;try{if(f.T=null,c.p=2,m)return m()}finally{f.T=d,c.p=h,c.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Xe.preconnect=function(m,d){typeof m=="string"&&m?d!=null&&typeof d!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",l(d)):d!=null&&typeof d.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",i(d.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(m)),typeof m=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,c.d.C(m,d))},Xe.prefetchDNS=function(m){if(typeof m!="string"||!m)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(m));else if(1<arguments.length){var d=arguments[1];typeof d=="object"&&d.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(d)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(d))}typeof m=="string"&&c.d.D(m)},Xe.preinit=function(m,d){if(typeof m=="string"&&m?d==null||typeof d!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",l(d)):d.as!=="style"&&d.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',l(d.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(m)),typeof m=="string"&&d&&typeof d.as=="string"){var h=d.as,p=r(h,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?c.d.S(m,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):h==="script"&&c.d.X(m,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Xe.preinitModule=function(m,d){var h="";if(typeof m=="string"&&m||(h+=" The `href` argument encountered was "+i(m)+"."),d!==void 0&&typeof d!="object"?h+=" The `options` argument encountered was "+i(d)+".":d&&"as"in d&&d.as!=="script"&&(h+=" The `as` option encountered was "+l(d.as)+"."),h)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",h);else switch(h=d&&typeof d.as=="string"?d.as:"script",h){case"script":break;default:h=l(h),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',h,m)}typeof m=="string"&&(typeof d=="object"&&d!==null?(d.as==null||d.as==="script")&&(h=r(d.as,d.crossOrigin),c.d.M(m,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})):d==null&&c.d.M(m))},Xe.preload=function(m,d){var h="";if(typeof m=="string"&&m||(h+=" The `href` argument encountered was "+i(m)+"."),d==null||typeof d!="object"?h+=" The `options` argument encountered was "+i(d)+".":typeof d.as=="string"&&d.as||(h+=" The `as` option encountered was "+i(d.as)+"."),h&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',h),typeof m=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){h=d.as;var p=r(h,d.crossOrigin);c.d.L(m,h,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Xe.preloadModule=function(m,d){var h="";typeof m=="string"&&m||(h+=" The `href` argument encountered was "+i(m)+"."),d!==void 0&&typeof d!="object"?h+=" The `options` argument encountered was "+i(d)+".":d&&"as"in d&&typeof d.as!="string"&&(h+=" The `as` option encountered was "+i(d.as)+"."),h&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',h),typeof m=="string"&&(d?(h=r(d.as,d.crossOrigin),c.d.m(m,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})):c.d.m(m))},Xe.requestFormReset=function(m){c.d.r(m)},Xe.unstable_batchedUpdates=function(m,d){return m(d)},Xe.useFormState=function(m,d,h){return s().useFormState(m,d,h)},Xe.useFormStatus=function(){return s().useHostTransitionStatus()},Xe.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Xe}var wc;function Jh(){if(wc)return Wi.exports;wc=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),Wi.exports=Xh()):Wi.exports=Qh(),Wi.exports}var ra=Jh();function xc(e,t,n){let{reference:r,floating:i}=e;const l=_n(t),s=ea(t),a=Jo(s),c=Bn(t),u=l==="y",f=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let h;switch(c){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:m};break;case"left":h={x:r.x-i.width,y:m};break;default:h={x:r.x,y:r.y}}switch(Vr(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}const ep=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:s}=n,a=l.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:m}=xc(u,r,c),d=r,h={},p=0;for(let g=0;g<a.length;g++){const{name:v,fn:_}=a[g],{x:w,y:b,data:y,reset:O}=await _({x:f,y:m,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=w??f,m=b??m,h={...h,[v]:{...h[v],...y}},O&&p<=50&&(p++,typeof O=="object"&&(O.placement&&(d=O.placement),O.rects&&(u=O.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:f,y:m}=xc(u,d,c)),g=-1)}return{x:f,y:m,placement:d,strategy:i,middlewareData:h}};async function ia(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:l,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:d=!1,padding:h=0}=Wr(t,e),p=Vu(h),v=a[d?m==="floating"?"reference":"floating":m],_=yl(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(v)))==null||n?v:v.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),w=m==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(l.getOffsetParent==null?void 0:l.getOffsetParent(a.floating)),y=await(l.isElement==null?void 0:l.isElement(b))?await(l.getScale==null?void 0:l.getScale(b))||{x:1,y:1}:{x:1,y:1},O=yl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:c}):w);return{top:(_.top-O.top+p.top)/y.y,bottom:(O.bottom-_.bottom+p.bottom)/y.y,left:(_.left-O.left+p.left)/y.x,right:(O.right-_.right+p.right)/y.x}}const tp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:l,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:f=0}=Wr(e,t)||{};if(u==null)return{};const m=Vu(f),d={x:n,y:r},h=ea(i),p=Jo(h),g=await s.getDimensions(u),v=h==="y",_=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",y=l.reference[p]+l.reference[h]-d[h]-l.floating[p],O=d[h]-l.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let M=T?T[b]:0;(!M||!await(s.isElement==null?void 0:s.isElement(T)))&&(M=a.floating[b]||l.floating[p]);const I=y/2-O/2,$=M/2-g[p]/2-1,R=Un(m[_],$),P=Un(m[w],$),z=R,Y=M-g[p]-P,S=M/2-g[p]/2+I,C=mo(z,S,Y),U=!c.arrow&&Vr(i)!=null&&S!==C&&l.reference[p]/2-(S<z?R:P)-g[p]/2<0,A=U?S<z?S-z:S-Y:0;return{[h]:d[h]+A,data:{[h]:C,centerOffset:S-C-A,...U&&{alignmentOffset:A}},reset:U}}}),np=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:l,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...v}=Wr(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const _=Bn(i),w=_n(a),b=Bn(a)===a,y=await(c.isRTL==null?void 0:c.isRTL(u.floating)),O=d||(b||!g?[vl(a)]:fh(a)),T=p!=="none";!d&&T&&O.push(...ph(a,g,p,y));const M=[a,...O],I=await ia(t,v),$=[];let R=((r=l.flip)==null?void 0:r.overflows)||[];if(f&&$.push(I[_]),m){const S=uh(i,s,y);$.push(I[S[0]],I[S[1]])}if(R=[...R,{placement:i,overflows:$}],!$.every(S=>S<=0)){var P,z;const S=(((P=l.flip)==null?void 0:P.index)||0)+1,C=M[S];if(C&&(!(m==="alignment"?w!==_n(C):!1)||R.every(k=>_n(k.placement)===w?k.overflows[0]>0:!0)))return{data:{index:S,overflows:R},reset:{placement:C}};let U=(z=R.filter(A=>A.overflows[0]<=0).sort((A,k)=>A.overflows[1]-k.overflows[1])[0])==null?void 0:z.placement;if(!U)switch(h){case"bestFit":{var Y;const A=(Y=R.filter(k=>{if(T){const L=_n(k.placement);return L===w||L==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(L=>L>0).reduce((L,X)=>L+X,0)]).sort((k,L)=>k[1]-L[1])[0])==null?void 0:Y[0];A&&(U=A);break}case"initialPlacement":U=a;break}if(i!==U)return{reset:{placement:U}}}return{}}}},rp=new Set(["left","top"]);async function ip(e,t){const{placement:n,platform:r,elements:i}=e,l=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Bn(n),a=Vr(n),c=_n(n)==="y",u=rp.has(s)?-1:1,f=l&&c?-1:1,m=Wr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),c?{x:h*f,y:d*u}:{x:d*u,y:h*f}}const lp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:l,placement:s,middlewareData:a}=t,c=await ip(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:l+c.y,data:{...c,placement:s}}}}},sp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:_,y:w}=v;return{x:_,y:w}}},...c}=Wr(e,t),u={x:n,y:r},f=await ia(t,c),m=_n(Bn(i)),d=Wu(m);let h=u[d],p=u[m];if(l){const v=d==="y"?"top":"left",_=d==="y"?"bottom":"right",w=h+f[v],b=h-f[_];h=mo(w,h,b)}if(s){const v=m==="y"?"top":"left",_=m==="y"?"bottom":"right",w=p+f[v],b=p-f[_];p=mo(w,p,b)}const g=a.fn({...t,[d]:h,[m]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:l,[m]:s}}}}}},op=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:l,platform:s,elements:a}=t,{apply:c=()=>{},...u}=Wr(e,t),f=await ia(t,u),m=Bn(i),d=Vr(i),h=_n(i)==="y",{width:p,height:g}=l.floating;let v,_;m==="top"||m==="bottom"?(v=m,_=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=m,v=d==="end"?"top":"bottom");const w=g-f.top-f.bottom,b=p-f.left-f.right,y=Un(g-f[v],w),O=Un(p-f[_],b),T=!t.middlewareData.shift;let M=y,I=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=w),T&&!d){const R=yt(f.left,0),P=yt(f.right,0),z=yt(f.top,0),Y=yt(f.bottom,0);h?I=p-2*(R!==0||P!==0?R+P:yt(f.left,f.right)):M=g-2*(z!==0||Y!==0?z+Y:yt(f.top,f.bottom))}await c({...t,availableWidth:I,availableHeight:M});const $=await s.getDimensions(a.floating);return p!==$.width||g!==$.height?{reset:{rects:!0}}:{}}}};function sf(e){const t=wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Fe(e),l=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=gl(n)!==l||gl(r)!==s;return a&&(n=l,r=s),{width:n,height:r,$:a}}function la(e){return Re(e)?e:e.contextElement}function Cr(e){const t=la(e);if(!Fe(t))return en(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=sf(t);let s=(l?gl(n.width):n.width)/r,a=(l?gl(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const ap=en(0);function of(e){const t=ct(e);return!ql()||!t.visualViewport?ap:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function hr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=la(e);let s=en(1);t&&(r?Re(r)&&(s=Cr(r)):s=Cr(e));const a=cp(l,n,r)?of(l):en(0);let c=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,m=i.height/s.y;if(l){const d=ct(l),h=r&&Re(r)?ct(r):r;let p=d,g=fo(p);for(;g&&r&&h!==p;){const v=Cr(g),_=g.getBoundingClientRect(),w=wt(g),b=_.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,y=_.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;c*=v.x,u*=v.y,f*=v.x,m*=v.y,c+=b,u+=y,p=ct(g),g=fo(p)}}return yl({width:f,height:m,x:c,y:u})}function Gl(e,t){const n=Ul(e).scrollLeft;return t?t.left+n:hr(rn(e)).left+n}function af(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Gl(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function up(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",s=rn(r),a=t?Hl(t.floating):!1;if(r===s||a&&l)return n;let c={scrollLeft:0,scrollTop:0},u=en(1);const f=en(0),m=Fe(r);if((m||!m&&!l)&&((Gn(r)!=="body"||Ti(s))&&(c=Ul(r)),Fe(r))){const h=hr(r);u=Cr(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const d=s&&!m&&!l?af(s,c):en(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-c.scrollTop*u.y+f.y+d.y}}function fp(e){return Array.from(e.getClientRects())}function dp(e){const t=rn(e),n=Ul(e),r=e.ownerDocument.body,i=yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Gl(e);const a=-n.scrollTop;return wt(r).direction==="rtl"&&(s+=yt(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:s,y:a}}const Ec=25;function mp(e,t){const n=ct(e),r=rn(e),i=n.visualViewport;let l=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){l=i.width,s=i.height;const f=ql();(!f||f&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}const u=Gl(r);if(u<=0){const f=r.ownerDocument,m=f.body,d=getComputedStyle(m),h=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,p=Math.abs(r.clientWidth-m.clientWidth-h);p<=Ec&&(l-=p)}else u<=Ec&&(l+=u);return{width:l,height:s,x:a,y:c}}const hp=new Set(["absolute","fixed"]);function pp(e,t){const n=hr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=Fe(e)?Cr(e):en(1),s=e.clientWidth*l.x,a=e.clientHeight*l.y,c=i*l.x,u=r*l.y;return{width:s,height:a,x:c,y:u}}function kc(e,t,n){let r;if(t==="viewport")r=mp(e,n);else if(t==="document")r=dp(rn(e));else if(Re(t))r=pp(t,n);else{const i=of(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return yl(r)}function cf(e,t){const n=On(e);return n===t||!Re(n)||xn(n)?!1:wt(n).position==="fixed"||cf(n,t)}function gp(e,t){const n=t.get(e);if(n)return n;let r=Vn(e,[],!1).filter(a=>Re(a)&&Gn(a)!=="body"),i=null;const l=wt(e).position==="fixed";let s=l?On(e):e;for(;Re(s)&&!xn(s);){const a=wt(s),c=Qo(s);!c&&a.position==="fixed"&&(i=null),(l?!c&&!i:!c&&a.position==="static"&&!!i&&hp.has(i.position)||Ti(s)&&!c&&cf(e,s))?r=r.filter(f=>f!==s):i=a,s=On(s)}return t.set(e,r),r}function vp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Hl(t)?[]:gp(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((u,f)=>{const m=kc(t,f,i);return u.top=yt(m.top,u.top),u.right=Un(m.right,u.right),u.bottom=Un(m.bottom,u.bottom),u.left=yt(m.left,u.left),u},kc(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yp(e){const{width:t,height:n}=sf(e);return{width:t,height:n}}function _p(e,t,n){const r=Fe(t),i=rn(t),l=n==="fixed",s=hr(e,!0,l,t);let a={scrollLeft:0,scrollTop:0};const c=en(0);function u(){c.x=Gl(i)}if(r||!r&&!l)if((Gn(t)!=="body"||Ti(i))&&(a=Ul(t)),r){const h=hr(t,!0,l,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();l&&!r&&i&&u();const f=i&&!r&&!l?af(i,a):en(0),m=s.left+a.scrollLeft-c.x-f.x,d=s.top+a.scrollTop-c.y-f.y;return{x:m,y:d,width:s.width,height:s.height}}function Is(e){return wt(e).position==="static"}function Sc(e,t){if(!Fe(e)||wt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return rn(e)===n&&(n=n.ownerDocument.body),n}function uf(e,t){const n=ct(e);if(Hl(e))return n;if(!Fe(e)){let i=On(e);for(;i&&!xn(i);){if(Re(i)&&!Is(i))return i;i=On(i)}return n}let r=Sc(e,t);for(;r&&eh(r)&&Is(r);)r=Sc(r,t);return r&&xn(r)&&Is(r)&&!Qo(r)?n:r||lh(e)||n}const bp=async function(e){const t=this.getOffsetParent||uf,n=this.getDimensions,r=await n(e.floating);return{reference:_p(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wp(e){return wt(e).direction==="rtl"}const xp={convertOffsetParentRelativeRectToViewportRelativeRect:up,getDocumentElement:rn,getClippingRect:vp,getOffsetParent:uf,getElementRects:bp,getClientRects:fp,getDimensions:yp,getScale:Cr,isElement:Re,isRTL:wp};function ff(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ep(e,t){let n=null,r;const i=rn(e);function l(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),l();const u=e.getBoundingClientRect(),{left:f,top:m,width:d,height:h}=u;if(a||t(),!d||!h)return;const p=Sr(m),g=Sr(i.clientWidth-(f+d)),v=Sr(i.clientHeight-(m+h)),_=Sr(f),b={rootMargin:-p+"px "+-g+"px "+-v+"px "+-_+"px",threshold:yt(0,Un(1,c))||1};let y=!0;function O(T){const M=T[0].intersectionRatio;if(M!==c){if(!y)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!ff(u,e.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(O,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,b)}n.observe(e)}return s(!0),l}function sa(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=la(e),f=i||l?[...u?Vn(u):[],...Vn(t)]:[];f.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),l&&_.addEventListener("resize",n)});const m=u&&a?Ep(u,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(_=>{let[w]=_;w&&w.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let p,g=c?hr(e):null;c&&v();function v(){const _=hr(e);g&&!ff(g,_)&&n(),g=_,p=requestAnimationFrame(v)}return n(),()=>{var _;f.forEach(w=>{i&&w.removeEventListener("scroll",n),l&&w.removeEventListener("resize",n)}),m?.(),(_=h)==null||_.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const kp=lp,Sp=sp,Op=np,Mp=op,Oc=tp,Dp=(e,t,n)=>{const r=new Map,i={platform:xp,...n},l={...i.platform,_c:r};return ep(e,t,{...i,platform:l})};var Rp=typeof document<"u",Tp=function(){},sl=Rp?o.useLayoutEffect:Tp;function El(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!El(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const l=i[r];if(!(l==="_owner"&&e.$$typeof)&&!El(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function df(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mc(e,t){const n=df(e);return Math.round(t*n)/n}function zs(e){const t=E.useRef(e);return sl(()=>{t.current=e}),t}function Cp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[f,m]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(r);El(d,r)||h(r);const[p,g]=E.useState(null),[v,_]=E.useState(null),w=E.useCallback(k=>{k!==T.current&&(T.current=k,g(k))},[]),b=E.useCallback(k=>{k!==M.current&&(M.current=k,_(k))},[]),y=l||p,O=s||v,T=E.useRef(null),M=E.useRef(null),I=E.useRef(f),$=c!=null,R=zs(c),P=zs(i),z=zs(u),Y=E.useCallback(()=>{if(!T.current||!M.current)return;const k={placement:t,strategy:n,middleware:d};P.current&&(k.platform=P.current),Dp(T.current,M.current,k).then(L=>{const X={...L,isPositioned:z.current!==!1};S.current&&!El(I.current,X)&&(I.current=X,ra.flushSync(()=>{m(X)}))})},[d,t,n,P,z]);sl(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,m(k=>({...k,isPositioned:!1})))},[u]);const S=E.useRef(!1);sl(()=>(S.current=!0,()=>{S.current=!1}),[]),sl(()=>{if(y&&(T.current=y),O&&(M.current=O),y&&O){if(R.current)return R.current(y,O,Y);Y()}},[y,O,Y,R,$]);const C=E.useMemo(()=>({reference:T,floating:M,setReference:w,setFloating:b}),[w,b]),U=E.useMemo(()=>({reference:y,floating:O}),[y,O]),A=E.useMemo(()=>{const k={position:n,left:0,top:0};if(!U.floating)return k;const L=Mc(U.floating,f.x),X=Mc(U.floating,f.y);return a?{...k,transform:"translate("+L+"px, "+X+"px)",...df(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:X}},[n,a,U.floating,f.x,f.y]);return E.useMemo(()=>({...f,update:Y,refs:C,elements:U,floatingStyles:A}),[f,Y,C,U,A])}const Np=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Oc({element:r.current,padding:i}).fn(n):{}:r?Oc({element:r,padding:i}).fn(n):{}}}},mf=(e,t)=>({...kp(e),options:[e,t]}),$p=(e,t)=>({...Sp(e),options:[e,t]}),oa=(e,t)=>({...Op(e),options:[e,t]}),hf=(e,t)=>({...Mp(e),options:[e,t]}),Pp=(e,t)=>({...Np(e),options:[e,t]});function aa(e){const t=E.useRef(void 0),n=E.useCallback(r=>{const i=e.map(l=>{if(l!=null){if(typeof l=="function"){const s=l,a=s(r);return typeof a=="function"?a:()=>{s(null)}}return l.current=r,()=>{l.current=null}}});return()=>{i.forEach(l=>l?.())}},e);return E.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const Ip="data-floating-ui-focusable",Dc="active",Rc="selected",Ni="ArrowLeft",$i="ArrowRight",pf="ArrowUp",Kl="ArrowDown",zp={...E};let Tc=!1,Ap=0;const Cc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ap++;function Lp(){const[e,t]=E.useState(()=>Tc?Cc():void 0);return Ce(()=>{e==null&&t(Cc())},[]),E.useEffect(()=>{Tc=!0},[]),e}const Fp=zp.useId,Pi=Fp||Lp;let vi;process.env.NODE_ENV!=="production"&&(vi=new Set);function ol(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=vi)!=null&&e.has(i))){var l;(l=vi)==null||l.add(i),console.warn(i)}}function Yp(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=vi)!=null&&e.has(i))){var l;(l=vi)==null||l.add(i),console.error(i)}}const Nc=E.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:l,shift:s}},width:a=14,height:c=7,tipRadius:u=0,strokeWidth:f=0,staticOffset:m,stroke:d,d:h,style:{transform:p,...g}={},...v}=t;process.env.NODE_ENV!=="production"&&(n||ol("The `ref` prop is required for `FloatingArrow`."));const _=Pi(),[w,b]=E.useState(!1);if(Ce(()=>{if(!i)return;wt(i).direction==="rtl"&&b(!0)},[i]),!i)return null;const[y,O]=r.split("-"),T=y==="top"||y==="bottom";let M=m;(T&&s!=null&&s.x||!T&&s!=null&&s.y)&&(M=null);const I=f*2,$=I/2,R=a/2*(u/-8+1),P=c/2*u/4,z=!!h,Y=M&&O==="end"?"bottom":"top";let S=M&&O==="end"?"right":"left";M&&w&&(S=O==="end"?"left":"right");const C=l?.x!=null?M||l.x:"",U=l?.y!=null?M||l.y:"",A=h||"M0,0"+(" H"+a)+(" L"+(a-R)+","+(c-P))+(" Q"+a/2+","+c+" "+R+","+(c-P))+" Z",k={top:z?"rotate(180deg)":"",left:z?"rotate(90deg)":"rotate(-90deg)",bottom:z?"":"rotate(180deg)",right:z?"rotate(-90deg)":"rotate(90deg)"}[y];return Be.jsxs("svg",{...v,"aria-hidden":!0,ref:n,width:z?a:a+I,height:a,viewBox:"0 0 "+a+" "+(c>a?c:a),style:{position:"absolute",pointerEvents:"none",[S]:C,[Y]:U,[y]:T||z?"100%":"calc(100% - "+I/2+"px)",transform:[k,p].filter(L=>!!L).join(" "),...g},children:[I>0&&Be.jsx("path",{clipPath:"url(#"+_+")",fill:"none",stroke:d,strokeWidth:I+(h?0:1),d:A}),Be.jsx("path",{stroke:I&&!h?v.fill:"none",d:A}),Be.jsx("clipPath",{id:_,children:Be.jsx("rect",{x:-$,y:$*(z?-1:1),width:a+I,height:a})})]})});function jp(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const Wp=E.createContext(null),Vp=E.createContext(null),Zl=()=>{var e;return((e=E.useContext(Wp))==null?void 0:e.id)||null},Ii=()=>E.useContext(Vp);function pr(e){return"data-floating-ui-"+e}function gt(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const $c=pr("safe-polygon");function As(e,t,n){if(n&&!gi(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}function Ls(e){return typeof e=="function"?e():e}function Hp(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:l,elements:s}=e,{enabled:a=!0,delay:c=0,handleClose:u=null,mouseOnly:f=!1,restMs:m=0,move:d=!0}=t,h=Ii(),p=Zl(),g=et(u),v=et(c),_=et(n),w=et(m),b=E.useRef(),y=E.useRef(-1),O=E.useRef(),T=E.useRef(-1),M=E.useRef(!0),I=E.useRef(!1),$=E.useRef(()=>{}),R=E.useRef(!1),P=Ge(()=>{var A;const k=(A=i.current.openEvent)==null?void 0:A.type;return k?.includes("mouse")&&k!=="mousedown"});E.useEffect(()=>{if(!a)return;function A(k){let{open:L}=k;L||(gt(y),gt(T),M.current=!0,R.current=!1)}return l.on("openchange",A),()=>{l.off("openchange",A)}},[a,l]),E.useEffect(()=>{if(!a||!g.current||!n)return;function A(L){P()&&r(!1,L,"hover")}const k=Ue(s.floating).documentElement;return k.addEventListener("mouseleave",A),()=>{k.removeEventListener("mouseleave",A)}},[s.floating,n,r,a,g,P]);const z=E.useCallback(function(A,k,L){k===void 0&&(k=!0),L===void 0&&(L="hover");const X=As(v.current,"close",b.current);X&&!O.current?(gt(y),y.current=window.setTimeout(()=>r(!1,A,L),X)):k&&(gt(y),r(!1,A,L))},[v,r]),Y=Ge(()=>{$.current(),O.current=void 0}),S=Ge(()=>{if(I.current){const A=Ue(s.floating).body;A.style.pointerEvents="",A.removeAttribute($c),I.current=!1}}),C=Ge(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);E.useEffect(()=>{if(!a)return;function A(W){if(gt(y),M.current=!1,f&&!gi(b.current)||Ls(w.current)>0&&!As(v.current,"open"))return;const x=As(v.current,"open",b.current);x?y.current=window.setTimeout(()=>{_.current||r(!0,W,"hover")},x):n||r(!0,W,"hover")}function k(W){if(C()){S();return}$.current();const x=Ue(s.floating);if(gt(T),R.current=!1,g.current&&i.current.floatingContext){n||gt(y),O.current=g.current({...i.current.floatingContext,tree:h,x:W.clientX,y:W.clientY,onClose(){S(),Y(),C()||z(W,!0,"safe-polygon")}});const D=O.current;x.addEventListener("mousemove",D),$.current=()=>{x.removeEventListener("mousemove",D)};return}(b.current==="touch"?!qe(s.floating,W.relatedTarget):!0)&&z(W)}function L(W){C()||i.current.floatingContext&&(g.current==null||g.current({...i.current.floatingContext,tree:h,x:W.clientX,y:W.clientY,onClose(){S(),Y(),C()||z(W)}})(W))}function X(){gt(y)}function B(W){C()||z(W,!1)}if(Re(s.domReference)){const W=s.domReference,x=s.floating;return n&&W.addEventListener("mouseleave",L),d&&W.addEventListener("mousemove",A,{once:!0}),W.addEventListener("mouseenter",A),W.addEventListener("mouseleave",k),x&&(x.addEventListener("mouseleave",L),x.addEventListener("mouseenter",X),x.addEventListener("mouseleave",B)),()=>{n&&W.removeEventListener("mouseleave",L),d&&W.removeEventListener("mousemove",A),W.removeEventListener("mouseenter",A),W.removeEventListener("mouseleave",k),x&&(x.removeEventListener("mouseleave",L),x.removeEventListener("mouseenter",X),x.removeEventListener("mouseleave",B))}}},[s,a,e,f,d,z,Y,S,r,n,_,h,v,g,i,C,w]),Ce(()=>{var A;if(a&&n&&(A=g.current)!=null&&(A=A.__options)!=null&&A.blockPointerEvents&&P()){I.current=!0;const L=s.floating;if(Re(s.domReference)&&L){var k;const X=Ue(s.floating).body;X.setAttribute($c,"");const B=s.domReference,W=h==null||(k=h.nodesRef.current.find(x=>x.id===p))==null||(k=k.context)==null?void 0:k.elements.floating;return W&&(W.style.pointerEvents=""),X.style.pointerEvents="none",B.style.pointerEvents="auto",L.style.pointerEvents="auto",()=>{X.style.pointerEvents="",B.style.pointerEvents="",L.style.pointerEvents=""}}}},[a,n,p,s,h,g,P]),Ce(()=>{n||(b.current=void 0,R.current=!1,Y(),S())},[n,Y,S]),E.useEffect(()=>()=>{Y(),gt(y),gt(T),S()},[a,s.domReference,Y,S]);const U=E.useMemo(()=>{function A(k){b.current=k.pointerType}return{onPointerDown:A,onPointerEnter:A,onMouseMove(k){const{nativeEvent:L}=k;function X(){!M.current&&!_.current&&r(!0,L,"hover")}f&&!gi(b.current)||n||Ls(w.current)===0||R.current&&k.movementX**2+k.movementY**2<2||(gt(T),b.current==="touch"?X():(R.current=!0,T.current=window.setTimeout(X,Ls(w.current))))}}},[f,r,n,_,w]);return E.useMemo(()=>a?{reference:U}:{},[a,U])}let Pc=0;function sr(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Pc);const l=()=>e?.focus({preventScroll:n});i?l():Pc=requestAnimationFrame(l)}function qp(e){return e?.ownerDocument||document}const Nr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Ic(e){return e==="inert"?Nr.inert:e==="aria-hidden"?Nr["aria-hidden"]:Nr.none}let Vi=new WeakSet,Hi={},Fs=0;const Up=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,gf=e=>e&&(e.host||gf(e.parentNode)),Bp=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=gf(n);return e.contains(r)?r:null}).filter(n=>n!=null);function Gp(e,t,n,r){const i="data-floating-ui-inert",l=r?"inert":n?"aria-hidden":null,s=Bp(t,e),a=new Set,c=new Set(s),u=[];Hi[i]||(Hi[i]=new WeakMap);const f=Hi[i];s.forEach(m),d(t),a.clear();function m(h){!h||a.has(h)||(a.add(h),h.parentNode&&m(h.parentNode))}function d(h){!h||c.has(h)||[].forEach.call(h.children,p=>{if(Gn(p)!=="script")if(a.has(p))d(p);else{const g=l?p.getAttribute(l):null,v=g!==null&&g!=="false",_=Ic(l),w=(_.get(p)||0)+1,b=(f.get(p)||0)+1;_.set(p,w),f.set(p,b),u.push(p),w===1&&v&&Vi.add(p),b===1&&p.setAttribute(i,""),!v&&l&&p.setAttribute(l,l==="inert"?"":"true")}})}return Fs++,()=>{u.forEach(h=>{const p=Ic(l),v=(p.get(h)||0)-1,_=(f.get(h)||0)-1;p.set(h,v),f.set(h,_),v||(!Vi.has(h)&&l&&h.removeAttribute(l),Vi.delete(h)),_||h.removeAttribute(i)}),Fs--,Fs||(Nr.inert=new WeakMap,Nr["aria-hidden"]=new WeakMap,Nr.none=new WeakMap,Vi=new WeakSet,Hi={})}}function zc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=qp(e[0]).body;return Gp(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Xl={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},kl=E.forwardRef(function(t,n){const[r,i]=E.useState();Ce(()=>{Qu()&&i("button")},[]);const l={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[pr("focus-guard")]:"",style:Xl};return Be.jsx("span",{...t,...l})}),vf=E.createContext(null),Ac=pr("portal");function Kp(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Pi(),i=yf(),[l,s]=E.useState(null),a=E.useRef(null);return Ce(()=>()=>{l?.remove(),queueMicrotask(()=>{a.current=null})},[l]),Ce(()=>{if(!r||a.current)return;const c=t?document.getElementById(t):null;if(!c)return;const u=document.createElement("div");u.id=r,u.setAttribute(Ac,""),c.appendChild(u),a.current=u,s(u)},[t,r]),Ce(()=>{if(n===null||!r||a.current)return;let c=n||i?.portalNode;c&&!Xo(c)&&(c=c.current),c=c||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,c.appendChild(u));const f=document.createElement("div");f.id=r,f.setAttribute(Ac,""),c=u||c,c.appendChild(f),a.current=f,s(f)},[t,n,r,i]),l}function Ql(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,l=Kp({id:n,root:r}),[s,a]=E.useState(null),c=E.useRef(null),u=E.useRef(null),f=E.useRef(null),m=E.useRef(null),d=s?.modal,h=s?.open,p=!!s&&!s.modal&&s.open&&i&&!!(r||l);return E.useEffect(()=>{if(!l||!i||d)return;function g(v){l&&ci(v)&&(v.type==="focusin"?yc:Zh)(l)}return l.addEventListener("focusin",g,!0),l.addEventListener("focusout",g,!0),()=>{l.removeEventListener("focusin",g,!0),l.removeEventListener("focusout",g,!0)}},[l,i,d]),E.useEffect(()=>{l&&(h||yc(l))},[h,l]),Be.jsxs(vf.Provider,{value:E.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:f,afterInsideRef:m,portalNode:l,setFocusManagerState:a}),[i,l]),children:[p&&l&&Be.jsx(kl,{"data-type":"outside",ref:c,onFocus:g=>{if(ci(g,l)){var v;(v=f.current)==null||v.focus()}else{const _=s?s.domReference:null,w=lf(_);w?.focus()}}}),p&&l&&Be.jsx("span",{"aria-owns":l.id,style:Xl}),l&&ra.createPortal(t,l),p&&l&&Be.jsx(kl,{"data-type":"outside",ref:u,onFocus:g=>{if(ci(g,l)){var v;(v=m.current)==null||v.focus()}else{const _=s?s.domReference:null,w=rf(_);w?.focus(),s?.closeOnFocusOut&&s?.onOpenChange(!1,g.nativeEvent,"focus-out")}}})]})}const yf=()=>E.useContext(vf);function Lc(e){return E.useMemo(()=>t=>{e.forEach(n=>{n&&(n.current=t)})},e)}const Zp=20;let Fn=[];function ca(){Fn=Fn.filter(e=>e.isConnected)}function Xp(e){ca(),e&&Gn(e)!=="body"&&(Fn.push(e),Fn.length>Zp&&(Fn=Fn.slice(-20)))}function Fc(){return ca(),Fn[Fn.length-1]}function Qp(e){const t=Ci();return Zu(e,t)?e:Bl(e,t)[0]||e}function Yc(e,t){var n;if(!t.current.includes("floating")&&!((n=e.getAttribute("role"))!=null&&n.includes("dialog")))return;const r=Ci(),l=Nh(e,r).filter(a=>{const c=a.getAttribute("data-tabindex")||"";return Zu(a,r)||a.hasAttribute("data-tabindex")&&!c.startsWith("-")}),s=e.getAttribute("tabindex");t.current.includes("floating")||l.length===0?s!=="0"&&e.setAttribute("tabindex","0"):(s!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const Jp=E.forwardRef(function(t,n){return Be.jsx("button",{...t,type:"button",ref:n,tabIndex:-1,style:Xl})});function ua(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:l=!0,initialFocus:s=0,returnFocus:a=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:m=!0,outsideElementsInert:d=!1,getInsideElements:h=()=>[]}=e,{open:p,onOpenChange:g,events:v,dataRef:_,elements:{domReference:w,floating:b}}=t,y=Ge(()=>{var Q;return(Q=_.current.floatingContext)==null?void 0:Q.nodeId}),O=Ge(h),T=typeof s=="number"&&s<0,M=yo(w)&&T,I=Up(),$=I?l:!0,R=!$||I&&d,P=et(i),z=et(s),Y=et(a),S=Ii(),C=yf(),U=E.useRef(null),A=E.useRef(null),k=E.useRef(!1),L=E.useRef(!1),X=E.useRef(-1),B=E.useRef(-1),W=C!=null,x=xl(b),N=Ge(function(Q){return Q===void 0&&(Q=x),Q?Bl(Q,Ci()):[]}),D=Ge(Q=>{const ne=N(Q);return P.current.map(G=>w&&G==="reference"?w:x&&G==="floating"?x:ne).filter(Boolean).flat()});E.useEffect(()=>{if(r||!u)return;function Q(G){if(G.key==="Tab"){qe(x,Xt(Ue(x)))&&N().length===0&&!M&<(G);const ce=D(),de=vn(G);P.current[0]==="reference"&&de===w&&(lt(G),G.shiftKey?sr(ce[ce.length-1]):sr(ce[1])),P.current[1]==="floating"&&de===x&&G.shiftKey&&(lt(G),sr(ce[0]))}}const ne=Ue(x);return ne.addEventListener("keydown",Q),()=>{ne.removeEventListener("keydown",Q)}},[r,w,x,u,P,M,N,D]),E.useEffect(()=>{if(r||!b)return;function Q(ne){const G=vn(ne),de=N().indexOf(G);de!==-1&&(X.current=de)}return b.addEventListener("focusin",Q),()=>{b.removeEventListener("focusin",Q)}},[r,b,N]),E.useEffect(()=>{if(r||!m)return;function Q(){L.current=!0,setTimeout(()=>{L.current=!1})}function ne(de){const re=de.relatedTarget,ve=de.currentTarget,ae=vn(de);queueMicrotask(()=>{const fe=y(),ge=!(qe(w,re)||qe(b,re)||qe(re,b)||qe(C?.portalNode,re)||re!=null&&re.hasAttribute(pr("focus-guard"))||S&&(fr(S.nodesRef.current,fe).find(q=>{var J,Z;return qe((J=q.context)==null?void 0:J.elements.floating,re)||qe((Z=q.context)==null?void 0:Z.elements.domReference,re)})||gc(S.nodesRef.current,fe).find(q=>{var J,Z,pe;return[(J=q.context)==null?void 0:J.elements.floating,xl((Z=q.context)==null?void 0:Z.elements.floating)].includes(re)||((pe=q.context)==null?void 0:pe.elements.domReference)===re})));if(ve===w&&x&&Yc(x,P),c&&ve!==w&&!(ae!=null&&ae.isConnected)&&Xt(Ue(x))===Ue(x).body){Fe(x)&&x.focus();const q=X.current,J=N(),Z=J[q]||J[J.length-1]||x;Fe(Z)&&Z.focus()}if(_.current.insideReactTree){_.current.insideReactTree=!1;return}(M||!u)&&re&&ge&&!L.current&&re!==Fc()&&(k.current=!0,g(!1,de,"focus-out"))})}const G=!!(!S&&C);function ce(){gt(B),_.current.insideReactTree=!0,B.current=window.setTimeout(()=>{_.current.insideReactTree=!1})}if(b&&Fe(w))return w.addEventListener("focusout",ne),w.addEventListener("pointerdown",Q),b.addEventListener("focusout",ne),G&&b.addEventListener("focusout",ce,!0),()=>{w.removeEventListener("focusout",ne),w.removeEventListener("pointerdown",Q),b.removeEventListener("focusout",ne),G&&b.removeEventListener("focusout",ce,!0)}},[r,w,b,x,u,S,C,g,m,c,N,M,y,P,_]);const F=E.useRef(null),H=E.useRef(null),K=Lc([F,C?.beforeInsideRef]),te=Lc([H,C?.afterInsideRef]);E.useEffect(()=>{var Q,ne;if(r||!b)return;const G=Array.from((C==null||(Q=C.portalNode)==null?void 0:Q.querySelectorAll("["+pr("portal")+"]"))||[]),de=(ne=(S?gc(S.nodesRef.current,y()):[]).find(ae=>{var fe;return yo(((fe=ae.context)==null?void 0:fe.elements.domReference)||null)}))==null||(ne=ne.context)==null?void 0:ne.elements.domReference,re=[b,de,...G,...O(),U.current,A.current,F.current,H.current,C?.beforeOutsideRef.current,C?.afterOutsideRef.current,P.current.includes("reference")||M?w:null].filter(ae=>ae!=null),ve=u||M?zc(re,!R,R):zc(re);return()=>{ve()}},[r,w,b,u,P,C,M,$,R,S,y,O]),Ce(()=>{if(r||!Fe(x))return;const Q=Ue(x),ne=Xt(Q);queueMicrotask(()=>{const G=D(x),ce=z.current,de=(typeof ce=="number"?G[ce]:ce.current)||x,re=qe(x,ne);!T&&!re&&p&&sr(de,{preventScroll:de===x})})},[r,p,x,T,D,z]),Ce(()=>{if(r||!x)return;const Q=Ue(x),ne=Xt(Q);Xp(ne);function G(re){let{reason:ve,event:ae,nested:fe}=re;if(["hover","safe-polygon"].includes(ve)&&ae.type==="mouseleave"&&(k.current=!0),ve==="outside-press")if(fe)k.current=!1;else if(ef(ae)||tf(ae))k.current=!1;else{let ge=!1;document.createElement("div").focus({get preventScroll(){return ge=!0,!1}}),ge?k.current=!1:k.current=!0}}v.on("openchange",G);const ce=Q.createElement("span");ce.setAttribute("tabindex","-1"),ce.setAttribute("aria-hidden","true"),Object.assign(ce.style,Xl),W&&w&&w.insertAdjacentElement("afterend",ce);function de(){if(typeof Y.current=="boolean"){const re=w||Fc();return re&&re.isConnected?re:ce}return Y.current.current||ce}return()=>{v.off("openchange",G);const re=Xt(Q),ve=qe(b,re)||S&&fr(S.nodesRef.current,y(),!1).some(fe=>{var ge;return qe((ge=fe.context)==null?void 0:ge.elements.floating,re)}),ae=de();queueMicrotask(()=>{const fe=Qp(ae);Y.current&&!k.current&&Fe(fe)&&(!(fe!==re&&re!==Q.body)||ve)&&fe.focus({preventScroll:!0}),ce.remove()})}},[r,b,x,Y,_,v,S,W,w,y]),E.useEffect(()=>(queueMicrotask(()=>{k.current=!1}),()=>{queueMicrotask(ca)}),[r]),Ce(()=>{if(!r&&C)return C.setFocusManagerState({modal:u,closeOnFocusOut:m,open:p,onOpenChange:g,domReference:w}),()=>{C.setFocusManagerState(null)}},[r,C,u,p,g,m,w]),Ce(()=>{r||x&&Yc(x,P)},[r,x,P]);function le(Q){return r||!f||!u?null:Be.jsx(Jp,{ref:Q==="start"?U:A,onClick:ne=>g(!1,ne.nativeEvent),children:typeof f=="string"?f:"Dismiss"})}const he=!r&&$&&(u?!M:!0)&&(W||u);return Be.jsxs(Be.Fragment,{children:[he&&Be.jsx(kl,{"data-type":"inside",ref:K,onFocus:Q=>{if(u){const G=D();sr(i[0]==="reference"?G[0]:G[G.length-1])}else if(C!=null&&C.preserveTabOrder&&C.portalNode)if(k.current=!1,ci(Q,C.portalNode)){const G=rf(w);G?.focus()}else{var ne;(ne=C.beforeOutsideRef.current)==null||ne.focus()}}}),!M&&le("start"),n,le("end"),he&&Be.jsx(kl,{"data-type":"inside",ref:te,onFocus:Q=>{if(u)sr(D()[0]);else if(C!=null&&C.preserveTabOrder&&C.portalNode)if(m&&(k.current=!0),ci(Q,C.portalNode)){const G=lf(w);G?.focus()}else{var ne;(ne=C.afterOutsideRef.current)==null||ne.focus()}}})]})}let qi=0;const jc="--floating-ui-scrollbar-width";function eg(){const e=ta(),t=/iP(hone|ad|od)|iOS/.test(e)||e==="MacIntel"&&navigator.maxTouchPoints>1,n=document.body.style,i=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",l=window.innerWidth-document.documentElement.clientWidth,s=n.left?parseFloat(n.left):window.scrollX,a=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(jc,l+"px"),l&&(n[i]=l+"px"),t){var c,u;const f=((c=window.visualViewport)==null?void 0:c.offsetLeft)||0,m=((u=window.visualViewport)==null?void 0:u.offsetTop)||0;Object.assign(n,{position:"fixed",top:-(a-Math.floor(m))+"px",left:-(s-Math.floor(f))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[i]:""}),n.removeProperty(jc),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(s,a))}}let Wc=()=>{};const tg=E.forwardRef(function(t,n){const{lockScroll:r=!1,...i}=t;return Ce(()=>{if(r)return qi++,qi===1&&(Wc=eg()),()=>{qi--,qi===0&&Wc()}},[r]),Be.jsx("div",{ref:n,...i,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...i.style}})});function Vc(e){return Fe(e.target)&&e.target.tagName==="BUTTON"}function ng(e){return Fe(e.target)&&e.target.tagName==="A"}function Hc(e){return na(e)}function fa(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:l}}=e,{enabled:s=!0,event:a="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:f=!0,stickIfOpen:m=!0}=t,d=E.useRef(),h=E.useRef(!1),p=E.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const v=d.current;g.button===0&&a!=="click"&&(gi(v,!0)&&u||(n&&c&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){const v=d.current;if(a==="mousedown"&&d.current){d.current=void 0;return}gi(v,!0)&&u||(n&&c&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!f||Vc(g))&&(g.key===" "&&!Hc(l)&&(g.preventDefault(),h.current=!0),!ng(g)&&g.key==="Enter"&&r(!(n&&c),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!f||Vc(g)||Hc(l)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&c),g.nativeEvent,"click"))}}),[i,l,a,u,f,r,n,m,c]);return E.useMemo(()=>s?{reference:p}:{},[s,p])}const rg={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ig={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},qc=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function Jl(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:l}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:f=!1,referencePressEvent:m="pointerdown",ancestorScroll:d=!1,bubbles:h,capture:p}=t,g=Ii(),v=Ge(typeof c=="function"?c:()=>!1),_=typeof c=="function"?v:c,w=E.useRef(!1),{escapeKey:b,outsidePress:y}=qc(h),{escapeKey:O,outsidePress:T}=qc(p),M=E.useRef(!1),I=Ge(S=>{var C;if(!n||!s||!a||S.key!=="Escape"||M.current)return;const U=(C=l.current.floatingContext)==null?void 0:C.nodeId,A=g?fr(g.nodesRef.current,U):[];if(!b&&(S.stopPropagation(),A.length>0)){let k=!0;if(A.forEach(L=>{var X;if((X=L.context)!=null&&X.open&&!L.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}r(!1,Yh(S)?S.nativeEvent:S,"escape-key")}),$=Ge(S=>{var C;const U=()=>{var A;I(S),(A=vn(S))==null||A.removeEventListener("keydown",U)};(C=vn(S))==null||C.addEventListener("keydown",U)}),R=Ge(S=>{var C;const U=l.current.insideReactTree;l.current.insideReactTree=!1;const A=w.current;if(w.current=!1,u==="click"&&A||U||typeof _=="function"&&!_(S))return;const k=vn(S),L="["+pr("inert")+"]",X=Ue(i.floating).querySelectorAll(L);let B=Re(k)?k:null;for(;B&&!xn(B);){const D=On(B);if(xn(D)||!Re(D))break;B=D}if(X.length&&Re(k)&&!Ah(k)&&!qe(k,i.floating)&&Array.from(X).every(D=>!qe(B,D)))return;if(Fe(k)&&Y){const D=xn(k),F=wt(k),H=/auto|scroll/,K=D||H.test(F.overflowX),te=D||H.test(F.overflowY),le=K&&k.clientWidth>0&&k.scrollWidth>k.clientWidth,he=te&&k.clientHeight>0&&k.scrollHeight>k.clientHeight,Q=F.direction==="rtl",ne=he&&(Q?S.offsetX<=k.offsetWidth-k.clientWidth:S.offsetX>k.clientWidth),G=le&&S.offsetY>k.clientHeight;if(ne||G)return}const W=(C=l.current.floatingContext)==null?void 0:C.nodeId,x=g&&fr(g.nodesRef.current,W).some(D=>{var F;return $s(S,(F=D.context)==null?void 0:F.elements.floating)});if($s(S,i.floating)||$s(S,i.domReference)||x)return;const N=g?fr(g.nodesRef.current,W):[];if(N.length>0){let D=!0;if(N.forEach(F=>{var H;if((H=F.context)!=null&&H.open&&!F.context.dataRef.current.__outsidePressBubbles){D=!1;return}}),!D)return}r(!1,S,"outside-press")}),P=Ge(S=>{var C;const U=()=>{var A;R(S),(A=vn(S))==null||A.removeEventListener(u,U)};(C=vn(S))==null||C.addEventListener(u,U)});E.useEffect(()=>{if(!n||!s)return;l.current.__escapeKeyBubbles=b,l.current.__outsidePressBubbles=y;let S=-1;function C(X){r(!1,X,"ancestor-scroll")}function U(){window.clearTimeout(S),M.current=!0}function A(){S=window.setTimeout(()=>{M.current=!1},ql()?5:0)}const k=Ue(i.floating);a&&(k.addEventListener("keydown",O?$:I,O),k.addEventListener("compositionstart",U),k.addEventListener("compositionend",A)),_&&k.addEventListener(u,T?P:R,T);let L=[];return d&&(Re(i.domReference)&&(L=Vn(i.domReference)),Re(i.floating)&&(L=L.concat(Vn(i.floating))),!Re(i.reference)&&i.reference&&i.reference.contextElement&&(L=L.concat(Vn(i.reference.contextElement)))),L=L.filter(X=>{var B;return X!==((B=k.defaultView)==null?void 0:B.visualViewport)}),L.forEach(X=>{X.addEventListener("scroll",C,{passive:!0})}),()=>{a&&(k.removeEventListener("keydown",O?$:I,O),k.removeEventListener("compositionstart",U),k.removeEventListener("compositionend",A)),_&&k.removeEventListener(u,T?P:R,T),L.forEach(X=>{X.removeEventListener("scroll",C)}),window.clearTimeout(S)}},[l,i,a,_,u,n,r,d,s,b,y,I,O,$,R,T,P]),E.useEffect(()=>{l.current.insideReactTree=!1},[l,_,u]);const z=E.useMemo(()=>({onKeyDown:I,...f&&{[rg[m]]:S=>{r(!1,S.nativeEvent,"reference-press")},...m!=="click"&&{onClick(S){r(!1,S.nativeEvent,"reference-press")}}}}),[I,r,f,m]),Y=E.useMemo(()=>({onKeyDown:I,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[ig[u]]:()=>{l.current.insideReactTree=!0}}),[I,u,l]);return E.useMemo(()=>s?{reference:z,floating:Y}:{},[s,z,Y])}function lg(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Pi(),l=E.useRef({}),[s]=E.useState(()=>jp()),a=Zl()!=null;if(process.env.NODE_ENV!=="production"){const h=r.reference;h&&!Re(h)&&Yp("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=E.useState(r.reference),f=Ge((h,p,g)=>{l.current.openEvent=h?p:void 0,s.emit("openchange",{open:h,event:p,reason:g,nested:a}),n?.(h,p,g)}),m=E.useMemo(()=>({setPositionReference:u}),[]),d=E.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return E.useMemo(()=>({dataRef:l,open:t,onOpenChange:f,elements:d,events:s,floatingId:i,refs:m}),[t,f,d,s,i,m])}function es(e){e===void 0&&(e={});const{nodeId:t}=e,n=lg({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[l,s]=E.useState(null),[a,c]=E.useState(null),f=i?.domReference||l,m=E.useRef(null),d=Ii();Ce(()=>{f&&(m.current=f)},[f]);const h=Cp({...e,elements:{...i,...a&&{reference:a}}}),p=E.useCallback(b=>{const y=Re(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),getClientRects:()=>b.getClientRects(),contextElement:b}:b;c(y),h.refs.setReference(y)},[h.refs]),g=E.useCallback(b=>{(Re(b)||b===null)&&(m.current=b,s(b)),(Re(h.refs.reference.current)||h.refs.reference.current===null||b!==null&&!Re(b))&&h.refs.setReference(b)},[h.refs]),v=E.useMemo(()=>({...h.refs,setReference:g,setPositionReference:p,domReference:m}),[h.refs,g,p]),_=E.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),w=E.useMemo(()=>({...h,...r,refs:v,elements:_,nodeId:t}),[h,v,_,t,r]);return Ce(()=>{r.dataRef.current.floatingContext=w;const b=d?.nodesRef.current.find(y=>y.id===t);b&&(b.context=w)}),E.useMemo(()=>({...h,context:w,refs:v,elements:_}),[h,v,_,w])}function Ys(){return $h()&&Qu()}function sg(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:l,elements:s}=e,{enabled:a=!0,visibleOnly:c=!0}=t,u=E.useRef(!1),f=E.useRef(-1),m=E.useRef(!0);E.useEffect(()=>{if(!a)return;const h=ct(s.domReference);function p(){!n&&Fe(s.domReference)&&s.domReference===Xt(Ue(s.domReference))&&(u.current=!0)}function g(){m.current=!0}function v(){m.current=!1}return h.addEventListener("blur",p),Ys()&&(h.addEventListener("keydown",g,!0),h.addEventListener("pointerdown",v,!0)),()=>{h.removeEventListener("blur",p),Ys()&&(h.removeEventListener("keydown",g,!0),h.removeEventListener("pointerdown",v,!0))}},[s.domReference,n,a]),E.useEffect(()=>{if(!a)return;function h(p){let{reason:g}=p;(g==="reference-press"||g==="escape-key")&&(u.current=!0)}return i.on("openchange",h),()=>{i.off("openchange",h)}},[i,a]),E.useEffect(()=>()=>{gt(f)},[]);const d=E.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(h){if(u.current)return;const p=vn(h.nativeEvent);if(c&&Re(p)){if(Ys()&&!h.relatedTarget){if(!m.current&&!na(p))return}else if(!Lh(p))return}r(!0,h.nativeEvent,"focus")},onBlur(h){u.current=!1;const p=h.relatedTarget,g=h.nativeEvent,v=Re(p)&&p.hasAttribute(pr("focus-guard"))&&p.getAttribute("data-type")==="outside";f.current=window.setTimeout(()=>{var _;const w=Xt(s.domReference?s.domReference.ownerDocument:document);!p&&w===s.domReference||qe((_=l.current.floatingContext)==null?void 0:_.refs.floating.current,w)||qe(s.domReference,w)||v||r(!1,g,"focus")})}}),[l,s.domReference,r,c]);return E.useMemo(()=>a?{reference:d}:{},[a,d])}function js(e,t,n){const r=new Map,i=n==="item";let l=e;if(i&&e){const{[Dc]:s,[Rc]:a,...c}=e;l=c}return{...n==="floating"&&{tabIndex:-1,[Ip]:""},...l,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(c=>{let[u,f]=c;if(!(i&&[Dc,Rc].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var m;(m=r.get(u))==null||m.push(f),s[u]=function(){for(var d,h=arguments.length,p=new Array(h),g=0;g<h;g++)p[g]=arguments[g];return(d=r.get(u))==null?void 0:d.map(v=>v(...p)).find(v=>v!==void 0)}}}else s[u]=f}),s),{})}}function ts(e){e===void 0&&(e=[]);const t=e.map(a=>a?.reference),n=e.map(a=>a?.floating),r=e.map(a=>a?.item),i=E.useCallback(a=>js(a,e,"reference"),t),l=E.useCallback(a=>js(a,e,"floating"),n),s=E.useCallback(a=>js(a,e,"item"),r);return E.useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:s}),[i,l,s])}const og="Escape";function ns(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Ui(e,t){return ns(t,e===pf||e===Kl,e===Ni||e===$i)}function Ws(e,t,n){return ns(t,e===Kl,n?e===Ni:e===$i)||e==="Enter"||e===" "||e===""}function Uc(e,t,n){return ns(t,n?e===Ni:e===$i,e===Kl)}function Bc(e,t,n,r){const i=n?e===$i:e===Ni,l=e===pf;return t==="both"||t==="horizontal"&&r&&r>1?e===og:ns(t,i,l)}function ag(e,t){const{open:n,onOpenChange:r,elements:i,floatingId:l}=e,{listRef:s,activeIndex:a,onNavigate:c=()=>{},enabled:u=!0,selectedIndex:f=null,allowEscape:m=!1,loop:d=!1,nested:h=!1,rtl:p=!1,virtual:g=!1,focusItemOnOpen:v="auto",focusItemOnHover:_=!0,openOnArrowKeyDown:w=!0,disabledIndices:b=void 0,orientation:y="vertical",parentOrientation:O,cols:T=1,scrollItemIntoView:M=!0,virtualItemRef:I,itemSizes:$,dense:R=!1}=t;process.env.NODE_ENV!=="production"&&(m&&(d||ol("`useListNavigation` looping must be enabled to allow escaping."),g||ol("`useListNavigation` must be virtual to allow escaping.")),y==="vertical"&&T>1&&ol("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".'));const P=xl(i.floating),z=et(P),Y=Zl(),S=Ii();Ce(()=>{e.dataRef.current.orientation=y},[e,y]);const C=Ge(()=>{c(k.current===-1?null:k.current)}),U=yo(i.domReference),A=E.useRef(v),k=E.useRef(f??-1),L=E.useRef(null),X=E.useRef(!0),B=E.useRef(C),W=E.useRef(!!i.floating),x=E.useRef(n),N=E.useRef(!1),D=E.useRef(!1),F=et(b),H=et(n),K=et(M),te=et(f),[le,he]=E.useState(),[Q,ne]=E.useState(),G=Ge(()=>{function q(_e){if(g){var Se;(Se=_e.id)!=null&&Se.endsWith("-fui-option")&&(_e.id=l+"-"+Math.random().toString(16).slice(2,10)),he(_e.id),S?.events.emit("virtualfocus",_e),I&&(I.current=_e)}else sr(_e,{sync:N.current,preventScroll:!0})}const J=s.current[k.current],Z=D.current;J&&q(J),(N.current?_e=>_e():requestAnimationFrame)(()=>{const _e=s.current[k.current]||J;if(!_e)return;J||q(_e);const Se=K.current;Se&&de&&(Z||!X.current)&&(_e.scrollIntoView==null||_e.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})});Ce(()=>{u&&(n&&i.floating?A.current&&f!=null&&(D.current=!0,k.current=f,C()):W.current&&(k.current=-1,B.current()))},[u,n,i.floating,f,C]),Ce(()=>{if(u&&n&&i.floating)if(a==null){if(N.current=!1,te.current!=null)return;if(W.current&&(k.current=-1,G()),(!x.current||!W.current)&&A.current&&(L.current!=null||A.current===!0&&L.current==null)){let q=0;const J=()=>{s.current[0]==null?(q<2&&(q?requestAnimationFrame:queueMicrotask)(J),q++):(k.current=L.current==null||Ws(L.current,y,p)||h?Ps(s,F.current):vc(s,F.current),L.current=null,C())};J()}}else ai(s,a)||(k.current=a,G(),D.current=!1)},[u,n,i.floating,a,te,h,s,y,p,C,G,F]),Ce(()=>{var q;if(!u||i.floating||!S||g||!W.current)return;const J=S.nodesRef.current,Z=(q=J.find(Se=>Se.id===Y))==null||(q=q.context)==null?void 0:q.elements.floating,pe=Xt(Ue(i.floating)),_e=J.some(Se=>Se.context&&qe(Se.context.elements.floating,pe));Z&&!_e&&X.current&&Z.focus({preventScroll:!0})},[u,i.floating,S,Y,g]),Ce(()=>{if(!u||!S||!g||Y)return;function q(J){ne(J.id),I&&(I.current=J)}return S.events.on("virtualfocus",q),()=>{S.events.off("virtualfocus",q)}},[u,S,g,Y,I]),Ce(()=>{B.current=C,x.current=n,W.current=!!i.floating}),Ce(()=>{n||(L.current=null,A.current=v)},[n,v]);const ce=a!=null,de=E.useMemo(()=>{function q(Z){if(!H.current)return;const pe=s.current.indexOf(Z);pe!==-1&&k.current!==pe&&(k.current=pe,C())}return{onFocus(Z){let{currentTarget:pe}=Z;N.current=!0,q(pe)},onClick:Z=>{let{currentTarget:pe}=Z;return pe.focus({preventScroll:!0})},onMouseMove(Z){let{currentTarget:pe}=Z;N.current=!0,D.current=!1,_&&q(pe)},onPointerLeave(Z){let{pointerType:pe}=Z;if(!(!X.current||pe==="touch")&&(N.current=!0,!!_&&(k.current=-1,C(),!g))){var _e;(_e=z.current)==null||_e.focus({preventScroll:!0})}}}},[H,z,_,s,C,g]),re=E.useCallback(()=>{var q;return O??(S==null||(q=S.nodesRef.current.find(J=>J.id===Y))==null||(q=q.context)==null||(q=q.dataRef)==null?void 0:q.current.orientation)},[Y,S,O]),ve=Ge(q=>{if(X.current=!1,N.current=!0,q.which===229||!H.current&&q.currentTarget===z.current)return;if(h&&Bc(q.key,y,p,T)){Ui(q.key,re())||lt(q),r(!1,q.nativeEvent,"list-navigation"),Fe(i.domReference)&&(g?S?.events.emit("virtualfocus",i.domReference):i.domReference.focus());return}const J=k.current,Z=Ps(s,b),pe=vc(s,b);if(U||(q.key==="Home"&&(lt(q),k.current=Z,C()),q.key==="End"&&(lt(q),k.current=pe,C())),T>1){const _e=$||Array.from({length:s.current.length},()=>({width:1,height:1})),Se=Bh(_e,T,R),ut=Se.findIndex(Ae=>Ae!=null&&!ll(s,Ae,b)),kt=Se.reduce((Ae,Ke,ft)=>Ke!=null&&!ll(s,Ke,b)?ft:Ae,-1),nt=Se[Uh({current:Se.map(Ae=>Ae!=null?s.current[Ae]:null)},{event:q,orientation:y,loop:d,rtl:p,cols:T,disabledIndices:Kh([...(typeof b!="function"?b:null)||s.current.map((Ae,Ke)=>ll(s,Ke,b)?Ke:void 0),void 0],Se),minIndex:ut,maxIndex:kt,prevIndex:Gh(k.current>pe?Z:k.current,_e,Se,T,q.key===Kl?"bl":q.key===(p?Ni:$i)?"tr":"tl"),stopEvent:!0})];if(nt!=null&&(k.current=nt,C()),y==="both")return}if(Ui(q.key,y)){if(lt(q),n&&!g&&Xt(q.currentTarget.ownerDocument)===q.currentTarget){k.current=Ws(q.key,y,p)?Z:pe,C();return}Ws(q.key,y,p)?d?k.current=J>=pe?m&&J!==s.current.length?-1:Z:Je(s,{startingIndex:J,disabledIndices:b}):k.current=Math.min(pe,Je(s,{startingIndex:J,disabledIndices:b})):d?k.current=J<=Z?m&&J!==-1?s.current.length:pe:Je(s,{startingIndex:J,decrement:!0,disabledIndices:b}):k.current=Math.max(Z,Je(s,{startingIndex:J,decrement:!0,disabledIndices:b})),ai(s,k.current)&&(k.current=-1),C()}}),ae=E.useMemo(()=>g&&n&&ce&&{"aria-activedescendant":Q||le},[g,n,ce,Q,le]),fe=E.useMemo(()=>({"aria-orientation":y==="both"?void 0:y,...U?{}:ae,onKeyDown:ve,onPointerMove(){X.current=!0}}),[ae,ve,y,U]),ge=E.useMemo(()=>{function q(Z){v==="auto"&&ef(Z.nativeEvent)&&(A.current=!0)}function J(Z){A.current=v,v==="auto"&&tf(Z.nativeEvent)&&(A.current=!0)}return{...ae,onKeyDown(Z){X.current=!1;const pe=Z.key.startsWith("Arrow"),_e=["Home","End"].includes(Z.key),Se=pe||_e,ut=Uc(Z.key,y,p),kt=Bc(Z.key,y,p,T),nt=Uc(Z.key,re(),p),Ae=Ui(Z.key,y),Ke=(h?nt:Ae)||Z.key==="Enter"||Z.key.trim()==="";if(g&&n){const Ht=S?.nodesRef.current.find(Ct=>Ct.parentId==null),Ie=S&&Ht?Fh(S.nodesRef.current,Ht.id):null;if(Se&&Ie&&I){const Ct=new KeyboardEvent("keydown",{key:Z.key,bubbles:!0});if(ut||kt){var ft,an;const Nn=((ft=Ie.context)==null?void 0:ft.elements.domReference)===Z.currentTarget,qt=kt&&!Nn?(an=Ie.context)==null?void 0:an.elements.domReference:ut?s.current.find(St=>St?.id===le):null;qt&&(lt(Z),qt.dispatchEvent(Ct),ne(void 0))}if((Ae||_e)&&Ie.context&&Ie.context.open&&Ie.parentId&&Z.currentTarget!==Ie.context.elements.domReference){var Cn;lt(Z),(Cn=Ie.context.elements.domReference)==null||Cn.dispatchEvent(Ct);return}}return ve(Z)}if(!(!n&&!w&&pe)){if(Ke){const Ht=Ui(Z.key,re());L.current=h&&Ht?null:Z.key}if(h){nt&&(lt(Z),n?(k.current=Ps(s,F.current),C()):r(!0,Z.nativeEvent,"list-navigation"));return}Ae&&(f!=null&&(k.current=f),lt(Z),!n&&w?r(!0,Z.nativeEvent,"list-navigation"):ve(Z),n&&C())}},onFocus(){n&&!g&&(k.current=-1,C())},onPointerDown:J,onPointerEnter:J,onMouseDown:q,onClick:q}},[le,ae,T,ve,F,v,s,h,C,r,n,w,y,re,p,f,S,g,I]);return E.useMemo(()=>u?{reference:ge,floating:fe,item:de}:{},[u,ge,fe,de])}const cg=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function rs(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:l,floatingId:s}=e,{enabled:a=!0,role:c="dialog"}=t,u=Pi(),f=((n=l.domReference)==null?void 0:n.id)||u,m=E.useMemo(()=>{var w;return((w=xl(l.floating))==null?void 0:w.id)||s},[l.floating,s]),d=(r=cg.get(c))!=null?r:c,p=Zl()!=null,g=E.useMemo(()=>d==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":d==="alertdialog"?"dialog":d,"aria-controls":i?m:void 0,...d==="listbox"&&{role:"combobox"},...d==="menu"&&{id:f},...d==="menu"&&p&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[d,m,p,i,f,c]),v=E.useMemo(()=>{const w={id:m,...d&&{role:d}};return d==="tooltip"||c==="label"?w:{...w,...d==="menu"&&{"aria-labelledby":f}}},[d,m,f,c]),_=E.useCallback(w=>{let{active:b,selected:y}=w;const O={role:"option",...b&&{id:m+"-fui-option"}};switch(c){case"select":case"combobox":return{...O,"aria-selected":y}}return{}},[m,c]);return E.useMemo(()=>a?{reference:g,floating:v,item:_}:{},[a,g,v,_])}const Gc=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function br(e,t){return typeof e=="function"?e(t):e}function ug(e,t){const[n,r]=E.useState(e);return e&&!n&&r(!0),E.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function fg(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,s=(typeof i=="number"?i:i.close)||0,[a,c]=E.useState("unmounted"),u=ug(n,s);return!u&&a==="close"&&c("unmounted"),Ce(()=>{if(r){if(n){c("initial");const f=requestAnimationFrame(()=>{ra.flushSync(()=>{c("open")})});return()=>{cancelAnimationFrame(f)}}c("close")}},[n,r]),{isMounted:u,status:a}}function da(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:l,duration:s=250}=t,a=e.placement,c=a.split("-")[0],u=E.useMemo(()=>({side:c,placement:a}),[c,a]),f=typeof s=="number",m=(f?s:s.open)||0,d=(f?s:s.close)||0,[h,p]=E.useState(()=>({...br(l,u),...br(n,u)})),{isMounted:g,status:v}=fg(e,{duration:s}),_=et(n),w=et(r),b=et(i),y=et(l);return Ce(()=>{const O=br(_.current,u),T=br(b.current,u),M=br(y.current,u),I=br(w.current,u)||Object.keys(O).reduce(($,R)=>($[R]="",$),{});if(v==="initial"&&p($=>({transitionProperty:$.transitionProperty,...M,...O})),v==="open"&&p({transitionProperty:Object.keys(I).map(Gc).join(","),transitionDuration:m+"ms",...M,...I}),v==="close"){const $=T||O;p({transitionProperty:Object.keys($).map(Gc).join(","),transitionDuration:d+"ms",...M,...$})}},[d,b,_,w,y,m,v,u]),{isMounted:g,styles:h}}const dg="_wrapper_rf188_1",mg="_label_rf188_7",hg="_content_rf188_14",pg="_caption_rf188_20",is={wrapper:dg,label:mg,content:hg,caption:pg},gg=e=>o.createElement("div",{className:is.label},e.children),vg=e=>o.createElement("div",{className:is.content},e.children),yg=e=>o.createElement("div",{className:is.caption},e.children),_g=e=>o.createElement("div",{className:is.wrapper},o.Children.map(e.children,t=>o.isValidElement(t)?t:null)),or=Object.assign(_g,{Label:gg,Content:vg,Caption:yg});/*!
|
|
25
|
+
* OverlayScrollbars
|
|
26
|
+
* Version: 2.12.0
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) Rene Haas | KingSora.
|
|
29
|
+
* https://github.com/KingSora
|
|
30
|
+
*
|
|
31
|
+
* Released under the MIT license.
|
|
32
|
+
*/const vt=(e,t)=>{const{o:n,i:r,u:i}=e;let l=n,s;const a=(f,m)=>{const d=l,h=f,p=m||(r?!r(d,h):d!==h);return(p||i)&&(l=h,s=d),[l,p,s]};return[t?f=>a(t(l,s),f):a,f=>[l,!!f,s]]},bg=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,at=bg?window:{},_f=Math.max,wg=Math.min,_o=Math.round,Sl=Math.abs,Kc=Math.sign,bf=at.cancelAnimationFrame,ma=at.requestAnimationFrame,ha=at.setTimeout,wf=at.clearTimeout,ls=e=>typeof at[e]<"u"?at[e]:void 0,xg=ls("MutationObserver"),Zc=ls("IntersectionObserver"),Or=ls("ResizeObserver"),oi=ls("ScrollTimeline"),pa=e=>e===void 0,ss=e=>e===null,En=e=>typeof e=="number",zi=e=>typeof e=="string",os=e=>typeof e=="boolean",Wt=e=>typeof e=="function",Lt=e=>Array.isArray(e),Ol=e=>typeof e=="object"&&!Lt(e)&&!ss(e),ga=e=>{const t=!!e&&e.length,n=En(t)&&t>-1&&t%1==0;return Lt(e)||!Wt(e)&&n?t>0&&Ol(e)?t-1 in e:!0:!1},Ml=e=>!!e&&e.constructor===Object,Dl=e=>e instanceof HTMLElement,as=e=>e instanceof Element;function Oe(e,t){if(ga(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&Oe(Object.keys(e),n=>t(e[n],n,e));return e}const xf=(e,t)=>e.indexOf(t)>=0,yi=(e,t)=>e.concat(t),ze=(e,t,n)=>(!zi(t)&&ga(t)?Array.prototype.push.apply(e,t):e.push(t),e),Kn=e=>Array.from(e||[]),va=e=>Lt(e)?e:!zi(e)&&ga(e)?Kn(e):[e],Rl=e=>!!e&&!e.length,bo=e=>Kn(new Set(e)),bt=(e,t,n)=>{Oe(e,i=>i?i.apply(void 0,t||[]):!0),n||(e.length=0)},Ef="paddingTop",kf="paddingRight",Sf="paddingLeft",Of="paddingBottom",Mf="marginLeft",Df="marginRight",Rf="marginBottom",ya="overflowX",_a="overflowY",cs="width",us="height",yn="visible",It="hidden",Yr="scroll",Eg=e=>{const t=String(e||"");return t?t[0].toUpperCase()+t.slice(1):""},fs=(e,t,n,r)=>{if(e&&t){let i=!0;return Oe(n,l=>{const s=e[l],a=t[l];s!==a&&(i=!1)}),i}return!1},Tf=(e,t)=>fs(e,t,["w","h"]),al=(e,t)=>fs(e,t,["x","y"]),kg=(e,t)=>fs(e,t,["t","r","b","l"]),oe=(e,...t)=>e.bind(0,...t),Mr=e=>{let t;const n=e?ha:ma,r=e?wf:bf;return[i=>{r(t),t=n(()=>i(),Wt(e)?e():e)},()=>r(t)]},Xc=e=>{const t=Wt(e)?e():e;if(En(t)){const n=t?ha:ma,r=t?wf:bf;return i=>{const l=n(()=>i(),t);return()=>{r(l)}}}return t&&t._},Tl=(e,t)=>{const{p:n,v:r,S:i,m:l}=t||{};let s,a,c,u;const f=function(g){a&&a(),s&&s(),u=a=s=c=void 0,e.apply(this,g)},m=p=>l&&c?l(c,p):p,d=()=>{a&&c&&f(m(c)||c)},h=function(){const g=Kn(arguments),v=Xc(n);if(v){const _=Xc(r),b=m(g)||g,y=f.bind(0,b);a&&a(),i&&!u?(y(),u=!0,a=v(()=>u=void 0)):(a=v(y),_&&!s&&(s=_(d))),c=b}else f(g)};return h.O=d,h},Cf=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ft=e=>e?Object.keys(e):[],we=(e,t,n,r,i,l,s)=>{const a=[t,n,r,i,l,s];return(typeof e!="object"||ss(e))&&!Wt(e)&&(e={}),Oe(a,c=>{Oe(c,(u,f)=>{const m=c[f];if(e===m)return!0;const d=Lt(m);if(m&&Ml(m)){const h=e[f];let p=h;d&&!Lt(h)?p=[]:!d&&!Ml(h)&&(p={}),e[f]=we(p,m)}else e[f]=d?m.slice():m})}),e},Nf=(e,t)=>Oe(we({},e),(n,r,i)=>{n===void 0?delete i[r]:n&&Ml(n)&&(i[r]=Nf(n))}),ba=e=>!Ft(e).length,_i=()=>{},$f=(e,t,n)=>_f(e,wg(t,n)),dr=e=>bo((Lt(e)?e:(e||"").split(" ")).filter(t=>t)),wa=(e,t)=>e&&e.getAttribute(t),Qc=(e,t)=>e&&e.hasAttribute(t),hn=(e,t,n)=>{Oe(dr(t),r=>{e&&e.setAttribute(r,String(n||""))})},Zt=(e,t)=>{Oe(dr(t),n=>e&&e.removeAttribute(n))},ds=(e,t)=>{const n=dr(wa(e,t)),r=oe(hn,e,t),i=(l,s)=>{const a=new Set(n);return Oe(dr(l),c=>{a[s](c)}),Kn(a).join(" ")};return{C:l=>r(i(l,"delete")),$:l=>r(i(l,"add")),H:l=>{const s=dr(l);return s.reduce((a,c)=>a&&n.includes(c),s.length>0)}}},Pf=(e,t,n)=>(ds(e,t).C(n),oe(xa,e,t,n)),xa=(e,t,n)=>(ds(e,t).$(n),oe(Pf,e,t,n)),Cl=(e,t,n,r)=>(r?xa:Pf)(e,t,n),Ea=(e,t,n)=>ds(e,t).H(n),If=e=>ds(e,"class"),zf=(e,t)=>{If(e).C(t)},ka=(e,t)=>(If(e).$(t),oe(zf,e,t)),Af=(e,t)=>{const n=t?as(t)&&t:document;return n?Kn(n.querySelectorAll(e)):[]},Sg=(e,t)=>{const n=t?as(t)&&t:document;return n&&n.querySelector(e)},wo=(e,t)=>as(e)&&e.matches(t),Lf=e=>wo(e,"body"),xo=e=>e?Kn(e.childNodes):[],bi=e=>e&&e.parentElement,Dr=(e,t)=>as(e)&&e.closest(t),Eo=e=>document.activeElement,Og=(e,t,n)=>{const r=Dr(e,t),i=e&&Sg(n,r),l=Dr(i,t)===r;return r&&i?r===e||i===e||l&&Dr(Dr(e,n),t)!==r:!1},jr=e=>{Oe(va(e),t=>{const n=bi(t);t&&n&&n.removeChild(t)})},ot=(e,t)=>oe(jr,e&&t&&Oe(va(t),n=>{n&&e.appendChild(n)}));let Ff;const Mg=()=>Ff,Dg=e=>{Ff=e},$r=e=>{const t=document.createElement("div");return hn(t,"class",e),t},Yf=e=>{const t=$r(),n=Mg(),r=e.trim();return t.innerHTML=n?n.createHTML(r):r,Oe(xo(t),i=>jr(i))},Jc=(e,t)=>e.getPropertyValue(t)||e[t]||"",jf=e=>{const t=e||0;return isFinite(t)?t:0},Bi=e=>jf(parseFloat(e||"")),ko=e=>Math.round(e*1e4)/1e4,Wf=e=>`${ko(jf(e))}px`;function wi(e,t){e&&t&&Oe(t,(n,r)=>{try{const i=e.style,l=ss(n)||os(n)?"":En(n)?Wf(n):n;r.indexOf("--")===0?i.setProperty(r,l):i[r]=l}catch{}})}function tn(e,t,n){const r=zi(t);let i=r?"":{};if(e){const l=at.getComputedStyle(e,n)||e.style;i=r?Jc(l,t):Kn(t).reduce((s,a)=>(s[a]=Jc(l,a),s),i)}return i}const eu=(e,t,n)=>{const r=t?`${t}-`:"",i=n?`-${n}`:"",l=`${r}top${i}`,s=`${r}right${i}`,a=`${r}bottom${i}`,c=`${r}left${i}`,u=tn(e,[l,s,a,c]);return{t:Bi(u[l]),r:Bi(u[s]),b:Bi(u[a]),l:Bi(u[c])}},Vs=(e,t)=>`translate${Ol(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`}`,Rg=e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),Tg={w:0,h:0},ms=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:Tg,Cg=e=>ms("inner",e||at),Pr=oe(ms,"offset"),Vf=oe(ms,"client"),Nl=oe(ms,"scroll"),Sa=e=>{const t=parseFloat(tn(e,cs))||0,n=parseFloat(tn(e,us))||0;return{w:t-_o(t),h:n-_o(n)}},Hs=e=>e.getBoundingClientRect(),Ng=e=>!!e&&Rg(e),So=e=>!!(e&&(e[us]||e[cs])),Hf=(e,t)=>{const n=So(e);return!So(t)&&n},tu=(e,t,n,r)=>{Oe(dr(t),i=>{e&&e.removeEventListener(i,n,r)})},Te=(e,t,n,r)=>{var i;const l=(i=r&&r.T)!=null?i:!0,s=r&&r.I||!1,a=r&&r.A||!1,c={passive:l,capture:s};return oe(bt,dr(t).map(u=>{const f=a?m=>{tu(e,u,f,s),n&&n(m)}:n;return e&&e.addEventListener(u,f,c),oe(tu,e,u,f,s)}))},qf=e=>e.stopPropagation(),Oo=e=>e.preventDefault(),Uf=e=>qf(e)||Oo(e),Jt=(e,t)=>{const{x:n,y:r}=En(t)?{x:t,y:t}:t||{};En(n)&&(e.scrollLeft=n),En(r)&&(e.scrollTop=r)},_t=e=>({x:e.scrollLeft,y:e.scrollTop}),Bf=()=>({D:{x:0,y:0},M:{x:0,y:0}}),$g=(e,t)=>{const{D:n,M:r}=e,{w:i,h:l}=t,s=(m,d,h)=>{let p=Kc(m)*h,g=Kc(d)*h;if(p===g){const v=Sl(m),_=Sl(d);g=v>_?0:g,p=v<_?0:p}return p=p===g?0:p,[p+0,g+0]},[a,c]=s(n.x,r.x,i),[u,f]=s(n.y,r.y,l);return{D:{x:a,y:u},M:{x:c,y:f}}},qs=({D:e,M:t})=>{const n=(r,i)=>r===0&&r<=i;return{x:n(e.x,t.x),y:n(e.y,t.y)}},nu=({D:e,M:t},n)=>{const r=(i,l,s)=>$f(0,1,(i-s)/(i-l)||0);return{x:r(e.x,t.x,n.x),y:r(e.y,t.y,n.y)}},Mo=e=>{e&&e.focus&&e.focus({preventScroll:!0})},ru=(e,t)=>{Oe(va(t),e)},Do=e=>{const t=new Map,n=(l,s)=>{if(l){const a=t.get(l);ru(c=>{a&&a[c?"delete":"clear"](c)},s)}else t.forEach(a=>{a.clear()}),t.clear()},r=(l,s)=>{if(zi(l)){const u=t.get(l)||new Set;return t.set(l,u),ru(f=>{Wt(f)&&u.add(f)},s),oe(n,l,s)}os(s)&&s&&n();const a=Ft(l),c=[];return Oe(a,u=>{const f=l[u];f&&ze(c,r(u,f))}),oe(bt,c)},i=(l,s)=>{Oe(Kn(t.get(l)),a=>{s&&!Rl(s)?a.apply(0,s):a()})};return r(e||{}),[r,n,i]},Gf={},Kf={},Pg=e=>{Oe(e,t=>Oe(t,(n,r)=>{Gf[r]=t[r]}))},Zf=(e,t,n)=>Ft(e).map(r=>{const{static:i,instance:l}=e[r],[s,a,c]=n||[],u=n?l:i;if(u){const f=n?u(s,a,t):u(t);return(c||Kf)[r]=f}}),Hr=e=>Kf[e],Ig="__osOptionsValidationPlugin",qr="data-overlayscrollbars",cl="os-environment",Gi=`${cl}-scrollbar-hidden`,Us=`${qr}-initialize`,ul="noClipping",iu=`${qr}-body`,Hn=qr,zg="host",pn=`${qr}-viewport`,Ag=ya,Lg=_a,Fg="arrange",Xf="measuring",Yg="scrolling",Qf="scrollbarHidden",jg="noContent",Ro=`${qr}-padding`,lu=`${qr}-content`,Oa="os-size-observer",Wg=`${Oa}-appear`,Vg=`${Oa}-listener`,Hg="os-trinsic-observer",qg="os-theme-none",xt="os-scrollbar",Ug=`${xt}-rtl`,Bg=`${xt}-horizontal`,Gg=`${xt}-vertical`,Jf=`${xt}-track`,Ma=`${xt}-handle`,Kg=`${xt}-visible`,Zg=`${xt}-cornerless`,su=`${xt}-interaction`,ou=`${xt}-unusable`,To=`${xt}-auto-hide`,au=`${To}-hidden`,cu=`${xt}-wheel`,Xg=`${Jf}-interactive`,Qg=`${Ma}-interactive`,Jg="__osSizeObserverPlugin",ev=(e,t)=>{const{k:n}=t,[r,i]=e("showNativeOverlaidScrollbars");return[r&&n.x&&n.y,i]},Rr=e=>e.indexOf(yn)===0,tv=e=>e.replace(`${yn}-`,""),Co=(e,t)=>{if(e==="auto")return t?Yr:It;const n=e||It;return[It,Yr,yn].includes(n)?n:It},nv=(e,t)=>{const{overflowX:n,overflowY:r}=tn(e,[ya,_a]);return{x:Co(n,t.x),y:Co(r,t.y)}},Da="__osScrollbarsHidingPlugin",rv="__osClickScrollPlugin",uu=e=>JSON.stringify(e,(t,n)=>{if(Wt(n))throw 0;return n}),fu=(e,t)=>e?`${t}`.split(".").reduce((n,r)=>n&&Cf(n,r)?n[r]:void 0,e):void 0,iv={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},ed=(e,t)=>{const n={},r=yi(Ft(t),Ft(e));return Oe(r,i=>{const l=e[i],s=t[i];if(Ol(l)&&Ol(s))we(n[i]={},ed(l,s)),ba(n[i])&&delete n[i];else if(Cf(t,i)&&s!==l){let a=!0;if(Lt(l)||Lt(s))try{uu(l)===uu(s)&&(a=!1)}catch{}a&&(n[i]=s)}}),n},du=(e,t,n)=>r=>[fu(e,r),n||fu(t,r)!==void 0];let td;const lv=()=>td,sv=e=>{td=e};let Bs;const ov=()=>{const e=(y,O,T)=>{ot(document.body,y),ot(document.body,y);const M=Vf(y),I=Pr(y),$=Sa(O);return T&&jr(y),{x:I.h-M.h+$.h,y:I.w-M.w+$.w}},t=y=>{let O=!1;const T=ka(y,Gi);try{O=tn(y,"scrollbar-width")==="none"||tn(y,"display","::-webkit-scrollbar")==="none"}catch{}return T(),O},n=`.${cl}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${cl} div{width:200%;height:200%;margin:10px 0}.${Gi}{scrollbar-width:none!important}.${Gi}::-webkit-scrollbar,.${Gi}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,i=Yf(`<div class="${cl}"><div></div><style>${n}</style></div>`)[0],l=i.firstChild,s=i.lastChild,a=lv();a&&(s.nonce=a);const[c,,u]=Do(),[f,m]=vt({o:e(i,l),i:al},oe(e,i,l,!0)),[d]=m(),h=t(i),p={x:d.x===0,y:d.y===0},g={elements:{host:null,padding:!h,viewport:y=>h&&Lf(y)&&y,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},v=we({},iv),_=oe(we,{},v),w=oe(we,{},g),b={P:d,k:p,U:h,J:!!oi,G:oe(c,"r"),K:w,Z:y=>we(g,y)&&w(),tt:_,nt:y=>we(v,y)&&_(),ot:we({},g),st:we({},v)};if(Zt(i,"style"),jr(i),Te(at,"resize",()=>{u("r",[])}),Wt(at.matchMedia)&&!h&&(!p.x||!p.y)){const y=O=>{const T=at.matchMedia(`(resolution: ${at.devicePixelRatio}dppx)`);Te(T,"change",()=>{O(),y(O)},{A:!0})};y(()=>{const[O,T]=f();we(b.P,O),u("r",[T])})}return b},ln=()=>(Bs||(Bs=ov()),Bs),av=(e,t,n)=>{let r=!1;const i=n?new WeakMap:!1,l=()=>{r=!0},s=a=>{if(i&&n){const c=n.map(u=>{const[f,m]=u||[];return[m&&f?(a||Af)(f,e):[],m]});Oe(c,u=>Oe(u[0],f=>{const m=u[1],d=i.get(f)||[];if(e.contains(f)&&m){const p=Te(f,m,g=>{r?(p(),i.delete(f)):t(g)});i.set(f,ze(d,p))}else bt(d),i.delete(f)}))}};return s(),[l,s]},mu=(e,t,n,r)=>{let i=!1;const{et:l,ct:s,rt:a,it:c,lt:u,ut:f}=r||{},m=Tl(()=>i&&n(!0),{p:33,v:99}),[d,h]=av(e,m,a),p=l||[],g=s||[],v=yi(p,g),_=(b,y)=>{if(!Rl(y)){const O=u||_i,T=f||_i,M=[],I=[];let $=!1,R=!1;if(Oe(y,P=>{const{attributeName:z,target:Y,type:S,oldValue:C,addedNodes:U,removedNodes:A}=P,k=S==="attributes",L=S==="childList",X=e===Y,B=k&&z,W=B&&wa(Y,z||""),x=zi(W)?W:null,N=B&&C!==x,D=xf(g,z)&&N;if(t&&(L||!X)){const F=k&&N,H=F&&c&&wo(Y,c),te=(H?!O(Y,z,C,x):!k||F)&&!T(P,!!H,e,r);Oe(U,le=>ze(M,le)),Oe(A,le=>ze(M,le)),R=R||te}!t&&X&&N&&!O(Y,z,C,x)&&(ze(I,z),$=$||D)}),h(P=>bo(M).reduce((z,Y)=>(ze(z,Af(P,Y)),wo(Y,P)?ze(z,Y):z),[])),t)return!b&&R&&n(!1),[!1];if(!Rl(I)||$){const P=[bo(I),$];return b||n.apply(0,P),P}}},w=new xg(oe(_,!1));return[()=>(w.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:v,subtree:t,childList:t,characterData:t}),i=!0,()=>{i&&(d(),w.disconnect(),i=!1)}),()=>{if(i)return m.O(),_(!0,w.takeRecords())}]};let Jn=null;const nd=(e,t,n)=>{const{ft:r}=n||{},i=Hr(Jg),[l]=vt({o:!1,u:!0});return()=>{const s=[],c=Yf(`<div class="${Oa}"><div class="${Vg}"></div></div>`)[0],u=c.firstChild,f=m=>{const d=Lt(m)&&!Rl(m);let h=!1,p=!1;if(d){const g=m[0],[v,,_]=l(g.contentRect),w=So(v);p=Hf(v,_),h=!p&&!w}else p=m===!0;h||t({_t:!0,ft:p})};if(Or){if(!os(Jn)){const p=new Or(_i);p.observe(e,{get box(){Jn=!0}}),Jn=Jn||!1,p.disconnect()}const m=Tl(f,{p:0,v:0}),d=p=>m(p),h=new Or(d);if(h.observe(Jn?e:u),ze(s,[()=>{h.disconnect()},!Jn&&ot(e,c)]),Jn){const p=new Or(d);p.observe(e,{box:"border-box"}),ze(s,()=>p.disconnect())}}else if(i){const[m,d]=i(u,f,r);ze(s,yi([ka(c,Wg),Te(c,"animationstart",m),ot(e,c)],d))}else return _i;return oe(bt,s)}},cv=(e,t)=>{let n;const r=c=>c.h===0||c.isIntersecting||c.intersectionRatio>0,i=$r(Hg),[l]=vt({o:!1}),s=(c,u)=>{if(c){const f=l(r(c)),[,m]=f;return m&&!u&&t(f)&&[f]}},a=(c,u)=>s(u.pop(),c);return[()=>{const c=[];if(Zc)n=new Zc(oe(a,!1),{root:e}),n.observe(i),ze(c,()=>{n.disconnect()});else{const u=()=>{const f=Pr(i);s(f)};ze(c,nd(i,u)()),u()}return oe(bt,ze(c,ot(e,i)))},()=>n&&a(!0,n.takeRecords())]},uv=(e,t,n,r)=>{let i,l,s,a,c,u;const f=`[${Hn}]`,m=`[${pn}]`,d=["id","class","style","open","wrap","cols","rows"],{dt:h,vt:p,L:g,gt:v,ht:_,V:w,bt:b,wt:y,yt:O,St:T}=e,M=D=>tn(D,"direction")==="rtl",I={Ot:!1,B:M(h)},$=ln(),R=Hr(Da),[P]=vt({i:Tf,o:{w:0,h:0}},()=>{const D=R&&R.R(e,t,I,$,n).Y,H=!(b&&w)&&Ea(p,Hn,ul),K=!w&&y(Fg),te=K&&_t(v),le=te&&T(),he=O(Xf,H),Q=K&&D&&D(),ne=Nl(g),G=Sa(g);return Q&&Q(),Jt(v,te),le&&le(),H&&he(),{w:ne.w+G.w,h:ne.h+G.h}}),z=Tl(r,{p:()=>i,v:()=>l,m(D,F){const[H]=D,[K]=F;return[yi(Ft(H),Ft(K)).reduce((te,le)=>(te[le]=H[le]||K[le],te),{})]}}),Y=D=>{const F=M(h);we(D,{Ct:u!==F}),we(I,{B:F}),u=F},S=(D,F)=>{const[H,K]=D,te={$t:K};return we(I,{Ot:H}),F||r(te),te},C=({_t:D,ft:F})=>{const K=!(D&&!F)&&$.U?z:r,te={_t:D||F,ft:F};Y(te),K(te)},U=(D,F)=>{const[,H]=P(),K={xt:H};return Y(K),H&&!F&&(D?r:z)(K),K},A=(D,F,H)=>{const K={Ht:F};return Y(K),F&&!H&&z(K),K},[k,L]=_?cv(p,S):[],X=!w&&nd(p,C,{ft:!0}),[B,W]=mu(p,!1,A,{ct:d,et:d}),x=w&&Or&&new Or(D=>{const F=D[D.length-1].contentRect;C({_t:!0,ft:Hf(F,c)}),c=F}),N=Tl(()=>{const[,D]=P();r({xt:D,_t:b})},{p:222,S:!0});return[()=>{x&&x.observe(p);const D=X&&X(),F=k&&k(),H=B(),K=$.G(te=>{te?z({Et:te}):N()});return()=>{x&&x.disconnect(),D&&D(),F&&F(),a&&a(),H(),K()}},({zt:D,Tt:F,It:H})=>{const K={},[te]=D("update.ignoreMutation"),[le,he]=D("update.attributes"),[Q,ne]=D("update.elementEvents"),[G,ce]=D("update.debounce"),de=ne||he,re=F||H,ve=ae=>Wt(te)&&te(ae);if(de){s&&s(),a&&a();const[ae,fe]=mu(_||g,!0,U,{et:yi(d,le||[]),rt:Q,it:f,ut:(ge,q)=>{const{target:J,attributeName:Z}=ge;return(!q&&Z&&!w?Og(J,f,m):!1)||!!Dr(J,`.${xt}`)||!!ve(ge)}});a=ae(),s=fe}if(ce)if(z.O(),Lt(G)){const ae=G[0],fe=G[1];i=En(ae)&&ae,l=En(fe)&&fe}else En(G)?(i=G,l=!1):(i=!1,l=!1);if(re){const ae=W(),fe=L&&L(),ge=s&&s();ae&&we(K,A(ae[0],ae[1],re)),fe&&we(K,S(fe[0],re)),ge&&we(K,U(ge[0],re))}return Y(K),K},I]},rd=(e,t)=>Wt(t)?t.apply(0,e):t,fv=(e,t,n,r)=>{const i=pa(r)?n:r;return rd(e,i)||t.apply(0,e)},id=(e,t,n,r)=>{const i=pa(r)?n:r,l=rd(e,i);return!!l&&(Dl(l)?l:t.apply(0,e))},dv=(e,t)=>{const{nativeScrollbarsOverlaid:n,body:r}=t||{},{k:i,U:l,K:s}=ln(),{nativeScrollbarsOverlaid:a,body:c}=s().cancel,u=n??a,f=pa(r)?c:r,m=(i.x||i.y)&&u,d=e&&(ss(f)?!l:f);return!!m||!!d},mv=(e,t,n,r)=>{const i="--os-viewport-percent",l="--os-scroll-percent",s="--os-scroll-direction",{K:a}=ln(),{scrollbars:c}=a(),{slot:u}=c,{dt:f,vt:m,L:d,At:h,gt:p,bt:g,V:v}=t,{scrollbars:_}=h?{}:e,{slot:w}=_||{},b=[],y=[],O=[],T=id([f,m,d],()=>v&&g?f:m,u,w),M=B=>{if(oi){let W=null,x=[];const N=new oi({source:p,axis:B}),D=()=>{W&&W.cancel(),W=null};return{kt:H=>{const{Dt:K}=n,te=qs(K)[B],le=B==="x",he=[Vs(0,le),Vs(`calc(100cq${le?"w":"h"} + -100%)`,le)],Q=te?he:he.reverse();return x[0]===Q[0]&&x[1]===Q[1]||(D(),x=Q,W=H.Mt.animate({clear:["left"],transform:Q},{timeline:N})),D}}}},I={x:M("x"),y:M("y")},$=()=>{const{Rt:B,Vt:W}=n,x=(N,D)=>$f(0,1,N/(N+D)||0);return{x:x(W.x,B.x),y:x(W.y,B.y)}},R=(B,W,x)=>{const N=x?ka:zf;Oe(B,D=>{N(D.Lt,W)})},P=(B,W)=>{Oe(B,x=>{const[N,D]=W(x);wi(N,D)})},z=(B,W,x)=>{const N=os(x),D=N?x:!0,F=N?!x:!0;D&&R(y,B,W),F&&R(O,B,W)},Y=()=>{const B=$(),W=x=>N=>[N.Lt,{[i]:ko(x)+""}];P(y,W(B.x)),P(O,W(B.y))},S=()=>{if(!oi){const{Dt:B}=n,W=nu(B,_t(p)),x=N=>D=>[D.Lt,{[l]:ko(N)+""}];P(y,x(W.x)),P(O,x(W.y))}},C=()=>{const{Dt:B}=n,W=qs(B),x=N=>D=>[D.Lt,{[s]:N?"0":"1"}];P(y,x(W.x)),P(O,x(W.y)),oi&&(y.forEach(I.x.kt),O.forEach(I.y.kt))},U=()=>{if(v&&!g){const{Rt:B,Dt:W}=n,x=qs(W),N=nu(W,_t(p)),D=F=>{const{Lt:H}=F,K=bi(H)===d&&H,te=(le,he,Q)=>{const ne=he*le;return Wf(Q?ne:-ne)};return[K,K&&{transform:Vs({x:te(N.x,B.x,x.x),y:te(N.y,B.y,x.y)})}]};P(y,D),P(O,D)}},A=B=>{const W=B?"x":"y",N=$r(`${xt} ${B?Bg:Gg}`),D=$r(Jf),F=$r(Ma),H={Lt:N,Ut:D,Mt:F},K=I[W];return ze(B?y:O,H),ze(b,[ot(N,D),ot(D,F),oe(jr,N),K&&K.kt(H),r(H,z,B)]),H},k=oe(A,!0),L=oe(A,!1),X=()=>(ot(T,y[0].Lt),ot(T,O[0].Lt),oe(bt,b));return k(),L(),[{Pt:Y,Nt:S,qt:C,Bt:U,Ft:z,jt:{Xt:y,Yt:k,Wt:oe(P,y)},Jt:{Xt:O,Yt:L,Wt:oe(P,O)}},X]},hv=(e,t,n,r)=>(i,l,s)=>{const{vt:a,L:c,V:u,gt:f,Gt:m,St:d}=t,{Lt:h,Ut:p,Mt:g}=i,[v,_]=Mr(333),[w,b]=Mr(444),y=M=>{Wt(f.scrollBy)&&f.scrollBy({behavior:"smooth",left:M.x,top:M.y})},O=()=>{const M="pointerup pointercancel lostpointercapture",I=`client${s?"X":"Y"}`,$=s?cs:us,R=s?"left":"top",P=s?"w":"h",z=s?"x":"y",Y=(C,U)=>A=>{const{Rt:k}=n,L=Pr(p)[P]-Pr(g)[P],B=U*A/L*k[z];Jt(f,{[z]:C+B})},S=[];return Te(p,"pointerdown",C=>{const U=Dr(C.target,`.${Ma}`)===g,A=U?g:p,k=e.scrollbars,L=k[U?"dragScroll":"clickScroll"],{button:X,isPrimary:B,pointerType:W}=C,{pointers:x}=k;if(X===0&&B&&L&&(x||[]).includes(W)){bt(S),b();const D=!U&&(C.shiftKey||L==="instant"),F=oe(Hs,g),H=oe(Hs,p),K=(q,J)=>(q||F())[R]-(J||H())[R],te=_o(Hs(f)[$])/Pr(f)[P]||1,le=Y(_t(f)[z],1/te),he=C[I],Q=F(),ne=H(),G=Q[$],ce=K(Q,ne)+G/2,de=he-ne[R],re=U?0:de-ce,ve=q=>{bt(ge),A.releasePointerCapture(q.pointerId)},ae=U||D,fe=d(),ge=[Te(m,M,ve),Te(m,"selectstart",q=>Oo(q),{T:!1}),Te(p,M,ve),ae&&Te(p,"pointermove",q=>le(re+(q[I]-he))),ae&&(()=>{const q=_t(f);fe();const J=_t(f),Z={x:J.x-q.x,y:J.y-q.y};(Sl(Z.x)>3||Sl(Z.y)>3)&&(d(),Jt(f,q),y(Z),w(fe))})];if(A.setPointerCapture(C.pointerId),D)le(re);else if(!U){const q=Hr(rv);if(q){const J=q(le,re,G,Z=>{Z?fe():ze(ge,fe)});ze(ge,J),ze(S,oe(J,!0))}}}})};let T=!0;return oe(bt,[Te(g,"pointermove pointerleave",r),Te(h,"pointerenter",()=>{l(su,!0)}),Te(h,"pointerleave pointercancel",()=>{l(su,!1)}),!u&&Te(h,"mousedown",()=>{const M=Eo();(Qc(M,pn)||Qc(M,Hn)||M===document.body)&&ha(oe(Mo,c),25)}),Te(h,"wheel",M=>{const{deltaX:I,deltaY:$,deltaMode:R}=M;T&&R===0&&bi(h)===a&&y({x:I,y:$}),T=!1,l(cu,!0),v(()=>{T=!0,l(cu)}),Oo(M)},{T:!1,I:!0}),Te(h,"pointerdown",()=>{const M=Te(m,"click",$=>{I(),Uf($)},{A:!0,I:!0,T:!1}),I=Te(m,"pointerup pointercancel",()=>{I(),setTimeout(M,150)},{I:!0,T:!0})},{I:!0,T:!0}),O(),_,b])},pv=(e,t,n,r,i,l)=>{let s,a,c,u,f,m=_i,d=0;const h=["mouse","pen"],p=x=>h.includes(x.pointerType),[g,v]=Mr(),[_,w]=Mr(100),[b,y]=Mr(100),[O,T]=Mr(()=>d),[M,I]=mv(e,i,r,hv(t,i,r,x=>p(x)&&k())),{vt:$,Kt:R,bt:P}=i,{Ft:z,Pt:Y,Nt:S,qt:C,Bt:U}=M,A=(x,N)=>{if(T(),x)z(au);else{const D=oe(z,au,!0);d>0&&!N?O(D):D()}},k=()=>{(c?!s:!u)&&(A(!0),_(()=>{A(!1)}))},L=x=>{z(To,x,!0),z(To,x,!1)},X=x=>{p(x)&&(s=c,c&&A(!0))},B=[T,w,y,v,()=>m(),Te($,"pointerover",X,{A:!0}),Te($,"pointerenter",X),Te($,"pointerleave",x=>{p(x)&&(s=!1,c&&A(!1))}),Te($,"pointermove",x=>{p(x)&&a&&k()}),Te(R,"scroll",x=>{g(()=>{S(),k()}),l(x),U()})],W=Hr(Da);return[()=>oe(bt,ze(B,I())),({zt:x,It:N,Qt:D,Zt:F})=>{const{tn:H,nn:K,sn:te,en:le}=F||{},{Ct:he,ft:Q}=D||{},{B:ne}=n,{k:G,U:ce}=ln(),{cn:de,j:re}=r,[ve,ae]=x("showNativeOverlaidScrollbars"),[fe,ge]=x("scrollbars.theme"),[q,J]=x("scrollbars.visibility"),[Z,pe]=x("scrollbars.autoHide"),[_e,Se]=x("scrollbars.autoHideSuspend"),[ut]=x("scrollbars.autoHideDelay"),[kt,nt]=x("scrollbars.dragScroll"),[Ae,Ke]=x("scrollbars.clickScroll"),[ft,an]=x("overflow"),Cn=Q&&!N,Ht=re.x||re.y,Ie=H||K||le||he||N,Ct=te||J||an,Nn=ve&&G.x&&G.y,qt=!ce&&!W,St=Nn||qt,Zn=($n,Pn,vr)=>{const Ut=$n.includes(Yr)&&(q===yn||q==="auto"&&Pn===Yr);return z(Kg,Ut,vr),Ut};if(d=ut,Cn&&(_e&&Ht?(L(!1),m(),b(()=>{m=Te(R,"scroll",oe(L,!0),{A:!0})})):L(!0)),(ae||qt)&&z(qg,St),ge&&(z(f),z(fe,!0),f=fe),Se&&!_e&&L(!0),pe&&(a=Z==="move",c=Z==="leave",u=Z==="never",A(u,!0)),nt&&z(Qg,kt),Ke&&z(Xg,!!Ae),Ct){const $n=Zn(ft.x,de.x,!0),Pn=Zn(ft.y,de.y,!1);z(Zg,!($n&&Pn))}Ie&&(S(),Y(),U(),le&&C(),z(ou,!re.x,!0),z(ou,!re.y,!1),z(Ug,ne&&!P))},{},M]},gv=e=>{const t=ln(),{K:n,U:r}=t,{elements:i}=n(),{padding:l,viewport:s,content:a}=i,c=Dl(e),u=c?{}:e,{elements:f}=u,{padding:m,viewport:d,content:h}=f||{},p=c?e:u.target,g=Lf(p),v=p.ownerDocument,_=v.documentElement,w=()=>v.defaultView||at,b=oe(fv,[p]),y=oe(id,[p]),O=oe($r,""),T=oe(b,O,s),M=oe(y,O,a),I=G=>{const ce=Pr(G),de=Nl(G),re=tn(G,ya),ve=tn(G,_a);return de.w-ce.w>0&&!Rr(re)||de.h-ce.h>0&&!Rr(ve)},$=T(d),R=$===p,P=R&&g,z=!R&&M(h),Y=!R&&$===z,S=P?_:$,C=P?S:p,U=!R&&y(O,l,m),A=!Y&&z,k=[A,S,U,C].map(G=>Dl(G)&&!bi(G)&&G),L=G=>G&&xf(k,G),X=!L(S)&&I(S)?S:p,B=P?_:S,x={dt:p,vt:C,L:S,rn:U,ht:A,gt:B,Kt:P?v:S,ln:g?_:X,Gt:v,bt:g,At:c,V:R,an:w,wt:G=>Ea(S,pn,G),yt:(G,ce)=>Cl(S,pn,G,ce),St:()=>Cl(B,pn,Yg,!0)},{dt:N,vt:D,rn:F,L:H,ht:K}=x,te=[()=>{Zt(D,[Hn,Us]),Zt(N,Us),g&&Zt(_,[Us,Hn])}];let le=xo([K,H,F,D,N].find(G=>G&&!L(G)));const he=P?N:K||H,Q=oe(bt,te);return[x,()=>{const G=w(),ce=Eo(),de=ge=>{ot(bi(ge),xo(ge)),jr(ge)},re=ge=>Te(ge,"focusin focusout focus blur",Uf,{I:!0,T:!1}),ve="tabindex",ae=wa(H,ve),fe=re(ce);return hn(D,Hn,R?"":zg),hn(F,Ro,""),hn(H,pn,""),hn(K,lu,""),R||(hn(H,ve,ae||"-1"),g&&hn(_,iu,"")),ot(he,le),ot(D,F),ot(F||D,!R&&H),ot(H,K),ze(te,[fe,()=>{const ge=Eo(),q=L(H),J=q&&ge===H?N:ge,Z=re(J);Zt(F,Ro),Zt(K,lu),Zt(H,pn),g&&Zt(_,iu),ae?hn(H,ve,ae):Zt(H,ve),L(K)&&de(K),q&&de(H),L(F)&&de(F),Mo(J),Z()}]),r&&!R&&(xa(H,pn,Qf),ze(te,oe(Zt,H,pn))),Mo(!R&&g&&ce===N&&G.top===G?H:ce),fe(),le=0,Q},Q]},vv=({ht:e})=>({Qt:t,un:n,It:r})=>{const{$t:i}=t||{},{Ot:l}=n;e&&(i||r)&&wi(e,{[us]:l&&"100%"})},yv=({vt:e,rn:t,L:n,V:r},i)=>{const[l,s]=vt({i:kg,o:eu()},oe(eu,e,"padding",""));return({zt:a,Qt:c,un:u,It:f})=>{let[m,d]=s(f);const{U:h}=ln(),{_t:p,xt:g,Ct:v}=c||{},{B:_}=u,[w,b]=a("paddingAbsolute");(p||d||(f||g))&&([m,d]=l(f));const O=!r&&(b||v||d);if(O){const T=!w||!t&&!h,M=m.r+m.l,I=m.t+m.b,$={[Df]:T&&!_?-M:0,[Rf]:T?-I:0,[Mf]:T&&_?-M:0,top:T?-m.t:0,right:T?_?-m.r:"auto":0,left:T?_?"auto":-m.l:0,[cs]:T&&`calc(100% + ${M}px)`},R={[Ef]:T?m.t:0,[kf]:T?m.r:0,[Of]:T?m.b:0,[Sf]:T?m.l:0};wi(t||n,$),wi(n,R),we(i,{rn:m,fn:!T,F:t?R:we({},$,R)})}return{_n:O}}},_v=(e,t)=>{const n=ln(),{vt:r,rn:i,L:l,V:s,Kt:a,gt:c,bt:u,yt:f,an:m}=e,{U:d}=n,h=u&&s,p=oe(_f,0),g={display:()=>!1,direction:x=>x!=="ltr",flexDirection:x=>x.endsWith("-reverse"),writingMode:x=>x!=="horizontal-tb"},v=Ft(g),_={i:Tf,o:{w:0,h:0}},w={i:al,o:{}},b=x=>{f(Xf,!h&&x)},y=x=>{if(!v.some(Q=>{const ne=x[Q];return ne&&g[Q](ne)}))return{D:{x:0,y:0},M:{x:1,y:1}};b(!0);const D=_t(c),F=f(jg,!0),H=Te(a,Yr,Q=>{const ne=_t(c);Q.isTrusted&&ne.x===D.x&&ne.y===D.y&&qf(Q)},{I:!0,A:!0});Jt(c,{x:0,y:0}),F();const K=_t(c),te=Nl(c);Jt(c,{x:te.w,y:te.h});const le=_t(c);Jt(c,{x:le.x-K.x<1&&-te.w,y:le.y-K.y<1&&-te.h});const he=_t(c);return Jt(c,D),ma(()=>H()),{D:K,M:he}},O=(x,N)=>{const D=at.devicePixelRatio%1!==0?1:0,F={w:p(x.w-N.w),h:p(x.h-N.h)};return{w:F.w>D?F.w:0,h:F.h>D?F.h:0}},T=(x,N)=>{const D=(F,H,K,te)=>{const le=F===yn?It:tv(F),he=Rr(F),Q=Rr(K);return!H&&!te?It:he&&Q?yn:he?H&&te?le:H?yn:It:H?le:Q&&te?yn:It};return{x:D(N.x,x.x,N.y,x.y),y:D(N.y,x.y,N.x,x.x)}},M=x=>{const N=F=>[yn,It,Yr].map(H=>W(Co(H),F)),D=N(!0).concat(N()).join(" ");f(D),f(Ft(x).map(F=>W(x[F],F==="x")).join(" "),!0)},[I,$]=vt(_,oe(Sa,l)),[R,P]=vt(_,oe(Nl,l)),[z,Y]=vt(_),[S]=vt(w),[C,U]=vt(_),[A]=vt(w),[k]=vt({i:(x,N)=>fs(x,N,v),o:{}},()=>Ng(l)?tn(l,v):{}),[L,X]=vt({i:(x,N)=>al(x.D,N.D)&&al(x.M,N.M),o:Bf()}),B=Hr(Da),W=(x,N)=>`${N?Ag:Lg}${Eg(x)}`;return({zt:x,Qt:N,un:D,It:F},{_n:H})=>{const{_t:K,Ht:te,xt:le,Ct:he,ft:Q,Et:ne}=N||{},G=B&&B.R(e,t,D,n,x),{X:ce,Y:de,W:re}=G||{},[ve,ae]=ev(x,n),[fe,ge]=x("overflow"),q=Rr(fe.x),J=Rr(fe.y),Z=K||H||le||he||ne||ae;let pe=$(F),_e=P(F),Se=Y(F),ut=U(F);if(ae&&d&&f(Qf,!ve),Z){Ea(r,Hn,ul)&&b(!0);const Zr=de&&de(),[Xn]=pe=I(F),[Qn]=_e=R(F),zn=Vf(l),_r=h&&Cg(m()),Ms={w:p(Qn.w+Xn.w),h:p(Qn.h+Xn.h)},Xr={w:p((_r?_r.w:zn.w+p(zn.w-Qn.w))+Xn.w),h:p((_r?_r.h:zn.h+p(zn.h-Qn.h))+Xn.h)};Zr&&Zr(),ut=C(Xr),Se=z(O(Ms,Xr),F)}const[kt,nt]=ut,[Ae,Ke]=Se,[ft,an]=_e,[Cn,Ht]=pe,[Ie,Ct]=S({x:Ae.w>0,y:Ae.h>0}),Nn=q&&J&&(Ie.x||Ie.y)||q&&Ie.x&&!Ie.y||J&&Ie.y&&!Ie.x,qt=H||he||ne||Ht||an||nt||Ke||ge||ae||Z||te&&h,[St,Zn]=k(F),$n=he||Q||Zn||Ct||F,[Pn,vr]=$n?L(y(St),F):X();let Ut=T(Ie,fe);b(!1),qt&&(M(Ut),Ut=nv(l,Ie),re&&ce&&(ce(Ut,ft,Cn),wi(l,re(Ut))));const[In,yr]=A(Ut);return Cl(r,Hn,ul,Nn),Cl(i,Ro,ul,Nn),we(t,{cn:In,Vt:{x:kt.w,y:kt.h},Rt:{x:Ae.w,y:Ae.h},j:Ie,Dt:$g(Pn,Ae)}),{sn:yr,tn:nt,nn:Ke,en:vr||Ke}}},bv=e=>{const[t,n,r]=gv(e),i={rn:{t:0,r:0,b:0,l:0},fn:!1,F:{[Df]:0,[Rf]:0,[Mf]:0,[Ef]:0,[kf]:0,[Of]:0,[Sf]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},cn:{x:It,y:It},j:{x:!1,y:!1},Dt:Bf()},{dt:l,gt:s,V:a,St:c}=t,{U:u,k:f}=ln(),m=!u&&(f.x||f.y),d=[vv(t),yv(t,i),_v(t,i)];return[n,h=>{const p={},v=m&&_t(s),_=v&&c();return Oe(d,w=>{we(p,w(h,p)||{})}),Jt(s,v),_&&_(),a||Jt(l,0),p},i,t,r]},wv=(e,t,n,r,i)=>{let l=!1;const s=du(t,{}),[a,c,u,f,m]=bv(e),[d,h,p]=uv(f,u,s,y=>{b({},y)}),[g,v,,_]=pv(e,t,p,u,f,i),w=y=>Ft(y).some(O=>!!y[O]),b=(y,O)=>{if(n())return!1;const{dn:T,It:M,Tt:I,pn:$}=y,R=T||{},P=!!M||!l,z={zt:du(t,R,P),dn:R,It:P};if($)return v(z),!1;const Y=O||h(we({},z,{Tt:I})),S=c(we({},z,{un:p,Qt:Y}));v(we({},z,{Qt:Y,Zt:S}));const C=w(Y),U=w(S),A=C||U||!ba(R)||P;return l=!0,A&&r(y,{Qt:Y,Zt:S}),A};return[()=>{const{ln:y,gt:O,St:T}=f,M=_t(y),I=[d(),a(),g()],$=T();return Jt(O,M),$(),oe(bt,I)},b,()=>({vn:p,gn:u}),{hn:f,bn:_},m]},Ra=new WeakMap,xv=(e,t)=>{Ra.set(e,t)},Ev=e=>{Ra.delete(e)},ld=e=>Ra.get(e),zt=(e,t,n)=>{const{tt:r}=ln(),i=Dl(e),l=i?e:e.target,s=ld(l);if(t&&!s){let a=!1;const c=[],u={},f=R=>{const P=Nf(R),z=Hr(Ig);return z?z(P,!0):P},m=we({},r(),f(t)),[d,h,p]=Do(),[g,v,_]=Do(n),w=(R,P)=>{_(R,P),p(R,P)},[b,y,O,T,M]=wv(e,m,()=>a,({dn:R,It:P},{Qt:z,Zt:Y})=>{const{_t:S,Ct:C,$t:U,xt:A,Ht:k,ft:L}=z,{tn:X,nn:B,sn:W,en:x}=Y;w("updated",[$,{updateHints:{sizeChanged:!!S,directionChanged:!!C,heightIntrinsicChanged:!!U,overflowEdgeChanged:!!X,overflowAmountChanged:!!B,overflowStyleChanged:!!W,scrollCoordinatesChanged:!!x,contentMutation:!!A,hostMutation:!!k,appear:!!L},changedOptions:R||{},force:!!P}])},R=>w("scroll",[$,R])),I=R=>{Ev(l),bt(c),a=!0,w("destroyed",[$,R]),h(),v()},$={options(R,P){if(R){const z=P?r():{},Y=ed(m,we(z,f(R)));ba(Y)||(we(m,Y),y({dn:Y}))}return we({},m)},on:g,off:(R,P)=>{R&&P&&v(R,P)},state(){const{vn:R,gn:P}=O(),{B:z}=R,{Vt:Y,Rt:S,cn:C,j:U,rn:A,fn:k,Dt:L}=P;return we({},{overflowEdge:Y,overflowAmount:S,overflowStyle:C,hasOverflow:U,scrollCoordinates:{start:L.D,end:L.M},padding:A,paddingAbsolute:k,directionRTL:z,destroyed:a})},elements(){const{dt:R,vt:P,rn:z,L:Y,ht:S,gt:C,Kt:U}=T.hn,{jt:A,Jt:k}=T.bn,L=B=>{const{Mt:W,Ut:x,Lt:N}=B;return{scrollbar:N,track:x,handle:W}},X=B=>{const{Xt:W,Yt:x}=B,N=L(W[0]);return we({},N,{clone:()=>{const D=L(x());return y({pn:!0}),D}})};return we({},{target:R,host:P,padding:z||Y,viewport:Y,content:S||Y,scrollOffsetElement:C,scrollEventElement:U,scrollbarHorizontal:X(A),scrollbarVertical:X(k)})},update:R=>y({It:R,Tt:!0}),destroy:oe(I,!1),plugin:R=>u[Ft(R)[0]]};return ze(c,[M]),xv(l,$),Zf(Gf,zt,[$,d,u]),dv(T.hn.bt,!i&&e.cancel)?(I(!0),$):(ze(c,b()),w("initialized",[$]),$.update(),$)}return s};zt.plugin=e=>{const t=Lt(e),n=t?e:[e],r=n.map(i=>Zf(i,zt)[0]);return Pg(n),t?r:r[0]};zt.valid=e=>{const t=e&&e.elements,n=Wt(t)&&t();return Ml(n)&&!!ld(n.target)};zt.env=()=>{const{P:e,k:t,U:n,J:r,ot:i,st:l,K:s,Z:a,tt:c,nt:u}=ln();return we({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,scrollTimeline:r,staticDefaultInitialization:i,staticDefaultOptions:l,getDefaultInitialization:s,setDefaultInitialization:a,getDefaultOptions:c,setDefaultOptions:u})};zt.nonce=sv;zt.trustedTypePolicy=Dg;const kv=()=>{if(typeof window>"u"){const u=()=>{};return[u,u]}let e,t;const n=window,r=typeof n.requestIdleCallback=="function",i=n.requestAnimationFrame,l=n.cancelAnimationFrame,s=r?n.requestIdleCallback:i,a=r?n.cancelIdleCallback:l,c=()=>{a(e),l(t)};return[(u,f)=>{c(),e=s(r?()=>{c(),t=i(u)}:u,typeof f=="object"?f:{timeout:2233})},c]},sd=e=>{const{options:t,events:n,defer:r}=e||{},[i,l]=o.useMemo(kv,[]),s=o.useRef(null),a=o.useRef(r),c=o.useRef(t),u=o.useRef(n);return o.useEffect(()=>{a.current=r},[r]),o.useEffect(()=>{const{current:f}=s;c.current=t,zt.valid(f)&&f.options(t||{},!0)},[t]),o.useEffect(()=>{const{current:f}=s;u.current=n,zt.valid(f)&&f.on(n||{},!0)},[n]),o.useEffect(()=>()=>{var f;l(),(f=s.current)==null||f.destroy()},[]),o.useMemo(()=>[f=>{const m=s.current;if(zt.valid(m))return;const d=a.current,h=c.current||{},p=u.current||{},g=()=>s.current=zt(f,h,p);d?i(g,d):g()},()=>s.current],[])},Sv=(e,t)=>{const{element:n="div",options:r,events:i,defer:l,children:s,...a}=e,c=n,u=o.useRef(null),f=o.useRef(null),[m,d]=sd({options:r,events:i,defer:l});return o.useEffect(()=>{const{current:h}=u,{current:p}=f;if(!h)return;const g=h;return m(n==="body"?{target:g,cancel:{body:null}}:{target:g,elements:{viewport:p,content:p}}),()=>{var v;return(v=d())==null?void 0:v.destroy()}},[m,n]),o.useImperativeHandle(t,()=>({osInstance:d,getElement:()=>u.current}),[]),o.createElement(c,{"data-overlayscrollbars-initialize":"",ref:u,...a},n==="body"?s:o.createElement("div",{"data-overlayscrollbars-contents":"",ref:f},s))},Ov=o.forwardRef(Sv),od=({ref:e,...t})=>{const n=o.useRef(null),[r]=sd({defer:!0,events:{initialized:()=>{},destroyed:()=>{}},options:{scrollbars:{theme:"os-theme-light",clickScroll:!0}}});return o.useImperativeHandle(e,()=>n.current?.getElement()),o.useEffect(()=>{n.current&&r(n.current.getElement())},[n.current,r]),o.createElement(Ov,{ref:n,...t},t.children)},Mv="_wrapper_1qten_1",Dv={wrapper:Mv},Ta=({ref:e,...t})=>o.createElement(od,{className:Dv.wrapper,...t,ref:e},t.children),Rv="_wrapper_1s6pd_1",Tv={wrapper:Rv},Cv=({placement:e="bottom",...t})=>{const[n,r]=o.useState(t.initialOpen),i=t.open??n,l=t.setOpen??r,s=es({open:i,onOpenChange:d=>{t.disabled||l(d)},whileElementsMounted:sa,middleware:[oa({padding:10}),mf(8),hf({apply({rects:d,elements:h,placement:p}){console.log(p),Object.assign(h.floating.style,{width:`${d.reference.width}px`,minWidth:"var(--numbers-320)",maxWidth:"var(--numbers-400)"})},padding:10})]}),a=s.context,c=fa(a),u=rs(a,{role:"listbox"}),f=Jl(a),m=ts([c,u,f]);return o.useMemo(()=>({open:i,setOpen:l,role:u,dismiss:f,floating:s,interactions:m,disabled:t.disabled}),[i,l,u,f,s,m,t.disabled])},ad=o.createContext({}),cd=()=>{const e=o.useContext(ad);if(e==null)throw new Error("Dropdown components must be wrapped in <Dropdown />");return e},Nv=({children:e,...t})=>{const n=Cv(t);return o.createElement(ad.Provider,{value:n},e)},$v=o.memo(e=>{const t=cd();return o.createElement("div",{className:Tv.wrapper,...t.interactions.getReferenceProps(),ref:t.floating.refs.setReference},e.reference(t))}),Pv=o.memo(e=>{const t=cd(),{isMounted:n,styles:r}=da(t.floating.context);return!t.open&&!n?null:o.createElement(Ql,null,o.createElement(ua,{context:t.floating.context,initialFocus:-1,visuallyHiddenDismiss:!0,modal:!1},o.createElement(Ta,{...t.interactions.getFloatingProps(),ref:t.floating.refs.setFloating,style:{...r,...t.floating.floatingStyles}},e.children)))}),ui=Object.assign(Nv,{Reference:$v,Target:Pv}),Iv=({})=>{const[e,t]=o.useState(!1);return o.createElement(ui,{open:e,setOpen:t},o.createElement(ui.Reference,{reference:()=>o.createElement(pi,{onClick:()=>t(!0)},"Нажми меня")}))},Ye={"font-size__h1":"_font-size__h1_yyj49_1","font-size__h2":"_font-size__h2_yyj49_6","font-size__h3":"_font-size__h3_yyj49_11","font-size__h4":"_font-size__h4_yyj49_16","font-size__h5":"_font-size__h5_yyj49_21","font-size__h6":"_font-size__h6_yyj49_26","font-size__body-l":"_font-size__body-l_yyj49_31","font-size__body-m":"_font-size__body-m_yyj49_36","font-size__body-s":"_font-size__body-s_yyj49_41","font-size__caption-l":"_font-size__caption-l_yyj49_46","font-size__caption-m":"_font-size__caption-m_yyj49_51","font-size__caption-s":"_font-size__caption-s_yyj49_56","font-weight__light":"_font-weight__light_yyj49_62","font-weight__regular":"_font-weight__regular_yyj49_65","font-weight__medium":"_font-weight__medium_yyj49_68","font-weight__bold":"_font-weight__bold_yyj49_71","font-weight__semi-bold":"_font-weight__semi-bold_yyj49_74","font-weight__extra-bold":"_font-weight__extra-bold_yyj49_77","font-weight__black":"_font-weight__black_yyj49_80"},ue=e=>{const t=o.useMemo(()=>se({[Ye["font-size__h1"]]:e.size==="h1",[Ye["font-size__h2"]]:e.size==="h2",[Ye["font-size__h3"]]:e.size==="h3",[Ye["font-size__h4"]]:e.size==="h4",[Ye["font-size__h5"]]:e.size==="h5",[Ye["font-size__h6"]]:e.size==="h6",[Ye["font-size__body-l"]]:e.size==="body-l",[Ye["font-size__body-m"]]:e.size==="body-m",[Ye["font-size__body-s"]]:e.size==="body-s",[Ye["font-size__caption-l"]]:e.size==="caption-l",[Ye["font-size__caption-m"]]:e.size==="caption-m",[Ye["font-size__caption-s"]]:e.size==="caption-s"},{[Ye["font-weight__light"]]:e.weight==="light",[Ye["font-weight__regular"]]:e.weight==="regular",[Ye["font-weight__medium"]]:e.weight==="medium",[Ye["font-weight__semi-bold"]]:e.weight==="semi-bold",[Ye["font-weight__bold"]]:e.weight==="bold",[Ye["font-weight__extra-bold"]]:e.weight==="extra-bold",[Ye["font-weight__black"]]:e.weight==="black"}),[e.size,e.weight]);return o.Children.map(e.children,n=>{if(o.isValidElement(n)){const r=n;return o.cloneElement(r,{className:se(t,r.props.className)})}return n})},zv="_wrapper_1x3lz_1",Av="_input_1x3lz_8",Lv="_icon_1x3lz_17",Qr={wrapper:zv,input:Av,icon:Lv,"size--md":"_size--md_1x3lz_29","size--sm":"_size--sm_1x3lz_33"},Fv=({size:e="md",...t})=>{const n=o.useMemo(()=>se(Qr.icon,{[Qr["size--md"]]:e==="md",[Qr["size--sm"]]:e==="sm"}),[e]);return o.createElement("div",{className:Qr.wrapper},o.createElement("input",{...t,type:"radio",className:Qr.input}),o.createElement("span",{className:n}))},Yv="_container_rhquy_1",jv="_wrapper_rhquy_6",Wv="_element_rhquy_13",Vv="_content_rhquy_20",Hv="_label_rhquy_27",qv="_caption_rhquy_31",un={container:Yv,wrapper:jv,element:Wv,content:Vv,label:Hv,caption:qv,"size--medium":"_size--medium_rhquy_36","with-label":"_with-label_rhquy_36","size--small":"_size--small_rhquy_42"},Uv=({size:e="md",label:t,caption:n,...r})=>{const i=o.useMemo(()=>se(un.wrapper,{[un["size--medium"]]:e==="md",[un["size--small"]]:e==="sm"},{[un["with-label"]]:t}),[e,t]);return o.createElement("div",{className:un.container},o.createElement("label",{className:i},o.createElement("div",{className:un.element},o.createElement(Fv,{...r,size:e})),t&&o.createElement("div",{className:un.content},o.createElement("div",{className:un.label},o.createElement(ue,{size:e==="md"?"body-s":"caption-l",weight:"medium"},o.createElement("p",null,t))),n&&o.createElement("div",{className:un.caption},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,n))))))},Bv="_container_cdy59_1",Gv="_wrapper_cdy59_9",Kv="_input_cdy59_20",Zv="_disabled_cdy59_25",Xv="_icon_cdy59_29",er={container:Bv,wrapper:Gv,input:Kv,disabled:Zv,icon:Xv,"size--medium":"_size--medium_cdy59_43","size--small":"_size--small_cdy59_48"},Qv=({size:e="md",...t})=>{const n=o.useMemo(()=>se(er.wrapper,{[er["size--medium"]]:e==="md",[er["size--small"]]:e==="sm"},{[er.disabled]:t.disabled}),[e,t.checked,t.disabled]);return o.createElement("div",{className:er.container},o.createElement("input",{...t,type:"checkbox",className:er.input}),o.createElement("div",{className:n},o.createElement("span",{className:er.icon},o.createElement(xe,{icon:"check-fill"}))))},Jv="_wrapper_uamo5_1",ey="_element_uamo5_8",ty="_content_uamo5_12",ny="_label_uamo5_16",ry="_caption_uamo5_20",An={wrapper:Jv,element:ey,content:ty,label:ny,caption:ry,"size--medium":"_size--medium_uamo5_25","with-label":"_with-label_uamo5_25","size--small":"_size--small_uamo5_31"},iy=({size:e="md",label:t,caption:n,...r})=>{const i=o.useMemo(()=>se(An.wrapper,{[An["size--medium"]]:e==="md",[An["size--small"]]:e==="sm"},{[An["with-label"]]:t}),[e,t]);return o.createElement("label",{className:i},o.createElement("div",{className:An.element},o.createElement(Qv,{size:e,...r})),t&&o.createElement("div",{className:An.content},o.createElement("div",{className:An.label},o.createElement(ue,{size:e==="md"?"body-s":"caption-l",weight:"medium"},o.createElement("p",null,t))),n&&o.createElement("div",{className:An.caption},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,n)))))},ly="_wrapper_qudyw_1",sy="_focused_qudyw_18",oy="_content_qudyw_46",ay="_input_qudyw_53",cy="_badge_qudyw_77",uy="_destructive_qudyw_94",fy="_disabled_qudyw_109",Nt={wrapper:ly,focused:sy,"lead-icon":"_lead-icon_qudyw_25","tail-icon":"_tail-icon_qudyw_26",content:oy,input:ay,badge:cy,"size--medium":"_size--medium_qudyw_85","size--extra-small":"_size--extra-small_qudyw_89",destructive:uy,disabled:fy},hs=({ref:e,size:t="md",target:n,leadIcon:r,tailIcon:i,badge:l,...s})=>{const[a,c]=o.useState(!1),u=o.useMemo(()=>se(Nt.wrapper,{[Nt.focused]:a},{[Nt["size--medium"]]:t==="md",[Nt["size--extra-small"]]:t==="xs"},{[Nt.disabled]:s.disabled},{[Nt.destructive]:n==="destructive"}),[a,t,n,s.disabled]);o.useEffect(()=>{a&&s.disabled&&c(!1)},[s.disabled]);const f=d=>{c(!0),s.onFocus&&s.onFocus(d)},m=d=>{c(!1),s.onBlur&&s.onBlur(d)};return o.createElement("div",{className:u},r&&o.createElement("div",{className:Nt["lead-icon"]},r),o.createElement("div",{className:Nt.content},o.createElement("input",{ref:e,...s,className:Nt.input,onFocus:f,onBlur:m})),l&&o.createElement("div",{className:Nt.badge},o.createElement(Ri,{size:"sm",color:"gray",label:l,disabled:s.disabled})),i&&o.createElement("div",{className:Nt["tail-icon"]},i))};function hu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dy(e,t,n){return t=$l(t),function(r,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}(r)}(e,dd()?Reflect.construct(t,n||[],$l(e).constructor):t.apply(e,n))}function my(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hy(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function ud(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(c,u){if(c){if(typeof c=="string")return hu(c,u);var f={}.toString.call(c).slice(8,-1);return f==="Object"&&c.constructor&&(f=c.constructor.name),f==="Map"||f==="Set"?Array.from(c):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?hu(c,u):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
33
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return s=c.done,c},e:function(c){a=!0,l=c},f:function(){try{s||n.return==null||n.return()}finally{if(a)throw l}}}}function fd(e,t,n){return(t=function(r){var i=function(l,s){if(typeof l!="object"||!l)return l;var a=l[Symbol.toPrimitive];if(a!==void 0){var c=a.call(l,s);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(l)}(r,"string");return typeof i=="symbol"?i:i+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$l(e)}function py(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&No(e,t)}function dd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dd=function(){return!!e})()}function pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pu(Object(n),!0).forEach(function(r){fd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gy(e,t){if(e==null)return{};var n,r,i=function(s,a){if(s==null)return{};var c={};for(var u in s)if({}.hasOwnProperty.call(s,u)){if(a.includes(u))continue;c[u]=s[u]}return c}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function No(e,t){return No=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},No(e,t)}function fi(e,t){var n,r=t.replacementChars,i=t.replacement,l=t.separate,s=r,a="",c=ud(e);try{for(c.s();!(n=c.n()).done;){var u,f=n.value,m=!Object.prototype.hasOwnProperty.call(i,f)&&((u=i[s[0]])===null||u===void 0?void 0:u.test(f));(l&&f===s[0]||m)&&(s=s.slice(1),a+=f)}}catch(d){c.e(d)}finally{c.f()}return a}function md(e,t){var n,r=t.mask,i=t.replacement,l=t.separate,s=t.showMask,a=0,c="",u=ud(r);try{for(u.s();!(n=u.n()).done;){var f=n.value;if(!s&&e[a]===void 0)break;Object.prototype.hasOwnProperty.call(i,f)&&e[a]!==void 0?c+=e[a++]:c+=f}}catch(d){u.e(d)}finally{u.f()}if(l&&!s){for(var m=r.length-1;m>=0&&c[m]===r[m];m--);c=c.slice(0,m+1)}return c}function hd(e,t){for(var n=t.mask,r=t.replacement,i=[],l=0;l<n.length;l++){var s,a=(s=e[l])!==null&&s!==void 0?s:n[l],c=Object.prototype.hasOwnProperty.call(r,a)?"replacement":e[l]!==void 0&&e[l]!==n[l]?"input":"mask";i.push({type:c,value:a,index:l})}return i}function Ur(e){return e.length>0?fd({},e,/./):{}}function $o(e,t){for(var n=t.start,r=n===void 0?0:n,i=t.end,l=t.mask,s=t.replacement,a=t.separate,c=e.slice(r,i),u=l.slice(r,i),f="",m=0;m<u.length;m++){var d=Object.prototype.hasOwnProperty.call(s,u[m]);d&&c[m]!==void 0&&c[m]!==u[m]?f+=c[m]:d&&a&&(f+=u[m])}return f}function pd(e,t){var n=t.mask,r=t.replacement,i=typeof r=="string"?Ur(r):r,l=RegExp("[^".concat(Object.keys(i).join(""),"]"),"g");return md(fi(e,{replacementChars:n.replace(l,""),replacement:i,separate:!1}),{mask:n,replacement:i,separate:!1,showMask:!1})}function vy(e,t){var n=t.mask,r=t.replacement,i=typeof r=="string"?Ur(r):r,l=$o(e,{mask:n,replacement:i,separate:!1}),s=RegExp("[^".concat(Object.keys(i).join(""),"]"),"g");return fi(l,{replacementChars:n.replace(s,""),replacement:i,separate:!1})}function yy(e,t){var n=t.mask,r=t.replacement,i=typeof r=="string"?Ur(r):r;return hd(pd(e,{mask:n,replacement:i}),{mask:n,replacement:i})}var _y=["[","]","\\","/","^","$",".","|","?","*","+","(",")","{","}"];function gu(e){return _y.includes(e)?"\\".concat(e):e}function by(e,t){for(var n=t.mask,r=t.replacement,i=typeof r=="string"?Ur(r):r,l=e==="partial"||e==="partial-inexact",s=e==="full"||e==="partial",a="",c=0;c<n.length;c++){var u=n[c];c===0&&(a="^"),l&&(a+="("),a+=Object.prototype.hasOwnProperty.call(i,u)?"".concat(s?"(?!".concat(gu(u),")"):"","(").concat(i[u].source,")"):gu(u),c===n.length-1&&(l&&(a+=")?".repeat(n.length)),a+="$")}return a}function gd(e,t){return new Proxy(e,{set:function(n,r,i){return r==="current"&&(i!==e.current&&(e.current!==null&&t.unregister(e.current),i!==null&&t.register(i)),n[r]=i,!0)}})}function wy(e,t,n){return t=xi(t),function(r,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}(r)}(e,Ca()?Reflect.construct(t,n||[],xi(e).constructor):t.apply(e,n))}function vd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yd(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function xy(e,t,n){return(t=function(r){var i=function(l,s){if(typeof l!="object"||!l)return l;var a=l[Symbol.toPrimitive];if(a!==void 0){var c=a.call(l,s);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(l)}(r,"string");return typeof i=="symbol"?i:i+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xi(e)}function Ey(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ei(e,t)}function Ca(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ca=function(){return!!e})()}function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vu(Object(n),!0).forEach(function(r){xy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ky(e,t){if(e==null)return{};var n,r,i=function(s,a){if(s==null)return{};var c={};for(var u in s)if({}.hasOwnProperty.call(s,u)){if(a.includes(u))continue;c[u]=s[u]}return c}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ei(e,t){return Ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ei(e,t)}function Po(e){var t=typeof Map=="function"?new Map:void 0;return Po=function(n){if(n===null||!function(i){try{return Function.toString.call(i).indexOf("[native code]")!==-1}catch{return typeof i=="function"}}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return function(i,l,s){if(Ca())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,l);var c=new(i.bind.apply(i,a));return s&&Ei(c,s.prototype),c}(n,arguments,xi(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ei(r,n)},Po(e)}var Ir=function(e){function t(n){var r;return vd(this,t),(r=wy(this,t,[n])).name="SyntheticChangeError",r}return Ey(t,e),yd(t)}(Po(Error)),_u,Sy=["options"],bu=["text","email","tel","search","url"],Na=yd(function e(t){var n=t.init,r=t.tracking;vd(this,e);var i=new WeakMap;this.register=function(l){var s;if(bu.includes(l.type)){var a=(s=l._wrapperState)!==null&&s!==void 0?s:{},c=a.initialValue,u=c===void 0?"":c,f=a.controlled,m=f!==void 0&&f,d=n({initialValue:l.value||u,controlled:m}),h=d.value,p=d.options,g={value:h,options:p,fallbackOptions:p},v={id:-1,cachedId:-1},_={value:"",selectionStart:0,selectionEnd:0},w=Object.getOwnPropertyDescriptor("_valueTracker"in l?l:HTMLInputElement.prototype,"value");Object.defineProperty(l,"value",yu(yu({},w),{},{set:function(T){var M;_.value=T,w==null||(M=w.set)===null||M===void 0||M.call(l,T)}})),l.value=h;var b=function(){var T=function(){var M,I;_.selectionStart=(M=l.selectionStart)!==null&&M!==void 0?M:0,_.selectionEnd=(I=l.selectionEnd)!==null&&I!==void 0?I:0,v.id=window.setTimeout(T)};v.id=window.setTimeout(T)},y=function(){window.clearTimeout(v.id),v.id=-1,v.cachedId=-1},O=function(T){try{var M,I;if(v.cachedId===v.id)throw new Ir("The input selection has not been updated.");v.cachedId=v.id;var $=l.value,R=l.selectionStart,P=l.selectionEnd;if(R===null||P===null)throw new Ir("The selection attributes have not been initialized.");var z,Y=_.value;if(T.inputType===void 0&&(_.selectionStart=0,_.selectionEnd=Y.length),R>_.selectionStart?z="insert":R<=_.selectionStart&&R<_.selectionEnd?z="deleteBackward":R===_.selectionEnd&&$.length<Y.length&&(z="deleteForward"),z===void 0||(z==="deleteBackward"||z==="deleteForward")&&$.length>Y.length)throw new Ir("Input type detection error.");var S="",C=_.selectionStart,U=_.selectionEnd;if(z==="insert")S=$.slice(_.selectionStart,R);else{var A=Y.length-$.length;C=R,U=R+A}g.value!==Y?g.options=g.fallbackOptions:g.fallbackOptions=g.options;var k=g.options,L=r({inputType:z,previousValue:Y,previousOptions:k,value:$,addedValue:S,changeStart:C,changeEnd:U,selectionStart:R,selectionEnd:P}),X=L.options,B=ky(L,Sy);l.value=B.value,l.setSelectionRange(B.selectionStart,B.selectionEnd),g.value=B.value,g.options=X,_.selectionStart=B.selectionStart,_.selectionEnd=B.selectionEnd,(M=l._valueTracker)===null||M===void 0||(I=M.setValue)===null||I===void 0||I.call(M,Y)}catch(W){if(l.value=_.value,l.setSelectionRange(_.selectionStart,_.selectionEnd),T.preventDefault(),T.stopPropagation(),W.name!=="SyntheticChangeError")throw W}};document.activeElement===l&&b(),l.addEventListener("focus",b),l.addEventListener("blur",y),l.addEventListener("input",O),i.set(l,{onFocus:b,onBlur:y,onInput:O})}else process.env.NODE_ENV!=="production"&&console.warn("Warn: The input element type does not match one of the types: ".concat(bu.join(", "),"."))},this.unregister=function(l){var s=i.get(l);s!==void 0&&(l.removeEventListener("focus",s.onFocus),l.removeEventListener("blur",s.onBlur),l.removeEventListener("input",s.onInput),i.delete(l))}});_u=Na,Object.defineProperty(_u.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Input"});var Gs=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new e("".concat(n.join(`
|
|
34
|
+
|
|
35
|
+
`),`
|
|
36
|
+
`))}},wu,Oy=["track","modify"];function wr(e){var t,n,r,i;return{mask:(t=e.mask)!==null&&t!==void 0?t:"",replacement:typeof e.replacement=="string"?Ur(e.replacement):(n=e.replacement)!==null&&n!==void 0?n:{},showMask:(r=e.showMask)!==null&&r!==void 0&&r,separate:(i=e.separate)!==null&&i!==void 0&&i,track:e.track,modify:e.modify}}var _d=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return my(this,t),(n=dy(this,t,[{init:function(i){var l=i.initialValue,s=i.controlled,a=wr(r),c=a.mask,u=a.replacement,f=a.separate,m=a.showMask;return l=s||l?l:m?c:"",process.env.NODE_ENV!=="production"&&function(d){var h=d.initialValue,p=d.mask,g=d.replacement;h.length>p.length&&console.error(Gs(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.",'Invalid value: "'.concat(h,'".'),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));var v=Object.keys(g).filter(function(O){return O.length>1});v.length>0&&console.error(Gs(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.","Invalid keys: ".concat(v.join(", "),"."),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));for(var _=p.slice(0,h.length),w=-1,b=0;b<_.length;b++){var y=Object.prototype.hasOwnProperty.call(g,_[b]);if(!(_[b]===h[b]||y&&g[_[b]].test(h[b]))){w=b;break}}w!==-1&&console.error(Gs(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(w,"). Check the correctness of the initialized value in the specified property."),'Invalid value: "'.concat(h,'".'),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."))}({initialValue:l,mask:c,replacement:u}),{value:l,options:{mask:c,replacement:u,separate:f}}},tracking:function(i){var l=i.inputType,s=i.previousValue,a=i.previousOptions,c=i.addedValue,u=i.changeStart,f=i.changeEnd,m=wr(r),d=m.track,h=m.modify,p=gy(m,Oy),g=p.mask,v=p.replacement,_=p.showMask,w=p.separate,b=Ki(Ki({},l==="insert"?{inputType:l,data:c}:{inputType:l,data:null}),{},{value:s,selectionStart:u,selectionEnd:f}),y=d?.(b);if(y===!1)throw new Ir("Custom tracking stop.");y===null?c="":y!==!0&&y!==void 0&&(c=y);var O=h?.(b);O?.mask!==void 0&&(g=O.mask),O?.replacement!==void 0&&(v=typeof O?.replacement=="string"?Ur(O?.replacement):O.replacement),O?.showMask!==void 0&&(_=O.showMask),O?.separate!==void 0&&(w=O.separate);var T=$o(s,Ki({end:u},a)),M=$o(s,Ki({start:f},a)),I=RegExp("[^".concat(Object.keys(v).join(""),"]"),"g"),$=g.replace(I,"");if(T&&(T=fi(T,{replacementChars:$,replacement:v,separate:w}),$=$.slice(T.length)),c&&(c=fi(c,{replacementChars:$,replacement:v,separate:!1}),$=$.slice(c.length)),l==="insert"&&c==="")throw new Ir("The character does not match the key value of the `replacement` object.");if(w){var R=g.slice(u,f).replace(I,""),P=R.length-c.length;P<0?M=M.slice(-P):P>0&&(M=R.slice(-P)+M)}M&&(M=fi(M,{replacementChars:$,replacement:v,separate:w}));var z=md(T+c+M,{mask:g,replacement:v,separate:w,showMask:_}),Y=function(S){var C,U,A,k=S.inputType,L=S.value,X=S.addedValue,B=S.beforeChangeValue,W=S.mask,x=S.replacement,N=S.separate,D=hd(L,{mask:W,replacement:x}).filter(function(le){var he=le.type;return he==="input"||N&&he==="replacement"}),F=(C=D[B.length+X.length-1])===null||C===void 0?void 0:C.index,H=(U=D[B.length-1])===null||U===void 0?void 0:U.index,K=(A=D[B.length+X.length])===null||A===void 0?void 0:A.index;if(k==="insert"){if(F!==void 0)return F+1;if(K!==void 0)return K;if(H!==void 0)return H+1}if(k==="deleteForward"){if(K!==void 0)return K;if(H!==void 0)return H+1}if(k==="deleteBackward"){if(H!==void 0)return H+1;if(K!==void 0)return K}var te=L.split("").findIndex(function(le){return Object.prototype.hasOwnProperty.call(x,le)});return te!==-1?te:L.length}({inputType:l,value:z,addedValue:c,beforeChangeValue:T,mask:g,replacement:v,separate:w});return{value:z,selectionStart:Y,selectionEnd:Y,options:{mask:g,replacement:v,separate:w}}}}])).format=function(i){return pd(i,wr(r))},n.formatToParts=function(i){return yy(i,wr(r))},n.unformat=function(i){return vy(i,wr(r))},n.generatePattern=function(i){return by(i,wr(r))},n}return py(t,Na),hy(t)}();wu=_d,Object.defineProperty(wu.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Mask"});function My(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mask,n=e.replacement,r=e.showMask,i=e.separate,l=e.track,s=e.modify,a=o.useRef(null),c=o.useRef({mask:t,replacement:n,showMask:r,separate:i,track:l,modify:s});return c.current.mask=t,c.current.replacement=n,c.current.showMask=r,c.current.separate=i,c.current.track=l,c.current.modify=s,o.useMemo(function(){return gd(a,new _d(c.current))},[])}const Io=({ref:e,mask:t,replacement:n,showMask:r,...i})=>{const l=My({mask:t,replacement:n,showMask:r});return o.useImperativeHandle(e,()=>l.current),o.createElement(hs,{ref:l,...i})};function xu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dy(e,t,n){return t=Pl(t),function(r,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}(r)}(e,bd()?Reflect.construct(t,n||[],Pl(e).constructor):t.apply(e,n))}function Ry(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ty(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Cy(e,t,n){return(t=function(r){var i=function(l,s){if(typeof l!="object"||!l)return l;var a=l[Symbol.toPrimitive];if(a!==void 0){var c=a.call(l,s);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(l)}(r,"string");return typeof i=="symbol"?i:i+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pl(e){return Pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pl(e)}function Ny(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zo(e,t)}function bd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bd=function(){return!!e})()}function Eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function di(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Eu(Object(n),!0).forEach(function(r){Cy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Il(e,t){if(e==null)return{};var n,r,i=function(s,a){if(s==null)return{};var c={};for(var u in s)if({}.hasOwnProperty.call(s,u)){if(a.includes(u))continue;c[u]=s[u]}return c}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zo(e,t){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zo(e,t)}function fl(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var l,s,a,c,u=[],f=!0,m=!1;try{if(a=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;f=!1}else for(;!(f=(l=a.call(i)).done)&&(u.push(l.value),u.length!==r);f=!0);}catch(d){m=!0,s=d}finally{try{if(!f&&i.return!=null&&(c=i.return(),Object(c)!==c))return}finally{if(m)throw s}}return u}}(e,t)||function(n,r){if(n){if(typeof n=="string")return xu(n,r);var i={}.toString.call(n).slice(8,-1);return i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set"?Array.from(n):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?xu(n,r):void 0}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
37
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ki(e,t){var n,r,i=t.minusSign,l=t.decimal,s=t.digits,a=t.signBackwards,c="[".concat(s,"]+([^").concat(l).concat(s,"][").concat(s,"]+)*"),u="[".concat(l,"][").concat(s,"]"),f="".concat(c).concat(u,"*"),m="".concat(u,"+"),d=c,h="[".concat(l,"]"),p=(n=(r=RegExp("(".concat(f,"|").concat(m,"|").concat(d,"|").concat(h,")")).exec(e))===null||r===void 0?void 0:r[0])!==null&&n!==void 0?n:"";return a&&RegExp("[".concat(s,"]?.*").concat(i)).test(e)?p+i:RegExp("".concat(i,".*[").concat(s,"]?")).test(e)?i+p:p}function zl(e,t){var n=t.minusSign,r=t.decimal,i=t.digits;return e.replace(RegExp("[^\\".concat(n).concat(r).concat(i,"]"),"g"),"")}function Ao(e,t){var n,r,i=t.locales,l=t.options,s=t.localizedValues,a=t.resolvedOptions,c=a.maximumIntegerDigits,u=a.minimumFractionDigits,f=u===void 0?0:u,m=a.maximumFractionDigits,d=di({},l);d.style=d.format,d.useGrouping=d.groupDisplay,d.minimumFractionDigits=0,d.maximumFractionDigits=0,delete d.format,delete d.groupDisplay,delete d.maximumIntegerDigits;var h=fl(e.split("."),2),p=h[0],g=h[1],v=g===void 0?"":g;p=p.replace(/^(-)?0+/,"$1"),p=(n=(r=RegExp("-?\\d{0,".concat(c??"","}")).exec(p))===null||r===void 0?void 0:r[0])!==null&&n!==void 0?n:"";var _,w=/^-0?$/.test(p)?-0:BigInt(p),b="";if(a.format==="percent"){var y,O,T="[".concat(s.digits,"]+([^").concat(s.digits,"][").concat(s.digits,"]+)*"),M=RegExp(T),I=new Intl.NumberFormat(i,di(di({},d),{},{style:"decimal"})).format(w);b=new Intl.NumberFormat(i,d).format(w).replace(M,(y=(O=M.exec(I))===null||O===void 0?void 0:O[0])!==null&&y!==void 0?y:"")}else b=new Intl.NumberFormat(i,d).format(w);if(b=b.replace(/\s/g," "),v.length<f&&(v+="0".repeat(f-v.length)),(m===void 0||m>0)&&(e.includes(".")||v.length>0)&&(b=b.replace(RegExp("([".concat(s.digits,"])([^").concat(s.digits,"]*)$")),"$1".concat(s.decimal,"$2")),v.length>0)){var $=(v=v.slice(0,m)).replace(/\d/g,function(P){return s.digits[Number(P)]});b=b.replace(RegExp("([".concat(s.decimal,"])([^").concat(s.digits,"]*)$")),"$1".concat($,"$2"))}if(b.includes("+")?_="+":b.includes(s.minusSign)&&(_=s.minusSign),_!==void 0&&s.signBackwards){var R=(b=b.replace(RegExp("[\\".concat(_,"]"),"g"),"")).search(RegExp("[".concat(s.digits,"](?!.*[").concat(s.digits,"])")));R!==-1&&((b=b.slice(0,R+1)+_+b.slice(R+1)).startsWith("")||(b="".concat(b)))}return b}function mi(e){var t=new Intl.NumberFormat(e,{useGrouping:!1,signDisplay:"always",minimumIntegerDigits:10,minimumFractionDigits:1,maximumFractionDigits:1}).format(-12345678901e-1),n=t.startsWith("")||t.startsWith(""),r=n?t[1]:t[0],i=t[t.length-2],l=t.slice(n?2:1,-2);return{signBackwards:n,minusSign:r,decimal:i,digits:l=l[9]+l.slice(0,-1)}}function Al(e,t){var n=t.minusSign,r=t.decimal,i=t.digits;return e.replace(RegExp(n,"g"),"-").replace(RegExp("[".concat(r,"]"),"g"),".").replace(RegExp("[".concat(i,"]"),"g"),function(l){var s=i.indexOf(l);return s!==-1?s.toString():l})}var $y=["format","groupDisplay","maximumIntegerDigits"];function dl(e,t){var n=t.format,r=t.groupDisplay,i=t.maximumIntegerDigits,l=Il(t,$y);if((i=i!==void 0?Number(i):void 0)!==void 0&&Number.isNaN(i))throw new RangeError("maximumIntegerDigits value is out of range.");var s=new Intl.NumberFormat(e,di(di({},l),{},{style:n==="percent"?"decimal":n,useGrouping:r})).resolvedOptions(),a=s.style,c=s.useGrouping;s.format=n==="percent"?"percent":a,s.groupDisplay=c;var u=i!==void 0&&i<s.minimumIntegerDigits;s.maximumIntegerDigits=u?s.minimumIntegerDigits:i;var f=s;return delete f.style,delete f.currencySign,delete f.useGrouping,delete f.minimumSignificantDigits,delete f.maximumSignificantDigits,delete f.compactDisplay,delete f.notation,delete f.numberingSystem,delete f.localeMatcher,delete f.roundingIncrement,delete f.roundingMode,delete f.roundingPriority,delete f.trailingZeroDisplay,s}var Py=["locales"];function wd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.locales,r=Il(t,Py),i=mi(n),l=dl(n,r);return Ao(e.toString(),{locales:n,options:r,localizedValues:i,resolvedOptions:l})}function xd(e,t){var n=mi(t);return Al(zl(ki(e,n),n),n).replace(/(.+)(-)$/,"$2$1").replace(/\.$/,"")}var ku,Iy=["locales"],zy=["locales"];function Su(e,t){var n={minusSign:"-",decimal:".",digits:"\\d",signBackwards:!1},r=ki(e,t),i=ki(e.replace(",","."),n);return e=zl(r||i,r?t:n),e=Al(e,t)}var Ed=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ry(this,t),(n=Dy(this,t,[{init:function(i){var l=i.initialValue,s=i.controlled,a=r.locales,c=Il(r,Iy);if(!s&&l.length>0){var u=mi(a),f=dl(a,c),m=Su(l,u);(m=m.replace(/(.+)(-)$/,"$2$1")).length>0&&(l=Ao(m,{locales:a,options:c,localizedValues:u,resolvedOptions:f}))}return{value:l,options:{locales:a,options:c}}},tracking:function(i){var l=i.inputType,s=i.previousValue,a=i.previousOptions,c=i.addedValue,u=i.changeStart,f=i.changeEnd,m=r.locales,d=Il(r,zy),h=mi(a.locales),p=mi(m),g=dl(m,d),v=RegExp("^[".concat(p.minusSign,"]$")),_=RegExp("^[,".concat(p.decimal,"]$"));if(c=v.test(c)?c.replace(v,"-"):_.test(c)?c.replace(_,"."):Su(c,p),l==="insert"&&!c)throw new Ir("The added value does not contain allowed characters.");var w=s.slice(0,u);w=ki(w,h),w=zl(w,h),w=Al(w,h);var b=s.slice(f);b=ki(b,h),b=zl(b,h);var y=w+c+(b=Al(b,h));if(y=y.replace(/[.](?=.*[.])/g,""),p.signBackwards)y=y.replace(/[-](?=.*[-.\d])/g,"");else{var O=y.search(/[-.\d]/);y=y.replace(/[-]/g,function(x,N){return O!==-1&&N>O?"":x})}y=y.replace(/(.+)(-)$/,"$2$1");var T=c==="-"&&u===f,M=s.includes(h.minusSign),I=y.includes("-");if(T&&M&&I&&(y=y.replace("-","")),!T||M||I||(y="-".concat(y)),/\..*0$/.test(y)){var $="([".concat(h.digits,"])([").concat(h.decimal,"])([").concat(h.digits,"]+)"),R=RegExp($).exec(s);if(R!==null){var P,z=R[3],Y=Number(R[5])+R[1].length+R[2].length,S=(P=dl(a.locales,a.options).minimumFractionDigits)!==null&&P!==void 0?P:0;u>=Y&&f<Y+(S||1)&&z.length<=(S||1)&&(y=y.replace(/0+$/g,""))}}var C=l==="deleteBackward"||l==="deleteForward";if(C&&s.includes(h.decimal)&&!y.includes(".")){var U,A="[".concat(h.digits[0],"]*[^").concat(h.decimal).concat(h.digits,"]*$"),k="[^".concat(h.digits[0],"]"),L=(U=RegExp(A).exec(s))===null||U===void 0?void 0:U[0].replace(RegExp(k,"g"),"").length;L!==void 0&&g.minimumFractionDigits!==void 0&&(L>g.minimumFractionDigits&&(L=g.minimumFractionDigits),y=y.replace(RegExp("0{0,".concat(L,"}$")),""))}var X="",B=y===""||y==="-"||/^-?(\.0*)?$/.test(y);C&&B||(X=Ao(y,{locales:m,options:d,localizedValues:p,resolvedOptions:g}));var W=function(x){var N=x.localizedValues,D=x.previousLocalizedValues,F=x.resolvedOptions,H=x.inputType,K=x.value,te=x.previousValue,le=x.addedValue,he=x.changeStart,Q=x.changeEnd;if(te.includes(N.decimal)&&le==="."){var ne=K.indexOf(N.decimal);if(ne!==-1){var G=ne+1;return{start:G,end:G}}}if(te.includes(N.minusSign)&&le==="-"){var ce=K.indexOf(N.minusSign);if(ce!==-1){var de=ce+(N.signBackwards?0:1);return{start:de,end:de}}}if(H==="deleteBackward"||H==="deleteForward"){var re=te.split(D.decimal),ve=fl(re,1)[0];if(Q<=ve.length&&!RegExp("[".concat(D.digits.slice(1),"]")).test(ve)){var ae=ve.indexOf(D.digits[0]),fe=ve.lastIndexOf(D.digits[0]);if(ae!==-1&&fe!==-1){var ge=fe+1;if((he!==ae||Q!==ge)&&Q>ae&&Q<=ge)return{start:ae,end:ge}}}}for(var q=F.maximumIntegerDigits!==void 0?Number(F.maximumIntegerDigits):void 0,J=K.length,Z=0,pe=0,_e=!1;pe<he;pe++){var Se=D.digits.includes(te[pe]),ut=te[pe]===D.decimal;!_e&&(ut||Se&&te[pe]!==D.digits[0])&&(_e=!0),_e&&(ut||Se)&&(Z+=1)}if(H==="insert"){var kt=te.slice(0,he),nt=te.indexOf(D.decimal),Ae=kt.replace(RegExp("[^".concat(D.decimal).concat(D.digits,"]"),"g"),"").replace(RegExp("^".concat(D.digits[0],"+"),"g"),"").split(D.decimal),Ke=fl(Ae,2),ft=Ke[0],an=Ke[1],Cn=an===void 0?"":an,Ht=nt!==-1&&Q<=nt?"\\.":"\\.(?=.*\\.)",Ie=le.replace(RegExp("-|".concat(Ht),"g"),""),Ct=Ie.includes("."),Nn=Ie.split("."),qt=fl(Nn,2),St=qt[0],Zn=qt[1],$n=Zn===void 0?"":Zn;if(nt!==-1&&he>nt)if(Ct){Z-=1;var Pn=ft+Cn;q!==void 0&&Pn.length>q&&(Z=q,ft=Pn.slice(0,q))}else $n=St,St="";var vr="[".concat(D.decimal).concat(D.digits.slice(1),"]");RegExp(vr).test(kt)||(St=St.replace(/^0+/g,""));var Ut=q!==void 0?q-ft.length:void 0;Z+=(St.slice(0,Ut)+(Ct?".":"")+$n).replace(RegExp("[^\\.".concat(N.decimal,"\\d").concat(N.digits,"]+"),"g"),"").length}for(var In=0,yr=!1,Zr=0;In<K.length;In++){var Xn=N.digits.includes(K[In]),Qn=K[In]===N.decimal;if(!yr&&(Qn||Xn&&K[In]!==N.digits[0])&&(yr=!0),yr&&Zr>=Z){J=In;break}yr&&(Qn||Xn)&&(Zr+=1)}if(H==="deleteForward"){var zn,_r="\\".concat(N.minusSign),Ms="^.{".concat(J,"}[^").concat(N.decimal).concat(N.digits,"]*[").concat(_r).concat(N.decimal).concat(N.digits,"]"),Xr=(zn=RegExp(Ms).exec(K))===null||zn===void 0?void 0:zn[0].length;Xr!==void 0&&(J=Xr-1)}else{var Ds,Dm=H==="deleteBackward"?"\\".concat(N.minusSign):"",Rm="[".concat(Dm).concat(N.decimal).concat(N.digits,"][^").concat(N.decimal).concat(N.digits,"]*.{").concat(K.length-J,"}$"),fc=(Ds=RegExp(Rm).exec(K))===null||Ds===void 0?void 0:Ds.index;fc!==void 0&&(J=fc+1)}var Tm="[\\".concat(N.minusSign).concat(N.decimal).concat(N.digits.slice(1),"]"),Cm="[\\".concat(N.minusSign).concat(N.decimal).concat(N.digits,"][^").concat(N.decimal).concat(N.digits,"]*$"),Rs=K.search(RegExp(Tm)),Ts=K.search(RegExp(Cm));return Rs!==-1&&J<Rs?J=Rs:Ts!==-1&&J>Ts+1&&(J=Ts+1),{start:J,end:J}}({localizedValues:p,previousLocalizedValues:h,resolvedOptions:g,inputType:l,value:X,previousValue:s,addedValue:c,changeStart:u,changeEnd:f});return{value:X,selectionStart:W.start,selectionEnd:W.end,options:{locales:m,options:d}}}}])).format=function(i){return wd(i,r)},n.unformat=function(i){return xd(i,r.locales)},n}return Ny(t,Na),Ty(t)}();ku=Ed,Object.defineProperty(ku.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"NumberFormat"});function Ay(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.locales,n=e.format,r=e.currency,i=e.currencyDisplay,l=e.unit,s=e.unitDisplay,a=e.signDisplay,c=e.groupDisplay,u=e.minimumIntegerDigits,f=e.maximumIntegerDigits,m=e.minimumFractionDigits,d=e.maximumFractionDigits,h=o.useRef(null),p=o.useRef({locales:t,format:n,currency:r,currencyDisplay:i,unit:l,unitDisplay:s,signDisplay:a,groupDisplay:c,minimumIntegerDigits:u,maximumIntegerDigits:f,minimumFractionDigits:m,maximumFractionDigits:d});return p.current.locales=t,p.current.format=n,p.current.currency=r,p.current.currencyDisplay=i,p.current.unit=l,p.current.unitDisplay=s,p.current.signDisplay=a,p.current.groupDisplay=c,p.current.minimumIntegerDigits=u,p.current.maximumIntegerDigits=f,p.current.minimumFractionDigits=m,p.current.maximumFractionDigits=d,o.useMemo(function(){return gd(h,new Ed(p.current))},[])}const Ly=({ref:e,...t})=>{const n=Ay({});return o.useImperativeHandle(e,()=>n.current),o.createElement(hs,{ref:n,...t})},Fy=Object.assign(Ly,{format:wd,unFormat:xd}),Yy="_wrapper_sdhhu_1",jy="_option_sdhhu_8",Wy="_container_sdhhu_18",Vy="_content_sdhhu_28",Hy="_hover_sdhhu_46",qy="_selected_sdhhu_35",ar={wrapper:Yy,option:jy,container:Wy,content:Vy,"selected-icon":"_selected-icon_sdhhu_35",hover:Hy,selected:qy},Uy=e=>{const t=o.useRef([]),[n,r]=o.useState(null),[i,l]=o.useState(()=>(e.selectedIndex||e.initialSelectedIndex)??null),[s,a]=o.useState(e.initialOpen),c=e.open??s,u=e.setOpen??a,f=es({open:c,onOpenChange:_=>{e.disabled||u(_)},whileElementsMounted:sa,middleware:[oa({padding:10}),hf({apply({rects:_,elements:w}){Object.assign(w.floating.style,{top:"var(--numbers-8)",width:`${_.reference.width}px`,maxHeight:"var(--numbers-288)"})},padding:10})]}),m=f.context,d=fa(m,{event:"click",enabled:!e.disabled}),h=rs(m,{role:"listbox"}),p=Jl(m),g=ag(m,{listRef:t,activeIndex:n,selectedIndex:i,onNavigate:r,loop:!0,nested:!0,virtual:!0,allowEscape:!0}),v=ts([h,p,g,d]);return o.useMemo(()=>({open:c,setOpen:u,role:h,dismiss:p,listRef:t,activeIndex:n,setActiveIndex:r,selectedIndex:i,setSelectedIndex:l,floating:f,interactions:v,tabIndex:e.tabIndex,disabled:e.disabled,onSelect:e.onSelect,onBlur:e.onBlur,onFocus:e.onFocus}),[c,u,h,p,n,r,i,l,f,v,e.tabIndex,e.disabled,e.onSelect,e.onBlur,e.onFocus])},kd=o.createContext({}),$a=()=>{const e=o.useContext(kd);if(e==null)throw new Error("Select components must be wrapped in <Select />");return e},By=({children:e,...t})=>{const n=Uy(t);return o.useEffect(()=>{n.setSelectedIndex(t.selectedIndex)},[t.selectedIndex]),o.createElement(kd.Provider,{value:n},e)},Gy=o.memo(e=>{const t=$a(),n=t.interactions.getReferenceProps();return o.createElement("div",{className:ar.wrapper,tabIndex:t.tabIndex,ref:t.floating.refs.setReference,...n,onFocus:()=>{t.onFocus&&t.onFocus()},onBlur:()=>{t.onBlur&&t.onBlur()}},e.reference(t))}),Ky=o.memo(e=>{const t=$a(),{isMounted:n,styles:r}=da(t.floating.context),i=e.options(t);return!t.open&&!n?null:o.createElement(Ql,null,o.createElement(ua,{context:t.floating.context},o.createElement(Ta,{...t.interactions.getFloatingProps(),ref:t.floating.refs.setFloating,style:{...r,...t.floating.floatingStyles,outline:"none",zIndex:999}},i.length?i:e.empty)))}),Zy=o.memo(e=>{const t=Pi(),n=$a(),r=o.useMemo(()=>n.activeIndex===e.index,[n.activeIndex]),i=o.useMemo(()=>n.selectedIndex===e.index,[n.selectedIndex]);o.useEffect(()=>{n.setSelectedIndex(n.selectedIndex)},[n.selectedIndex]);const l=o.useMemo(()=>se(ar.container,{[ar.hover]:r,[ar.selected]:i}),[r,i]);return o.createElement("div",{id:t,role:"option",className:ar.option,tabIndex:e.index===n.activeIndex?n.activeIndex:-1,...n.interactions.getItemProps({ref(s){n.listRef.current[e.index]=s},onClick(s){n.setSelectedIndex(e.index),n.onSelect&&n.onSelect(e.index),e.onClick&&e.onClick(s)},onKeyDown(s){s.key==="Enter"&&(s.preventDefault(),n.setSelectedIndex(n.activeIndex),n.onSelect&&n.onSelect(n.activeIndex),e.onChange&&e.onChange(s)),s.key===" "&&(s.preventDefault(),n.setSelectedIndex(n.activeIndex),n.onSelect&&n.onSelect(n.activeIndex),e.onChange&&e.onChange(s))}})},o.createElement("div",{className:l},o.createElement("div",{className:ar.content},e.option(n)),i&&o.createElement("div",{className:ar["selected-icon"]},o.createElement(xe,{icon:"check-line"}))))}),Dt=Object.assign(By,{Reference:Gy,Options:Ky,Option:Zy}),Xy=({options:e,optionKey:t,optionValue:n,...r})=>{const[i,l]=o.useState(!1),[s,a]=o.useState(""),c=s?e.filter(u=>u[n].toLowerCase().startsWith(s.toLowerCase())):[];return o.createElement(Dt,{open:i,setOpen:l},o.createElement(Dt.Reference,{reference:u=>o.createElement(hs,{...r,value:s,onChange:f=>{const m=f.target.value;a(m),m?(u.setActiveIndex(0),l(!0)):l(!1)},onKeyDown:f=>{f.key==="Enter"&&u.activeIndex!=null&&e[u.activeIndex]&&(a(e[u.activeIndex][n]),u.setActiveIndex(null),l(!1))}})}),o.createElement(Dt.Options,{empty:o.createElement(Zo,{leadIcon:o.createElement(xe,{icon:"filter-off-line"}),label:"Нет данных"}),options:u=>c.map((f,m)=>o.createElement(Dt.Option,{key:f[t],index:m,onClick:()=>{a(e[m][n]),u.setOpen(!1)},option:d=>o.createElement(Zo,{active:d.activeIndex===m,leadIcon:o.createElement(xe,{icon:"windy-fill"}),label:f.name,badge:f.role})}))}))},Qy="_wrapper_3hbe8_1",Jy="_focused_3hbe8_17",e_="_content_3hbe8_24",t_="_input_3hbe8_31",n_="_destructive_3hbe8_66",r_="_disabled_3hbe8_81",Ln={wrapper:Qy,focused:Jy,content:e_,input:t_,"size--medium":"_size--medium_3hbe8_53","size--extra-small":"_size--extra-small_3hbe8_59",destructive:n_,disabled:r_},i_=(e,t)=>{o.useEffect(()=>{e?.current&&(e.current.style.height="auto",e.current.style.height=`${e.current.scrollHeight}px`)},[e,t])},l_=({ref:e,size:t="md",target:n,...r})=>{const i=o.useRef(null),[l,s]=o.useState(r.defaultValue||r.value),[a,c]=o.useState(!1),u=o.useMemo(()=>se(Ln.wrapper,{[Ln.focused]:a},{[Ln["size--medium"]]:t==="md",[Ln["size--extra-small"]]:t==="xs"},{[Ln.disabled]:r.disabled},{[Ln.destructive]:n==="destructive"}),[a,t,n,r.disabled]);o.useImperativeHandle(e,()=>i.current,[i]),i_(i,l);const f=()=>{c(!0)},m=()=>{c(!1)};return o.createElement("div",{className:u},o.createElement("div",{className:Ln.content},o.createElement("textarea",{ref:i,...r,className:Ln.input,onFocus:f,onBlur:m,onInput:d=>s(d.target.value)})))},s_="_wrapper_asagy_1",o_="_label_asagy_8",a_="_caption_asagy_13",c_="_required_asagy_19",Zi={wrapper:s_,label:o_,caption:a_,required:c_},Lo=e=>o.createElement("div",{className:Zi.wrapper},o.createElement("div",{className:Zi.label},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.label))),e.caption&&o.createElement("div",{className:Zi.caption},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,e.caption))),e.required&&o.createElement("div",{className:Zi.required},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,"*")))),u_="_wrapper_5yuk1_1",f_="_caption_5yuk1_18",tr={wrapper:u_,"lead-icon":"_lead-icon_5yuk1_8",caption:f_,"state--default":"_state--default_5yuk1_23","state--info":"_state--info_5yuk1_26","state--success":"_state--success_5yuk1_29","state--destructive":"_state--destructive_5yuk1_32"},d_=({state:e="default",...t})=>{const n=o.useMemo(()=>se(tr.wrapper,{[tr["state--default"]]:e==="default",[tr["state--info"]]:e==="info",[tr["state--success"]]:e==="success",[tr["state--destructive"]]:e==="destructive"}),[e]);return o.createElement("div",{className:n},t.leadIcon&&o.createElement("div",{className:tr["lead-icon"]},t.leadIcon),o.createElement("div",{className:tr.caption},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,t.caption))))},m_="_wrapper_1171k_1",h_="_content_1171k_8",Ks={wrapper:m_,content:h_,"expand-icon":"_expand-icon_1171k_15"},p_=e=>o.createElement("div",{className:Ks.wrapper},o.createElement("div",{className:Ks.content},o.createElement(ue,{size:e.size==="lg"?"body-m":"body-s",weight:"medium"},o.createElement("p",null,e.children))),o.createElement("div",{className:Ks["expand-icon"]},e.isExpanded?o.createElement(xe,{icon:"subtract-line"}):o.createElement(xe,{icon:"add-line"}))),g_="_wrapper_1ihka_1",v_="_expanded_1ihka_21",y_="_aside_1ihka_30",__="_content_1ihka_45",b_="_description_1ihka_51",w_="_slot_1ihka_59",Bt={wrapper:g_,expanded:v_,aside:y_,"lead-icon":"_lead-icon_1ihka_35",content:__,description:b_,slot:w_,"size--large":"_size--large_1ihka_66","size--medium":"_size--medium_1ihka_69"},x_=({size:e="lg",...t})=>{const[n,r]=o.useState(()=>t.defaultState??!1),i=o.useMemo(()=>se(Bt.wrapper,{[Bt.expanded]:n},{[Bt["size--large"]]:e==="lg",[Bt["size--medium"]]:e==="md"}),[n,e]);o.useEffect(()=>{t.onState&&t.onState(n)},[n]),o.useEffect(()=>{t.expanded!==void 0&&r(t.expanded)},[t.expanded]);const l=()=>{r(!n)};return o.createElement("div",{className:i,tabIndex:t.tabIndex,onClick:l},t.leadIcon&&o.createElement("div",{className:Bt.aside},o.createElement("div",{className:Bt["lead-icon"]},t.leadIcon)),o.createElement("div",{className:Bt.content},o.createElement("div",{className:Bt.header},o.createElement(p_,{isExpanded:n,size:e},t.header)),n&&o.createElement(o.Fragment,null,t.description&&o.createElement("div",{className:Bt.description},o.createElement(ue,{size:e==="lg"?"body-s":"caption-l",weight:"regular"},o.createElement("p",null,t.description))),t.children&&o.createElement("div",{className:Bt.slot},t.children))))},E_="_wrapper_6mzzf_1",k_="_notification_6mzzf_8",S_="_content_6mzzf_15",O_="_icon_6mzzf_25",M_="_status_6mzzf_31",Ve={wrapper:E_,notification:k_,content:S_,icon:O_,status:M_,"size--2xl":"_size--2xl_6mzzf_38","size--xl":"_size--xl_6mzzf_45","size--lg":"_size--lg_6mzzf_52","size--md":"_size--md_6mzzf_59","size--sm":"_size--sm_6mzzf_66","size--xs":"_size--xs_6mzzf_73","color--gray":"_color--gray_6mzzf_81","color--green":"_color--green_6mzzf_87","color--blue":"_color--blue_6mzzf_93","color--orange":"_color--orange_6mzzf_99","color--red":"_color--red_6mzzf_105","color--purple":"_color--purple_6mzzf_111"},Sd=({size:e="2xl",color:t="gray",...n})=>{const r=o.useMemo(()=>se(Ve.wrapper,{[Ve["size--2xl"]]:e==="2xl",[Ve["size--xl"]]:e==="xl",[Ve["size--lg"]]:e==="lg",[Ve["size--md"]]:e==="md",[Ve["size--sm"]]:e==="sm",[Ve["size--xs"]]:e==="xs"},{[Ve["color--gray"]]:t==="gray",[Ve["color--green"]]:t==="green",[Ve["color--blue"]]:t==="blue",[Ve["color--orange"]]:t==="orange",[Ve["color--red"]]:t==="red",[Ve["color--purple"]]:t==="purple"}),[e,t]);return o.createElement("div",{className:r},n.isNotification&&o.createElement("div",{className:Ve.notification},o.createElement(co,{size:e,color:"red"})),o.createElement("div",{className:Ve.content},o.createElement("div",{className:Ve.icon},o.createElement(xe,{icon:"user-3-line"}))),n.isStatus&&o.createElement("div",{className:Ve.status},o.createElement(co,{size:e,color:"green"})))},D_="_wrapper_1q1ia_1",R_="_close_1q1ia_27",T_="_label_1q1ia_38",C_="_active_1q1ia_46",N_="_disabled_1q1ia_57",$t={wrapper:D_,"lead-icon":"_lead-icon_1q1ia_15",close:R_,label:T_,active:C_,disabled:N_,"size--lg":"_size--lg_1q1ia_76","shape--rounded":"_shape--rounded_1q1ia_76","size--md":"_size--md_1q1ia_99","size--sm":"_size--sm_1q1ia_122","shape--pill":"_shape--pill_1q1ia_146"},$_=({size:e="md",shape:t="rounded",disabled:n,isActive:r=!1,label:i,leadIcon:l})=>{const s=o.useMemo(()=>se($t.wrapper,{[$t["size--lg"]]:e==="lg",[$t["size--md"]]:e==="md",[$t["size--sm"]]:e==="sm"},{[$t["shape--pill"]]:t==="pill",[$t["shape--rounded"]]:t==="rounded"},{[$t.active]:r},{[$t.disabled]:n}),[e,t,n,r]);return o.createElement("div",{className:s},l&&o.createElement("div",{className:$t["lead-icon"]},o.createElement(xe,{icon:l})),o.createElement("span",{className:$t.label},i),r&&o.createElement("div",{className:$t.close},o.createElement(xe,{icon:"close-line"})))},P_="_wrapper_1caw3_1",I_="_close_1caw3_27",z_="_label_1caw3_38",A_="_active_1caw3_46",L_="_disabled_1caw3_57",Pt={wrapper:P_,"lead-slot":"_lead-slot_1caw3_15",close:I_,label:z_,active:A_,disabled:L_,"size--lg":"_size--lg_1caw3_76","shape--rounded":"_shape--rounded_1caw3_76","size--md":"_size--md_1caw3_99","size--sm":"_size--sm_1caw3_122","shape--pill":"_shape--pill_1caw3_146"},F_=({size:e="md",shape:t="rounded",isActive:n=!1,disabled:r,label:i,leadslot:l})=>{const s=o.useMemo(()=>se(Pt.wrapper,{[Pt["size--lg"]]:e==="lg",[Pt["size--md"]]:e==="md",[Pt["size--sm"]]:e==="sm"},{[Pt["shape--pill"]]:t==="pill",[Pt["shape--rounded"]]:t==="rounded"},{[Pt.active]:n},{[Pt.disabled]:r}),[e,t,r,n]);return o.createElement("div",{className:s},l&&o.createElement("div",{className:Pt["lead-slot"]},l),o.createElement("span",{className:Pt.label},i),n&&o.createElement("div",{className:Pt.close},o.createElement(xe,{icon:"close-line"})))},Y_=({type:e="icon",...t})=>{if(e==="icon")return o.createElement($_,{...t});if(e==="slot")return o.createElement(F_,{...t})};function Fo(e,t){return Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fo(e,t)}function j_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fo(e,t)}function Zs(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function Xs(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Xi(e){return e!==null&&e.length===1?e[0]:e.slice()}function Qi(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function nr(e,t){return Yo(function(n,r){let i=n;return i<=r.min&&(i=r.min),i>=r.max&&(i=r.max),i}(e,t),t)}function Yo(e,t){const n=(e-t.min)%t.step;let r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let jo=function(e){function t(r){var i;(i=e.call(this,r)||this).onKeyUp=()=>{i.onEnd()},i.onMouseUp=()=>{i.onEnd(i.getMouseEventMap())},i.onTouchEnd=a=>{a.preventDefault(),i.onEnd(i.getTouchEventMap())},i.onBlur=()=>{i.setState({index:-1},i.onEnd(i.getKeyDownEventMap()))},i.onMouseMove=a=>{i.setState({pending:!0});const c=i.getMousePosition(a),u=i.getDiffPosition(c[0]),f=i.getValueFromPosition(u);i.move(f)},i.onTouchMove=a=>{if(a.touches.length>1)return;i.setState({pending:!0});const c=i.getTouchPosition(a);if(i.isScrolling===void 0){const m=c[0]-i.startPosition[0],d=c[1]-i.startPosition[1];i.isScrolling=Math.abs(d)>Math.abs(m)}if(i.isScrolling)return void i.setState({index:-1});const u=i.getDiffPosition(c[0]),f=i.getValueFromPosition(u);i.move(f)},i.onKeyDown=a=>{if(!(a.ctrlKey||a.shiftKey||a.altKey||a.metaKey))switch(i.setState({pending:!0}),a.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":a.preventDefault(),i.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":a.preventDefault(),i.moveUpByStep();break;case"Home":a.preventDefault(),i.move(i.props.min);break;case"End":a.preventDefault(),i.move(i.props.max);break;case"PageDown":a.preventDefault(),i.moveDownByStep(i.props.pageFn(i.props.step));break;case"PageUp":a.preventDefault(),i.moveUpByStep(i.props.pageFn(i.props.step))}},i.onSliderMouseDown=a=>{if(!i.props.disabled&&a.button!==2){if(i.setState({pending:!0}),!i.props.snapDragDisabled){const c=i.getMousePosition(a);i.forceValueFromPosition(c[0],u=>{i.start(u,c[0]),Qi(i.getMouseEventMap())})}Zs(a)}},i.onSliderClick=a=>{if(!i.props.disabled&&i.props.onSliderClick&&!i.hasMoved){const c=i.getMousePosition(a),u=nr(i.calcValue(i.calcOffsetFromPosition(c[0])),i.props);i.props.onSliderClick(u)}},i.createOnKeyDown=a=>c=>{i.props.disabled||(i.start(a),Qi(i.getKeyDownEventMap()),Zs(c))},i.createOnMouseDown=a=>c=>{if(i.props.disabled||c.button===2)return;i.setState({pending:!0});const u=i.getMousePosition(c);i.start(a,u[0]),Qi(i.getMouseEventMap()),Zs(c)},i.createOnTouchStart=a=>c=>{if(i.props.disabled||c.touches.length>1)return;i.setState({pending:!0});const u=i.getTouchPosition(c);i.startPosition=u,i.isScrolling=void 0,i.start(a,u[0]),Qi(i.getTouchEventMap()),function(f){f.stopPropagation&&f.stopPropagation()}(c)},i.handleResize=()=>{const a=window.setTimeout(()=>{i.pendingResizeTimeouts.shift(),i.resize()},0);i.pendingResizeTimeouts.push(a)},i.renderThumb=(a,c)=>{const u=i.props.thumbClassName+" "+i.props.thumbClassName+"-"+c+" "+(i.state.index===c?i.props.thumbActiveClassName:""),f={ref:d=>{i["thumb"+c]=d},key:i.props.thumbClassName+"-"+c,className:u,style:a,onMouseDown:i.createOnMouseDown(c),onTouchStart:i.createOnTouchStart(c),onFocus:i.createOnKeyDown(c),tabIndex:0,role:"slider","aria-orientation":i.props.orientation,"aria-valuenow":i.state.value[c],"aria-valuemin":i.props.min,"aria-valuemax":i.props.max,"aria-label":Array.isArray(i.props.ariaLabel)?i.props.ariaLabel[c]:i.props.ariaLabel,"aria-labelledby":Array.isArray(i.props.ariaLabelledby)?i.props.ariaLabelledby[c]:i.props.ariaLabelledby,"aria-disabled":i.props.disabled},m={index:c,value:Xi(i.state.value),valueNow:i.state.value[c]};return i.props.ariaValuetext&&(f["aria-valuetext"]=typeof i.props.ariaValuetext=="string"?i.props.ariaValuetext:i.props.ariaValuetext(m)),i.props.renderThumb(f,m)},i.renderTrack=(a,c,u)=>{const f={key:i.props.trackClassName+"-"+a,className:i.props.trackClassName+" "+i.props.trackClassName+"-"+a,style:i.buildTrackStyle(c,i.state.upperBound-u)},m={index:a,value:Xi(i.state.value)};return i.props.renderTrack(f,m)};let l=Xs(r.value);l.length||(l=Xs(r.defaultValue)),i.pendingResizeTimeouts=[];const s=[];for(let a=0;a<l.length;a+=1)l[a]=nr(l[a],r),s.push(a);return i.resizeObserver=null,i.resizeElementRef=o.createRef(),i.state={index:-1,upperBound:0,sliderLength:0,value:l,zIndices:s},i}j_(t,e);var n=t.prototype;return n.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,i){const l=Xs(r.value);return l.length?i.pending?null:{value:l.map(s=>nr(s,r))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(r){r&&function(i){Object.keys(i).forEach(l=>{typeof document<"u"&&document.removeEventListener(l,i[l],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return Xi(this.state.value)},n.getClosestIndex=function(r){let i=Number.MAX_VALUE,l=-1;const{value:s}=this.state,a=s.length;for(let c=0;c<a;c+=1){const u=this.calcOffset(s[c]),f=Math.abs(r-u);f<i&&(i=f,l=c)}return l},n.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(r){const i=r.touches[0];return[i["page"+this.axisKey()],i["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(r){const i=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return nr(this.state.startValue+i,this.props)},n.getDiffPosition=function(r){let i=r-this.state.startPosition;return this.props.invert&&(i*=-1),i},n.resize=function(){const{slider:r,thumb0:i}=this;if(!r||!i)return;const l=this.sizeKey(),s=r.getBoundingClientRect(),a=r[l],c=s[this.posMaxKey()],u=s[this.posMinKey()],f=i.getBoundingClientRect()[l.replace("client","").toLowerCase()],m=a-f,d=Math.abs(c-u);this.state.upperBound===m&&this.state.sliderLength===d&&this.state.thumbSize===f||this.setState({upperBound:m,sliderLength:d,thumbSize:f})},n.calcOffset=function(r){const i=this.props.max-this.props.min;return i===0?0:(r-this.props.min)/i*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:i}=this,l=i.getBoundingClientRect(),s=l[this.posMaxKey()],a=l[this.posMinKey()];let c=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:a));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},n.forceValueFromPosition=function(r,i){const l=this.calcOffsetFromPosition(r),s=this.getClosestIndex(l),a=nr(this.calcValue(l),this.props),c=this.state.value.slice();c[s]=a;for(let u=0;u<c.length-1;u+=1)if(c[u+1]-c[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:c},()=>{i(s),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,i){const l=this["thumb"+r];l&&l.focus();const{zIndices:s}=this.state;s.splice(s.indexOf(r),1),s.push(r),this.setState(a=>({startValue:a.value[r],startPosition:i!==void 0?i:a.startPosition,index:r,zIndices:s}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const i=this.state.value[this.state.index],l=nr(this.props.invert&&this.props.orientation==="horizontal"?i-r:i+r,this.props);this.move(Math.min(l,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const i=this.state.value[this.state.index],l=nr(this.props.invert&&this.props.orientation==="horizontal"?i+r:i-r,this.props);this.move(Math.max(l,this.props.min))},n.move=function(r){const i=this.state.value.slice(),{index:l}=this.state,{length:s}=i,a=i[l];if(r===a)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:c,max:u,min:f,minDistance:m}=this.props;if(!c){if(l>0){const d=i[l-1];r<d+m&&(r=d+m)}if(l<s-1){const d=i[l+1];r>d-m&&(r=d-m)}}i[l]=r,c&&s>1&&(r>a?(this.pushSucceeding(i,m,l),function(d,h,p,g){for(let v=0;v<d;v+=1){const _=g-v*p;h[d-1-v]>_&&(h[d-1-v]=_)}}(s,i,m,u)):r<a&&(this.pushPreceding(i,m,l),function(d,h,p,g){for(let v=0;v<d;v+=1){const _=g+v*p;h[v]<_&&(h[v]=_)}}(s,i,m,f))),this.setState({value:i},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,i,l){let s,a;for(s=l,a=r[s]+i;r[s+1]!==null&&a>r[s+1];s+=1,a=r[s]+i)r[s+1]=Yo(a,this.props)},n.pushPreceding=function(r,i,l){for(let s=l,a=r[s]-i;r[s-1]!==null&&a<r[s-1];s-=1,a=r[s]-i)r[s-1]=Yo(a,this.props)},n.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},n.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},n.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},n.fireChangeEvent=function(r){this.props[r]&&this.props[r](Xi(this.state.value),this.state.index)},n.buildThumbStyle=function(r,i){const l={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(i)+1};return l[this.posMinKey()]=r+"px",l},n.buildTrackStyle=function(r,i){const l={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return l[this.posMinKey()]=r,l[this.posMaxKey()]=i,l},n.buildMarkStyle=function(r){var i;return(i={position:"absolute"})[this.posMinKey()]=r,i},n.renderThumbs=function(r){const{length:i}=r,l=[];for(let a=0;a<i;a+=1)l[a]=this.buildThumbStyle(r[a],a);const s=[];for(let a=0;a<i;a+=1)s[a]=this.renderThumb(l[a],a);return s},n.renderTracks=function(r){const i=[],l=r.length-1;i.push(this.renderTrack(0,0,r[0]));for(let s=0;s<l;s+=1)i.push(this.renderTrack(s+1,r[s],r[s+1]));return i.push(this.renderTrack(l+1,r[l],this.state.upperBound)),i},n.renderMarks=function(){let{marks:r}=this.props;const i=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:i}).map((l,s)=>s):typeof r=="number"&&(r=Array.from({length:i}).map((l,s)=>s).filter(l=>l%r==0)),r.map(parseFloat).sort((l,s)=>l-s).map(l=>{const s=this.calcOffset(l),a={key:l,className:this.props.markClassName,style:this.buildMarkStyle(s)};return this.props.renderMark(a)})},n.render=function(){const r=[],{value:i}=this.state,l=i.length;for(let u=0;u<l;u+=1)r[u]=this.calcOffset(i[u],u);const s=this.props.withTracks?this.renderTracks(r):null,a=this.renderThumbs(r),c=this.props.marks?this.renderMarks():null;return o.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,a,c)},t}(o.Component);jo.displayName="ReactSlider",jo.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>o.createElement("div",e),renderTrack:e=>o.createElement("div",e),renderMark:e=>o.createElement("span",e)};var W_=jo;const V_="_wrapper_1qb3z_1",H_="_slider_1qb3z_11",q_="_thumb_1qb3z_15",U_="_track_1qb3z_28",Ji={wrapper:V_,slider:H_,thumb:q_,track:U_},B_=e=>o.createElement("div",{className:Ji.wrapper},o.createElement(W_,{className:Ji.slider,thumbClassName:Ji.thumb,trackClassName:Ji.track,...e})),G_="_wrapper_2g33r_1",K_="_input_2g33r_8",Z_="_icon_2g33r_17",Jr={wrapper:G_,input:K_,icon:Z_,"size--md":"_size--md_2g33r_67","size--sm":"_size--sm_2g33r_71"},X_=({size:e="md",...t})=>{const n=o.useMemo(()=>se(Jr.icon,{[Jr["size--md"]]:e==="md",[Jr["size--sm"]]:e==="sm"}),[e]);return o.createElement("div",{className:Jr.wrapper},o.createElement("input",{...t,type:"checkbox",className:Jr.input}),o.createElement("span",{className:n}))},Q_="_container_rhquy_1",J_="_wrapper_rhquy_6",eb="_element_rhquy_13",tb="_content_rhquy_20",nb="_label_rhquy_27",rb="_caption_rhquy_31",fn={container:Q_,wrapper:J_,element:eb,content:tb,label:nb,caption:rb,"size--medium":"_size--medium_rhquy_36","with-label":"_with-label_rhquy_36","size--small":"_size--small_rhquy_42"},Od=({size:e="md",label:t,caption:n,...r})=>{const i=o.useMemo(()=>se(fn.wrapper,{[fn["size--medium"]]:e==="md",[fn["size--small"]]:e==="sm"},{[fn["with-label"]]:t}),[e,t]);return o.createElement("div",{className:fn.container},o.createElement("label",{className:i},o.createElement("div",{className:fn.element},o.createElement(X_,{...r,size:e})),t&&o.createElement("div",{className:fn.content},o.createElement("div",{className:fn.label},o.createElement(ue,{size:e==="md"?"body-s":"caption-l",weight:"medium"},o.createElement("p",null,t))),n&&o.createElement("div",{className:fn.caption},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,n))))))},ib="_wrapper_iejlm_1",Qs={wrapper:ib,"size--sm":"_size--sm_iejlm_12","size--md":"_size--md_iejlm_15"},lb=e=>{const t=o.useMemo(()=>se(Qs.wrapper,{[Qs["size--sm"]]:e.size==="sm",[Qs["size--md"]]:e.size==="md"}),[e.size]);return o.createElement("div",{className:t},e.children)},sb="_wrapper_jhl5m_1",ob="_icon_jhl5m_8",ab="_active_jhl5m_20",cb="_arrow_jhl5m_25",ub="_arrow2_jhl5m_30",fb="_label_jhl5m_35",db="_caption_jhl5m_40",Yn={wrapper:sb,icon:ob,active:ab,arrow:cb,arrow2:ub,label:fb,caption:db};function Md({size:e="sm",initialOpen:t=!1,placement:n="top",open:r,onOpenChange:i}){const[l,s]=E.useState(t),a=E.useRef(null),c=r??l,u=i??s,f=es({placement:n,open:c,onOpenChange:u,whileElementsMounted:sa,middleware:[mf(6),oa({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),$p({padding:10}),Pp({element:a})]}),m=f.context,d=Hp(m,{move:!1,enabled:r==null}),h=sg(m,{enabled:r==null}),p=Jl(m),g=rs(m,{role:"tooltip"}),v=ts([d,h,p,g]);return E.useMemo(()=>({size:e,open:c,setOpen:u,arrowRef:a,...v,...f}),[c,u,v,f,e,a])}const Dd=E.createContext(null),Pa=()=>{const e=E.useContext(Dd);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},mb=({children:e,...t})=>{const n=Md(t);return E.createElement(Dd.Provider,{value:n},e)},hb=E.forwardRef(function({children:t,...n},r){const i=Pa(),l=aa([i.refs.setReference,r]);return E.createElement("div",{className:Yn.wrapper,ref:l,"data-state":i.open?"open":"closed",...i.getReferenceProps(n)},E.isValidElement(t)?E.cloneElement(t,{className:se({[Yn.active]:i.open})}):E.createElement("div",{className:se(Yn.icon,{[Yn.active]:i.open})},E.createElement(xe,{icon:"information-fill"})))}),pb=E.forwardRef(function({style:t,...n},r){const i=Pa(),l=aa([i.refs.setFloating,r]),{isMounted:s,styles:a}=da(i.context);return!i.open&&!s?null:E.createElement(Ql,null,E.createElement("div",{ref:l,style:{...i.floatingStyles,...t,...a},...i.getFloatingProps(n)},E.createElement(lb,{size:i.size},n.children),E.createElement(Nc,{ref:i.arrowRef,context:i.context,className:Yn.arrow,width:14,height:4}),E.createElement(Nc,{ref:i.arrowRef,context:i.context,className:Yn.arrow2,width:14,height:4,style:{transform:"translateY(-1px)"}})))}),gb=e=>E.createElement("div",{className:Yn.label},E.createElement(ue,{size:"caption-m",weight:"semi-bold"},E.createElement("p",null,e.children))),vb=e=>E.createElement("div",{className:Yn.caption},E.createElement(ue,{size:"caption-m",weight:"medium"},E.createElement("p",null,e.children))),yb=Object.assign(mb,{Trigger:hb,Content:Object.assign(pb,{Label:gb,Caption:vb})});//! moment.js
|
|
38
|
+
//! version : 2.30.1
|
|
39
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
40
|
+
//! license : MIT
|
|
41
|
+
//! momentjs.com
|
|
42
|
+
var Rd;function j(){return Rd.apply(null,arguments)}function _b(e){Rd=e}function Yt(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function mr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ia(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ee(e,t))return!1;return!0}function st(e){return e===void 0}function Mn(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ai(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Td(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function jn(e,t){for(var n in t)Ee(t,n)&&(e[n]=t[n]);return Ee(t,"toString")&&(e.toString=t.toString),Ee(t,"valueOf")&&(e.valueOf=t.valueOf),e}function sn(e,t,n,r){return Jd(e,t,n,r,!0).utc()}function bb(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function me(e){return e._pf==null&&(e._pf=bb()),e._pf}var Wo;Array.prototype.some?Wo=Array.prototype.some:Wo=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function za(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=me(e),n=Wo.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function ps(e){var t=sn(NaN);return e!=null?jn(me(t),e):me(t).userInvalidated=!0,t}var Ou=j.momentProperties=[],Js=!1;function Aa(e,t){var n,r,i,l=Ou.length;if(st(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),st(t._i)||(e._i=t._i),st(t._f)||(e._f=t._f),st(t._l)||(e._l=t._l),st(t._strict)||(e._strict=t._strict),st(t._tzm)||(e._tzm=t._tzm),st(t._isUTC)||(e._isUTC=t._isUTC),st(t._offset)||(e._offset=t._offset),st(t._pf)||(e._pf=me(t)),st(t._locale)||(e._locale=t._locale),l>0)for(n=0;n<l;n++)r=Ou[n],i=t[r],st(i)||(e[r]=i);return e}function Li(e){Aa(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Js===!1&&(Js=!0,j.updateOffset(this),Js=!1)}function jt(e){return e instanceof Li||e!=null&&e._isAMomentObject!=null}function Cd(e){j.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Rt(e,t){var n=!0;return jn(function(){if(j.deprecationHandler!=null&&j.deprecationHandler(null,e),n){var r=[],i,l,s,a=arguments.length;for(l=0;l<a;l++){if(i="",typeof arguments[l]=="object"){i+=`
|
|
43
|
+
[`+l+"] ";for(s in arguments[0])Ee(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[l];r.push(i)}Cd(e+`
|
|
44
|
+
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
45
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Mu={};function Nd(e,t){j.deprecationHandler!=null&&j.deprecationHandler(e,t),Mu[e]||(Cd(t),Mu[e]=!0)}j.suppressDeprecationWarnings=!1;j.deprecationHandler=null;function on(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function wb(e){var t,n;for(n in e)Ee(e,n)&&(t=e[n],on(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Vo(e,t){var n=jn({},e),r;for(r in t)Ee(t,r)&&(mr(e[r])&&mr(t[r])?(n[r]={},jn(n[r],e[r]),jn(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Ee(e,r)&&!Ee(t,r)&&mr(e[r])&&(n[r]=jn({},n[r]));return n}function La(e){e!=null&&this.set(e)}var Ho;Object.keys?Ho=Object.keys:Ho=function(e){var t,n=[];for(t in e)Ee(e,t)&&n.push(t);return n};var xb={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Eb(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return on(r)?r.call(t,n):r}function nn(e,t,n){var r=""+Math.abs(e),i=t-r.length,l=e>=0;return(l?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Fa=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,el=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,eo={},zr={};function ie(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(zr[e]=i),t&&(zr[t[0]]=function(){return nn(i.apply(this,arguments),t[1],t[2])}),n&&(zr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function kb(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Sb(e){var t=e.match(Fa),n,r;for(n=0,r=t.length;n<r;n++)zr[t[n]]?t[n]=zr[t[n]]:t[n]=kb(t[n]);return function(i){var l="",s;for(s=0;s<r;s++)l+=on(t[s])?t[s].call(i,e):t[s];return l}}function ml(e,t){return e.isValid()?(t=$d(t,e.localeData()),eo[t]=eo[t]||Sb(t),eo[t](e)):e.localeData().invalidDate()}function $d(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(el.lastIndex=0;n>=0&&el.test(e);)e=e.replace(el,r),el.lastIndex=0,n-=1;return e}var Ob={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Mb(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Fa).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Db="Invalid date";function Rb(){return this._invalidDate}var Tb="%d",Cb=/\d{1,2}/;function Nb(e){return this._ordinal.replace("%d",e)}var $b={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Pb(e,t,n,r){var i=this._relativeTime[n];return on(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Ib(e,t){var n=this._relativeTime[e>0?"future":"past"];return on(n)?n(t):n.replace(/%s/i,t)}var Du={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Tt(e){return typeof e=="string"?Du[e]||Du[e.toLowerCase()]:void 0}function Ya(e){var t={},n,r;for(r in e)Ee(e,r)&&(n=Tt(r),n&&(t[n]=e[r]));return t}var zb={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Ab(e){var t=[],n;for(n in e)Ee(e,n)&&t.push({unit:n,priority:zb[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Pd=/\d/,Et=/\d\d/,Id=/\d{3}/,ja=/\d{4}/,gs=/[+-]?\d{6}/,$e=/\d\d?/,zd=/\d\d\d\d?/,Ad=/\d\d\d\d\d\d?/,vs=/\d{1,3}/,Wa=/\d{1,4}/,ys=/[+-]?\d{1,6}/,Br=/\d+/,_s=/[+-]?\d+/,Lb=/Z|[+-]\d\d:?\d\d/gi,bs=/Z|[+-]\d\d(?::?\d\d)?/gi,Fb=/[+-]?\d+(\.\d{1,3})?/,Fi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Gr=/^[1-9]\d?/,Va=/^([1-9]\d|\d)/,Ll;Ll={};function ee(e,t,n){Ll[e]=on(t)?t:function(r,i){return r&&n?n:t}}function Yb(e,t){return Ee(Ll,e)?Ll[e](t._strict,t._locale):new RegExp(jb(e))}function jb(e){return kn(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,l){return n||r||i||l}))}function kn(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Mt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ye(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Mt(t)),n}var qo={};function Me(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Mn(t)&&(r=function(l,s){s[t]=ye(l)}),i=e.length,n=0;n<i;n++)qo[e[n]]=r}function Yi(e,t){Me(e,function(n,r,i,l){i._w=i._w||{},t(n,i._w,i,l)})}function Wb(e,t,n){t!=null&&Ee(qo,e)&&qo[e](t,n._a,n,e)}function ws(e){return e%4===0&&e%100!==0||e%400===0}var tt=0,bn=1,Qt=2,je=3,At=4,wn=5,ur=6,Vb=7,Hb=8;ie("Y",0,0,function(){var e=this.year();return e<=9999?nn(e,4):"+"+e});ie(0,["YY",2],0,function(){return this.year()%100});ie(0,["YYYY",4],0,"year");ie(0,["YYYYY",5],0,"year");ie(0,["YYYYYY",6,!0],0,"year");ee("Y",_s);ee("YY",$e,Et);ee("YYYY",Wa,ja);ee("YYYYY",ys,gs);ee("YYYYYY",ys,gs);Me(["YYYYY","YYYYYY"],tt);Me("YYYY",function(e,t){t[tt]=e.length===2?j.parseTwoDigitYear(e):ye(e)});Me("YY",function(e,t){t[tt]=j.parseTwoDigitYear(e)});Me("Y",function(e,t){t[tt]=parseInt(e,10)});function hi(e){return ws(e)?366:365}j.parseTwoDigitYear=function(e){return ye(e)+(ye(e)>68?1900:2e3)};var Ld=Kr("FullYear",!0);function qb(){return ws(this.year())}function Kr(e,t){return function(n){return n!=null?(Fd(this,e,n),j.updateOffset(this,t),this):Si(this,e)}}function Si(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Fd(e,t,n){var r,i,l,s,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}l=n,s=e.month(),a=e.date(),a=a===29&&s===1&&!ws(l)?28:a,i?r.setUTCFullYear(l,s,a):r.setFullYear(l,s,a)}}function Ub(e){return e=Tt(e),on(this[e])?this[e]():this}function Bb(e,t){if(typeof e=="object"){e=Ya(e);var n=Ab(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Tt(e),on(this[e]))return this[e](t);return this}function Gb(e,t){return(e%t+t)%t}var Le;Array.prototype.indexOf?Le=Array.prototype.indexOf:Le=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Ha(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Gb(t,12);return e+=(t-n)/12,n===1?ws(e)?29:28:31-n%7%2}ie("M",["MM",2],"Mo",function(){return this.month()+1});ie("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});ie("MMMM",0,0,function(e){return this.localeData().months(this,e)});ee("M",$e,Gr);ee("MM",$e,Et);ee("MMM",function(e,t){return t.monthsShortRegex(e)});ee("MMMM",function(e,t){return t.monthsRegex(e)});Me(["M","MM"],function(e,t){t[bn]=ye(e)-1});Me(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[bn]=i:me(n).invalidMonth=e});var Kb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Yd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),jd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Zb=Fi,Xb=Fi;function Qb(e,t){return e?Yt(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||jd).test(t)?"format":"standalone"][e.month()]:Yt(this._months)?this._months:this._months.standalone}function Jb(e,t){return e?Yt(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[jd.test(t)?"format":"standalone"][e.month()]:Yt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ew(e,t,n){var r,i,l,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)l=sn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(l,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(l,"").toLocaleLowerCase();return n?t==="MMM"?(i=Le.call(this._shortMonthsParse,s),i!==-1?i:null):(i=Le.call(this._longMonthsParse,s),i!==-1?i:null):t==="MMM"?(i=Le.call(this._shortMonthsParse,s),i!==-1?i:(i=Le.call(this._longMonthsParse,s),i!==-1?i:null)):(i=Le.call(this._longMonthsParse,s),i!==-1?i:(i=Le.call(this._shortMonthsParse,s),i!==-1?i:null))}function tw(e,t,n){var r,i,l;if(this._monthsParseExact)return ew.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=sn([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(l="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(l.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Wd(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ye(t);else if(t=e.localeData().monthsParse(t),!Mn(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,Ha(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Vd(e){return e!=null?(Wd(this,e),j.updateOffset(this,!0),this):Si(this,"Month")}function nw(){return Ha(this.year(),this.month())}function rw(e){return this._monthsParseExact?(Ee(this,"_monthsRegex")||Hd.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ee(this,"_monthsShortRegex")||(this._monthsShortRegex=Zb),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function iw(e){return this._monthsParseExact?(Ee(this,"_monthsRegex")||Hd.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ee(this,"_monthsRegex")||(this._monthsRegex=Xb),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Hd(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],i,l,s,a;for(i=0;i<12;i++)l=sn([2e3,i]),s=kn(this.monthsShort(l,"")),a=kn(this.months(l,"")),t.push(s),n.push(a),r.push(a),r.push(s);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function lw(e,t,n,r,i,l,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,i,l,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,l,s),a}function Oi(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fl(e,t,n){var r=7+t-n,i=(7+Oi(e,0,r).getUTCDay()-t)%7;return-i+r-1}function qd(e,t,n,r,i){var l=(7+n-r)%7,s=Fl(e,r,i),a=1+7*(t-1)+l+s,c,u;return a<=0?(c=e-1,u=hi(c)+a):a>hi(e)?(c=e+1,u=a-hi(e)):(c=e,u=a),{year:c,dayOfYear:u}}function Mi(e,t,n){var r=Fl(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,l,s;return i<1?(s=e.year()-1,l=i+Sn(s,t,n)):i>Sn(e.year(),t,n)?(l=i-Sn(e.year(),t,n),s=e.year()+1):(s=e.year(),l=i),{week:l,year:s}}function Sn(e,t,n){var r=Fl(e,t,n),i=Fl(e+1,t,n);return(hi(e)-r+i)/7}ie("w",["ww",2],"wo","week");ie("W",["WW",2],"Wo","isoWeek");ee("w",$e,Gr);ee("ww",$e,Et);ee("W",$e,Gr);ee("WW",$e,Et);Yi(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ye(e)});function sw(e){return Mi(e,this._week.dow,this._week.doy).week}var ow={dow:0,doy:6};function aw(){return this._week.dow}function cw(){return this._week.doy}function uw(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function fw(e){var t=Mi(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ie("d",0,"do","day");ie("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ie("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ie("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ie("e",0,0,"weekday");ie("E",0,0,"isoWeekday");ee("d",$e);ee("e",$e);ee("E",$e);ee("dd",function(e,t){return t.weekdaysMinRegex(e)});ee("ddd",function(e,t){return t.weekdaysShortRegex(e)});ee("dddd",function(e,t){return t.weekdaysRegex(e)});Yi(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:me(n).invalidWeekday=e});Yi(["d","e","E"],function(e,t,n,r){t[r]=ye(e)});function dw(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function mw(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function qa(e,t){return e.slice(t,7).concat(e.slice(0,t))}var hw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ud="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),pw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),gw=Fi,vw=Fi,yw=Fi;function _w(e,t){var n=Yt(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?qa(n,this._week.dow):e?n[e.day()]:n}function bw(e){return e===!0?qa(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ww(e){return e===!0?qa(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function xw(e,t,n){var r,i,l,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)l=sn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(l,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(l,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(l,"").toLocaleLowerCase();return n?t==="dddd"?(i=Le.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Le.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Le.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Le.call(this._weekdaysParse,s),i!==-1||(i=Le.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Le.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Le.call(this._shortWeekdaysParse,s),i!==-1||(i=Le.call(this._weekdaysParse,s),i!==-1)?i:(i=Le.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Le.call(this._minWeekdaysParse,s),i!==-1||(i=Le.call(this._weekdaysParse,s),i!==-1)?i:(i=Le.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Ew(e,t,n){var r,i,l;if(this._weekdaysParseExact)return xw.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=sn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(l="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(l.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function kw(e){if(!this.isValid())return e!=null?this:NaN;var t=Si(this,"Day");return e!=null?(e=dw(e,this.localeData()),this.add(e-t,"d")):t}function Sw(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Ow(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=mw(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Mw(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||Ua.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ee(this,"_weekdaysRegex")||(this._weekdaysRegex=gw),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Dw(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||Ua.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ee(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vw),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Rw(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||Ua.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ee(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=yw),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ua(){function e(f,m){return m.length-f.length}var t=[],n=[],r=[],i=[],l,s,a,c,u;for(l=0;l<7;l++)s=sn([2e3,1]).day(l),a=kn(this.weekdaysMin(s,"")),c=kn(this.weekdaysShort(s,"")),u=kn(this.weekdays(s,"")),t.push(a),n.push(c),r.push(u),i.push(a),i.push(c),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ba(){return this.hours()%12||12}function Tw(){return this.hours()||24}ie("H",["HH",2],0,"hour");ie("h",["hh",2],0,Ba);ie("k",["kk",2],0,Tw);ie("hmm",0,0,function(){return""+Ba.apply(this)+nn(this.minutes(),2)});ie("hmmss",0,0,function(){return""+Ba.apply(this)+nn(this.minutes(),2)+nn(this.seconds(),2)});ie("Hmm",0,0,function(){return""+this.hours()+nn(this.minutes(),2)});ie("Hmmss",0,0,function(){return""+this.hours()+nn(this.minutes(),2)+nn(this.seconds(),2)});function Bd(e,t){ie(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Bd("a",!0);Bd("A",!1);function Gd(e,t){return t._meridiemParse}ee("a",Gd);ee("A",Gd);ee("H",$e,Va);ee("h",$e,Gr);ee("k",$e,Gr);ee("HH",$e,Et);ee("hh",$e,Et);ee("kk",$e,Et);ee("hmm",zd);ee("hmmss",Ad);ee("Hmm",zd);ee("Hmmss",Ad);Me(["H","HH"],je);Me(["k","kk"],function(e,t,n){var r=ye(e);t[je]=r===24?0:r});Me(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Me(["h","hh"],function(e,t,n){t[je]=ye(e),me(n).bigHour=!0});Me("hmm",function(e,t,n){var r=e.length-2;t[je]=ye(e.substr(0,r)),t[At]=ye(e.substr(r)),me(n).bigHour=!0});Me("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[je]=ye(e.substr(0,r)),t[At]=ye(e.substr(r,2)),t[wn]=ye(e.substr(i)),me(n).bigHour=!0});Me("Hmm",function(e,t,n){var r=e.length-2;t[je]=ye(e.substr(0,r)),t[At]=ye(e.substr(r))});Me("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[je]=ye(e.substr(0,r)),t[At]=ye(e.substr(r,2)),t[wn]=ye(e.substr(i))});function Cw(e){return(e+"").toLowerCase().charAt(0)==="p"}var Nw=/[ap]\.?m?\.?/i,$w=Kr("Hours",!0);function Pw(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Kd={calendar:xb,longDateFormat:Ob,invalidDate:Db,ordinal:Tb,dayOfMonthOrdinalParse:Cb,relativeTime:$b,months:Kb,monthsShort:Yd,week:ow,weekdays:hw,weekdaysMin:pw,weekdaysShort:Ud,meridiemParse:Nw},Pe={},ei={},Di;function Iw(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Ru(e){return e&&e.toLowerCase().replace("_","-")}function zw(e){for(var t=0,n,r,i,l;t<e.length;){for(l=Ru(e[t]).split("-"),n=l.length,r=Ru(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=xs(l.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&Iw(l,r)>=n-1)break;n--}t++}return Di}function Aw(e){return!!(e&&e.match("^[^/\\\\]*$"))}function xs(e){var t=null,n;if(Pe[e]===void 0&&typeof module<"u"&&module&&module.exports&&Aw(e))try{t=Di._abbr,n=require,n("./locale/"+e),qn(t)}catch{Pe[e]=null}return Pe[e]}function qn(e,t){var n;return e&&(st(t)?n=Dn(e):n=Ga(e,t),n?Di=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Di._abbr}function Ga(e,t){if(t!==null){var n,r=Kd;if(t.abbr=e,Pe[e]!=null)Nd("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Pe[e]._config;else if(t.parentLocale!=null)if(Pe[t.parentLocale]!=null)r=Pe[t.parentLocale]._config;else if(n=xs(t.parentLocale),n!=null)r=n._config;else return ei[t.parentLocale]||(ei[t.parentLocale]=[]),ei[t.parentLocale].push({name:e,config:t}),null;return Pe[e]=new La(Vo(r,t)),ei[e]&&ei[e].forEach(function(i){Ga(i.name,i.config)}),qn(e),Pe[e]}else return delete Pe[e],null}function Lw(e,t){if(t!=null){var n,r,i=Kd;Pe[e]!=null&&Pe[e].parentLocale!=null?Pe[e].set(Vo(Pe[e]._config,t)):(r=xs(e),r!=null&&(i=r._config),t=Vo(i,t),r==null&&(t.abbr=e),n=new La(t),n.parentLocale=Pe[e],Pe[e]=n),qn(e)}else Pe[e]!=null&&(Pe[e].parentLocale!=null?(Pe[e]=Pe[e].parentLocale,e===qn()&&qn(e)):Pe[e]!=null&&delete Pe[e]);return Pe[e]}function Dn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Di;if(!Yt(e)){if(t=xs(e),t)return t;e=[e]}return zw(e)}function Fw(){return Ho(Pe)}function Ka(e){var t,n=e._a;return n&&me(e).overflow===-2&&(t=n[bn]<0||n[bn]>11?bn:n[Qt]<1||n[Qt]>Ha(n[tt],n[bn])?Qt:n[je]<0||n[je]>24||n[je]===24&&(n[At]!==0||n[wn]!==0||n[ur]!==0)?je:n[At]<0||n[At]>59?At:n[wn]<0||n[wn]>59?wn:n[ur]<0||n[ur]>999?ur:-1,me(e)._overflowDayOfYear&&(t<tt||t>Qt)&&(t=Qt),me(e)._overflowWeeks&&t===-1&&(t=Vb),me(e)._overflowWeekday&&t===-1&&(t=Hb),me(e).overflow=t),e}var Yw=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jw=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ww=/Z|[+-]\d\d(?::?\d\d)?/,tl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],to=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Vw=/^\/?Date\((-?\d+)/i,Hw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,qw={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Zd(e){var t,n,r=e._i,i=Yw.exec(r)||jw.exec(r),l,s,a,c,u=tl.length,f=to.length;if(i){for(me(e).iso=!0,t=0,n=u;t<n;t++)if(tl[t][1].exec(i[1])){s=tl[t][0],l=tl[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(i[3]){for(t=0,n=f;t<n;t++)if(to[t][1].exec(i[3])){a=(i[2]||" ")+to[t][0];break}if(a==null){e._isValid=!1;return}}if(!l&&a!=null){e._isValid=!1;return}if(i[4])if(Ww.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=s+(a||"")+(c||""),Xa(e)}else e._isValid=!1}function Uw(e,t,n,r,i,l){var s=[Bw(e),Yd.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return l&&s.push(parseInt(l,10)),s}function Bw(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Gw(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Kw(e,t,n){if(e){var r=Ud.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return me(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Zw(e,t,n){if(e)return qw[e];if(t)return 0;var r=parseInt(n,10),i=r%100,l=(r-i)/100;return l*60+i}function Xd(e){var t=Hw.exec(Gw(e._i)),n;if(t){if(n=Uw(t[4],t[3],t[2],t[5],t[6],t[7]),!Kw(t[1],n,e))return;e._a=n,e._tzm=Zw(t[8],t[9],t[10]),e._d=Oi.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),me(e).rfc2822=!0}else e._isValid=!1}function Xw(e){var t=Vw.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Zd(e),e._isValid===!1)delete e._isValid;else return;if(Xd(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:j.createFromInputFallback(e)}j.createFromInputFallback=Rt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function kr(e,t,n){return e??t??n}function Qw(e){var t=new Date(j.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Za(e){var t,n,r=[],i,l,s;if(!e._d){for(i=Qw(e),e._w&&e._a[Qt]==null&&e._a[bn]==null&&Jw(e),e._dayOfYear!=null&&(s=kr(e._a[tt],i[tt]),(e._dayOfYear>hi(s)||e._dayOfYear===0)&&(me(e)._overflowDayOfYear=!0),n=Oi(s,0,e._dayOfYear),e._a[bn]=n.getUTCMonth(),e._a[Qt]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[je]===24&&e._a[At]===0&&e._a[wn]===0&&e._a[ur]===0&&(e._nextDay=!0,e._a[je]=0),e._d=(e._useUTC?Oi:lw).apply(null,r),l=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[je]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==l&&(me(e).weekdayMismatch=!0)}}function Jw(e){var t,n,r,i,l,s,a,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(l=1,s=4,n=kr(t.GG,e._a[tt],Mi(Ne(),1,4).year),r=kr(t.W,1),i=kr(t.E,1),(i<1||i>7)&&(c=!0)):(l=e._locale._week.dow,s=e._locale._week.doy,u=Mi(Ne(),l,s),n=kr(t.gg,e._a[tt],u.year),r=kr(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+l,(t.e<0||t.e>6)&&(c=!0)):i=l),r<1||r>Sn(n,l,s)?me(e)._overflowWeeks=!0:c!=null?me(e)._overflowWeekday=!0:(a=qd(n,r,i,l,s),e._a[tt]=a.year,e._dayOfYear=a.dayOfYear)}j.ISO_8601=function(){};j.RFC_2822=function(){};function Xa(e){if(e._f===j.ISO_8601){Zd(e);return}if(e._f===j.RFC_2822){Xd(e);return}e._a=[],me(e).empty=!0;var t=""+e._i,n,r,i,l,s,a=t.length,c=0,u,f;for(i=$d(e._f,e._locale).match(Fa)||[],f=i.length,n=0;n<f;n++)l=i[n],r=(t.match(Yb(l,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&me(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),c+=r.length),zr[l]?(r?me(e).empty=!1:me(e).unusedTokens.push(l),Wb(l,r,e)):e._strict&&!r&&me(e).unusedTokens.push(l);me(e).charsLeftOver=a-c,t.length>0&&me(e).unusedInput.push(t),e._a[je]<=12&&me(e).bigHour===!0&&e._a[je]>0&&(me(e).bigHour=void 0),me(e).parsedDateParts=e._a.slice(0),me(e).meridiem=e._meridiem,e._a[je]=e0(e._locale,e._a[je],e._meridiem),u=me(e).era,u!==null&&(e._a[tt]=e._locale.erasConvertYear(u,e._a[tt])),Za(e),Ka(e)}function e0(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function t0(e){var t,n,r,i,l,s,a=!1,c=e._f.length;if(c===0){me(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)l=0,s=!1,t=Aa({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],Xa(t),za(t)&&(s=!0),l+=me(t).charsLeftOver,l+=me(t).unusedTokens.length*10,me(t).score=l,a?l<r&&(r=l,n=t):(r==null||l<r||s)&&(r=l,n=t,s&&(a=!0));jn(e,n||t)}function n0(e){if(!e._d){var t=Ya(e._i),n=t.day===void 0?t.date:t.day;e._a=Td([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Za(e)}}function r0(e){var t=new Li(Ka(Qd(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Qd(e){var t=e._i,n=e._f;return e._locale=e._locale||Dn(e._l),t===null||n===void 0&&t===""?ps({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),jt(t)?new Li(Ka(t)):(Ai(t)?e._d=t:Yt(n)?t0(e):n?Xa(e):i0(e),za(e)||(e._d=null),e))}function i0(e){var t=e._i;st(t)?e._d=new Date(j.now()):Ai(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Xw(e):Yt(t)?(e._a=Td(t.slice(0),function(n){return parseInt(n,10)}),Za(e)):mr(t)?n0(e):Mn(t)?e._d=new Date(t):j.createFromInputFallback(e)}function Jd(e,t,n,r,i){var l={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(mr(e)&&Ia(e)||Yt(e)&&e.length===0)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,r0(l)}function Ne(e,t,n,r){return Jd(e,t,n,r,!1)}var l0=Rt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ne.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ps()}),s0=Rt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ne.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ps()});function em(e,t){var n,r;if(t.length===1&&Yt(t[0])&&(t=t[0]),!t.length)return Ne();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function o0(){var e=[].slice.call(arguments,0);return em("isBefore",e)}function a0(){var e=[].slice.call(arguments,0);return em("isAfter",e)}var c0=function(){return Date.now?Date.now():+new Date},ti=["year","quarter","month","week","day","hour","minute","second","millisecond"];function u0(e){var t,n=!1,r,i=ti.length;for(t in e)if(Ee(e,t)&&!(Le.call(ti,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[ti[r]]){if(n)return!1;parseFloat(e[ti[r]])!==ye(e[ti[r]])&&(n=!0)}return!0}function f0(){return this._isValid}function d0(){return Vt(NaN)}function Es(e){var t=Ya(e),n=t.year||0,r=t.quarter||0,i=t.month||0,l=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,c=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=u0(t),this._milliseconds=+f+u*1e3+c*6e4+a*1e3*60*60,this._days=+s+l*7,this._months=+i+r*3+n*12,this._data={},this._locale=Dn(),this._bubble()}function hl(e){return e instanceof Es}function Uo(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function m0(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),l=0,s;for(s=0;s<r;s++)ye(e[s])!==ye(t[s])&&l++;return l+i}function tm(e,t){ie(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+nn(~~(n/60),2)+t+nn(~~n%60,2)})}tm("Z",":");tm("ZZ","");ee("Z",bs);ee("ZZ",bs);Me(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Qa(bs,e)});var h0=/([\+\-]|\d\d)/gi;function Qa(e,t){var n=(t||"").match(e),r,i,l;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(h0)||["-",0,0],l=+(i[1]*60)+ye(i[2]),l===0?0:i[0]==="+"?l:-l)}function Ja(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(jt(e)||Ai(e)?e.valueOf():Ne(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),j.updateOffset(n,!1),n):Ne(e).local()}function Bo(e){return-Math.round(e._d.getTimezoneOffset())}j.updateOffset=function(){};function p0(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Qa(bs,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Bo(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?im(this,Vt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,j.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Bo(this)}function g0(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function v0(e){return this.utcOffset(0,e)}function y0(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Bo(this),"m")),this}function _0(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Qa(Lb,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function b0(e){return this.isValid()?(e=e?Ne(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function w0(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function x0(){if(!st(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Aa(e,this),e=Qd(e),e._a?(t=e._isUTC?sn(e._a):Ne(e._a),this._isDSTShifted=this.isValid()&&m0(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function E0(){return this.isValid()?!this._isUTC:!1}function k0(){return this.isValid()?this._isUTC:!1}function nm(){return this.isValid()?this._isUTC&&this._offset===0:!1}var S0=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,O0=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vt(e,t){var n=e,r=null,i,l,s;return hl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Mn(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=S0.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:ye(r[Qt])*i,h:ye(r[je])*i,m:ye(r[At])*i,s:ye(r[wn])*i,ms:ye(Uo(r[ur]*1e3))*i}):(r=O0.exec(e))?(i=r[1]==="-"?-1:1,n={y:rr(r[2],i),M:rr(r[3],i),w:rr(r[4],i),d:rr(r[5],i),h:rr(r[6],i),m:rr(r[7],i),s:rr(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=M0(Ne(n.from),Ne(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),l=new Es(n),hl(e)&&Ee(e,"_locale")&&(l._locale=e._locale),hl(e)&&Ee(e,"_isValid")&&(l._isValid=e._isValid),l}Vt.fn=Es.prototype;Vt.invalid=d0;function rr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Tu(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function M0(e,t){var n;return e.isValid()&&t.isValid()?(t=Ja(t,e),e.isBefore(t)?n=Tu(e,t):(n=Tu(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function rm(e,t){return function(n,r){var i,l;return r!==null&&!isNaN(+r)&&(Nd(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),l=n,n=r,r=l),i=Vt(n,r),im(this,i,e),this}}function im(e,t,n,r){var i=t._milliseconds,l=Uo(t._days),s=Uo(t._months);e.isValid()&&(r=r??!0,s&&Wd(e,Si(e,"Month")+s*n),l&&Fd(e,"Date",Si(e,"Date")+l*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&j.updateOffset(e,l||s))}var D0=rm(1,"add"),R0=rm(-1,"subtract");function lm(e){return typeof e=="string"||e instanceof String}function T0(e){return jt(e)||Ai(e)||lm(e)||Mn(e)||N0(e)||C0(e)||e===null||e===void 0}function C0(e){var t=mr(e)&&!Ia(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,l,s=r.length;for(i=0;i<s;i+=1)l=r[i],n=n||Ee(e,l);return t&&n}function N0(e){var t=Yt(e),n=!1;return t&&(n=e.filter(function(r){return!Mn(r)&&lm(e)}).length===0),t&&n}function $0(e){var t=mr(e)&&!Ia(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,l;for(i=0;i<r.length;i+=1)l=r[i],n=n||Ee(e,l);return t&&n}function P0(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function I0(e,t){arguments.length===1&&(arguments[0]?T0(arguments[0])?(e=arguments[0],t=void 0):$0(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ne(),r=Ja(n,this).startOf("day"),i=j.calendarFormat(this,r)||"sameElse",l=t&&(on(t[i])?t[i].call(this,n):t[i]);return this.format(l||this.localeData().calendar(i,this,Ne(n)))}function z0(){return new Li(this)}function A0(e,t){var n=jt(e)?e:Ne(e);return this.isValid()&&n.isValid()?(t=Tt(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function L0(e,t){var n=jt(e)?e:Ne(e);return this.isValid()&&n.isValid()?(t=Tt(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function F0(e,t,n,r){var i=jt(e)?e:Ne(e),l=jt(t)?t:Ne(t);return this.isValid()&&i.isValid()&&l.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(l,n):!this.isAfter(l,n))):!1}function Y0(e,t){var n=jt(e)?e:Ne(e),r;return this.isValid()&&n.isValid()?(t=Tt(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function j0(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function W0(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function V0(e,t,n){var r,i,l;if(!this.isValid())return NaN;if(r=Ja(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Tt(t),t){case"year":l=pl(this,r)/12;break;case"month":l=pl(this,r);break;case"quarter":l=pl(this,r)/3;break;case"second":l=(this-r)/1e3;break;case"minute":l=(this-r)/6e4;break;case"hour":l=(this-r)/36e5;break;case"day":l=(this-r-i)/864e5;break;case"week":l=(this-r-i)/6048e5;break;default:l=this-r}return n?l:Mt(l)}function pl(e,t){if(e.date()<t.date())return-pl(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,l;return t-r<0?(i=e.clone().add(n-1,"months"),l=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),l=(t-r)/(i-r)),-(n+l)||0}j.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";j.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function H0(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function q0(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?ml(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):on(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ml(n,"Z")):ml(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function U0(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,l;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",l=t+'[")]',this.format(n+r+i+l)}function B0(e){e||(e=this.isUtc()?j.defaultFormatUtc:j.defaultFormat);var t=ml(this,e);return this.localeData().postformat(t)}function G0(e,t){return this.isValid()&&(jt(e)&&e.isValid()||Ne(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function K0(e){return this.from(Ne(),e)}function Z0(e,t){return this.isValid()&&(jt(e)&&e.isValid()||Ne(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function X0(e){return this.to(Ne(),e)}function sm(e){var t;return e===void 0?this._locale._abbr:(t=Dn(e),t!=null&&(this._locale=t),this)}var om=Rt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function am(){return this._locale}var Yl=1e3,Ar=60*Yl,jl=60*Ar,cm=(365*400+97)*24*jl;function Lr(e,t){return(e%t+t)%t}function um(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-cm:new Date(e,t,n).valueOf()}function fm(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-cm:Date.UTC(e,t,n)}function Q0(e){var t,n;if(e=Tt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?fm:um,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Lr(t+(this._isUTC?0:this.utcOffset()*Ar),jl);break;case"minute":t=this._d.valueOf(),t-=Lr(t,Ar);break;case"second":t=this._d.valueOf(),t-=Lr(t,Yl);break}return this._d.setTime(t),j.updateOffset(this,!0),this}function J0(e){var t,n;if(e=Tt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?fm:um,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=jl-Lr(t+(this._isUTC?0:this.utcOffset()*Ar),jl)-1;break;case"minute":t=this._d.valueOf(),t+=Ar-Lr(t,Ar)-1;break;case"second":t=this._d.valueOf(),t+=Yl-Lr(t,Yl)-1;break}return this._d.setTime(t),j.updateOffset(this,!0),this}function ex(){return this._d.valueOf()-(this._offset||0)*6e4}function tx(){return Math.floor(this.valueOf()/1e3)}function nx(){return new Date(this.valueOf())}function rx(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ix(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function lx(){return this.isValid()?this.toISOString():null}function sx(){return za(this)}function ox(){return jn({},me(this))}function ax(){return me(this).overflow}function cx(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ie("N",0,0,"eraAbbr");ie("NN",0,0,"eraAbbr");ie("NNN",0,0,"eraAbbr");ie("NNNN",0,0,"eraName");ie("NNNNN",0,0,"eraNarrow");ie("y",["y",1],"yo","eraYear");ie("y",["yy",2],0,"eraYear");ie("y",["yyy",3],0,"eraYear");ie("y",["yyyy",4],0,"eraYear");ee("N",ec);ee("NN",ec);ee("NNN",ec);ee("NNNN",bx);ee("NNNNN",wx);Me(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?me(n).era=i:me(n).invalidEra=e});ee("y",Br);ee("yy",Br);ee("yyy",Br);ee("yyyy",Br);ee("yo",xx);Me(["y","yy","yyy","yyyy"],tt);Me(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[tt]=n._locale.eraYearOrdinalParse(e,i):t[tt]=parseInt(e,10)});function ux(e,t){var n,r,i,l=this._eras||Dn("en")._eras;for(n=0,r=l.length;n<r;++n){switch(typeof l[n].since){case"string":i=j(l[n].since).startOf("day"),l[n].since=i.valueOf();break}switch(typeof l[n].until){case"undefined":l[n].until=1/0;break;case"string":i=j(l[n].until).startOf("day").valueOf(),l[n].until=i.valueOf();break}}return l}function fx(e,t,n){var r,i,l=this.eras(),s,a,c;for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(s=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),c=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(s===e)return l[r];break;case"NNNNN":if(c===e)return l[r];break}else if([s,a,c].indexOf(e)>=0)return l[r]}function dx(e,t){var n=e.since<=e.until?1:-1;return t===void 0?j(e.since).year():j(e.since).year()+(t-e.offset)*n}function mx(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function hx(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function px(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function gx(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-j(i[e].since).year())*n+i[e].offset;return this.year()}function vx(e){return Ee(this,"_erasNameRegex")||tc.call(this),e?this._erasNameRegex:this._erasRegex}function yx(e){return Ee(this,"_erasAbbrRegex")||tc.call(this),e?this._erasAbbrRegex:this._erasRegex}function _x(e){return Ee(this,"_erasNarrowRegex")||tc.call(this),e?this._erasNarrowRegex:this._erasRegex}function ec(e,t){return t.erasAbbrRegex(e)}function bx(e,t){return t.erasNameRegex(e)}function wx(e,t){return t.erasNarrowRegex(e)}function xx(e,t){return t._eraYearOrdinalRegex||Br}function tc(){var e=[],t=[],n=[],r=[],i,l,s,a,c,u=this.eras();for(i=0,l=u.length;i<l;++i)s=kn(u[i].name),a=kn(u[i].abbr),c=kn(u[i].narrow),t.push(s),e.push(a),n.push(c),r.push(s),r.push(a),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ie(0,["gg",2],0,function(){return this.weekYear()%100});ie(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ks(e,t){ie(0,[e,e.length],0,t)}ks("gggg","weekYear");ks("ggggg","weekYear");ks("GGGG","isoWeekYear");ks("GGGGG","isoWeekYear");ee("G",_s);ee("g",_s);ee("GG",$e,Et);ee("gg",$e,Et);ee("GGGG",Wa,ja);ee("gggg",Wa,ja);ee("GGGGG",ys,gs);ee("ggggg",ys,gs);Yi(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=ye(e)});Yi(["gg","GG"],function(e,t,n,r){t[r]=j.parseTwoDigitYear(e)});function Ex(e){return dm.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function kx(e){return dm.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Sx(){return Sn(this.year(),1,4)}function Ox(){return Sn(this.isoWeekYear(),1,4)}function Mx(){var e=this.localeData()._week;return Sn(this.year(),e.dow,e.doy)}function Dx(){var e=this.localeData()._week;return Sn(this.weekYear(),e.dow,e.doy)}function dm(e,t,n,r,i){var l;return e==null?Mi(this,r,i).year:(l=Sn(e,r,i),t>l&&(t=l),Rx.call(this,e,t,n,r,i))}function Rx(e,t,n,r,i){var l=qd(e,t,n,r,i),s=Oi(l.year,0,l.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}ie("Q",0,"Qo","quarter");ee("Q",Pd);Me("Q",function(e,t){t[bn]=(ye(e)-1)*3});function Tx(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ie("D",["DD",2],"Do","date");ee("D",$e,Gr);ee("DD",$e,Et);ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Me(["D","DD"],Qt);Me("Do",function(e,t){t[Qt]=ye(e.match($e)[0])});var mm=Kr("Date",!0);ie("DDD",["DDDD",3],"DDDo","dayOfYear");ee("DDD",vs);ee("DDDD",Id);Me(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ye(e)});function Cx(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ie("m",["mm",2],0,"minute");ee("m",$e,Va);ee("mm",$e,Et);Me(["m","mm"],At);var Nx=Kr("Minutes",!1);ie("s",["ss",2],0,"second");ee("s",$e,Va);ee("ss",$e,Et);Me(["s","ss"],wn);var $x=Kr("Seconds",!1);ie("S",0,0,function(){return~~(this.millisecond()/100)});ie(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ie(0,["SSS",3],0,"millisecond");ie(0,["SSSS",4],0,function(){return this.millisecond()*10});ie(0,["SSSSS",5],0,function(){return this.millisecond()*100});ie(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ie(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ie(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ie(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ee("S",vs,Pd);ee("SS",vs,Et);ee("SSS",vs,Id);var Wn,hm;for(Wn="SSSS";Wn.length<=9;Wn+="S")ee(Wn,Br);function Px(e,t){t[ur]=ye(("0."+e)*1e3)}for(Wn="S";Wn.length<=9;Wn+="S")Me(Wn,Px);hm=Kr("Milliseconds",!1);ie("z",0,0,"zoneAbbr");ie("zz",0,0,"zoneName");function Ix(){return this._isUTC?"UTC":""}function zx(){return this._isUTC?"Coordinated Universal Time":""}var V=Li.prototype;V.add=D0;V.calendar=I0;V.clone=z0;V.diff=V0;V.endOf=J0;V.format=B0;V.from=G0;V.fromNow=K0;V.to=Z0;V.toNow=X0;V.get=Ub;V.invalidAt=ax;V.isAfter=A0;V.isBefore=L0;V.isBetween=F0;V.isSame=Y0;V.isSameOrAfter=j0;V.isSameOrBefore=W0;V.isValid=sx;V.lang=om;V.locale=sm;V.localeData=am;V.max=s0;V.min=l0;V.parsingFlags=ox;V.set=Bb;V.startOf=Q0;V.subtract=R0;V.toArray=rx;V.toObject=ix;V.toDate=nx;V.toISOString=q0;V.inspect=U0;typeof Symbol<"u"&&Symbol.for!=null&&(V[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});V.toJSON=lx;V.toString=H0;V.unix=tx;V.valueOf=ex;V.creationData=cx;V.eraName=mx;V.eraNarrow=hx;V.eraAbbr=px;V.eraYear=gx;V.year=Ld;V.isLeapYear=qb;V.weekYear=Ex;V.isoWeekYear=kx;V.quarter=V.quarters=Tx;V.month=Vd;V.daysInMonth=nw;V.week=V.weeks=uw;V.isoWeek=V.isoWeeks=fw;V.weeksInYear=Mx;V.weeksInWeekYear=Dx;V.isoWeeksInYear=Sx;V.isoWeeksInISOWeekYear=Ox;V.date=mm;V.day=V.days=kw;V.weekday=Sw;V.isoWeekday=Ow;V.dayOfYear=Cx;V.hour=V.hours=$w;V.minute=V.minutes=Nx;V.second=V.seconds=$x;V.millisecond=V.milliseconds=hm;V.utcOffset=p0;V.utc=v0;V.local=y0;V.parseZone=_0;V.hasAlignedHourOffset=b0;V.isDST=w0;V.isLocal=E0;V.isUtcOffset=k0;V.isUtc=nm;V.isUTC=nm;V.zoneAbbr=Ix;V.zoneName=zx;V.dates=Rt("dates accessor is deprecated. Use date instead.",mm);V.months=Rt("months accessor is deprecated. Use month instead",Vd);V.years=Rt("years accessor is deprecated. Use year instead",Ld);V.zone=Rt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",g0);V.isDSTShifted=Rt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",x0);function Ax(e){return Ne(e*1e3)}function Lx(){return Ne.apply(null,arguments).parseZone()}function pm(e){return e}var ke=La.prototype;ke.calendar=Eb;ke.longDateFormat=Mb;ke.invalidDate=Rb;ke.ordinal=Nb;ke.preparse=pm;ke.postformat=pm;ke.relativeTime=Pb;ke.pastFuture=Ib;ke.set=wb;ke.eras=ux;ke.erasParse=fx;ke.erasConvertYear=dx;ke.erasAbbrRegex=yx;ke.erasNameRegex=vx;ke.erasNarrowRegex=_x;ke.months=Qb;ke.monthsShort=Jb;ke.monthsParse=tw;ke.monthsRegex=iw;ke.monthsShortRegex=rw;ke.week=sw;ke.firstDayOfYear=cw;ke.firstDayOfWeek=aw;ke.weekdays=_w;ke.weekdaysMin=ww;ke.weekdaysShort=bw;ke.weekdaysParse=Ew;ke.weekdaysRegex=Mw;ke.weekdaysShortRegex=Dw;ke.weekdaysMinRegex=Rw;ke.isPM=Cw;ke.meridiem=Pw;function Wl(e,t,n,r){var i=Dn(),l=sn().set(r,t);return i[n](l,e)}function gm(e,t,n){if(Mn(e)&&(t=e,e=void 0),e=e||"",t!=null)return Wl(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Wl(e,r,n,"month");return i}function nc(e,t,n,r){typeof e=="boolean"?(Mn(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Mn(t)&&(n=t,t=void 0),t=t||"");var i=Dn(),l=e?i._week.dow:0,s,a=[];if(n!=null)return Wl(t,(n+l)%7,r,"day");for(s=0;s<7;s++)a[s]=Wl(t,(s+l)%7,r,"day");return a}function Fx(e,t){return gm(e,t,"months")}function Yx(e,t){return gm(e,t,"monthsShort")}function jx(e,t,n){return nc(e,t,n,"weekdays")}function Wx(e,t,n){return nc(e,t,n,"weekdaysShort")}function Vx(e,t,n){return nc(e,t,n,"weekdaysMin")}qn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ye(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});j.lang=Rt("moment.lang is deprecated. Use moment.locale instead.",qn);j.langData=Rt("moment.langData is deprecated. Use moment.localeData instead.",Dn);var dn=Math.abs;function Hx(){var e=this._data;return this._milliseconds=dn(this._milliseconds),this._days=dn(this._days),this._months=dn(this._months),e.milliseconds=dn(e.milliseconds),e.seconds=dn(e.seconds),e.minutes=dn(e.minutes),e.hours=dn(e.hours),e.months=dn(e.months),e.years=dn(e.years),this}function vm(e,t,n,r){var i=Vt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function qx(e,t){return vm(this,e,t,1)}function Ux(e,t){return vm(this,e,t,-1)}function Cu(e){return e<0?Math.floor(e):Math.ceil(e)}function Bx(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,l,s,a,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Cu(Go(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Mt(e/1e3),r.seconds=i%60,l=Mt(i/60),r.minutes=l%60,s=Mt(l/60),r.hours=s%24,t+=Mt(s/24),c=Mt(ym(t)),n+=c,t-=Cu(Go(c)),a=Mt(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function ym(e){return e*4800/146097}function Go(e){return e*146097/4800}function Gx(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Tt(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+ym(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Go(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Rn(e){return function(){return this.as(e)}}var _m=Rn("ms"),Kx=Rn("s"),Zx=Rn("m"),Xx=Rn("h"),Qx=Rn("d"),Jx=Rn("w"),eE=Rn("M"),tE=Rn("Q"),nE=Rn("y"),rE=_m;function iE(){return Vt(this)}function lE(e){return e=Tt(e),this.isValid()?this[e+"s"]():NaN}function gr(e){return function(){return this.isValid()?this._data[e]:NaN}}var sE=gr("milliseconds"),oE=gr("seconds"),aE=gr("minutes"),cE=gr("hours"),uE=gr("days"),fE=gr("months"),dE=gr("years");function mE(){return Mt(this.days()/7)}var gn=Math.round,Tr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function hE(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function pE(e,t,n,r){var i=Vt(e).abs(),l=gn(i.as("s")),s=gn(i.as("m")),a=gn(i.as("h")),c=gn(i.as("d")),u=gn(i.as("M")),f=gn(i.as("w")),m=gn(i.as("y")),d=l<=n.ss&&["s",l]||l<n.s&&["ss",l]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(d=d||f<=1&&["w"]||f<n.w&&["ww",f]),d=d||u<=1&&["M"]||u<n.M&&["MM",u]||m<=1&&["y"]||["yy",m],d[2]=t,d[3]=+e>0,d[4]=r,hE.apply(null,d)}function gE(e){return e===void 0?gn:typeof e=="function"?(gn=e,!0):!1}function vE(e,t){return Tr[e]===void 0?!1:t===void 0?Tr[e]:(Tr[e]=t,e==="s"&&(Tr.ss=t-1),!0)}function yE(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Tr,i,l;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Tr,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),l=pE(this,!n,r,i),n&&(l=i.pastFuture(+this,l)),i.postformat(l)}var no=Math.abs;function xr(e){return(e>0)-(e<0)||+e}function Ss(){if(!this.isValid())return this.localeData().invalidDate();var e=no(this._milliseconds)/1e3,t=no(this._days),n=no(this._months),r,i,l,s,a=this.asSeconds(),c,u,f,m;return a?(r=Mt(e/60),i=Mt(r/60),e%=60,r%=60,l=Mt(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=a<0?"-":"",u=xr(this._months)!==xr(a)?"-":"",f=xr(this._days)!==xr(a)?"-":"",m=xr(this._milliseconds)!==xr(a)?"-":"",c+"P"+(l?u+l+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(i||r||e?"T":"")+(i?m+i+"H":"")+(r?m+r+"M":"")+(e?m+s+"S":"")):"P0D"}var be=Es.prototype;be.isValid=f0;be.abs=Hx;be.add=qx;be.subtract=Ux;be.as=Gx;be.asMilliseconds=_m;be.asSeconds=Kx;be.asMinutes=Zx;be.asHours=Xx;be.asDays=Qx;be.asWeeks=Jx;be.asMonths=eE;be.asQuarters=tE;be.asYears=nE;be.valueOf=rE;be._bubble=Bx;be.clone=iE;be.get=lE;be.milliseconds=sE;be.seconds=oE;be.minutes=aE;be.hours=cE;be.days=uE;be.weeks=mE;be.months=fE;be.years=dE;be.humanize=yE;be.toISOString=Ss;be.toString=Ss;be.toJSON=Ss;be.locale=sm;be.localeData=am;be.toIsoString=Rt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ss);be.lang=om;ie("X",0,0,"unix");ie("x",0,0,"valueOf");ee("x",_s);ee("X",Fb);Me("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Me("x",function(e,t,n){n._d=new Date(ye(e))});//! moment.js
|
|
46
|
+
j.version="2.30.1";_b(Ne);j.fn=V;j.min=o0;j.max=a0;j.now=c0;j.utc=sn;j.unix=Ax;j.months=Fx;j.isDate=Ai;j.locale=qn;j.invalid=ps;j.duration=Vt;j.isMoment=jt;j.weekdays=jx;j.parseZone=Lx;j.localeData=Dn;j.isDuration=hl;j.monthsShort=Yx;j.weekdaysMin=Vx;j.defineLocale=Ga;j.updateLocale=Lw;j.locales=Fw;j.weekdaysShort=Wx;j.normalizeUnits=Tt;j.relativeTimeRounding=gE;j.relativeTimeThreshold=vE;j.calendarFormat=P0;j.prototype=V;j.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const _E="_wrapper_txfvj_1",bE="_container_txfvj_9",ni={wrapper:_E,container:bE,"is-active":"_is-active_txfvj_26","is-today":"_is-today_txfvj_31","is-weekday":"_is-weekday_txfvj_36"},wE=e=>{const t=o.useMemo(()=>se(ni.container,{[ni["is-active"]]:e.isActive,[ni["is-today"]]:e.isToday,[ni["is-weekday"]]:e.isWeekday}),[e.isActive,e.isToday,e.isWeekday]);return o.createElement("div",{className:ni.wrapper,onClick:e.onClick},o.createElement("div",{className:t},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.children))))},xE="_wrapper_1g3yd_1",EE="_container_1g3yd_9",Nu={wrapper:xE,container:EE},kE=e=>o.createElement("div",{className:Nu.wrapper},o.createElement("div",{className:Nu.container},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.children)))),SE="_wrapper_a7pqs_1",$u={wrapper:SE,"is-weekday":"_is-weekday_a7pqs_11"},OE=e=>{const t=o.useMemo(()=>se($u.wrapper,{[$u["is-weekday"]]:e.isWeekday}),[e.isWeekday]);return o.createElement("div",{className:t},o.createElement(ue,{size:"caption-m",weight:"medium"},o.createElement("p",null,e.children)))},ME="_wrapper_sin0c_1",DE="_content_sin0c_8",RE="_controls_sin0c_15",TE="_icon_sin0c_22",ri={wrapper:ME,content:DE,controls:RE,icon:TE},CE=e=>o.createElement("div",{className:ri.wrapper},o.createElement("div",{className:ri.content},o.createElement(ue,{size:"caption-l",weight:"semi-bold"},o.createElement("p",null,e.month," ",e.year))),o.createElement("div",{className:ri.controls},o.createElement("div",{className:ri.icon,onClick:()=>e.onPrevMonthClick()},o.createElement(xe,{icon:"arrow-left-s-line"})),o.createElement("div",{className:ri.icon,onClick:()=>e.onNextMonthClick()},o.createElement(xe,{icon:"arrow-right-s-line"})))),NE="_wrapper_kio6j_1",$E="_button_kio6j_7",ro={wrapper:NE,button:$E},PE=e=>o.createElement("div",{className:ro.wrapper},o.createElement("div",{className:ro.button},o.createElement(pi,{type:"button",style:"secondary",size:"sm",onClick:()=>e.onCancel()},"Отмена")),o.createElement("div",{className:ro.button},o.createElement(pi,{type:"button",style:"primary",size:"sm",onClick:()=>e.onApply()},"Применить"))),IE="_wrapper_o2q3k_1",zE="_fields_o2q3k_7",AE="_field_o2q3k_7",LE="_control_o2q3k_22",ii={wrapper:IE,fields:zE,field:AE,control:LE},FE=e=>{const[t,n]=o.useState(()=>j(e.value).format("DD.MM.YYYY")),[r,i]=o.useState(()=>j(e.value).format("HH:mm")),[l,s]=o.useState(!1),[a,c]=o.useState(!1);o.useEffect(()=>{n(j(e.value).format("DD.MM.YYYY")),i(j(e.value).format("HH:mm"))},[e.value]);const u=d=>{const h=d.target.value,p=h.match(/(0[1-9]|[1-2][0-9]|3[0-1])\.(0[1-9]|1[0-2])\.(\d{4})/);s(!p),n(h)},f=d=>{const h=d.target.value,p=h.match(/([0-1][0-9]|2[0-3]):([0-5][0-9])/);c(!p),i(h)},m=()=>{const d=t.match(/(0[1-9]|[1-2][0-9]|3[0-1])\.(0[1-9]|1[0-2])\.(\d{4})/),h=r.match(/([0-1][0-9]|2[0-3]):([0-5][0-9])/);if(!d||!h)return;const p=j().year(Number(d[3])).month(Number(d[2])-1).date(Number(d[1])).hour(Number(h[1])).minute(Number(h[2])).second(0).millisecond(0).format();e.onChange(p)};return o.createElement("div",{className:ii.wrapper},o.createElement("div",{className:ii.fields},o.createElement("div",{className:ii.field},o.createElement(or,null,o.createElement(or.Label,null,o.createElement(Lo,{label:"Дата"})),o.createElement(or.Content,null,o.createElement(Io,{size:"xs",mask:"__.__.____",replacement:{_:/\d/},value:t,target:l?"destructive":void 0,onChange:u})))),o.createElement("div",{className:ii.field},o.createElement(or,null,o.createElement(or.Label,null,o.createElement(Lo,{label:"Время"})),o.createElement(or.Content,null,o.createElement(Io,{size:"xs",mask:"__:__",replacement:{_:/\d/},value:r,target:a?"destructive":void 0,onChange:f}))))),o.createElement("div",{className:ii.control},o.createElement(PE,{onApply:()=>m(),onCancel:()=>{}})))},io=e=>Object.create({type:e.type,isToday:e.isToday,isWeekday:e.isWeekday,value:e.value}),YE=(e,t)=>{const n=new Date(e,t,1),r=new Date(e,t+1,0),i=n.getDay(),l=r.getDate(),s=[],a=new Date(e,t,0).getDate(),c=(i+6)%7;for(let h=c;h>0;h--){const p=j().year(e).month(t-1).date(a-h+1).hour(0).minute(0).second(0).millisecond(0),g=p.day()===0||p.day()===6,v=io({type:"prev-month",isToday:!1,isWeekday:g,value:p.format()});s.push(v)}const u=j();for(let h=1;h<=l;h++){const p=j().year(e).month(t).date(h).hour(0).minute(0).second(0).millisecond(0),g=u.year()===e&&u.month()===t&&u.date()===h,v=p.day()===0||p.day()===6,_=io({type:"current-month",isToday:g,isWeekday:v,value:p.format()});s.push(_)}const f=7,m=s.length,d=(f-m%f)%f;for(let h=1;h<=d;h++){const p=j().year(e).month(t+1).date(h).hour(0).minute(0).second(0).millisecond(0),g=p.day()===0||p.day()===6,v=io({type:"next-month",isToday:!1,isWeekday:g,value:p.format()});s.push(v)}return s},jE="_wrapper_1utnw_1",WE="_header_1utnw_9",VE="_weeks_1utnw_15",HE="_days_1utnw_22",qE="_control_1utnw_30",li={wrapper:jE,header:WE,weeks:VE,days:HE,control:qE},UE=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],BE=["П","В","С","Ч","П","Сб","Вс"],GE=e=>j(e).year(),KE=e=>j(e).month(),bm=e=>{const[t,n]=o.useState(!1),[r,i]=o.useState(!1),[l,s]=o.useState(()=>j(e.value||e.defaultValue||new Date).format(e.format));o.useEffect(()=>{r&&(e.onChange&&e.onChange(l),i(!1))},[r]),o.useEffect(()=>{t&&s(j(e.value||new Date).format(e.format))},[e.value]),o.useEffect(()=>{n(!0)},[]);const a=o.useMemo(()=>YE(GE(l),KE(l)),[l]),c=d=>{const h=d-1;h<0?s(j(l).subtract(1,"year").month(11).format(e.format)):s(j(l).month(h).format(e.format))},u=d=>{const h=d+1;h>11?s(j(l).add(1,"year").month(0).format(e.format)):s(j(l).month(h).format(e.format))},f=d=>{s(j(l).date(j(d).date()).format(e.format)),i(!0)},m=d=>{s(d),i(!0)};return o.createElement("div",{className:li.wrapper},o.createElement("div",{className:li.header},o.createElement(CE,{year:j(l).year(),month:UE[j(l).month()],onPrevMonthClick:()=>c(j(l).month()),onNextMonthClick:()=>u(j(l).month())})),o.createElement("div",{className:li.weeks},BE.map((d,h)=>o.createElement(OE,{key:h,isWeekday:h===5||h===6},d))),o.createElement("div",{className:li.days},a.map((d,h)=>d.type==="prev-month"||d.type==="next-month"?o.createElement(kE,{key:h},j(d.value).format("DD")):o.createElement(wE,{key:h,isActive:j(l).date()===j(d.value).date(),isToday:d.isToday,isWeekday:d.isWeekday,onClick:()=>f(d.value)},j(d.value).format("DD")))),o.createElement("div",{className:li.control},o.createElement(FE,{value:l,onChange:m})))},ZE="_wrapper_1ryvq_1",XE="_disabled_1ryvq_19",QE="_icon_1ryvq_32",JE="_value_1ryvq_40",e1="_outline_1ryvq_80",He={wrapper:ZE,"left-action":"_left-action_1ryvq_14",disabled:XE,"right-action":"_right-action_1ryvq_23",icon:QE,value:JE,"shape--pill":"_shape--pill_1ryvq_53","size--lg":"_size--lg_1ryvq_57","shape--rounded":"_shape--rounded_1ryvq_65","size--md":"_size--md_1ryvq_68",outline:e1},t1=({shape:e="rounded",size:t="lg",outline:n=!1,leftActionDisabled:r=!1,rightActionDisabled:i=!1,leftActionType:l="subtract",rightActionType:s="add",value:a=0,onLeftActionClick:c,onRightActionClick:u})=>{const f=o.useMemo(()=>se(He.wrapper,{[He["size--lg"]]:t==="lg",[He["size--md"]]:t==="md"},{[He["shape--pill"]]:e==="pill",[He["shape--rounded"]]:e==="rounded"},{[He.outline]:n}),[e,t,n]),m=o.useMemo(()=>se(He["left-action"],{[He.disabled]:r}),[r]),d=o.useMemo(()=>se(He["right-action"],{[He.disabled]:i}),[i]),h=()=>{r||c()},p=()=>{i||u()};return o.createElement("div",{className:f},o.createElement("div",{className:m,onClick:h},l==="add"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"add-line"})),l==="delete"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"delete-bin-line"})),l==="subtract"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"subtract-line"}))),o.createElement("div",{className:He.value},a),o.createElement("div",{className:d,onClick:p},s==="add"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"add-line"})),s==="delete"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"delete-bin-line"})),s==="subtract"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"subtract-line"}))))},n1="_wrapper_xatd6_1",r1="_label_xatd6_16",i1="_divider_xatd6_31",l1="_active_xatd6_58",Qe={wrapper:n1,"lead-icon":"_lead-icon_xatd6_8",label:r1,"tail-icon":"_tail-icon_xatd6_23",divider:i1,"size--sm":"_size--sm_xatd6_47","size--md":"_size--md_xatd6_52",active:l1},s1=({active:e=!1,size:t="sm",showDivider:n=!1,divider:r=">",...i})=>{const l=o.useMemo(()=>se(Qe["lead-icon"],{[Qe["size--sm"]]:t==="sm",[Qe["size--md"]]:t==="md"},{[Qe.active]:e}),[i.leadIcon,t,e]),s=o.useMemo(()=>se(Qe["tail-icon"],{[Qe["size--sm"]]:t==="sm",[Qe["size--md"]]:t==="md"},{[Qe.active]:e}),[i.leadIcon,t,e]),a=o.useMemo(()=>se(Qe.divider,{[Qe["size--sm"]]:t==="sm",[Qe["size--md"]]:t==="md"},{[Qe.active]:e}),[i.leadIcon,t,e]),c=o.useMemo(()=>se(Qe.label,{[Qe.active]:e}),[i.leadIcon,t,e]);return o.createElement("div",{className:Qe.wrapper},i.leadIcon&&o.createElement("div",{className:l},i.leadIcon),o.createElement("div",{className:Qe.label},t==="sm"&&o.createElement(ue,{size:"caption-m",weight:"semi-bold"},o.createElement("span",{className:c},i.label)),t==="md"&&o.createElement(ue,{size:"caption-l",weight:"semi-bold"},o.createElement("span",{className:c},i.label))),i.tailIcon&&o.createElement("div",{className:s},i.tailIcon),n&&o.createElement("div",{className:a},o.createElement(xe,{icon:"arrow-right-s-line"})))},o1="_wrapper_97p3o_1",a1="_aside_97p3o_14",c1="_icon_97p3o_20",u1="_content_97p3o_31",f1="_container_97p3o_38",d1="_title_97p3o_45",m1="_text_97p3o_50",h1="_close_97p3o_55",p1="_description_97p3o_72",g1="_control_97p3o_83",rt={wrapper:o1,aside:a1,icon:c1,content:u1,container:f1,title:d1,text:m1,close:h1,description:p1,control:g1,"style--info":"_style--info_97p3o_90","style--warning":"_style--warning_97p3o_93","style--success":"_style--success_97p3o_96","style--destructive":"_style--destructive_97p3o_99"},v1=({style:e="info",...t})=>{const n=o.useMemo(()=>se(rt.icon,{[rt["style--info"]]:e==="info",[rt["style--warning"]]:e==="warning",[rt["style--success"]]:e==="success",[rt["style--destructive"]]:e==="destructive"}),[e]),r=()=>{t.onClose&&t.onClose()};return o.createElement("div",{className:rt.wrapper},o.createElement("div",{className:rt.aside},o.createElement("div",{className:n},o.createElement(xe,{icon:"error-warning-fill"}))),o.createElement("div",{className:rt.content},o.createElement("div",{className:rt.container},o.createElement("div",{className:rt.title},o.createElement(ue,{size:"body-s",weight:"semi-bold"},o.createElement("p",{className:rt.text},t.title))),o.createElement("div",{className:rt.close,onClick:r},o.createElement(xe,{icon:"close-line"}))),t.description&&o.createElement("div",{className:rt.description},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:rt.text},t.description))),t.slot&&o.createElement("div",{className:rt.control},o.Children.map(t.slot,i=>o.isValidElement(i)?o.cloneElement(i):i))))},y1="_wrapper_p1kio_1",_1="_text_p1kio_10",Pu={wrapper:y1,text:_1},b1=e=>o.createElement("div",{className:Pu.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:Pu.text},e.title))),w1="_wrapper_4qihf_1",x1="_text_4qihf_9",E1="_disabled_4qihf_15",lo={wrapper:w1,text:x1,disabled:E1},Iu=e=>{const t=o.useMemo(()=>se(lo.wrapper,{[lo.disabled]:e.disabled}),[e.disabled]);return o.createElement("div",{className:t},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:lo.text},e.title)))},k1="_wrapper_7np8d_1",S1={wrapper:k1},O1=e=>o.createElement("div",{className:S1.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.title))),M1="_wrapper_ti5lg_1",D1="_focused_ti5lg_19",R1="_clearable_ti5lg_28",T1="_arrow_ti5lg_29",C1="_content_ti5lg_64",N1="_badge_ti5lg_72",$1="_destructive_ti5lg_100",P1="_disabled_ti5lg_115",ht={wrapper:M1,focused:D1,"lead-icon":"_lead-icon_ti5lg_26","tail-icon":"_tail-icon_ti5lg_27",clearable:R1,arrow:T1,content:C1,badge:N1,"size--medium":"_size--medium_ti5lg_86","size--extra-small":"_size--extra-small_ti5lg_89","fix-height":"_fix-height_ti5lg_93",destructive:$1,disabled:P1},rc=({children:e,fixHeight:t=!0,size:n="md",target:r,leadIcon:i,tailIcon:l,badge:s,isOpen:a,isFocused:c,isClearable:u,disabled:f,onClear:m})=>{const d=o.useMemo(()=>se(ht.wrapper,{[ht.focused]:c},{[ht["size--medium"]]:n==="md",[ht["size--extra-small"]]:n==="xs"},{[ht.disabled]:f},{[ht.destructive]:r==="destructive"},{[ht["fix-height"]]:t}),[c,n,r,f,t]),h=p=>{p.preventDefault(),p.stopPropagation(),m&&m()};return o.createElement("div",{className:d},i&&o.createElement("div",{className:ht["lead-icon"]},i),o.createElement("div",{className:ht.content},e),s&&o.createElement("div",{className:ht.badge},o.createElement(Ri,{size:"sm",color:"gray",label:s,disabled:f})),l&&o.createElement("div",{className:ht["tail-icon"]},l),u&&o.createElement("div",{className:ht.clearable,onClick:h},o.createElement(xe,{icon:"close-line"})),o.createElement("div",{className:ht.arrow},o.createElement(xe,{icon:a?"arrow-drop-up-line":"arrow-drop-down-line"})))},zu=(e,t,n)=>e.findIndex(r=>r[t]===n),I1=({value:e,placeholder:t,tabIndex:n,options:r,optionKey:i,optionValue:l,templateValue:s,templateOption:a,onBlur:c,onFocus:u,onChange:f,disabled:m,isClearable:d,...h})=>{const[p,g]=o.useState(!1),[v,_]=o.useState(!1),[w,b]=o.useState(!1),[y,O]=o.useState(e?zu(r,i,e)??null:null),[T,M]=o.useState(y!=null?r[y]:void 0);return o.useEffect(()=>{p&&O(e?zu(r,i,e)??null:null)},[e]),o.useEffect(()=>{p&&M(y!=null?r[y]:void 0)},[y]),o.useEffect(()=>{m||p&&(v?u&&u():c&&c())},[v]),o.useEffect(()=>{m||p&&f&&f(T?T[i]:void 0)},[T]),o.useEffect(()=>{m&&v&&_(!1)},[m]),o.useEffect(()=>{g(!0)},[]),o.createElement(Dt,{tabIndex:n,open:v,disabled:m,initialSelectedIndex:y,selectedIndex:y,setOpen:_,onSelect:O,onBlur:()=>b(!1),onFocus:()=>b(!0)},o.createElement(Dt.Reference,{reference:I=>o.createElement(rc,{...h,disabled:m,isFocused:w||v,isOpen:v,isClearable:y!==null&&d,onClear:()=>{m||(O(null),I.setSelectedIndex(null))}},T?s?s(T):o.createElement(Iu,{title:T[l],disabled:m}):o.createElement(O1,{title:t??"Select..."}))}),o.createElement(Dt.Options,{empty:o.createElement(b1,{title:"Нет данных"}),options:I=>r.map(($,R)=>o.createElement(Dt.Option,{key:$[i],index:R,onClick:()=>{I.setOpen(!1)},onChange:()=>{I.setOpen(!1)},option:()=>a?a($):o.createElement(Iu,{title:$[l]})}))}))},z1="_wrapper_4qihf_1",A1="_text_4qihf_9",L1="_disabled_4qihf_15",so={wrapper:z1,text:A1,disabled:L1},wm=e=>{const t=o.useMemo(()=>se(so.wrapper,{[so.disabled]:e.disabled}),[e.disabled]);return o.createElement("div",{className:t},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:so.text},e.title)))},F1="_wrapper_pkazc_1",Y1="_dots_pkazc_9",j1="_dot_pkazc_9",W1="_content_pkazc_30",nl={wrapper:F1,dots:Y1,dot:j1,content:W1},xm=e=>{let t=[];return t.push(o.createElement(Dt.Option,{index:e.index,onClick:e.onClick,onChange:e.onChange,option:()=>e.templateOption?e.templateOption(e.option):o.createElement("div",{className:nl.wrapper},e.deps>0&&o.createElement("div",{className:nl.dots},Array(e.deps).fill(null).map((n,r)=>o.createElement("div",{key:r,className:nl.dot}))),o.createElement("div",{className:nl.content},o.createElement(wm,{title:e.option[e.optionValue]})))})),e.option[e.accessor]&&(t=[...t,...e.option[e.accessor].map(n=>xm({...e,option:n,deps:e.deps+1}))]),o.Children.toArray(t)},V1=e=>o.Children.toArray(e.options.map(t=>xm({deps:0,index:e.index,option:t,accessor:e.accessor,optionKey:e.optionKey,optionValue:e.optionValue,templateOption:e.templateOption}))),H1="_wrapper_p1kio_1",q1="_text_p1kio_10",Au={wrapper:H1,text:q1},U1=e=>o.createElement("div",{className:Au.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:Au.text},e.title))),B1="_wrapper_7np8d_1",G1={wrapper:B1},K1=e=>o.createElement("div",{className:G1.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.title))),Ko=e=>{let t=[];return e.forEach(n=>{t.push(n),n.children&&n.children.length>0&&(t=[...t,...Ko(n.children)])}),t},Lu=(e,t,n)=>e.findIndex(r=>r[t]===n),Z1=({value:e,placeholder:t,tabIndex:n,options:r,accessor:i,optionKey:l,optionValue:s,templateValue:a,templateOption:c,onBlur:u,onFocus:f,onChange:m,disabled:d,isClearable:h,...p})=>{const[g,v]=o.useState(()=>Ko(r)),[_,w]=o.useState(!1),[b,y]=o.useState(!1),[O,T]=o.useState(!1),[M,I]=o.useState(e?Lu(g,l,e)??null:null),[$,R]=o.useState(M!=null?g[M]:void 0);return o.useEffect(()=>{v(Ko(r))},[r]),o.useEffect(()=>{_&&I(e?Lu(g,l,e)??null:null)},[e]),o.useEffect(()=>{_&&R(M!=null?g[M]:void 0)},[M]),o.useEffect(()=>{d||_&&(b?f&&f():u&&u())},[b]),o.useEffect(()=>{d||_&&m&&m($?$[l]:void 0)},[$]),o.useEffect(()=>{d&&b&&y(!1)},[d]),o.useEffect(()=>{w(!0)},[]),o.createElement(Dt,{tabIndex:n,open:b,disabled:d,initialSelectedIndex:M,selectedIndex:M,setOpen:y,onSelect:I,onBlur:()=>T(!1),onFocus:()=>T(!0)},o.createElement(Dt.Reference,{reference:P=>o.createElement(rc,{...p,disabled:d,isFocused:O||b,isOpen:b,isClearable:M!==null&&h,onClear:()=>{d||(I(null),P.setSelectedIndex(null))}},$?a?a($):o.createElement(wm,{title:$[s],disabled:d}):o.createElement(K1,{title:t??"Select..."}))}),o.createElement(Dt.Options,{empty:o.createElement(U1,{title:"Нет данных"}),options:P=>{const z=V1({index:0,accessor:i,options:r,optionKey:l,optionValue:s,templateOption:c});return o.Children.map(z,(Y,S)=>o.isValidElement(Y)?o.cloneElement(Y,{index:S,key:S,onClick:()=>{P.setOpen(!1)},onChange:()=>{P.setOpen(!1)}}):null)}}))},X1="_wrapper_4qihf_1",Q1="_text_4qihf_9",J1="_disabled_4qihf_15",oo={wrapper:X1,text:Q1,disabled:J1},ek=e=>{const t=o.useMemo(()=>se(oo.wrapper,{[oo.disabled]:e.disabled}),[e.disabled]);return o.createElement("div",{className:t},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:oo.text},e.title)))},tk="_wrapper_v5nak_1",nk="_text_v5nak_9",Fu={wrapper:tk,text:nk},rk=e=>o.createElement("div",{className:Fu.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:Fu.text},e.title))),ik="_calendar_o3kr1_1",lk={calendar:ik},sk=({value:e,defaultValue:t,placeholder:n,tabIndex:r,templateValue:i,templateOption:l,onBlur:s,onFocus:a,onChange:c,disabled:u,isClearable:f,format:m="YYYY-MM-DDTHH:mm:ss.sssZ",displayFormat:d="DD.MM.YYYY",...h})=>{const[p,g]=o.useState(!1),[v,_]=o.useState(!1),[w,b]=o.useState(()=>e||t);o.useMemo(()=>{p&&b(e)},[e]),o.useEffect(()=>{u||p&&(v?a&&a():s&&s())},[v]),o.useEffect(()=>{u||p&&c&&c(w)},[w]),o.useEffect(()=>{u&&v&&_(!1)},[u]),o.useEffect(()=>{g(!0)},[]);const y=O=>{u||(b(O),_(!1))};return o.createElement(ui,{open:v,setOpen:_,disabled:u},o.createElement(ui.Reference,{reference:()=>o.createElement(rc,{...h,leadIcon:o.createElement(xe,{icon:"calendar-line"}),disabled:u,isFocused:v,isClearable:!!w&&f,onClear:()=>{u||c&&c(void 0)}},w?o.createElement(ek,{disabled:u,title:j(w).format(d)}):o.createElement(rk,{title:n??"Select..."}))}),o.createElement(ui.Target,null,o.createElement("div",{className:lk.calendar},o.createElement(bm,{value:w,format:m,onChange:y}))))},ok="_wrapper_117v4_1",ak="_title_117v4_23",ck="_badge_117v4_33",uk="_active_117v4_64",pt={wrapper:ok,"lead-icon":"_lead-icon_117v4_12","tail-icon":"_tail-icon_117v4_13",title:ak,badge:ck,"shape--pill":"_shape--pill_117v4_40","shape--rounded":"_shape--rounded_117v4_43","size--lg":"_size--lg_117v4_47","size--md":"_size--md_117v4_50","size--sm":"_size--sm_117v4_53","style--primary":"_style--primary_117v4_57",active:uk,"style--secondary":"_style--secondary_117v4_72"},fk=({size:e="lg",style:t="primary",shape:n="rounded",...r})=>{const i=o.useMemo(()=>se(pt.wrapper,{[pt["size--lg"]]:e==="lg",[pt["size--md"]]:e==="md",[pt["size--sm"]]:e==="sm"},{[pt["style--primary"]]:t==="primary",[pt["style--secondary"]]:t==="secondary"},{[pt["shape--pill"]]:n==="pill",[pt["shape--rounded"]]:n==="rounded"},{[pt.active]:r.isActive}),[e,t,n,r.isActive]);return o.createElement("div",{className:i,role:"tab",onClick:()=>r.onClick&&r.onClick()},r.leadIcon&&o.createElement("div",{className:pt["lead-icon"]},r.leadIcon),o.createElement("div",{className:pt.title},o.createElement(ue,{size:e==="sm"?"caption-l":"body-s",weight:"semi-bold"},o.createElement("span",null,r.title))),r.badge&&o.createElement("div",{className:pt.badge},r.badge),r.tailIcon&&o.createElement("div",{className:pt["tail-icon"]},r.tailIcon))},dk="_wrapper_ajgt3_1",mk="_title_ajgt3_23",hk="_badge_ajgt3_32",pk="_active_ajgt3_55",Gt={wrapper:dk,"lead-icon":"_lead-icon_ajgt3_12","tail-icon":"_tail-icon_ajgt3_13",title:mk,badge:hk,"size--lg":"_size--lg_ajgt3_39","size--md":"_size--md_ajgt3_42","size--sm":"_size--sm_ajgt3_45","style--primary":"_style--primary_ajgt3_49",active:pk},gk=({size:e="lg",style:t="primary",...n})=>{const r=o.useMemo(()=>se(Gt.wrapper,{[Gt["size--lg"]]:e==="lg",[Gt["size--md"]]:e==="md",[Gt["size--sm"]]:e==="sm"},{[Gt["style--primary"]]:t==="primary"},{[Gt.active]:n.isActive}),[e,t,n.isActive]);return o.createElement("div",{className:r,role:"tab",onClick:()=>n.onClick&&n.onClick()},n.leadIcon&&o.createElement("div",{className:Gt["lead-icon"]},n.leadIcon),o.createElement("div",{className:Gt.title},o.createElement(ue,{size:e==="sm"?"caption-l":"body-s",weight:"semi-bold"},o.createElement("span",null,n.title))),n.badge&&o.createElement("div",{className:Gt.badge},n.badge),n.tailIcon&&o.createElement("div",{className:Gt["tail-icon"]},n.tailIcon))},vk="_wrapper_1ra1b_1",yk="_title_1ra1b_23",_k="_badge_1ra1b_33",bk="_active_1ra1b_64",Ot={wrapper:vk,"lead-icon":"_lead-icon_1ra1b_12","tail-icon":"_tail-icon_1ra1b_13",title:yk,badge:_k,"shape--pill":"_shape--pill_1ra1b_40","shape--rounded":"_shape--rounded_1ra1b_43","size--lg":"_size--lg_1ra1b_47","size--md":"_size--md_1ra1b_50","size--sm":"_size--sm_1ra1b_53","style--primary":"_style--primary_1ra1b_57",active:bk},wk=({size:e="lg",style:t="primary",shape:n="rounded",...r})=>{const i=o.useMemo(()=>se(Ot.wrapper,{[Ot["size--lg"]]:e==="lg",[Ot["size--md"]]:e==="md",[Ot["size--sm"]]:e==="sm"},{[Ot["style--primary"]]:t==="primary"},{[Ot["shape--pill"]]:n==="pill",[Ot["shape--rounded"]]:n==="rounded"},{[Ot.active]:r.isActive}),[e,t,n,r.isActive]);return o.createElement("div",{className:i,role:"tab",onClick:()=>r.onClick&&r.onClick()},r.leadIcon&&o.createElement("div",{className:Ot["lead-icon"]},r.leadIcon),o.createElement("div",{className:Ot.title},o.createElement(ue,{size:e==="sm"?"caption-l":"body-s",weight:"semi-bold"},o.createElement("span",null,r.title))),r.badge&&o.createElement("div",{className:Ot.badge},r.badge),r.tailIcon&&o.createElement("div",{className:Ot["tail-icon"]},r.tailIcon))},xk=({type:e,...t})=>e==="line"?o.createElement(gk,{...t,style:"primary",onClick:()=>t.onClick&&t.onClick(t.name)}):e==="segmented"?o.createElement(wk,{...t,style:"primary",onClick:()=>t.onClick&&t.onClick(t.name)}):o.createElement(fk,{...t,onClick:()=>t.onClick&&t.onClick(t.name)}),ic=o.createContext({}),Ek=ic.Provider,kk="_menu_hxvfo_1",Sk="_tab_hxvfo_7",Er={menu:kk,tab:Sk,"type--fill":"_type--fill_hxvfo_13","type--line":"_type--line_hxvfo_16","type--segmented":"_type--segmented_hxvfo_19","shape--pill":"_shape--pill_hxvfo_28"},Ok=e=>{const{type:t,size:n,shape:r="rounded",setActiveTabName:i,activeTabName:l}=o.useContext(ic),s=c=>{i&&i(c)},a=o.useMemo(()=>se(Er.menu,{[Er["type--fill"]]:t==="fill",[Er["type--line"]]:t==="line",[Er["type--segmented"]]:t==="segmented"},{[Er["shape--pill"]]:r==="pill"}),[t,r]);return o.createElement("div",{className:a},o.Children.map(e.children,c=>{if(o.isValidElement(c)){const u=c;return o.createElement("div",{className:Er.tab,onClick:()=>s(u.props.name)},o.cloneElement(u,{size:n,type:t,shape:r,style:t==="fill"?"secondary":"primary",isActive:l===u.props.name}))}return c}))},Mk=e=>{const{activeTabName:t}=o.useContext(ic);return console.log(123,t,e.name),t!==e.name?null:e.children},Dk=e=>{const[t,n]=o.useState(e.defaultTabName);return o.createElement(Ek,{value:{size:e.size??"lg",type:e.type??"fill",shape:e.shape??"rounded",activeTabName:t,setActiveTabName:r=>n(r),onClick(){}}},e.children)},Rk=Object.assign(Dk,{Menu:Object.assign(Ok,{Tab:xk}),Content:Mk}),Tk="_wrapper_1xlwq_1",Ck="_image_1xlwq_10",Nk="_content_1xlwq_19",mn={wrapper:Tk,image:Ck,content:Nk,"type--custom":"_type--custom_1xlwq_25","type--elevated":"_type--elevated_1xlwq_31","type--flat":"_type--flat_1xlwq_39","alignment--image-first":"_alignment--image-first_1xlwq_43","alignment--content-first":"_alignment--content-first_1xlwq_46","target--inverted":"_target--inverted_1xlwq_53"},$k=({type:e="custom",alignment:t="image-first",image:n,target:r,...i})=>{const l=o.useMemo(()=>se(mn.wrapper,{[mn["type--custom"]]:e==="custom",[mn["type--elevated"]]:e==="elevated",[mn["type--flat"]]:e==="flat"},{[mn["alignment--image-first"]]:t==="image-first",[mn["alignment--content-first"]]:t==="content-first"},{[mn["target--inverted"]]:r==="inverted"}),[e,t,r]);return o.createElement("div",{className:l},n&&e!=="custom"&&o.createElement("div",{className:mn.image},n),o.createElement("div",{className:mn.content},i.children))},Pk="_wrapper_mef9n_1",Ik={wrapper:Pk},zk=e=>o.createElement("div",{className:Ik.wrapper},e.children),Ak="_wrapper_7bb8i_1",Lk={wrapper:Ak},Fk=e=>o.Children.map(e.children,t=>{if(o.isValidElement(t)){const n=t;return o.cloneElement(n,{className:se(Lk.wrapper,n.props.className)})}return t}),Yk="_spin_1uson_1",jk={spin:Yk},Wk=()=>null,Vk=e=>o.Children.map(e.children,t=>{if(o.isValidElement(t)){const n=t;return o.cloneElement(n,{className:se(jk.spin,n.props.className)})}return t}),lc=Object.assign(Wk,{Spin:Vk}),Hk="_wrapper_12jcd_1",qk={wrapper:Hk},Uk=()=>o.createElement(lc.Spin,null,o.createElement("span",{className:qk.wrapper},o.createElement(xe,{icon:"loader-4-fill"}))),Bk="_wrapper_j7cta_1",Gk="_line_j7cta_8",Kk="_left_j7cta_16",Zk="_center_j7cta_24",Xk="_text_j7cta_32",it={wrapper:Bk,line:Gk,left:Kk,center:Zk,text:Xk},Em=e=>{switch(e.type){case"label-left":return o.createElement("div",{className:it.wrapper},o.createElement("div",{className:it.left},o.createElement(ue,{size:"caption-m",weight:"semi-bold"},o.createElement("span",{className:it.text},e.label))),o.createElement("div",{className:it.line}));case"label-center":return o.createElement("div",{className:it.wrapper},o.createElement("div",{className:it.line}),o.createElement("div",{className:it.center},o.createElement(ue,{size:"caption-m",weight:"semi-bold"},o.createElement("span",{className:it.text},e.label))),o.createElement("div",{className:it.line}));case"action-center":return o.createElement("div",{className:it.wrapper},o.createElement("div",{className:it.line}),o.createElement("div",{className:it.center},o.createElement(pi,{style:"secondary",size:"xs"},e.actionLabel)),o.createElement("div",{className:it.line}));default:return o.createElement("div",{className:it.wrapper},o.createElement("div",{className:it.line}))}},Qk="_wrapper_rcrvu_1",Jk="_active_rcrvu_15",eS="_content_rcrvu_37",tS="_caption_rcrvu_45",nS="_badge_rcrvu_52",rS="_spinner_rcrvu_59",Kt={wrapper:Qk,active:Jk,"lead-icon":"_lead-icon_rcrvu_20","tail-icon":"_tail-icon_rcrvu_21",content:eS,caption:tS,badge:nS,spinner:rS},iS=e=>{const t=o.useMemo(()=>se(Kt.wrapper,{[Kt.active]:e.isActive}),[e.isActive]);return o.createElement("div",{className:t},e.leadIcon&&o.createElement("div",{className:Kt["lead-icon"]},o.createElement(xe,{icon:e.leadIcon})),o.createElement("div",{className:Kt.content},o.createElement("div",{className:Kt.caption},o.createElement(ue,{size:"caption-l",weight:"semi-bold"},o.createElement("p",null,e.caption))),e.badge&&o.createElement("div",{className:Kt.badge},o.cloneElement(e.badge,{size:"xs",stroke:!0,color:"orange"}))),e.isPending?o.createElement(lc.Spin,null,o.createElement("div",{className:se(Kt["tail-icon"],Kt.spinner)},o.createElement(xe,{icon:"loader-4-line"}))):e.tailIcon&&o.createElement("div",{className:se(Kt["tail-icon"],Kt.spinner)},e.tailIcon))},lS="_wrapper_9s8z5_1",sS="_active_9s8z5_11",oS="_label_9s8z5_28",aS="_text_9s8z5_36",cS="_badge_9s8z5_42",ir={wrapper:lS,active:sS,"lead-icon":"_lead-icon_9s8z5_15",label:oS,text:aS,badge:cS},Zo=e=>{const t=o.useMemo(()=>se(ir.wrapper,{[ir.active]:e.active}),[e.active]);return o.createElement("div",{className:t},e.leadIcon&&o.createElement("div",{className:ir["lead-icon"]},e.leadIcon),o.createElement("div",{className:ir.label},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:ir.text},e.label))),e.badge&&o.createElement("div",{className:ir.badge},o.createElement(Ri,{color:"gray",label:e.badge,size:"xs"})),e.toggle!==void 0&&o.createElement("div",{className:ir.badge},o.createElement(Od,{size:"sm",checked:e.toggle})))},uS="_wrapper_thc1p_1",fS="_content_thc1p_8",dS="_text_thc1p_13",mS="_badge_thc1p_20",rl={wrapper:uS,content:fS,text:dS,badge:mS},hS=e=>o.createElement("div",{className:rl.wrapper},o.createElement("div",{className:rl.content},o.createElement(ue,{size:"caption-l",weight:"semi-bold"},o.createElement("p",{className:rl.text},e.children))),e.badge&&o.createElement("div",{className:rl.badge},o.createElement(Ri,{size:"xs",color:"purple",label:e.badge}))),pS="_wrapper_1lgs6_1",gS="_avatar_1lgs6_9",vS="_content_1lgs6_16",yS="_name_1lgs6_25",_S="_caption_1lgs6_31",si={wrapper:pS,avatar:gS,content:vS,name:yS,caption:_S},bS=e=>o.createElement("div",{className:si.wrapper},o.createElement("div",{className:si.avatar},o.createElement(Sd,{size:"sm",color:"orange"})),o.createElement("div",{className:si.content},o.createElement("div",{className:si.name},o.createElement(hS,{badge:e.badge},e.name)),e.caption&&o.createElement("div",{className:si.caption},o.createElement(ue,{size:"caption-s",weight:"medium"},o.createElement("p",null,e.caption))))),wS="_wrapper_1srq9_1",xS="_top_1srq9_7",ES="_middle_1srq9_13",kS="_bottom_1srq9_19",SS="_block_1srq9_26",OS="_divider_1srq9_35",MS="_additional_1srq9_42",DS="_cell_1srq9_50",Tn={wrapper:wS,top:xS,middle:ES,bottom:kS,block:SS,divider:OS,additional:MS,cell:DS,"sub-cells":"_sub-cells_1srq9_57"},RS=e=>o.createElement("div",{className:Tn.wrapper},e.children),TS=e=>o.createElement("div",{className:Tn.top},e.children),CS=e=>o.createElement("div",{className:Tn.middle},e.children),NS=e=>o.createElement("div",{className:Tn.bottom},e.children),$S=e=>o.createElement("div",{className:Tn.cell},e.children),PS=e=>o.createElement("div",{className:Tn["sub-cells"]},e.children),IS=e=>o.createElement("div",{className:Tn.additional},o.createElement(ue,{size:"caption-m",weight:"semi-bold"},o.createElement("p",null,e.children))),zS=e=>o.createElement("div",{className:Tn.block},e.children),AS=()=>o.createElement("div",{className:Tn.divider},o.createElement(Em,null)),LS=Object.assign(RS,{Top:TS,Middle:CS,Bottom:NS,Divider:AS,Cell:$S,SubCells:PS,Additional:IS,Block:zS}),FS="_wrapper_1sc1f_1",YS="_overlay_1sc1f_14",jS="_close_1sc1f_23",sc={wrapper:FS,overlay:YS,close:jS};function WS({initialOpen:e=!1,open:t,onOpen:n,onClose:r}={}){const i=t??e,l=es({open:i,onOpenChange:()=>{r&&r()}}),s=l.context,a=fa(s,{enabled:t===null}),c=Jl(s,{outsidePressEvent:"mousedown"}),u=rs(s),f=ts([a,c,u]);return o.useEffect(()=>{n&&i&&n()},[i]),o.useMemo(()=>({open:i,onOpen:n,onClose:r,...f,...l}),[i,n,r,f,l])}const km=o.createContext(null),oc=()=>{const e=o.useContext(km);if(e==null)throw new Error("Dialog components must be wrapped in <Dialog />");return e},VS=({children:e,...t})=>{const n=WS(t);return o.createElement(km.Provider,{value:n},e)},HS=o.forwardRef(function(t,n){const{context:r,...i}=oc(),l=aa([i.refs.setFloating,n]);return r.open?o.createElement(Ql,null,o.createElement(tg,{className:sc.overlay,lockScroll:!0},o.createElement(ua,{context:r},o.createElement("div",{ref:l,...i.getFloatingProps(t)},t.children)))):null}),qS=o.forwardRef(function(t,n){const{onClose:r,context:{onOpenChange:i}}=oc(),l=()=>{i(!1),r&&r()};return o.createElement("div",{className:sc.close,...t,ref:n,onClick:l},o.createElement(xe,{icon:"close-line"}))}),US=e=>o.createElement(VS,{open:e.open,onOpen:e.onOpen,onClose:e.onClose},o.createElement(HS,{className:sc.wrapper},o.createElement(qS,null),e.children)),BS="_wrapper_1wvfc_1",GS={wrapper:BS},KS=e=>o.createElement("tr",{className:GS.wrapper},e.children),ZS={},ac=o.createContext(ZS),XS=ac.Provider,Os=o.createContext({}),QS=Os.Provider,JS="_wrapper_1amb6_1",eO={wrapper:JS},tO=e=>{const{tree:t}=o.useContext(ac),r=(t&&t.accessor?e.data[t.accessor]:[]).length>0;return o.createElement(QS,{value:{hasExpanded:r,deps:e.deps,data:e.data,expanded:e.expanded,setExpand:e.setExpand}},o.createElement("tr",{className:eO.wrapper},e.children))},nO="_wrapper_3ffw6_1",rO={wrapper:nO},iO=e=>o.createElement("div",{className:rO.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.children))),lO="_wrapper_1sqox_1",sO="_table_1sqox_10",oO="_head_1sqox_19",aO="_tbody_1sqox_23",cO="_caption_1sqox_27",cr={wrapper:lO,table:sO,head:oO,tbody:aO,caption:cO},Sm=e=>{const{tree:t}=o.useContext(ac),[n,r]=o.useState(()=>t?.defaultExpanded??!1);let i=[];const l=s=>{r(s)};return i.push(o.createElement(tO,{key:"row_"+e.index+"_"+e.deps,data:e.data,deps:e.deps,expanded:n,setExpand:l},o.Children.map(e.children,s=>{if(o.isValidElement(s)){const a=s;return o.cloneElement(a,{_data:e.data})}return o.createElement("td",{key:"row_"+e.index+"_"+e.deps,className:cr.th},"Error")}))),n&&e.tree&&e.data[e.tree.accessor].length&&(i=[...i,...e.data[e.tree.accessor].map((s,a)=>o.createElement(Sm,{key:"row_"+(a+1)*10+"_"+e.deps,data:s,deps:e.deps+1,tree:e.tree,index:a*10},e.children))]),i},uO=e=>o.createElement(XS,{value:{tree:e.tree}},o.createElement("div",{className:cr.wrapper},o.createElement("table",{className:cr.table},o.createElement("thead",{className:cr.head},o.createElement(KS,null,o.Children.map(e.children,(t,n)=>{if(o.isValidElement(t)){const r=t;return o.cloneElement(r,{_type:"title",key:"th_"+n})}return o.createElement("th",{key:"th_"+n,className:cr.th},"Error")}))),o.createElement("tbody",{className:cr.tbody},e.data.map((t,n)=>o.createElement(Sm,{key:"row_"+n,index:n,deps:0,tree:e.tree,data:t},e.children))),!e.data.length&&o.createElement("caption",{className:cr.caption},e.empty??o.createElement(iO,null,"Нет данных"))))),fO="_wrapper_1spur_1",dO="_cell_1spur_6",mO="_content_1spur_11",hO="_text_1spur_20",lr={wrapper:fO,cell:dO,content:mO,text:hO,"align--left":"_align--left_1spur_26","align--center":"_align--center_1spur_29","align--right":"_align--right_1spur_32"},Om=e=>{const t=o.useRef(null),[n,r]=o.useState(0),{width:i,align:l}=o.use(uc),s=o.useMemo(()=>se(lr.wrapper,{[lr["align--left"]]:l==="left",[lr["align--center"]]:l==="center",[lr["align--right"]]:l==="right"}),[l]);return o.useEffect(()=>{const a=new ResizeObserver(c=>{for(let u of c){const f=u.borderBoxSize[0];r(f.inlineSize)}});return t.current&&a.observe(t.current),()=>{a.disconnect()}},[t]),o.createElement("th",{ref:t,className:s,style:{width:i}},o.createElement("div",{className:lr.cell,style:{width:n}},o.createElement("div",{className:lr.content},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:lr.text},o.Children.map(e.children,a=>o.isValidElement(a)?o.cloneElement(a):a))))))},cc=o.createContext({}),pO=cc.Provider,gO="_wrapper_12i2w_1",vO="_cell_12i2w_5",yO="_content_12i2w_12",ao={wrapper:gO,cell:vO,content:yO},Mm=e=>{const{deps:t,data:n}=o.use(Os),{accessor:r}=o.use(uc);return o.createElement(pO,{value:{deps:t,data:r?n[r]:n}},o.createElement("td",{className:ao.wrapper},o.createElement("div",{className:ao.cell},o.createElement("div",{className:ao.content},o.Children.map(e.children,i=>o.isValidElement(i)?o.cloneElement(i,{data:r?n[r]:n,children:r?n[r]:null}):i)))))},_O=()=>{const{data:e,deps:t}=o.useContext(cc);return{data:e,deps:t}},uc=o.createContext({}),Yu=uc.Provider,bO=e=>{const[t,n]=o.useState(0),r=o.useMemo(()=>o.Children.toArray(e.children).find(s=>o.isValidElement(s)?s.type===Om:!1),[e.children]),i=o.useMemo(()=>o.Children.toArray(e.children).find(s=>o.isValidElement(s)?s.type===Mm:!1),[e.children]);return e._type==="title"?r?o.createElement(Yu,{value:{setWidth:n,dynamicWidth:t,width:e.width,accessor:e.accessor,align:e.align}},r):o.createElement("th",{style:{width:e.width}}):i?o.createElement(Yu,{value:{setWidth:n,width:e.width,dynamicWidth:t,accessor:e.accessor}},i):o.createElement("td",null)},wO=Object.assign(bO,{Title:Om,Cell:Mm}),xO="_cell_1rd18_1",EO="_expand_1rd18_8",kO="_active_1rd18_28",SO="_disabled_1rd18_35",il={cell:xO,expand:EO,active:kO,disabled:SO},OO=()=>{const{hasExpanded:e,expanded:t,setExpand:n}=o.use(Os),r=o.useMemo(()=>se(il.expand,{[il.active]:e&&t,[il.disabled]:!e}),[t,e]),i=()=>{e&&n(!t)};return o.createElement("div",{className:il.cell,onClick:()=>i()},o.createElement("div",{className:r},t&&e?o.createElement(xe,{icon:"arrow-down-s-line"}):o.createElement(xe,{icon:"arrow-right-s-line"})))};exports.Accordion=x_;exports.Animate=lc;exports.Avatar=Sd;exports.Badge=Ri;exports.BaseOption=Zo;exports.Breadcrumb=s1;exports.Button=pi;exports.ButtonDropdown=Iv;exports.ButtonIcon=Um;exports.ButtonLink=Xm;exports.Calendar=bm;exports.Caption=d_;exports.Card=$k;exports.Checkbox=iy;exports.Chip=Y_;exports.Column=wO;exports.Container=zk;exports.Datepicker=sk;exports.Divider=Em;exports.Dot=co;exports.DropDownWrapper=Ta;exports.Expand=OO;exports.FieldWrapper=or;exports.Icon=xe;exports.Input=hs;exports.InputMask=Io;exports.InputNumeral=Fy;exports.InputSelect=Xy;exports.Label=Lo;exports.LinkTypography=Fk;exports.MenuItem=iS;exports.Modal=US;exports.Notification=v1;exports.QuantityStepper=t1;exports.Radio=Uv;exports.Scrollbar=od;exports.Select=I1;exports.SelectTree=Z1;exports.Sidebar=LS;exports.Slider=B_;exports.Spinner=Uk;exports.TabMenu=Rk;exports.Table=uO;exports.Textarea=l_;exports.Toggle=Od;exports.ToolTip=yb;exports.Typography=ue;exports.User=bS;exports.cellContext=cc;exports.iconName=Pm;exports.rowContext=Os;exports.useCellData=_O;exports.useModalContext=oc;exports.useTooltip=Md;exports.useTooltipContext=Pa;
|