@prosopo/procaptcha-bundle 2.4.1 → 2.5.0
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/bundle/{ProcaptchaWidget-DOETad4N.js → ProcaptchaWidget-CAyH6qD7.js} +33 -31
- package/dist/bundle/{ProcaptchaWidget-79FRw4Va.js → ProcaptchaWidget-CY3qomFu.js} +153 -149
- package/dist/bundle/{asU8a-2GgUBNjQ.js → asU8a-Br9wz334.js} +1 -1
- package/dist/bundle/{bip39-C01p7UHO.js → bip39-BtaWByKg.js} +7 -7
- package/dist/bundle/browser-ponyfill-Ck_bwPOY.js +339 -0
- package/dist/bundle/{hash-0yoKUuST.js → hash-KElfghPn.js} +7 -7
- package/dist/bundle/{index-Ckreqz7Q.js → index-B0trzdT2.js} +3 -3
- package/dist/bundle/index-Cb-XcaMX.js +4372 -0
- package/dist/bundle/index-VYSrdSle.js +11587 -0
- package/dist/bundle/{index-DlBTo0Xd.js → index-n-2hvBzo.js} +405 -405
- package/dist/bundle/locales/de/translation.json +405 -0
- package/dist/bundle/locales/en/translation.json +405 -0
- package/dist/bundle/locales/es/translation.json +405 -0
- package/dist/bundle/locales/fr/translation.json +405 -0
- package/dist/bundle/locales/it/translation.json +405 -0
- package/dist/bundle/locales/pt/translation.json +405 -0
- package/dist/bundle/locales/pt-BR/translation.json +405 -0
- package/dist/bundle/procaptcha.bundle.js +1 -1
- package/dist/bundle/useTranslation-CcYxvTxi.js +2435 -0
- package/package.json +11 -11
- package/stats.html +1 -1
- package/vite.cjs.config.ts +1 -1
- package/vite.config.ts +32 -1
- package/vite.test.config.ts +1 -1
- package/webpack.config.cjs +1 -1
- package/dist/bundle/index-C8sSamyh.js +0 -6521
- package/dist/bundle/index-DOFIggts.js +0 -17295
- package/dist/bundle/useTranslation-CgamIJ5S.js +0 -550
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { H as X, s as Z } from "./sha256-Cxc9Hrlx.js";
|
|
2
|
-
import { S as t, u as F,
|
|
3
|
-
import { H as ne, m as O, t as _, e as T, j as ce, g as le,
|
|
4
|
-
import { a as ue } from "./asU8a-
|
|
2
|
+
import { S as t, u as F, T as ee, j as te, i as ae, U as re, D as se, V as ie, W as oe } from "./hash-KElfghPn.js";
|
|
3
|
+
import { H as ne, m as O, t as _, e as T, j as ce, g as le, p as de, k as he, n as C, s as G } from "./toU8a-BWKf-2UU.js";
|
|
4
|
+
import { a as ue } from "./asU8a-Br9wz334.js";
|
|
5
5
|
class P extends ne {
|
|
6
6
|
constructor(e, o) {
|
|
7
7
|
super(), this.finished = !1, this.destroyed = !1, O(e);
|
|
@@ -160,7 +160,7 @@ class fe extends X {
|
|
|
160
160
|
const K = /* @__PURE__ */ le(() => new fe());
|
|
161
161
|
function me(r, e, o, a) {
|
|
162
162
|
O(r);
|
|
163
|
-
const s =
|
|
163
|
+
const s = he({ dkLen: 32, asyncTick: 10 }, a), { c: i, dkLen: n, asyncTick: c } = s;
|
|
164
164
|
if (C(i), C(n), C(c), i < 1)
|
|
165
165
|
throw new Error("PBKDF2: iterations (c) should be >= 1");
|
|
166
166
|
const u = _(e), p = _(o), b = new Uint8Array(n), d = W.create(r, u), l = d._cloneInto().update(p);
|
|
@@ -172,7 +172,7 @@ function ge(r, e, o, a, s) {
|
|
|
172
172
|
function ye(r, e, o, a) {
|
|
173
173
|
const { c: s, dkLen: i, DK: n, PRF: c, PRFSalt: u } = me(r, e, o, a);
|
|
174
174
|
let p;
|
|
175
|
-
const b = new Uint8Array(4), d =
|
|
175
|
+
const b = new Uint8Array(4), d = de(b), l = new Uint8Array(c.outputLen);
|
|
176
176
|
for (let g = 1, f = 0; f < i; g++, f += c.outputLen) {
|
|
177
177
|
const m = n.subarray(f, f + c.outputLen);
|
|
178
178
|
d.setInt32(0, g, !1), (p = u._cloneInto(p)).update(b).digestInto(l), m.set(l.subarray(0, m.length));
|
|
@@ -187,12 +187,12 @@ function ye(r, e, o, a) {
|
|
|
187
187
|
function xe(r, e = ue(), o = 2048, a) {
|
|
188
188
|
const s = F(r), i = F(e);
|
|
189
189
|
return {
|
|
190
|
-
password: !
|
|
190
|
+
password: !te || ae() ? ee(s, i, o) : ye(K, s, i, { c: o, dkLen: 64 }),
|
|
191
191
|
rounds: o,
|
|
192
192
|
salt: e
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
const we = /* @__PURE__ */ se({ 256: ie, 512: oe }, { 256: Z, 512: K }), ve = /* @__PURE__ */ re(256, we), N = "abandon|ability|able|about|above|absent|absorb|abstract|absurd|abuse|access|accident|account|accuse|achieve|acid|acoustic|acquire|across|act|action|actor|actress|actual|adapt|add|addict|address|adjust|admit|adult|advance|advice|aerobic|affair|afford|afraid|again|age|agent|agree|ahead|aim|air|airport|aisle|alarm|album|alcohol|alert|alien|all|alley|allow|almost|alone|alpha|already|also|alter|always|amateur|amazing|among|amount|amused|analyst|anchor|ancient|anger|angle|angry|animal|ankle|announce|annual|another|answer|antenna|antique|anxiety|any|apart|apology|appear|apple|approve|april|arch|arctic|area|arena|argue|arm|armed|armor|army|around|arrange|arrest|arrive|arrow|art|artefact|artist|artwork|ask|aspect|assault|asset|assist|assume|asthma|athlete|atom|attack|attend|attitude|attract|auction|audit|august|aunt|author|auto|autumn|average|avocado|avoid|awake|aware|away|awesome|awful|awkward|axis|baby|bachelor|bacon|badge|bag|balance|balcony|ball|bamboo|banana|banner|bar|barely|bargain|barrel|base|basic|basket|battle|beach|bean|beauty|because|become|beef|before|begin|behave|behind|believe|below|belt|bench|benefit|best|betray|better|between|beyond|bicycle|bid|bike|bind|biology|bird|birth|bitter|black|blade|blame|blanket|blast|bleak|bless|blind|blood|blossom|blouse|blue|blur|blush|board|boat|body|boil|bomb|bone|bonus|book|boost|border|boring|borrow|boss|bottom|bounce|box|boy|bracket|brain|brand|brass|brave|bread|breeze|brick|bridge|brief|bright|bring|brisk|broccoli|broken|bronze|broom|brother|brown|brush|bubble|buddy|budget|buffalo|build|bulb|bulk|bullet|bundle|bunker|burden|burger|burst|bus|business|busy|butter|buyer|buzz|cabbage|cabin|cable|cactus|cage|cake|call|calm|camera|camp|can|canal|cancel|candy|cannon|canoe|canvas|canyon|capable|capital|captain|car|carbon|card|cargo|carpet|carry|cart|case|cash|casino|castle|casual|cat|catalog|catch|category|cattle|caught|cause|caution|cave|ceiling|celery|cement|census|century|cereal|certain|chair|chalk|champion|change|chaos|chapter|charge|chase|chat|cheap|check|cheese|chef|cherry|chest|chicken|chief|child|chimney|choice|choose|chronic|chuckle|chunk|churn|cigar|cinnamon|circle|citizen|city|civil|claim|clap|clarify|claw|clay|clean|clerk|clever|click|client|cliff|climb|clinic|clip|clock|clog|close|cloth|cloud|clown|club|clump|cluster|clutch|coach|coast|coconut|code|coffee|coil|coin|collect|color|column|combine|come|comfort|comic|common|company|concert|conduct|confirm|congress|connect|consider|control|convince|cook|cool|copper|copy|coral|core|corn|correct|cost|cotton|couch|country|couple|course|cousin|cover|coyote|crack|cradle|craft|cram|crane|crash|crater|crawl|crazy|cream|credit|creek|crew|cricket|crime|crisp|critic|crop|cross|crouch|crowd|crucial|cruel|cruise|crumble|crunch|crush|cry|crystal|cube|culture|cup|cupboard|curious|current|curtain|curve|cushion|custom|cute|cycle|dad|damage|damp|dance|danger|daring|dash|daughter|dawn|day|deal|debate|debris|decade|december|decide|decline|decorate|decrease|deer|defense|define|defy|degree|delay|deliver|demand|demise|denial|dentist|deny|depart|depend|deposit|depth|deputy|derive|describe|desert|design|desk|despair|destroy|detail|detect|develop|device|devote|diagram|dial|diamond|diary|dice|diesel|diet|differ|digital|dignity|dilemma|dinner|dinosaur|direct|dirt|disagree|discover|disease|dish|dismiss|disorder|display|distance|divert|divide|divorce|dizzy|doctor|document|dog|doll|dolphin|domain|donate|donkey|donor|door|dose|double|dove|draft|dragon|drama|drastic|draw|dream|dress|drift|drill|drink|drip|drive|drop|drum|dry|duck|dumb|dune|during|dust|dutch|duty|dwarf|dynamic|eager|eagle|early|earn|earth|easily|east|easy|echo|ecology|economy|edge|edit|educate|effort|egg|eight|either|elbow|elder|electric|elegant|element|elephant|elevator|elite|else|embark|embody|embrace|emerge|emotion|employ|empower|empty|enable|enact|end|endless|endorse|enemy|energy|enforce|engage|engine|enhance|enjoy|enlist|enough|enrich|enroll|ensure|enter|entire|entry|envelope|episode|equal|equip|era|erase|erode|erosion|error|erupt|escape|essay|essence|estate|eternal|ethics|evidence|evil|evoke|evolve|exact|example|excess|exchange|excite|exclude|excuse|execute|exercise|exhaust|exhibit|exile|exist|exit|exotic|expand|expect|expire|explain|expose|express|extend|extra|eye|eyebrow|fabric|face|faculty|fade|faint|faith|fall|false|fame|family|famous|fan|fancy|fantasy|farm|fashion|fat|fatal|father|fatigue|fault|favorite|feature|february|federal|fee|feed|feel|female|fence|festival|fetch|fever|few|fiber|fiction|field|figure|file|film|filter|final|find|fine|finger|finish|fire|firm|first|fiscal|fish|fit|fitness|fix|flag|flame|flash|flat|flavor|flee|flight|flip|float|flock|floor|flower|fluid|flush|fly|foam|focus|fog|foil|fold|follow|food|foot|force|forest|forget|fork|fortune|forum|forward|fossil|foster|found|fox|fragile|frame|frequent|fresh|friend|fringe|frog|front|frost|frown|frozen|fruit|fuel|fun|funny|furnace|fury|future|gadget|gain|galaxy|gallery|game|gap|garage|garbage|garden|garlic|garment|gas|gasp|gate|gather|gauge|gaze|general|genius|genre|gentle|genuine|gesture|ghost|giant|gift|giggle|ginger|giraffe|girl|give|glad|glance|glare|glass|glide|glimpse|globe|gloom|glory|glove|glow|glue|goat|goddess|gold|good|goose|gorilla|gospel|gossip|govern|gown|grab|grace|grain|grant|grape|grass|gravity|great|green|grid|grief|grit|grocery|group|grow|grunt|guard|guess|guide|guilt|guitar|gun|gym|habit|hair|half|hammer|hamster|hand|happy|harbor|hard|harsh|harvest|hat|have|hawk|hazard|head|health|heart|heavy|hedgehog|height|hello|helmet|help|hen|hero|hidden|high|hill|hint|hip|hire|history|hobby|hockey|hold|hole|holiday|hollow|home|honey|hood|hope|horn|horror|horse|hospital|host|hotel|hour|hover|hub|huge|human|humble|humor|hundred|hungry|hunt|hurdle|hurry|hurt|husband|hybrid|ice|icon|idea|identify|idle|ignore|ill|illegal|illness|image|imitate|immense|immune|impact|impose|improve|impulse|inch|include|income|increase|index|indicate|indoor|industry|infant|inflict|inform|inhale|inherit|initial|inject|injury|inmate|inner|innocent|input|inquiry|insane|insect|inside|inspire|install|intact|interest|into|invest|invite|involve|iron|island|isolate|issue|item|ivory|jacket|jaguar|jar|jazz|jealous|jeans|jelly|jewel|job|join|joke|journey|joy|judge|juice|jump|jungle|junior|junk|just|kangaroo|keen|keep|ketchup|key|kick|kid|kidney|kind|kingdom|kiss|kit|kitchen|kite|kitten|kiwi|knee|knife|knock|know|lab|label|labor|ladder|lady|lake|lamp|language|laptop|large|later|latin|laugh|laundry|lava|law|lawn|lawsuit|layer|lazy|leader|leaf|learn|leave|lecture|left|leg|legal|legend|leisure|lemon|lend|length|lens|leopard|lesson|letter|level|liar|liberty|library|license|life|lift|light|like|limb|limit|link|lion|liquid|list|little|live|lizard|load|loan|lobster|local|lock|logic|lonely|long|loop|lottery|loud|lounge|love|loyal|lucky|luggage|lumber|lunar|lunch|luxury|lyrics|machine|mad|magic|magnet|maid|mail|main|major|make|mammal|man|manage|mandate|mango|mansion|manual|maple|marble|march|margin|marine|market|marriage|mask|mass|master|match|material|math|matrix|matter|maximum|maze|meadow|mean|measure|meat|mechanic|medal|media|melody|melt|member|memory|mention|menu|mercy|merge|merit|merry|mesh|message|metal|method|middle|midnight|milk|million|mimic|mind|minimum|minor|minute|miracle|mirror|misery|miss|mistake|mix|mixed|mixture|mobile|model|modify|mom|moment|monitor|monkey|monster|month|moon|moral|more|morning|mosquito|mother|motion|motor|mountain|mouse|move|movie|much|muffin|mule|multiply|muscle|museum|mushroom|music|must|mutual|myself|mystery|myth|naive|name|napkin|narrow|nasty|nation|nature|near|neck|need|negative|neglect|neither|nephew|nerve|nest|net|network|neutral|never|news|next|nice|night|noble|noise|nominee|noodle|normal|north|nose|notable|note|nothing|notice|novel|now|nuclear|number|nurse|nut|oak|obey|object|oblige|obscure|observe|obtain|obvious|occur|ocean|october|odor|off|offer|office|often|oil|okay|old|olive|olympic|omit|once|one|onion|online|only|open|opera|opinion|oppose|option|orange|orbit|orchard|order|ordinary|organ|orient|original|orphan|ostrich|other|outdoor|outer|output|outside|oval|oven|over|own|owner|oxygen|oyster|ozone|pact|paddle|page|pair|palace|palm|panda|panel|panic|panther|paper|parade|parent|park|parrot|party|pass|patch|path|patient|patrol|pattern|pause|pave|payment|peace|peanut|pear|peasant|pelican|pen|penalty|pencil|people|pepper|perfect|permit|person|pet|phone|photo|phrase|physical|piano|picnic|picture|piece|pig|pigeon|pill|pilot|pink|pioneer|pipe|pistol|pitch|pizza|place|planet|plastic|plate|play|please|pledge|pluck|plug|plunge|poem|poet|point|polar|pole|police|pond|pony|pool|popular|portion|position|possible|post|potato|pottery|poverty|powder|power|practice|praise|predict|prefer|prepare|present|pretty|prevent|price|pride|primary|print|priority|prison|private|prize|problem|process|produce|profit|program|project|promote|proof|property|prosper|protect|proud|provide|public|pudding|pull|pulp|pulse|pumpkin|punch|pupil|puppy|purchase|purity|purpose|purse|push|put|puzzle|pyramid|quality|quantum|quarter|question|quick|quit|quiz|quote|rabbit|raccoon|race|rack|radar|radio|rail|rain|raise|rally|ramp|ranch|random|range|rapid|rare|rate|rather|raven|raw|razor|ready|real|reason|rebel|rebuild|recall|receive|recipe|record|recycle|reduce|reflect|reform|refuse|region|regret|regular|reject|relax|release|relief|rely|remain|remember|remind|remove|render|renew|rent|reopen|repair|repeat|replace|report|require|rescue|resemble|resist|resource|response|result|retire|retreat|return|reunion|reveal|review|reward|rhythm|rib|ribbon|rice|rich|ride|ridge|rifle|right|rigid|ring|riot|ripple|risk|ritual|rival|river|road|roast|robot|robust|rocket|romance|roof|rookie|room|rose|rotate|rough|round|route|royal|rubber|rude|rug|rule|run|runway|rural|sad|saddle|sadness|safe|sail|salad|salmon|salon|salt|salute|same|sample|sand|satisfy|satoshi|sauce|sausage|save|say|scale|scan|scare|scatter|scene|scheme|school|science|scissors|scorpion|scout|scrap|screen|script|scrub|sea|search|season|seat|second|secret|section|security|seed|seek|segment|select|sell|seminar|senior|sense|sentence|series|service|session|settle|setup|seven|shadow|shaft|shallow|share|shed|shell|sheriff|shield|shift|shine|ship|shiver|shock|shoe|shoot|shop|short|shoulder|shove|shrimp|shrug|shuffle|shy|sibling|sick|side|siege|sight|sign|silent|silk|silly|silver|similar|simple|since|sing|siren|sister|situate|six|size|skate|sketch|ski|skill|skin|skirt|skull|slab|slam|sleep|slender|slice|slide|slight|slim|slogan|slot|slow|slush|small|smart|smile|smoke|smooth|snack|snake|snap|sniff|snow|soap|soccer|social|sock|soda|soft|solar|soldier|solid|solution|solve|someone|song|soon|sorry|sort|soul|sound|soup|source|south|space|spare|spatial|spawn|speak|special|speed|spell|spend|sphere|spice|spider|spike|spin|spirit|split|spoil|sponsor|spoon|sport|spot|spray|spread|spring|spy|square|squeeze|squirrel|stable|stadium|staff|stage|stairs|stamp|stand|start|state|stay|steak|steel|stem|step|stereo|stick|still|sting|stock|stomach|stone|stool|story|stove|strategy|street|strike|strong|struggle|student|stuff|stumble|style|subject|submit|subway|success|such|sudden|suffer|sugar|suggest|suit|summer|sun|sunny|sunset|super|supply|supreme|sure|surface|surge|surprise|surround|survey|suspect|sustain|swallow|swamp|swap|swarm|swear|sweet|swift|swim|swing|switch|sword|symbol|symptom|syrup|system|table|tackle|tag|tail|talent|talk|tank|tape|target|task|taste|tattoo|taxi|teach|team|tell|ten|tenant|tennis|tent|term|test|text|thank|that|theme|then|theory|there|they|thing|this|thought|three|thrive|throw|thumb|thunder|ticket|tide|tiger|tilt|timber|time|tiny|tip|tired|tissue|title|toast|tobacco|today|toddler|toe|together|toilet|token|tomato|tomorrow|tone|tongue|tonight|tool|tooth|top|topic|topple|torch|tornado|tortoise|toss|total|tourist|toward|tower|town|toy|track|trade|traffic|tragic|train|transfer|trap|trash|travel|tray|treat|tree|trend|trial|tribe|trick|trigger|trim|trip|trophy|trouble|truck|true|truly|trumpet|trust|truth|try|tube|tuition|tumble|tuna|tunnel|turkey|turn|turtle|twelve|twenty|twice|twin|twist|two|type|typical|ugly|umbrella|unable|unaware|uncle|uncover|under|undo|unfair|unfold|unhappy|uniform|unique|unit|universe|unknown|unlock|until|unusual|unveil|update|upgrade|uphold|upon|upper|upset|urban|urge|usage|use|used|useful|useless|usual|utility|vacant|vacuum|vague|valid|valley|valve|van|vanish|vapor|various|vast|vault|vehicle|velvet|vendor|venture|venue|verb|verify|version|very|vessel|veteran|viable|vibrant|vicious|victory|video|view|village|vintage|violin|virtual|virus|visa|visit|visual|vital|vivid|vocal|voice|void|volcano|volume|vote|voyage|wage|wagon|wait|walk|wall|walnut|want|warfare|warm|warrior|wash|wasp|waste|water|wave|way|wealth|weapon|wear|weasel|weather|web|wedding|weekend|weird|welcome|west|wet|whale|what|wheat|wheel|when|where|whip|whisper|wide|width|wife|wild|will|win|window|wine|wing|wink|winner|winter|wire|wisdom|wise|wish|witness|wolf|woman|wonder|wood|wool|word|work|world|worry|worth|wrap|wreck|wrestle|wrist|write|wrong|yard|year|yellow|you|young|youth|zebra|zero|zone|zoo".split("|"), M = "Invalid mnemonic", R = "Invalid entropy", ke = "Invalid mnemonic checksum";
|
|
195
|
+
const we = /* @__PURE__ */ se({ 256: oe, 512: ie }, { 256: Z, 512: K }), ve = /* @__PURE__ */ re(256, we), N = "abandon|ability|able|about|above|absent|absorb|abstract|absurd|abuse|access|accident|account|accuse|achieve|acid|acoustic|acquire|across|act|action|actor|actress|actual|adapt|add|addict|address|adjust|admit|adult|advance|advice|aerobic|affair|afford|afraid|again|age|agent|agree|ahead|aim|air|airport|aisle|alarm|album|alcohol|alert|alien|all|alley|allow|almost|alone|alpha|already|also|alter|always|amateur|amazing|among|amount|amused|analyst|anchor|ancient|anger|angle|angry|animal|ankle|announce|annual|another|answer|antenna|antique|anxiety|any|apart|apology|appear|apple|approve|april|arch|arctic|area|arena|argue|arm|armed|armor|army|around|arrange|arrest|arrive|arrow|art|artefact|artist|artwork|ask|aspect|assault|asset|assist|assume|asthma|athlete|atom|attack|attend|attitude|attract|auction|audit|august|aunt|author|auto|autumn|average|avocado|avoid|awake|aware|away|awesome|awful|awkward|axis|baby|bachelor|bacon|badge|bag|balance|balcony|ball|bamboo|banana|banner|bar|barely|bargain|barrel|base|basic|basket|battle|beach|bean|beauty|because|become|beef|before|begin|behave|behind|believe|below|belt|bench|benefit|best|betray|better|between|beyond|bicycle|bid|bike|bind|biology|bird|birth|bitter|black|blade|blame|blanket|blast|bleak|bless|blind|blood|blossom|blouse|blue|blur|blush|board|boat|body|boil|bomb|bone|bonus|book|boost|border|boring|borrow|boss|bottom|bounce|box|boy|bracket|brain|brand|brass|brave|bread|breeze|brick|bridge|brief|bright|bring|brisk|broccoli|broken|bronze|broom|brother|brown|brush|bubble|buddy|budget|buffalo|build|bulb|bulk|bullet|bundle|bunker|burden|burger|burst|bus|business|busy|butter|buyer|buzz|cabbage|cabin|cable|cactus|cage|cake|call|calm|camera|camp|can|canal|cancel|candy|cannon|canoe|canvas|canyon|capable|capital|captain|car|carbon|card|cargo|carpet|carry|cart|case|cash|casino|castle|casual|cat|catalog|catch|category|cattle|caught|cause|caution|cave|ceiling|celery|cement|census|century|cereal|certain|chair|chalk|champion|change|chaos|chapter|charge|chase|chat|cheap|check|cheese|chef|cherry|chest|chicken|chief|child|chimney|choice|choose|chronic|chuckle|chunk|churn|cigar|cinnamon|circle|citizen|city|civil|claim|clap|clarify|claw|clay|clean|clerk|clever|click|client|cliff|climb|clinic|clip|clock|clog|close|cloth|cloud|clown|club|clump|cluster|clutch|coach|coast|coconut|code|coffee|coil|coin|collect|color|column|combine|come|comfort|comic|common|company|concert|conduct|confirm|congress|connect|consider|control|convince|cook|cool|copper|copy|coral|core|corn|correct|cost|cotton|couch|country|couple|course|cousin|cover|coyote|crack|cradle|craft|cram|crane|crash|crater|crawl|crazy|cream|credit|creek|crew|cricket|crime|crisp|critic|crop|cross|crouch|crowd|crucial|cruel|cruise|crumble|crunch|crush|cry|crystal|cube|culture|cup|cupboard|curious|current|curtain|curve|cushion|custom|cute|cycle|dad|damage|damp|dance|danger|daring|dash|daughter|dawn|day|deal|debate|debris|decade|december|decide|decline|decorate|decrease|deer|defense|define|defy|degree|delay|deliver|demand|demise|denial|dentist|deny|depart|depend|deposit|depth|deputy|derive|describe|desert|design|desk|despair|destroy|detail|detect|develop|device|devote|diagram|dial|diamond|diary|dice|diesel|diet|differ|digital|dignity|dilemma|dinner|dinosaur|direct|dirt|disagree|discover|disease|dish|dismiss|disorder|display|distance|divert|divide|divorce|dizzy|doctor|document|dog|doll|dolphin|domain|donate|donkey|donor|door|dose|double|dove|draft|dragon|drama|drastic|draw|dream|dress|drift|drill|drink|drip|drive|drop|drum|dry|duck|dumb|dune|during|dust|dutch|duty|dwarf|dynamic|eager|eagle|early|earn|earth|easily|east|easy|echo|ecology|economy|edge|edit|educate|effort|egg|eight|either|elbow|elder|electric|elegant|element|elephant|elevator|elite|else|embark|embody|embrace|emerge|emotion|employ|empower|empty|enable|enact|end|endless|endorse|enemy|energy|enforce|engage|engine|enhance|enjoy|enlist|enough|enrich|enroll|ensure|enter|entire|entry|envelope|episode|equal|equip|era|erase|erode|erosion|error|erupt|escape|essay|essence|estate|eternal|ethics|evidence|evil|evoke|evolve|exact|example|excess|exchange|excite|exclude|excuse|execute|exercise|exhaust|exhibit|exile|exist|exit|exotic|expand|expect|expire|explain|expose|express|extend|extra|eye|eyebrow|fabric|face|faculty|fade|faint|faith|fall|false|fame|family|famous|fan|fancy|fantasy|farm|fashion|fat|fatal|father|fatigue|fault|favorite|feature|february|federal|fee|feed|feel|female|fence|festival|fetch|fever|few|fiber|fiction|field|figure|file|film|filter|final|find|fine|finger|finish|fire|firm|first|fiscal|fish|fit|fitness|fix|flag|flame|flash|flat|flavor|flee|flight|flip|float|flock|floor|flower|fluid|flush|fly|foam|focus|fog|foil|fold|follow|food|foot|force|forest|forget|fork|fortune|forum|forward|fossil|foster|found|fox|fragile|frame|frequent|fresh|friend|fringe|frog|front|frost|frown|frozen|fruit|fuel|fun|funny|furnace|fury|future|gadget|gain|galaxy|gallery|game|gap|garage|garbage|garden|garlic|garment|gas|gasp|gate|gather|gauge|gaze|general|genius|genre|gentle|genuine|gesture|ghost|giant|gift|giggle|ginger|giraffe|girl|give|glad|glance|glare|glass|glide|glimpse|globe|gloom|glory|glove|glow|glue|goat|goddess|gold|good|goose|gorilla|gospel|gossip|govern|gown|grab|grace|grain|grant|grape|grass|gravity|great|green|grid|grief|grit|grocery|group|grow|grunt|guard|guess|guide|guilt|guitar|gun|gym|habit|hair|half|hammer|hamster|hand|happy|harbor|hard|harsh|harvest|hat|have|hawk|hazard|head|health|heart|heavy|hedgehog|height|hello|helmet|help|hen|hero|hidden|high|hill|hint|hip|hire|history|hobby|hockey|hold|hole|holiday|hollow|home|honey|hood|hope|horn|horror|horse|hospital|host|hotel|hour|hover|hub|huge|human|humble|humor|hundred|hungry|hunt|hurdle|hurry|hurt|husband|hybrid|ice|icon|idea|identify|idle|ignore|ill|illegal|illness|image|imitate|immense|immune|impact|impose|improve|impulse|inch|include|income|increase|index|indicate|indoor|industry|infant|inflict|inform|inhale|inherit|initial|inject|injury|inmate|inner|innocent|input|inquiry|insane|insect|inside|inspire|install|intact|interest|into|invest|invite|involve|iron|island|isolate|issue|item|ivory|jacket|jaguar|jar|jazz|jealous|jeans|jelly|jewel|job|join|joke|journey|joy|judge|juice|jump|jungle|junior|junk|just|kangaroo|keen|keep|ketchup|key|kick|kid|kidney|kind|kingdom|kiss|kit|kitchen|kite|kitten|kiwi|knee|knife|knock|know|lab|label|labor|ladder|lady|lake|lamp|language|laptop|large|later|latin|laugh|laundry|lava|law|lawn|lawsuit|layer|lazy|leader|leaf|learn|leave|lecture|left|leg|legal|legend|leisure|lemon|lend|length|lens|leopard|lesson|letter|level|liar|liberty|library|license|life|lift|light|like|limb|limit|link|lion|liquid|list|little|live|lizard|load|loan|lobster|local|lock|logic|lonely|long|loop|lottery|loud|lounge|love|loyal|lucky|luggage|lumber|lunar|lunch|luxury|lyrics|machine|mad|magic|magnet|maid|mail|main|major|make|mammal|man|manage|mandate|mango|mansion|manual|maple|marble|march|margin|marine|market|marriage|mask|mass|master|match|material|math|matrix|matter|maximum|maze|meadow|mean|measure|meat|mechanic|medal|media|melody|melt|member|memory|mention|menu|mercy|merge|merit|merry|mesh|message|metal|method|middle|midnight|milk|million|mimic|mind|minimum|minor|minute|miracle|mirror|misery|miss|mistake|mix|mixed|mixture|mobile|model|modify|mom|moment|monitor|monkey|monster|month|moon|moral|more|morning|mosquito|mother|motion|motor|mountain|mouse|move|movie|much|muffin|mule|multiply|muscle|museum|mushroom|music|must|mutual|myself|mystery|myth|naive|name|napkin|narrow|nasty|nation|nature|near|neck|need|negative|neglect|neither|nephew|nerve|nest|net|network|neutral|never|news|next|nice|night|noble|noise|nominee|noodle|normal|north|nose|notable|note|nothing|notice|novel|now|nuclear|number|nurse|nut|oak|obey|object|oblige|obscure|observe|obtain|obvious|occur|ocean|october|odor|off|offer|office|often|oil|okay|old|olive|olympic|omit|once|one|onion|online|only|open|opera|opinion|oppose|option|orange|orbit|orchard|order|ordinary|organ|orient|original|orphan|ostrich|other|outdoor|outer|output|outside|oval|oven|over|own|owner|oxygen|oyster|ozone|pact|paddle|page|pair|palace|palm|panda|panel|panic|panther|paper|parade|parent|park|parrot|party|pass|patch|path|patient|patrol|pattern|pause|pave|payment|peace|peanut|pear|peasant|pelican|pen|penalty|pencil|people|pepper|perfect|permit|person|pet|phone|photo|phrase|physical|piano|picnic|picture|piece|pig|pigeon|pill|pilot|pink|pioneer|pipe|pistol|pitch|pizza|place|planet|plastic|plate|play|please|pledge|pluck|plug|plunge|poem|poet|point|polar|pole|police|pond|pony|pool|popular|portion|position|possible|post|potato|pottery|poverty|powder|power|practice|praise|predict|prefer|prepare|present|pretty|prevent|price|pride|primary|print|priority|prison|private|prize|problem|process|produce|profit|program|project|promote|proof|property|prosper|protect|proud|provide|public|pudding|pull|pulp|pulse|pumpkin|punch|pupil|puppy|purchase|purity|purpose|purse|push|put|puzzle|pyramid|quality|quantum|quarter|question|quick|quit|quiz|quote|rabbit|raccoon|race|rack|radar|radio|rail|rain|raise|rally|ramp|ranch|random|range|rapid|rare|rate|rather|raven|raw|razor|ready|real|reason|rebel|rebuild|recall|receive|recipe|record|recycle|reduce|reflect|reform|refuse|region|regret|regular|reject|relax|release|relief|rely|remain|remember|remind|remove|render|renew|rent|reopen|repair|repeat|replace|report|require|rescue|resemble|resist|resource|response|result|retire|retreat|return|reunion|reveal|review|reward|rhythm|rib|ribbon|rice|rich|ride|ridge|rifle|right|rigid|ring|riot|ripple|risk|ritual|rival|river|road|roast|robot|robust|rocket|romance|roof|rookie|room|rose|rotate|rough|round|route|royal|rubber|rude|rug|rule|run|runway|rural|sad|saddle|sadness|safe|sail|salad|salmon|salon|salt|salute|same|sample|sand|satisfy|satoshi|sauce|sausage|save|say|scale|scan|scare|scatter|scene|scheme|school|science|scissors|scorpion|scout|scrap|screen|script|scrub|sea|search|season|seat|second|secret|section|security|seed|seek|segment|select|sell|seminar|senior|sense|sentence|series|service|session|settle|setup|seven|shadow|shaft|shallow|share|shed|shell|sheriff|shield|shift|shine|ship|shiver|shock|shoe|shoot|shop|short|shoulder|shove|shrimp|shrug|shuffle|shy|sibling|sick|side|siege|sight|sign|silent|silk|silly|silver|similar|simple|since|sing|siren|sister|situate|six|size|skate|sketch|ski|skill|skin|skirt|skull|slab|slam|sleep|slender|slice|slide|slight|slim|slogan|slot|slow|slush|small|smart|smile|smoke|smooth|snack|snake|snap|sniff|snow|soap|soccer|social|sock|soda|soft|solar|soldier|solid|solution|solve|someone|song|soon|sorry|sort|soul|sound|soup|source|south|space|spare|spatial|spawn|speak|special|speed|spell|spend|sphere|spice|spider|spike|spin|spirit|split|spoil|sponsor|spoon|sport|spot|spray|spread|spring|spy|square|squeeze|squirrel|stable|stadium|staff|stage|stairs|stamp|stand|start|state|stay|steak|steel|stem|step|stereo|stick|still|sting|stock|stomach|stone|stool|story|stove|strategy|street|strike|strong|struggle|student|stuff|stumble|style|subject|submit|subway|success|such|sudden|suffer|sugar|suggest|suit|summer|sun|sunny|sunset|super|supply|supreme|sure|surface|surge|surprise|surround|survey|suspect|sustain|swallow|swamp|swap|swarm|swear|sweet|swift|swim|swing|switch|sword|symbol|symptom|syrup|system|table|tackle|tag|tail|talent|talk|tank|tape|target|task|taste|tattoo|taxi|teach|team|tell|ten|tenant|tennis|tent|term|test|text|thank|that|theme|then|theory|there|they|thing|this|thought|three|thrive|throw|thumb|thunder|ticket|tide|tiger|tilt|timber|time|tiny|tip|tired|tissue|title|toast|tobacco|today|toddler|toe|together|toilet|token|tomato|tomorrow|tone|tongue|tonight|tool|tooth|top|topic|topple|torch|tornado|tortoise|toss|total|tourist|toward|tower|town|toy|track|trade|traffic|tragic|train|transfer|trap|trash|travel|tray|treat|tree|trend|trial|tribe|trick|trigger|trim|trip|trophy|trouble|truck|true|truly|trumpet|trust|truth|try|tube|tuition|tumble|tuna|tunnel|turkey|turn|turtle|twelve|twenty|twice|twin|twist|two|type|typical|ugly|umbrella|unable|unaware|uncle|uncover|under|undo|unfair|unfold|unhappy|uniform|unique|unit|universe|unknown|unlock|until|unusual|unveil|update|upgrade|uphold|upon|upper|upset|urban|urge|usage|use|used|useful|useless|usual|utility|vacant|vacuum|vague|valid|valley|valve|van|vanish|vapor|various|vast|vault|vehicle|velvet|vendor|venture|venue|verb|verify|version|very|vessel|veteran|viable|vibrant|vicious|victory|video|view|village|vintage|violin|virtual|virus|visa|visit|visual|vital|vivid|vocal|voice|void|volcano|volume|vote|voyage|wage|wagon|wait|walk|wall|walnut|want|warfare|warm|warrior|wash|wasp|waste|water|wave|way|wealth|weapon|wear|weasel|weather|web|wedding|weekend|weird|welcome|west|wet|whale|what|wheat|wheel|when|where|whip|whisper|wide|width|wife|wild|will|win|window|wine|wing|wink|winner|winter|wire|wisdom|wise|wish|witness|wolf|woman|wonder|wood|wool|word|work|world|worry|worth|wrap|wreck|wrestle|wrist|write|wrong|yard|year|yellow|you|young|youth|zebra|zero|zone|zoo".split("|"), M = "Invalid mnemonic", R = "Invalid entropy", ke = "Invalid mnemonic checksum";
|
|
196
196
|
function q(r) {
|
|
197
197
|
return (r || "").normalize("NFKD");
|
|
198
198
|
}
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { F as V, G as R } from "./index-VYSrdSle.js";
|
|
2
|
+
function z(w, d) {
|
|
3
|
+
for (var b = 0; b < d.length; b++) {
|
|
4
|
+
const y = d[b];
|
|
5
|
+
if (typeof y != "string" && !Array.isArray(y)) {
|
|
6
|
+
for (const h in y)
|
|
7
|
+
if (h !== "default" && !(h in w)) {
|
|
8
|
+
const p = Object.getOwnPropertyDescriptor(y, h);
|
|
9
|
+
p && Object.defineProperty(w, h, p.get ? p : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => y[h]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(w, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var O = { exports: {} };
|
|
19
|
+
(function(w, d) {
|
|
20
|
+
var b = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof R < "u" && R, y = function() {
|
|
21
|
+
function p() {
|
|
22
|
+
this.fetch = !1, this.DOMException = b.DOMException;
|
|
23
|
+
}
|
|
24
|
+
return p.prototype = b, new p();
|
|
25
|
+
}();
|
|
26
|
+
(function(p) {
|
|
27
|
+
(function(u) {
|
|
28
|
+
var a = typeof p < "u" && p || typeof self < "u" && self || typeof a < "u" && a, f = {
|
|
29
|
+
searchParams: "URLSearchParams" in a,
|
|
30
|
+
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
31
|
+
blob: "FileReader" in a && "Blob" in a && function() {
|
|
32
|
+
try {
|
|
33
|
+
return new Blob(), !0;
|
|
34
|
+
} catch {
|
|
35
|
+
return !1;
|
|
36
|
+
}
|
|
37
|
+
}(),
|
|
38
|
+
formData: "FormData" in a,
|
|
39
|
+
arrayBuffer: "ArrayBuffer" in a
|
|
40
|
+
};
|
|
41
|
+
function j(e) {
|
|
42
|
+
return e && DataView.prototype.isPrototypeOf(e);
|
|
43
|
+
}
|
|
44
|
+
if (f.arrayBuffer)
|
|
45
|
+
var S = [
|
|
46
|
+
"[object Int8Array]",
|
|
47
|
+
"[object Uint8Array]",
|
|
48
|
+
"[object Uint8ClampedArray]",
|
|
49
|
+
"[object Int16Array]",
|
|
50
|
+
"[object Uint16Array]",
|
|
51
|
+
"[object Int32Array]",
|
|
52
|
+
"[object Uint32Array]",
|
|
53
|
+
"[object Float32Array]",
|
|
54
|
+
"[object Float64Array]"
|
|
55
|
+
], F = ArrayBuffer.isView || function(e) {
|
|
56
|
+
return e && S.indexOf(Object.prototype.toString.call(e)) > -1;
|
|
57
|
+
};
|
|
58
|
+
function v(e) {
|
|
59
|
+
if (typeof e != "string" && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === "")
|
|
60
|
+
throw new TypeError('Invalid character in header field name: "' + e + '"');
|
|
61
|
+
return e.toLowerCase();
|
|
62
|
+
}
|
|
63
|
+
function A(e) {
|
|
64
|
+
return typeof e != "string" && (e = String(e)), e;
|
|
65
|
+
}
|
|
66
|
+
function E(e) {
|
|
67
|
+
var t = {
|
|
68
|
+
next: function() {
|
|
69
|
+
var r = e.shift();
|
|
70
|
+
return { done: r === void 0, value: r };
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
return f.iterable && (t[Symbol.iterator] = function() {
|
|
74
|
+
return t;
|
|
75
|
+
}), t;
|
|
76
|
+
}
|
|
77
|
+
function s(e) {
|
|
78
|
+
this.map = {}, e instanceof s ? e.forEach(function(t, r) {
|
|
79
|
+
this.append(r, t);
|
|
80
|
+
}, this) : Array.isArray(e) ? e.forEach(function(t) {
|
|
81
|
+
this.append(t[0], t[1]);
|
|
82
|
+
}, this) : e && Object.getOwnPropertyNames(e).forEach(function(t) {
|
|
83
|
+
this.append(t, e[t]);
|
|
84
|
+
}, this);
|
|
85
|
+
}
|
|
86
|
+
s.prototype.append = function(e, t) {
|
|
87
|
+
e = v(e), t = A(t);
|
|
88
|
+
var r = this.map[e];
|
|
89
|
+
this.map[e] = r ? r + ", " + t : t;
|
|
90
|
+
}, s.prototype.delete = function(e) {
|
|
91
|
+
delete this.map[v(e)];
|
|
92
|
+
}, s.prototype.get = function(e) {
|
|
93
|
+
return e = v(e), this.has(e) ? this.map[e] : null;
|
|
94
|
+
}, s.prototype.has = function(e) {
|
|
95
|
+
return this.map.hasOwnProperty(v(e));
|
|
96
|
+
}, s.prototype.set = function(e, t) {
|
|
97
|
+
this.map[v(e)] = A(t);
|
|
98
|
+
}, s.prototype.forEach = function(e, t) {
|
|
99
|
+
for (var r in this.map)
|
|
100
|
+
this.map.hasOwnProperty(r) && e.call(t, this.map[r], r, this);
|
|
101
|
+
}, s.prototype.keys = function() {
|
|
102
|
+
var e = [];
|
|
103
|
+
return this.forEach(function(t, r) {
|
|
104
|
+
e.push(r);
|
|
105
|
+
}), E(e);
|
|
106
|
+
}, s.prototype.values = function() {
|
|
107
|
+
var e = [];
|
|
108
|
+
return this.forEach(function(t) {
|
|
109
|
+
e.push(t);
|
|
110
|
+
}), E(e);
|
|
111
|
+
}, s.prototype.entries = function() {
|
|
112
|
+
var e = [];
|
|
113
|
+
return this.forEach(function(t, r) {
|
|
114
|
+
e.push([r, t]);
|
|
115
|
+
}), E(e);
|
|
116
|
+
}, f.iterable && (s.prototype[Symbol.iterator] = s.prototype.entries);
|
|
117
|
+
function T(e) {
|
|
118
|
+
if (e.bodyUsed)
|
|
119
|
+
return Promise.reject(new TypeError("Already read"));
|
|
120
|
+
e.bodyUsed = !0;
|
|
121
|
+
}
|
|
122
|
+
function P(e) {
|
|
123
|
+
return new Promise(function(t, r) {
|
|
124
|
+
e.onload = function() {
|
|
125
|
+
t(e.result);
|
|
126
|
+
}, e.onerror = function() {
|
|
127
|
+
r(e.error);
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function I(e) {
|
|
132
|
+
var t = new FileReader(), r = P(t);
|
|
133
|
+
return t.readAsArrayBuffer(e), r;
|
|
134
|
+
}
|
|
135
|
+
function M(e) {
|
|
136
|
+
var t = new FileReader(), r = P(t);
|
|
137
|
+
return t.readAsText(e), r;
|
|
138
|
+
}
|
|
139
|
+
function H(e) {
|
|
140
|
+
for (var t = new Uint8Array(e), r = new Array(t.length), n = 0; n < t.length; n++)
|
|
141
|
+
r[n] = String.fromCharCode(t[n]);
|
|
142
|
+
return r.join("");
|
|
143
|
+
}
|
|
144
|
+
function D(e) {
|
|
145
|
+
if (e.slice)
|
|
146
|
+
return e.slice(0);
|
|
147
|
+
var t = new Uint8Array(e.byteLength);
|
|
148
|
+
return t.set(new Uint8Array(e)), t.buffer;
|
|
149
|
+
}
|
|
150
|
+
function x() {
|
|
151
|
+
return this.bodyUsed = !1, this._initBody = function(e) {
|
|
152
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : f.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : f.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : f.arrayBuffer && f.blob && j(e) ? (this._bodyArrayBuffer = D(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : f.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || F(e)) ? this._bodyArrayBuffer = D(e) : this._bodyText = e = Object.prototype.toString.call(e) : this._bodyText = "", this.headers.get("content-type") || (typeof e == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
153
|
+
}, f.blob && (this.blob = function() {
|
|
154
|
+
var e = T(this);
|
|
155
|
+
if (e)
|
|
156
|
+
return e;
|
|
157
|
+
if (this._bodyBlob)
|
|
158
|
+
return Promise.resolve(this._bodyBlob);
|
|
159
|
+
if (this._bodyArrayBuffer)
|
|
160
|
+
return Promise.resolve(new Blob([this._bodyArrayBuffer]));
|
|
161
|
+
if (this._bodyFormData)
|
|
162
|
+
throw new Error("could not read FormData body as blob");
|
|
163
|
+
return Promise.resolve(new Blob([this._bodyText]));
|
|
164
|
+
}, this.arrayBuffer = function() {
|
|
165
|
+
if (this._bodyArrayBuffer) {
|
|
166
|
+
var e = T(this);
|
|
167
|
+
return e || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
|
|
168
|
+
this._bodyArrayBuffer.buffer.slice(
|
|
169
|
+
this._bodyArrayBuffer.byteOffset,
|
|
170
|
+
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
|
|
171
|
+
)
|
|
172
|
+
) : Promise.resolve(this._bodyArrayBuffer));
|
|
173
|
+
} else
|
|
174
|
+
return this.blob().then(I);
|
|
175
|
+
}), this.text = function() {
|
|
176
|
+
var e = T(this);
|
|
177
|
+
if (e)
|
|
178
|
+
return e;
|
|
179
|
+
if (this._bodyBlob)
|
|
180
|
+
return M(this._bodyBlob);
|
|
181
|
+
if (this._bodyArrayBuffer)
|
|
182
|
+
return Promise.resolve(H(this._bodyArrayBuffer));
|
|
183
|
+
if (this._bodyFormData)
|
|
184
|
+
throw new Error("could not read FormData body as text");
|
|
185
|
+
return Promise.resolve(this._bodyText);
|
|
186
|
+
}, f.formData && (this.formData = function() {
|
|
187
|
+
return this.text().then(C);
|
|
188
|
+
}), this.json = function() {
|
|
189
|
+
return this.text().then(JSON.parse);
|
|
190
|
+
}, this;
|
|
191
|
+
}
|
|
192
|
+
var q = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
193
|
+
function L(e) {
|
|
194
|
+
var t = e.toUpperCase();
|
|
195
|
+
return q.indexOf(t) > -1 ? t : e;
|
|
196
|
+
}
|
|
197
|
+
function m(e, t) {
|
|
198
|
+
if (!(this instanceof m))
|
|
199
|
+
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
200
|
+
t = t || {};
|
|
201
|
+
var r = t.body;
|
|
202
|
+
if (e instanceof m) {
|
|
203
|
+
if (e.bodyUsed)
|
|
204
|
+
throw new TypeError("Already read");
|
|
205
|
+
this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new s(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, !r && e._bodyInit != null && (r = e._bodyInit, e.bodyUsed = !0);
|
|
206
|
+
} else
|
|
207
|
+
this.url = String(e);
|
|
208
|
+
if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new s(t.headers)), this.method = L(t.method || this.method || "GET"), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && r)
|
|
209
|
+
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
210
|
+
if (this._initBody(r), (this.method === "GET" || this.method === "HEAD") && (t.cache === "no-store" || t.cache === "no-cache")) {
|
|
211
|
+
var n = /([?&])_=[^&]*/;
|
|
212
|
+
if (n.test(this.url))
|
|
213
|
+
this.url = this.url.replace(n, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
214
|
+
else {
|
|
215
|
+
var i = /\?/;
|
|
216
|
+
this.url += (i.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
m.prototype.clone = function() {
|
|
221
|
+
return new m(this, { body: this._bodyInit });
|
|
222
|
+
};
|
|
223
|
+
function C(e) {
|
|
224
|
+
var t = new FormData();
|
|
225
|
+
return e.trim().split("&").forEach(function(r) {
|
|
226
|
+
if (r) {
|
|
227
|
+
var n = r.split("="), i = n.shift().replace(/\+/g, " "), o = n.join("=").replace(/\+/g, " ");
|
|
228
|
+
t.append(decodeURIComponent(i), decodeURIComponent(o));
|
|
229
|
+
}
|
|
230
|
+
}), t;
|
|
231
|
+
}
|
|
232
|
+
function k(e) {
|
|
233
|
+
var t = new s(), r = e.replace(/\r?\n[\t ]+/g, " ");
|
|
234
|
+
return r.split("\r").map(function(n) {
|
|
235
|
+
return n.indexOf(`
|
|
236
|
+
`) === 0 ? n.substr(1, n.length) : n;
|
|
237
|
+
}).forEach(function(n) {
|
|
238
|
+
var i = n.split(":"), o = i.shift().trim();
|
|
239
|
+
if (o) {
|
|
240
|
+
var _ = i.join(":").trim();
|
|
241
|
+
t.append(o, _);
|
|
242
|
+
}
|
|
243
|
+
}), t;
|
|
244
|
+
}
|
|
245
|
+
x.call(m.prototype);
|
|
246
|
+
function c(e, t) {
|
|
247
|
+
if (!(this instanceof c))
|
|
248
|
+
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
249
|
+
t || (t = {}), this.type = "default", this.status = t.status === void 0 ? 200 : t.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = t.statusText === void 0 ? "" : "" + t.statusText, this.headers = new s(t.headers), this.url = t.url || "", this._initBody(e);
|
|
250
|
+
}
|
|
251
|
+
x.call(c.prototype), c.prototype.clone = function() {
|
|
252
|
+
return new c(this._bodyInit, {
|
|
253
|
+
status: this.status,
|
|
254
|
+
statusText: this.statusText,
|
|
255
|
+
headers: new s(this.headers),
|
|
256
|
+
url: this.url
|
|
257
|
+
});
|
|
258
|
+
}, c.error = function() {
|
|
259
|
+
var e = new c(null, { status: 0, statusText: "" });
|
|
260
|
+
return e.type = "error", e;
|
|
261
|
+
};
|
|
262
|
+
var N = [301, 302, 303, 307, 308];
|
|
263
|
+
c.redirect = function(e, t) {
|
|
264
|
+
if (N.indexOf(t) === -1)
|
|
265
|
+
throw new RangeError("Invalid status code");
|
|
266
|
+
return new c(null, { status: t, headers: { location: e } });
|
|
267
|
+
}, u.DOMException = a.DOMException;
|
|
268
|
+
try {
|
|
269
|
+
new u.DOMException();
|
|
270
|
+
} catch {
|
|
271
|
+
u.DOMException = function(t, r) {
|
|
272
|
+
this.message = t, this.name = r;
|
|
273
|
+
var n = Error(t);
|
|
274
|
+
this.stack = n.stack;
|
|
275
|
+
}, u.DOMException.prototype = Object.create(Error.prototype), u.DOMException.prototype.constructor = u.DOMException;
|
|
276
|
+
}
|
|
277
|
+
function B(e, t) {
|
|
278
|
+
return new Promise(function(r, n) {
|
|
279
|
+
var i = new m(e, t);
|
|
280
|
+
if (i.signal && i.signal.aborted)
|
|
281
|
+
return n(new u.DOMException("Aborted", "AbortError"));
|
|
282
|
+
var o = new XMLHttpRequest();
|
|
283
|
+
function _() {
|
|
284
|
+
o.abort();
|
|
285
|
+
}
|
|
286
|
+
o.onload = function() {
|
|
287
|
+
var l = {
|
|
288
|
+
status: o.status,
|
|
289
|
+
statusText: o.statusText,
|
|
290
|
+
headers: k(o.getAllResponseHeaders() || "")
|
|
291
|
+
};
|
|
292
|
+
l.url = "responseURL" in o ? o.responseURL : l.headers.get("X-Request-URL");
|
|
293
|
+
var g = "response" in o ? o.response : o.responseText;
|
|
294
|
+
setTimeout(function() {
|
|
295
|
+
r(new c(g, l));
|
|
296
|
+
}, 0);
|
|
297
|
+
}, o.onerror = function() {
|
|
298
|
+
setTimeout(function() {
|
|
299
|
+
n(new TypeError("Network request failed"));
|
|
300
|
+
}, 0);
|
|
301
|
+
}, o.ontimeout = function() {
|
|
302
|
+
setTimeout(function() {
|
|
303
|
+
n(new TypeError("Network request failed"));
|
|
304
|
+
}, 0);
|
|
305
|
+
}, o.onabort = function() {
|
|
306
|
+
setTimeout(function() {
|
|
307
|
+
n(new u.DOMException("Aborted", "AbortError"));
|
|
308
|
+
}, 0);
|
|
309
|
+
};
|
|
310
|
+
function G(l) {
|
|
311
|
+
try {
|
|
312
|
+
return l === "" && a.location.href ? a.location.href : l;
|
|
313
|
+
} catch {
|
|
314
|
+
return l;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
o.open(i.method, G(i.url), !0), i.credentials === "include" ? o.withCredentials = !0 : i.credentials === "omit" && (o.withCredentials = !1), "responseType" in o && (f.blob ? o.responseType = "blob" : f.arrayBuffer && i.headers.get("Content-Type") && i.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (o.responseType = "arraybuffer")), t && typeof t.headers == "object" && !(t.headers instanceof s) ? Object.getOwnPropertyNames(t.headers).forEach(function(l) {
|
|
318
|
+
o.setRequestHeader(l, A(t.headers[l]));
|
|
319
|
+
}) : i.headers.forEach(function(l, g) {
|
|
320
|
+
o.setRequestHeader(g, l);
|
|
321
|
+
}), i.signal && (i.signal.addEventListener("abort", _), o.onreadystatechange = function() {
|
|
322
|
+
o.readyState === 4 && i.signal.removeEventListener("abort", _);
|
|
323
|
+
}), o.send(typeof i._bodyInit > "u" ? null : i._bodyInit);
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
return B.polyfill = !0, a.fetch || (a.fetch = B, a.Headers = s, a.Request = m, a.Response = c), u.Headers = s, u.Request = m, u.Response = c, u.fetch = B, u;
|
|
327
|
+
})({});
|
|
328
|
+
})(y), y.fetch.ponyfill = !0, delete y.fetch.polyfill;
|
|
329
|
+
var h = b.fetch ? b : y;
|
|
330
|
+
d = h.fetch, d.default = h.fetch, d.fetch = h.fetch, d.Headers = h.Headers, d.Request = h.Request, d.Response = h.Response, w.exports = d;
|
|
331
|
+
})(O, O.exports);
|
|
332
|
+
var U = O.exports;
|
|
333
|
+
const $ = /* @__PURE__ */ V(U), J = /* @__PURE__ */ z({
|
|
334
|
+
__proto__: null,
|
|
335
|
+
default: $
|
|
336
|
+
}, [U]);
|
|
337
|
+
export {
|
|
338
|
+
J as b
|
|
339
|
+
};
|
|
@@ -2,7 +2,7 @@ var pn = Object.defineProperty;
|
|
|
2
2
|
var Nn = (e, n, t) => n in e ? pn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var y = (e, n, t) => Nn(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
4
|
import { H as wn, n as _, u as C, e as zn, t as S, i as D, b as W, o as Mn, a as M, w as Un, c as bn, x as Q, s as xn } from "./toU8a-BWKf-2UU.js";
|
|
5
|
-
import {
|
|
5
|
+
import { z as Vn } from "./index-VYSrdSle.js";
|
|
6
6
|
const Fn = "";
|
|
7
7
|
function Yn(e, n) {
|
|
8
8
|
return e.join(Fn);
|
|
@@ -905,14 +905,14 @@ export {
|
|
|
905
905
|
an as B,
|
|
906
906
|
Cn as C,
|
|
907
907
|
Tt as D,
|
|
908
|
-
|
|
909
|
-
|
|
908
|
+
yt as E,
|
|
909
|
+
Xt as F,
|
|
910
910
|
rt as G,
|
|
911
911
|
vt as H,
|
|
912
912
|
st as I,
|
|
913
913
|
ct as J,
|
|
914
|
-
|
|
915
|
-
|
|
914
|
+
xt as K,
|
|
915
|
+
bt as L,
|
|
916
916
|
Qe as M,
|
|
917
917
|
$e as N,
|
|
918
918
|
_e as O,
|
|
@@ -922,8 +922,8 @@ export {
|
|
|
922
922
|
h as S,
|
|
923
923
|
Ot as T,
|
|
924
924
|
Lt as U,
|
|
925
|
-
|
|
926
|
-
|
|
925
|
+
ht as V,
|
|
926
|
+
jt as W,
|
|
927
927
|
ge as X,
|
|
928
928
|
ye as Y,
|
|
929
929
|
ke as a,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { w as m, i as f, a as l } from "./hash-
|
|
1
|
+
import { z as g, c as i } from "./index-VYSrdSle.js";
|
|
2
|
+
import { w as m, i as f, a as l } from "./hash-KElfghPn.js";
|
|
3
3
|
import { s as E } from "./toU8a-BWKf-2UU.js";
|
|
4
4
|
const x = "dev";
|
|
5
5
|
class y {
|
|
@@ -11,7 +11,7 @@ function b() {
|
|
|
11
11
|
return !0;
|
|
12
12
|
}).catch(() => !1);
|
|
13
13
|
}
|
|
14
|
-
const h = async () => (await import("./fp.esm-C0kLYOiJ.js")).default, N = async () => (await (await (await h()).load()).get()).visitorId, T = async () => (await import("./Signer-DP9drQ55.js")).default, O = async () => (await import("./index-
|
|
14
|
+
const h = async () => (await import("./fp.esm-C0kLYOiJ.js")).default, N = async () => (await (await (await h()).load()).get()).visitorId, T = async () => (await import("./Signer-DP9drQ55.js")).default, O = async () => (await import("./index-Cb-XcaMX.js")).Keyring, A = async () => (await import("./bip39-BtaWByKg.js").then((a) => a.c)).entropyToMnemonic;
|
|
15
15
|
class I extends y {
|
|
16
16
|
async getAccount(e) {
|
|
17
17
|
const t = await this.createAccount(e), n = await this.createExtension(t);
|